WHO Immunization Implementation Guide
0.2.0 - ci-build
WHO Immunization Implementation Guide, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-immunizations/ and changes regularly. See the Directory of published versions
| Official URL: http://smart.who.int/immunizations/Library/IMMZEncounterElements | Version: 0.2.0 | |||
| Draft as of 2026-07-07 | Computable Name: IMMZEncounterElements | |||
This library defines encounter-based elements used throughout the Immunization CPG
Exception generating Narrative: Unable to Parse HTML - node 'code' has unexpected content ' ' (last text = 'library IMMZEncounterElements using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include WHOConcepts include WHOCommon called WC include WHOEncounterElements called WE include IMMZConcepts called Concepts include IMMZCommon called Common include IMMZElements called Elements parameter Today Date default Today() parameter EncounterId String context Patient /** * @dataElement All Doses Administered to Patient */ define "Doses Administered to Patient": Elements."Doses Administered to Patient" I where I.occurrence.toInterval() same day or before Today /* @dataElement: Draft Medication Request for Patient */ define "Draft Medication Request for Patient": Elements."Draft Medication Request for Patient" MR where MR.encounter.references(EncounterId) or MR.authoredOn.toInterval() same day or before Today sort by date from (authoredOn as FHIR.dateTime) desc /* @dataElement Live attenuated vaccines */ define "Live Attenuated Vaccines": Elements."Live Attenuated Vaccines" I where I.occurrence.toInterval() same day or before Today /* @dataElement Date and time of last live attenuated vaccine */ define "Date of Latest Live Attenuated Vaccine": date from start of "Live Attenuated Vaccines".mostRecent().occurrence.toInterval() /** * @dataElement Patient age in years */ define "Current Patient Age In Years": AgeInYearsAt(Today) /** * @dataElement Patient age in months */ define "Current Patient Age In Months": AgeInMonthsAt(Today) /** * @dataElement Patient age in weeks */ define "Current Patient Age In Weeks": AgeInWeeksAt(Today) /** * @dataElement Patient age in days */ define "Current Patient Age In Days": AgeInDaysAt(Today) /* @input: No live vaccine was administered @pseudocode: Today's date − latest "Date and time of vaccination" (where "Live vaccine" = TRUE) IS NULL */ define "No live vaccine was administered": not exists("Live Attenuated Vaccines") /* @input: Live vaccine was administered in the last 4 weeks @pseudocode: Today's date − latest "Date and time of vaccination" (where "Live vaccine" = TRUE) ' at line 529 column 98