Title: IMMZD2DTHepatitisAElements Id: IMMZD2DTHepatitisAElements Version: 0.2.0 Url: IMMZD2DTHepatitisAElements 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 Hepatitis A 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 Hepatitis A Doses Administered to Patient Immunization 0 * Out Hepatitis A Primary Series Doses Administered to Patient Immunization 0 * Out Number of Hepatitis A Primary Series Doses Administered integer 0 1 Out Client's age is less than 12 months boolean 0 1 Out No hepatitis A primary series doses were administered boolean 0 1 Out Client's age is more than or equal to 12 months boolean 0 1 Out One hepatitis A primary series dose was administered boolean 0 1 Out Date of Latest Hepatitis A Dose date 0 1 Out The latest Hepatitis A dose was administered less than 6 months ago boolean 0 1 Out The latest Hepatitis A dose was administered more than 6 months ago boolean 0 1 Out Two hepatitis A primary series doses were administered boolean 0 1 Out No hepatitis A primary series dose was administered boolean 0 1 Out Client's age is less than 18 months boolean 0 1 Out Client's age is more than or equal to 18 months boolean 0 1 Out Live vaccine was administered in the last 4 weeks boolean 0 1 Out No live vaccine was administered in the last 4 weeks boolean 0 1 Out Content: text/cql /* * Library: IMMZD2DTHepatitisAElements */ library IMMZD2DTHepatitisAElements 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: Hepatitis A containing Doses Administered to Patient */ define "Hepatitis A Doses Administered to Patient": Elements."Doses Administered to Patient" I where I.vaccineCode in Concepts."Hepatitis A-containing vaccines" /* @internal: Hepatitis A containing Doses Administered to Patient that are in the Primary series */ define "Hepatitis A Primary Series Doses Administered to Patient": "Hepatitis A Doses Administered to Patient".seriesPrimary() /* @internal: Number of Hepatitis A Primary Series doses */ define "Number of Hepatitis A Primary Series Doses Administered": Count("Hepatitis A Primary Series Doses Administered to Patient") /* @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.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule @decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule */ define "Client's age is less than 12 months": Elements."Current Patient Age In Months" < 12 /* @input: No hepatitis A primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Hepatitis A-containing vaccines" and "Type of dose" = "Primary series") = 0 @code: No hepatitis A primary series doses were administered-131 @decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule */ define "No hepatitis A primary series doses were administered": "Number of Hepatitis A Primary Series Doses Administered" = 0 /* @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.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule @decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule */ define "Client's age is more than or equal to 12 months": Elements."Current Patient Age In Months" >= 12 /* @input: One hepatitis A primary series dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Hepatitis A-containing vaccines" and "Type of dose" = "Primary series") = 1 @code: One hepatitis A primary series dose was administered-131 @decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule @decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule @decision: IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule */ define "One hepatitis A primary series dose was administered": "Number of Hepatitis A Primary Series Doses Administered" = 0 /* @input: The latest Hepatitis A dose was administered less than 6 months ago @pseudocode: Today's date − "Date and time of vaccination" (where "Vaccine type" = "Hepatitis A-containing vaccines") < 6 months @code: The latest Hepatitis A dose was administered less than 6 months ago-115 @decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule */ define "The latest Hepatitis A dose was administered less than 6 months ago": "Date of Latest Hepatitis A Dose" is not null and duration in months between "Date of Latest Hepatitis A Dose" and Now() < 6 /* @input: The latest Hepatitis A dose was administered more than 6 months ago @pseudocode: Today's date − "Date and time of vaccination" (where "Vaccine type" = "Hepatitis A-containing vaccines") ≥ 6 months @code: The latest Hepatitis A dose was administered more than 6 months ago-115 @decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule */ define "The latest Hepatitis A dose was administered more than 6 months ago": not "The latest Hepatitis A dose was administered less than 6 months ago" /* @input: Two hepatitis A primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Hepatitis A-containing vaccines" and "Type of dose" = "Primary series") = 2 @code: Two hepatitis A primary series doses were administered-131 @decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule */ define "Two hepatitis A primary series doses were administered": "Number of Hepatitis A Primary Series Doses Administered" = 2 /* @input: No hepatitis A primary series dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Hepatitis A-containing vaccines" and "Type of dose" = "Primary series") = 0 @code: No hepatitis A primary series dose was administered-131 @decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule @decision: IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule */ define "No hepatitis A primary series dose was administered": "No hepatitis A primary series doses were administered" /* @input: Client's age is less than 18 months @pseudocode: Today's date − "Date of birth" < 18 months @code: Client's age is less than 18 months-42 @decision: IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule */ define "Client's age is less than 18 months": Elements."Current Patient Age In Months" < 18 /* @input: Client's age is more than or equal to 18 months @pseudocode: Today's date − "Date of birth" ≥ 18 months @code: Client's age is more than or equal to 18 months-42 @decision: IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule */ define "Client's age is more than or equal to 18 months": Elements."Current Patient Age In Months" >= 18 /* @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.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule */ define "Live vaccine was administered in the last 4 weeks": Elements."Live vaccine was administered in the last 4 weeks" /* @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.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule */ define "No live vaccine was administered in the last 4 weeks": Elements."No live vaccine was administered in the last 4 weeks" /* @internal: Date of Latest Hepatitis A Dose */ define "Date of Latest Hepatitis A Dose": date from start of "Hepatitis A Doses Administered to Patient".mostRecent().occurrence.toInterval() Content: application/elm+xml Encoded data (52340 characters)
This library defines context-independent elements for Hepatitis A used throughout the Immunization CPG
Hepatitis A Doses Administered to Patient
Hepatitis A Primary Series Doses Administered to Patient
Number of Hepatitis A Primary Series Doses Administered
No hepatitis A primary series doses were administered
Client's age is more than or equal to 12 months
One hepatitis A primary series dose was administered
The latest Hepatitis A dose was administered less than 6 months ago
The latest Hepatitis A dose was administered more than 6 months ago
Two hepatitis A primary series doses were administered
No hepatitis A primary series dose was administered
Client's age is more than or equal to 18 months
Live vaccine was administered in the last 4 weeks
No live vaccine was administered in the last 4 weeks