Title: IMMZD2DTMalariaElements Id: IMMZD2DTMalariaElements Version: 0.2.0 Url: IMMZD2DTMalariaElements Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-07-23 20:56:04+0000 Publisher: WHO Description: This library defines context-independent elements for Malaria used throughout the Immunization CPG Related Artifacts: Dependencies WHOConcepts WHOCommon WHOElements IMMZCommon IMMZConcepts IMMZElements Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out Malaria Doses Administered to Patient Immunization 0 * Out Malaria Primary Series Doses Administered to Patient Immunization 0 * Out Number of Malaria Primary Series Doses Administered integer 0 1 Out Date of Latest Malaria Dose date 0 1 Out No malaria primary series doses were administered boolean 0 1 Out One malaria primary series dose was administered boolean 0 1 Out Two malaria primary series doses were administered boolean 0 1 Out Three malaria primary series doses were administered boolean 0 1 Out Four malaria primary series doses were administered boolean 0 1 Out Client's age is less than 5 months boolean 0 1 Out Client's age is more than or equal to 5 months boolean 0 1 Out The latest malaria dose was administered less than 4 weeks ago boolean 0 1 Out The latest malaria dose was administered more than 4 weeks ago boolean 0 1 Out Content: text/cql /* * Library: IMMZD2DTMalariaElements */ library IMMZD2DTMalariaElements 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 IMMZElements called Elements context Patient /* @internal: Malaria containing Doses Administered to Patient */ define "Malaria Doses Administered to Patient": Elements."Doses Administered to Patient" I where I.vaccineCode in Concepts."Malaria vaccines" /* @internal: Malaria containing Doses Administered to Patient that are in the Primary series */ define "Malaria Primary Series Doses Administered to Patient": "Malaria Doses Administered to Patient".seriesPrimary() /* @internal: Number of Malaria Primary Series doses */ define "Number of Malaria Primary Series Doses Administered": Count("Malaria Primary Series Doses Administered to Patient") /* @internal: Date and time of last Malaria dose */ define "Date of Latest Malaria Dose": date from start of "Malaria Doses Administered to Patient".mostRecent().occurrence.toInterval() /* @input: No malaria primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Malaria vaccines" and "Type of dose" = "Primary series") = 0 @decision: 4-dose schedule (The RTS,S/AS01 malaria vaccine should be used for the prevention of Plasmodium falciparum malaria in children living in regions with moderate to high malaria transmission, as defined by WHO) */ define "No malaria primary series doses were administered": "Number of Malaria Primary Series Doses Administered" = 0 /* @input: One malaria primary series dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Malaria vaccines" and "Type of dose" = "Primary series") = 1 @decision: 4-dose schedule (The RTS,S/AS01 malaria vaccine should be used for the prevention of Plasmodium falciparum malaria in children living in regions with moderate to high malaria transmission, as defined by WHO) */ define "One malaria primary series dose was administered": "Number of Malaria Primary Series Doses Administered" = 1 /* @input: Two malaria primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Malaria vaccines" and "Type of dose" = "Primary series") = 2 @decision: 4-dose schedule (The RTS,S/AS01 malaria vaccine should be used for the prevention of Plasmodium falciparum malaria in children living in regions with moderate to high malaria transmission, as defined by WHO) */ define "Two malaria primary series doses were administered": "Number of Malaria Primary Series Doses Administered" = 2 /* @input: Three malaria primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Malaria vaccines" and "Type of dose" = "Primary series") = 3 @decision: 4-dose schedule (The RTS,S/AS01 malaria vaccine should be used for the prevention of Plasmodium falciparum malaria in children living in regions with moderate to high malaria transmission, as defined by WHO) */ define "Three malaria primary series doses were administered": "Number of Malaria Primary Series Doses Administered" = 3 /* @input: Four malaria primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Malaria vaccines" and "Type of dose" = "Primary series") = 4 @decision: 4-dose schedule (The RTS,S/AS01 malaria vaccine should be used for the prevention of Plasmodium falciparum malaria in children living in regions with moderate to high malaria transmission, as defined by WHO) */ define "Four malaria primary series doses were administered": "Number of Malaria Primary Series Doses Administered" = 4 /* @input: Client's age is less than 5 months @pseudocode: Today's date − "Date of birth" < 5 months @decision: 4-dose schedule (The RTS,S/AS01 malaria vaccine should be used for the prevention of Plasmodium falciparum malaria in children living in regions with moderate to high malaria transmission, as defined by WHO) */ define "Client's age is less than 5 months": Elements."Current Patient Age In Months" < 5 /* @input: Client's age is more than or equal to 5 months @pseudocode: Today's date − "Date of birth" ≥ 5 months @decision: 4-dose schedule (The RTS,S/AS01 malaria vaccine should be used for the prevention of Plasmodium falciparum malaria in children living in regions with moderate to high malaria transmission, as defined by WHO) */ define "Client's age is more than or equal to 5 months": Elements."Current Patient Age In Months" >= 5 /* @input: The latest malaria dose was administered less than 4 weeks ago @pseudocode: Today's date − "Date and time of vaccination" (where "Vaccine type" = "Malaria vaccines") < 4 weeks @decision: 4-dose schedule (The RTS,S/AS01 malaria vaccine should be used for the prevention of Plasmodium falciparum malaria in children living in regions with moderate to high malaria transmission, as defined by WHO) */ define "The latest malaria dose was administered less than 4 weeks ago": "Date of Latest Malaria Dose" is not null and duration in weeks between "Date of Latest Malaria Dose" and Now() < 4 /* @input: The latest malaria dose was administered more than 4 weeks ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Malaria vaccines") ≥ 4 weeks @decision: 4-dose schedule (The RTS,S/AS01 malaria vaccine should be used for the prevention of Plasmodium falciparum malaria in children living in regions with moderate to high malaria transmission, as defined by WHO) */ define "The latest malaria dose was administered more than 4 weeks ago": not "The latest malaria dose was administered less than 4 weeks ago" Content: application/elm+xml Encoded data (44108 characters)
This library defines context-independent elements for Malaria used throughout the Immunization CPG
Malaria Primary Series Doses Administered to Patient
Number of Malaria Primary Series Doses Administered
No malaria primary series doses were administered
One malaria primary series dose was administered
Two malaria primary series doses were administered
Three malaria primary series doses were administered
Four malaria primary series doses were administered
Client's age is more than or equal to 5 months
The latest malaria dose was administered less than 4 weeks ago
The latest malaria dose was administered more than 4 weeks ago