WHO SMART Guidelines - HIV
0.4.3 - ci-build

WHO SMART Guidelines - HIV - Local Development build (v0.4.3) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Library: WHOEncounterElements (Experimental)

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

Description not yet available for WHOEncounterElements.

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

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

code: logic-library

Date: 2025-02-02 03:11:41+0000
Publisher: WHO
Description:

Description not yet available for WHOEncounterElements.

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