Title: IMMZD2DTRubellaEncounterElements Id: IMMZD2DTRubellaEncounterElements Version: 0.2.0 Url: IMMZD2DTRubellaEncounterElements 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 encounter-based elements for Rubella used throughout the Immunization CPG Related Artifacts: Dependencies WHOConcepts WHOCommon WHOElements IMMZCommon IMMZConcepts IMMZEncounterElements IMMZD2DTRubellaElements Parameters: Name Type Min Max In/Out Today date 0 1 In EncounterId string 0 1 In Patient Patient 0 1 Out Rubella Doses Administered to Patient Immunization 0 * Out Rubella Primary Series Doses Administered to Patient Immunization 0 * Out Number of Rubella Primary Series Doses Administered integer 0 1 Out Client's age is less than 9 months boolean 0 1 Out No rubella primary series dose was administered boolean 0 1 Out Client's age is more than or equal to 9 months boolean 0 1 Out No live vaccine was administered in the last 4 weeks boolean 0 1 Out Live vaccine was administered in the last 4 weeks boolean 0 1 Out One rubella primary series dose was administered boolean 0 1 Out Client's age is less than 12 months boolean 0 1 Out Client's age is more than or equal to 12 months boolean 0 1 Out Live vaccine was administered in the last the 4 weeks boolean 0 1 Out Content: text/cql /* * Library: IMMZD2DTRubellaEncounterElements */ library IMMZD2DTRubellaEncounterElements using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include WHOConcepts include WHOCommon called WC include WHOElements called WE include IMMZCommon called Common include IMMZConcepts called Concepts include IMMZEncounterElements called Encounter include IMMZD2DTRubellaElements called RubellaElements parameter Today Date default Today() parameter EncounterId String context Patient /* @internal: Rubella containing Doses Administered to Patient */ define "Rubella Doses Administered to Patient": Encounter."Doses Administered to Patient" I where I.vaccineCode in Concepts."Rubella-containing vaccines" /* @internal: Rubella containing Doses Administered to Patient that are in the Primary series */ define "Rubella Primary Series Doses Administered to Patient": "Rubella Doses Administered to Patient".seriesPrimary() /* @internal: Number of Rubella Primary Series doses */ define "Number of Rubella Primary Series Doses Administered": Count("Rubella Primary Series Doses Administered to Patient") /* @input: Client's age is less than 9 months @pseudocode: Today's date − "Date of birth" < 9 months @code: Client's age is less than 9 months-41 @decision: IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella */ define "Client's age is less than 9 months": Encounter."Current Patient Age In Months" < 9 /* @input: No rubella primary series dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Rubella-containing vaccines" and "Type of dose" = "Primary series") = 0 @code: No rubella primary series dose was administered-127 @decision: IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella @decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella */ define "No rubella primary series dose was administered": "Number of Rubella Primary Series Doses Administered" = 0 /* @input: Client's age is more than or equal to 9 months @pseudocode: Today's date − "Date of birth" ≥ 9 months @code: Client's age is more than or equal to 9 months-41 @decision: IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella */ define "Client's age is more than or equal to 9 months": Encounter."Current Patient Age In Months" >= 9 /* @input: No live vaccine was administered in the last 4 weeks @pseudocode: Today's date − latest "Date and time of vaccination" (where "Live vaccine" = TRUE) ≥ 4 weeks @code: No live vaccine was administered in the last 4 weeks-92 @decision: IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella @decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella */ define "No live vaccine was administered in the last 4 weeks": Encounter."No live vaccine was administered in the last 4 weeks" /* @input: Live vaccine was administered in the last 4 weeks @pseudocode: Today's date − latest "Date and time of vaccination" (where "Live vaccine" = TRUE) < 4 weeks @code: Live vaccine was administered in the last 4 weeks-92 @decision: IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella */ define "Live vaccine was administered in the last 4 weeks": Encounter."Live vaccine was administered in the last 4 weeks" /* @input: One rubella primary series dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Rubella-containing vaccines" and "Type of dose" = "Primary series") = 1 @code: One rubella primary series dose was administered-127 @decision: IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella @decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella */ define "One rubella primary series dose was administered": "Number of Rubella Primary Series Doses Administered" = 1 /* @input: Client's age is less than 12 months @pseudocode: Today's date − "Date of birth" < 12 months @code: Client's age is less than 12 months-42 @decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella */ define "Client's age is less than 12 months": Encounter."Current Patient Age In Months" < 12 /* @input: Client's age is more than or equal to 12 months @pseudocode: Today's date − "Date of birth" ≥ 12 months @code: Client's age is more than or equal to 12 months-42 @decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella */ define "Client's age is more than or equal to 12 months": Encounter."Current Patient Age In Months" >= 12 /* @input: Live vaccine was administered in the last the 4 weeks @pseudocode: Today's date − latest "Date and time of vaccination" (where "Live vaccine" = TRUE) < 4 weeks @code: Live vaccine was administered in the last the 4 weeks-92 @decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella */ define "Live vaccine was administered in the last the 4 weeks": Encounter."Live vaccine was administered in the last 4 weeks" Content: application/elm+xml Encoded data (39328 characters)
This library defines encounter-based elements for Rubella used throughout the Immunization CPG
Rubella Primary Series Doses Administered to Patient
Number of Rubella Primary Series Doses Administered
No rubella primary series dose was administered
Client's age is more than or equal to 9 months
No live vaccine was administered in the last 4 weeks
Live vaccine was administered in the last 4 weeks
One rubella primary series dose was administered
Client's age is more than or equal to 12 months
Live vaccine was administered in the last the 4 weeks