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

Library: IMMZD18SHib3DosesLogic

Official URL: http://smart.who.int/immunizations/Library/IMMZD18SHib3DosesLogic Version: 0.2.0
Draft as of 2026-07-07 Computable Name: IMMZD18SHib3DosesLogic

This library defines decision support logic for the IMMZ.D18.S.Hib.3 doses schedule table in the Immunization CPG

Exception generating Narrative: Unable to Parse HTML - node 'code' has unexpected content ' ' (last text = '/* * Library: IMMZD18SHib3DosesLogic (IMMZ.D18.S.Hib.3 doses schedule) * Schedule Table: 3 primary doses without a booster dose (3p) schedule */ library IMMZD18SHib3DosesLogic using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include WHOCommon called WC include IMMZCommon called Common include IMMZConcepts called Concepts include IMMZEncounterElements called IE include IMMZD2DTHibEncounterElements called Encounter parameter Today Date default Today() context Patient /* @output: Haemophilus influenzae type b (Hib) dose 1 @description: Provision of the Hib dose 1 @trigger: Child's birth @pseudo: @triggerDate: "Date of birth" */ define "Haemophilus influenzae type b (Hib) dose 1": Encounter."No Hib primary series doses were administered" and "Haemophilus influenzae type b (Hib) dose 1 Expiration" after day of Today /* @output: Haemophilus influenzae type b (Hib) dose 1 Create @create: Immunization should start from 6 weeks of age, or as early as possible thereafter. Hib-containing vaccine is not required for healthy children aged over 5 years. */ define "Haemophilus influenzae type b (Hib) dose 1 Create": if "Haemophilus influenzae type b (Hib) dose 1" then 'Immunization should start from 6 weeks of age, or as early as possible thereafter. Hib-containing vaccine is not required for healthy children aged over 5 years.' + ' Due Date: ' + ToString("Haemophilus influenzae type b (Hib) dose 1 Due Date") + ' Expiration: ' + ToString("Haemophilus influenzae type b (Hib) dose 1 Expiration") else '' /* @dynamicValue: Haemophilus influenzae type b (Hib) dose 1 Due Date @pseudocode: "Date of birth" + 6 weeks */ define "Haemophilus influenzae type b (Hib) dose 1 Due Date": if "Haemophilus influenzae type b (Hib) dose 1" then Patient.birthDate + 6 weeks else null /* @dynamicValue: Haemophilus influenzae type b (Hib) dose 1 Overdue @pseudocode: To be determined by Member States */ define "Haemophilus influenzae type b (Hib) dose 1 Overdue": null /* @dynamicValue: Haemophilus influenzae type b (Hib) dose 1 Expiration @pseudocode: "Date of birth" + 6 years */ define "Haemophilus influenzae type b (Hib) dose 1 Expiration": Patient.birthDate + 6 years /* @complete: First Hib dose from the primary series was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose"= "Primary series") = 1 The primary series has been completed for delayed start "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "Hib-containing vaccines") */ define "First Hib dose from the primary series was administered": Encounter."One Hib primary series dose was administered" /* @output: Hib dose 2 @description: Provision of the Hib dose 2 @trigger: First Hib dose from the primary series was administered to the client within 1 year of age. Client's age is less than 5 years @pseudo: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose" = "Primary series") = 1 AND "Date and time of vaccination" (where "Vaccine type"= "Hib-containing vaccines" and "Dose number" = 1) − "Date of birth" ' at line 297 column 260