Title: IMMZD2DTDengueElements Id: IMMZD2DTDengueElements Version: 0.2.0 Url: IMMZD2DTDengueElements Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-12-05 23:35:21+0000 Publisher: WHO Description: This library defines context-independent elements for Dengue 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 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 Client's age is less than 9 years boolean 0 1 Out Client's age is more than 45 years boolean 0 1 Out Dengue serostatus Observation Observation 0 * Out Client's dengue serostatus is negative boolean 0 1 Out No dengue primary series doses were administered boolean 0 1 Out Client's age is between 9 years and 45 years boolean 0 1 Out Client's dengue serostatus is positive boolean 0 1 Out One dengue primary series dose was administered boolean 0 1 Out Date of Latest Dengue Dose date 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 Two dengue primary series doses were administered boolean 0 1 Out Three dengue primary series doses were administered boolean 0 1 Out Content: text/cql /* * Library: IMMZD2DTDengueElements */ library IMMZD2DTDengueElements 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: Dengue containing Doses Administered to Patient */ define "Dengue Doses Administered to Patient": Elements."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") /* @input: Client's age is less than 9 years @pseudocode: Today's date − "Date of birth" < 9 years @code: Client's age is less than 9 years-40 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: 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": Elements."Current Patient Age In Years" < 9 /* @input: Client's age is more than 45 years @pseudocode: Today's date − "Date of birth" > 45 years @code: Client's age is more than 45 years-41 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: 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": Elements."Current Patient Age In Years" > 45 /* @input: Client's dengue serostatus is negative @pseudocode: "Dengue serostatus" = "Negative" @code: Client's dengue serostatus is negative-32 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: No dengue primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Dengue vaccines" and "Type of dose" = "Primary series") = 0 @code: No dengue primary series doses were administered-115 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: 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: Client's age is between 9 years and 45 years @pseudocode: 9 years ≤ Today's date − "Date of birth" ≤ 45 years @code: Client's age is between 9 years and 45 years-51 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: 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": Elements."Current Patient Age In Years" >= 9 and Elements."Current Patient Age In Years" <= 45 /* @input: Client's dengue serostatus is positive @pseudocode: "Dengue serostatus" = "Positive" @code: Client's dengue serostatus is positive-32 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: One dengue primary series dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Dengue vaccines" and "Type of dose" = "Primary series") = 1 @code: One dengue primary series dose was administered-115 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: 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: 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 @code: The latest dengue dose was administered less than 6 months ago-106 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: 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 Now() < 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 @code: The latest dengue dose was administered more than 6 months ago-106 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: 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 Now() >= 6 /* @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 @code: Two dengue primary series doses were administered-115 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: 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 @code: Three dengue primary series doses were administered-115 @decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: 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: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: 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 /* @internal: Date of Latest Dengue Dose */ define "Date of Latest Dengue Dose": date from start of "Dengue Doses Administered to Patient".mostRecent().occurrence.toInterval() /* @internal: Dengue serostatus Observation */ define "Dengue serostatus Observation": ([Observation: Concepts."Dengue serostatus"] O sort by end of effective.toInterval() desc).complete() Content: application/elm+xml Encoded data (72244 characters)
This library defines context-independent 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
Client's age is between 9 years and 45 years
One dengue primary series dose was administered
The latest dengue dose was administered less than 6 months ago
The latest dengue dose was administered more than 6 months ago
Two dengue primary series doses were administered
Three dengue primary series doses were administered