Title: IMMZD2DTDengueEncounterElements Id: IMMZD2DTDengueEncounterElements Version: 0.2.0 Url: IMMZD2DTDengueEncounterElements Status: draft Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-07-02 07:24:46+0000 Publisher: WHO Description: This library defines encounter-based elements for Dengue used throughout the Immunization CPG Related Artifacts: Dependencies WHOConcepts WHOCommon WHOElements IMMZCommon IMMZConcepts IMMZEncounterElements IMMZD2DTDengueElements Parameters: Name Type Min Max In/Out Today date 0 1 In EncounterId string 0 1 In Patient Patient 0 1 Out Dengue Doses Administered to Patient Immunization 0 * Out Dengue Primary Series Doses Administered to Patient Immunization 0 * Out Number of Dengue Primary Series Doses Administered integer 0 1 Out Date of Latest Dengue Dose date 0 1 Out No dengue primary series doses were administered boolean 0 1 Out One dengue primary series dose was administered boolean 0 1 Out Two dengue primary series doses were administered boolean 0 1 Out Three dengue primary series doses were administered boolean 0 1 Out Client's age is less than 9 years boolean 0 1 Out Client's age is more than 45 years boolean 0 1 Out Client's age is between 9 years and 45 years boolean 0 1 Out Dengue serostatus Observation Observation 0 * Out Client's dengue serostatus is negative boolean 0 1 Out Client's dengue serostatus is positive boolean 0 1 Out The latest dengue dose was administered less than 6 months ago boolean 0 1 Out The latest dengue dose was administered more than 6 months ago boolean 0 1 Out Content: text/cql /* * Library: IMMZD2DTDengueEncounterElements */ library IMMZD2DTDengueEncounterElements 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 IMMZD2DTDengueElements called DengueElements parameter Today Date default Today() parameter EncounterId String context Patient /* @internal: Dengue containing Doses Administered to Patient */ define "Dengue Doses Administered to Patient": Encounter."Doses Administered to Patient" I where I.vaccineCode in Concepts."Dengue vaccines" /* @internal: Dengue containing Doses Administered to Patient that are in the Primary series */ define "Dengue Primary Series Doses Administered to Patient": "Dengue Doses Administered to Patient".seriesPrimary() /* @internal: Number of Dengue Primary Series doses */ define "Number of Dengue Primary Series Doses Administered": Count("Dengue Primary Series Doses Administered to Patient") /* @internal: Date and time of last Dengue dose */ define "Date of Latest Dengue Dose": date from start of "Dengue Doses Administered to Patient".mostRecent().occurrence.toInterval() /* @input: No dengue primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Dengue vaccines" and "Type of dose" = "Primary series") = 0 @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) @decision: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years] */ define "No dengue primary series doses were administered": "Number of Dengue Primary Series Doses Administered" = 0 /* @input: One dengue primary series dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Dengue vaccines" and "Type of dose" = "Primary series") = 1 @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) @decision: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years] */ define "One dengue primary series dose was administered": "Number of Dengue Primary Series Doses Administered" = 1 /* @input: Two dengue primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Dengue vaccines" and "Type of dose" = "Primary series") = 2 @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) @decision: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years] */ define "Two dengue primary series doses were administered": "Number of Dengue Primary Series Doses Administered" = 2 /* @input: Three dengue primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Dengue vaccines" and "Type of dose" = "Primary series") = 3 @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) @decision: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years] */ define "Three dengue primary series doses were administered": "Number of Dengue Primary Series Doses Administered" = 3 /* @input: Client's age is less than 9 years @pseudocode: Today's date − "Date of birth" < 9 years @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) @decision: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years] */ define "Client's age is less than 9 years": Encounter."Current Patient Age In Years" < 9 /* @input: Client's age is more than 45 years @pseudocode: Today's date − "Date of birth" > 45 years @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) @decision: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years] */ define "Client's age is more than 45 years": Encounter."Current Patient Age In Years" > 45 /* @input: Client's age is between 9 years and 45 years @pseudocode: 9 years ≤ Today's date − "Date of birth" ≤ 45 years @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) @decision: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years] */ define "Client's age is between 9 years and 45 years": Encounter."Current Patient Age In Years" >= 9 and Encounter."Current Patient Age In Years" <= 45 /* @internal: Dengue serostatus Observation */ define "Dengue serostatus Observation": DengueElements."Dengue serostatus Observation".encounterOrOnBefore(EncounterId, Today) /* @input: Client's dengue serostatus is negative @pseudocode: "Dengue serostatus" = "Negative" @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) */ define "Client's dengue serostatus is negative": First( "Dengue serostatus Observation" ).value ~ Concepts."Dengue-Negative" /* @input: Client's dengue serostatus is positive @pseudocode: "Dengue serostatus" = "Positive" @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) */ define "Client's dengue serostatus is positive": First( "Dengue serostatus Observation" ).value ~ Concepts."Dengue-Positive" /* @input: The latest dengue dose was administered less than 6 months ago @pseudocode: Today's date - Latest "Date and time of vaccination" (where "Vaccine type" = "Dengue vaccines") < 6 months @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) @decision: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years] */ define "The latest dengue dose was administered less than 6 months ago": "Date of Latest Dengue Dose" is not null and duration in months between "Date of Latest Dengue Dose" and Today < 6 /* @input: The latest dengue dose was administered more than 6 months ago @pseudocode: Today's date - Latest "Date and time of vaccination" (where "Vaccine type" = "Dengue vaccines") ≥ 6 months @decision: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated) @decision: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years] */ define "The latest dengue dose was administered more than 6 months ago": "Date of Latest Dengue Dose" is not null and duration in months between "Date of Latest Dengue Dose" and Today >= 6 Content: application/elm+xml Encoded data (66092 characters)
This library defines encounter-based elements for Dengue used throughout the Immunization CPG
Dengue Primary Series Doses Administered to Patient
Number of Dengue Primary Series Doses Administered
No dengue primary series doses were administered
One dengue primary series dose was administered
Two dengue primary series doses were administered
Three dengue primary series doses were administered
Client's age is between 9 years and 45 years
The latest dengue dose was administered less than 6 months ago
The latest dengue dose was administered more than 6 months ago