WHO SMART Guidelines - Example Workshop IG
0.1.0 - ci-build

WHO SMART Guidelines - Example Workshop IG, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/brynrhodes/smart-workshop/ and changes regularly. See the Directory of published versions

Library: WHOEncounterElements (Experimental)

Official URL: http://smart.who.int/base-clinical/Library/WHOEncounterElements Version: 0.1.0
Draft as of 2024-12-02 Computable Name: WHOEncounterElements

This library defines encounter-based elements used throughout WHO SMART Guidelines content

Generated Narrative: Library WHOEncounterElements

Related Artifacts

Depends OnLibrary Commonhttp://smart.who.int/example-workshop/Library/WHOCommon
Depends OnLibrary Elementshttp://smart.who.int/example-workshop/Library/WHOElements

Parameters

AsOfin01date
EncounterIdin01string
Patientout01Patient
Pregnant Observationout0*Observation

Contents

text/cql

library WHOEncounterElements

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'

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 not shown - (application/elm+xml, size = 9Kb )

Content not shown - (application/elm+json, size = 15Kb )