WHO SMART Guidelines - HIV
1.0.0 - release

This page is part of the WHO SMART Guidelines - HIV (v1.0.0: Release) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Library: WHOEncounterElements (Experimental)

Official URL: http://smart.who.int/hiv/Library/WHOEncounterElements Version: 1.0.0
Draft as of 2025-07-08 Computable Name: WHOEncounterElements

Description not yet available for WHOEncounterElements.

Title: WHOEncounterElements
Id: WHOEncounterElements
Version: 1.0.0
Url: WHOEncounterElements
Status: draft
Experimental: true
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Date: 2025-07-08 23:21:58+0200
Publisher: WHO
Description:

Description not yet available for WHOEncounterElements.

Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
AsOfdate01In
EncounterIdstring01In
PatientPatient01Out
Pregnant ObservationObservation0*Out
Content: text/cql
library WHOEncounterElements

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'

include WHOConcepts called Concepts
include WHOCommon called Common
include WHOElements called Elements

parameter AsOf Date default Today()
parameter EncounterId String

context Patient

define "Pregnant Observation":
  Elements."Pregnant Observation" O
    where O.encounter.references(EncounterId)
      or O.effective.toInterval() starts 9 months on or before day of AsOf
Content: application/elm+xml
Encoded data (14340 characters)
Content: application/elm+json
Encoded data (25296 characters)