Title: IMMZD18SMeaslesMCVDose0Logic Id: IMMZD18SMeaslesMCVDose0Logic Version: 0.2.0 Url: IMMZD18SMeaslesMCVDose0Logic Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-11-25 19:41:02+0000 Publisher: WHO Description: This library defines decision support logic for the IMMZ.D18.S.Measles.MCV dose 0 schedule table in the Immunization CPG Related Artifacts: Dependencies WHOCommon IMMZCommon IMMZConcepts IMMZEncounterElements IMMZD2DTMeaslesEncounterElements Parameters: Name Type Min Max In/Out Today date 0 1 In Patient Patient 0 1 Out MCV0 was administered boolean 0 1 Out MCV0 Expiration date 0 1 Out MCV0 boolean 0 1 Out MCV0 Due Date date 0 1 Out MCV0 Create string 0 1 Out MCV0 Overdue Resource 0 1 Out Test Validation Resource 0 1 Out Content: text/cql /* * Library: IMMZD18SMeaslesMCVDose0Logic (IMMZ.D18.S.Measles.MCV dose 0 schedule) * Schedule Table: Measles-containing vaccine dose 0 (MCV0) schedule */ library IMMZD18SMeaslesMCVDose0Logic 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 IMMZD2DTMeaslesEncounterElements called Encounter parameter Today Date default Today() context Patient /* @output: MCV0 @description: Provision of the MCV0 @trigger: Child's birth @pseudo: @triggerDate: "Date of birth" */ define "MCV0": not "MCV0 was administered" and "MCV0 Expiration" after Today /* @output: MCV0 Create @create: In the following situations, a supplementary dose of MCV should be given to infants from 6 months of age: • during a measles outbreak as part of intensified service delivery; • during campaigns in settings where the risk of measles among infants aged under 9 months remains high (e.g. in endemic countries experiencing regular outbreaks); • for internally displaced populations and refugees, and populations in conflict zones; • for individual infants at high risk of contracting measles (e.g. contacts of known measles cases or in settings with increased risk of exposure during outbreaks such as day-care facilities); • for infants travelling to countries experiencing measles outbreaks; • for infants known to be HIV-infected or exposed (i.e. born to a woman infected with HIV). */ define "MCV0 Create": if "MCV0" then 'In the following situations, a supplementary dose of MCV should be given to infants from 6 months of age: • during a measles outbreak as part of intensified service delivery; • during campaigns in settings where the risk of measles among infants aged under 9 months remains high (e.g. in endemic countries experiencing regular outbreaks); • for internally displaced populations and refugees, and populations in conflict zones; • for individual infants at high risk of contracting measles (e.g. contacts of known measles cases or in settings with increased risk of exposure during outbreaks such as day-care facilities); • for infants travelling to countries experiencing measles outbreaks; • for infants known to be HIV-infected or exposed (i.e. born to a woman infected with HIV).' + ' Due Date: ' + ToString("MCV0 Due Date") + ' Expiration: ' + ToString("MCV0 Expiration") else '' /* @dynamicValue: MCV0 Due Date @pseudocode: "Date of birth" + 6 months */ define "MCV0 Due Date": if "MCV0" then Patient.birthDate + 6 months else null /* @dynamicValue: MCV0 Overdue @pseudocode: To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated. */ define "MCV0 Overdue": null /* @dynamicValue: MCV0 Expiration @pseudocode: "Date of birth" + 9 months for countries with ongoing transmission in which the risk of measles mortality remains high OR "Date of birth" + 12 months for countries with low levels of measles transmission */ define "MCV0 Expiration": Patient.birthDate + 12 months /* @complete: MCV0 was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Measles-containing vaccines" and "Type of dose" = "Dose 0") = 1 */ define "MCV0 was administered": Encounter."MCV0 was administered" /* @test: Test expected results based on example patients */ define "Test Validation": case when Patient.id = 'Measles36.1' then "MCV0" when Patient.id = 'Measles37.3' then "MCV0" when Patient.id = 'Measles38.3' then "MCV0" when Patient.id = 'Measles39.1' then "MCV0" when Patient.id = 'Measles40.1' then "MCV0 was administered" else 'No test case set' end Content: application/elm+xml Encoded data (45760 characters)
This library defines decision support logic for the IMMZ.D18.S.Measles.MCV dose 0 schedule table in the Immunization CPG