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: IMMZD18SDTPPregnancyStartingWith4DosesLogic

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

This library defines decision support logic for the IMMZ.D18.S.DTP.Pregnancy starting with 4 doses schedule table in the Immunization CPG

Exception generating Narrative: Unable to Parse HTML - node 'code' has unexpected content ' ' (last text = '/* * Library: IMMZD18SDTPPregnancyStartingWith4DosesLogic (IMMZ.D18.S.DTP.Pregnancy starting with 4 doses schedule) * Schedule Table: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood diphtheria–tetanus–pertussis (DTP) doses */ library IMMZD18SDTPPregnancyStartingWith4DosesLogic 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 IMMZD2DTDTPEncounterElements called Encounter parameter Today Date default Today() context Patient /* @output: Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) @description: Provision of tetanus and diphtheria booster dose 2 for pregnant women who received 4 tetanus-containing vaccines doses during childhood or pre-adulthood @trigger: The primary DTP series has been completed, first tetanus and diphtheria booster dose was administered and client is currently pregnant @pseudo: "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "DTP-containing vaccines") AND Count of vaccines administered where "Vaccine type" = "Tetanus and diphtheria-containing vaccines" and "Type of dose" = "Booster dose") = 1 AND "Currently pregnant" = TRUE @triggerDate: First ANC contact date "Contact date" WHEN "ANC contact number" = 1 */ define "Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy)": Encounter."Three DTP primary series doses were administered" and Encounter."One tetanus and diphtheria booster dose was administered" and Encounter."Client is currently pregnant" and not "Second tetanus and diphtheria booster dose was administered" /* @output: Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) Create @create: Women who received 4 tetanus-containing vaccine doses during childhood or pre-adulthood need only 1 booster dose, which should be given at the first opportunity. */ define "Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) Create": if "Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy)" then 'Women who received 4 tetanus-containing vaccine doses during childhood or pre-adulthood need only 1 booster dose, which should be given at the first opportunity.' + ' Due Date: ' + ToString("Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) Due Date") + ' Overdue: ' + ToString("Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) Overdue") + ' Expiration: ' + "Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) Expiration" else '' /* @dynamicValue: Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) Due Date @pseudocode: "Contact date" WHEN "ANC contact number" = 1 */ define "Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) Due Date": if "Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy)" then Today else null /* @dynamicValue: Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) Overdue @pseudocode: Every subsequent contact until 38 weeks */ define "Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) Overdue": if "Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy)" then Today else null /* @dynamicValue: Tetanus and diphtheria-containing vaccine booster dose 2 (during pregnancy) Expiration @pseudocode: Two weeks before birth for the pregnancy; however individuals remain eligible to be vaccinated "Gestational age" ' at line 268 column 20