Title: IMMZD2DTHibElements Id: IMMZD2DTHibElements Version: 0.2.0 Url: IMMZD2DTHibElements Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2026-03-03 13:07:11+0000 Publisher: WHO Description: This library defines context-independent elements for Hib 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 Hib Doses Administered to Patient Immunization 0 * Out Hib Primary Series Doses Administered to Patient Immunization 0 * Out Number of Hib Primary Series Doses Administered integer 0 1 Out Client's age is less than 6 weeks boolean 0 1 Out No Hib primary series doses were administered boolean 0 1 Out Client's age is between 6 weeks and 5 years boolean 0 1 Out One Hib primary series dose was administered boolean 0 1 Out Client's age is at least 6 weeks and not more than 5 years boolean 0 1 Out Date of First Hib Dose date 0 1 Out Client's age was less than 1 year when first Hib dose was administered boolean 0 1 Out Date of Latest Hib Dose date 0 1 Out The latest Hib dose was administered less than 4 weeks ago boolean 0 1 Out The latest Hib dose was administered more than 4 weeks ago boolean 0 1 Out Client's age was more than 1 year when first Hib dose was administered boolean 0 1 Out Two Hib primary series doses were administered boolean 0 1 Out Client's age is between 6 weeks and not more than 5 years boolean 0 1 Out Three Hib primary series doses were administered boolean 0 1 Out Client's age is more than 5 years boolean 0 1 Out Hib Booster Series Doses Administered to Patient Immunization 0 * Out Number of Hib Booster Series Doses Administered integer 0 1 Out No Hib booster doses were administered boolean 0 1 Out The latest Hib dose was administered less than 6 months ago boolean 0 1 Out The latest Hib dose was administered more than 6 months ago boolean 0 1 Out One Hib booster dose was administered boolean 0 1 Out One Hib primary series doses was administered boolean 0 1 Out The latest Hib dose was administered less than 8 weeks ago boolean 0 1 Out The latest Hib dose was administered more than 8 weeks ago boolean 0 1 Out Content: text/cql /* * Library: IMMZD2DTHibElements */ library IMMZD2DTHibElements 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: Hib containing Doses Administered to Patient */ define "Hib Doses Administered to Patient": Elements."Doses Administered to Patient" I where I.vaccineCode in Concepts."Hib-containing vaccines" /* @internal: Hib containing Doses Administered to Patient that are in the Primary series */ define "Hib Primary Series Doses Administered to Patient": "Hib Doses Administered to Patient".seriesPrimary() /* @internal: Number of Hib Primary Series doses */ define "Number of Hib Primary Series Doses Administered": Count("Hib Primary Series Doses Administered to Patient") /* @input: Client's age is less than 6 weeks @pseudocode: Today's date − "Date of birth" < 6 weeks @code: Client's age is less than 6 weeks-40 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "Client's age is less than 6 weeks": Elements."Current Patient Age In Weeks" < 6 /* @input: No Hib primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose" = "Primary series") = 0 @code: No Hib primary series doses were administered-123 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "No Hib primary series doses were administered": "Number of Hib Primary Series Doses Administered" = 0 /* @input: Client's age is between 6 weeks and 5 years @pseudocode: 6 weeks ≤ Today's date − "Date of birth" ≤ 5 years @code: Client's age is between 6 weeks and 5 years-50 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "Client's age is between 6 weeks and 5 years": 6 <= Elements."Current Patient Age In Weeks" and Elements."Current Patient Age In Years" <= 5 /* @input: One Hib primary series dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose"= "Primary series") = 1 @code: One Hib primary series dose was administered-122 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) */ define "One Hib primary series dose was administered": "Number of Hib Primary Series Doses Administered" = 1 /* @input: Client's age is at least 6 weeks and not more than 5 years @pseudocode: 6 weeks ≤ Today's date − "Date of birth" ≤ 5 years @code: Client's age is at least 6 weeks and not more than 5 years-50 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "Client's age is at least 6 weeks and not more than 5 years": "Client's age is between 6 weeks and 5 years" /* @input: Client's age was less than 1 year when first Hib dose was administered @pseudocode: "Date and time of vaccination" (where "Vaccine type"= "Hib-containing vaccines" and "Dose number" = 1) − "Date of birth" < 1 year @code: Client's age was less than 1 year when first Hib dose was administered-129 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "Client's age was less than 1 year when first Hib dose was administered": AgeInYearsAt("Date of First Hib Dose") < 1 /* @input: The latest Hib dose was administered less than 4 weeks ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Hib-containing vaccines") < 4 weeks @code: The latest Hib dose was administered less than 4 weeks ago-113 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) */ define "The latest Hib dose was administered less than 4 weeks ago": "Date of Latest Hib Dose" is not null and duration in weeks between "Date of Latest Hib Dose" and Now() < 4 /* @input: The latest Hib dose was administered more than 4 weeks ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Hib-containing vaccines") ≥ 4 weeks @code: The latest Hib dose was administered more than 4 weeks ago-113 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) */ define "The latest Hib dose was administered more than 4 weeks ago": not("The latest Hib dose was administered less than 4 weeks ago") /* @input: Client's age was more than 1 year when first Hib dose was administered @pseudocode: "Date and time of vaccination" (where "Vaccine type"= "Hib-containing vaccines" and "Dose number" = 1) − "Date of birth" ≥ 1 year @code: Client's age was more than 1 year when first Hib dose was administered-129 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "Client's age was more than 1 year when first Hib dose was administered": AgeInYearsAt("Date of First Hib Dose") >= 1 /* @input: Two Hib primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose" = "Primary series" ) = 2 @code: Two Hib primary series doses were administered-124 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "Two Hib primary series doses were administered": "Number of Hib Primary Series Doses Administered" = 2 /* @input: Client's age is between 6 weeks and not more than 5 years @pseudocode: 6 weeks ≤ Today's date − "Date of birth" ≤ 5 years @code: Client's age is between 6 weeks and not more than 5 years-50 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) */ define "Client's age is between 6 weeks and not more than 5 years": "Client's age is between 6 weeks and 5 years" /* @input: Three Hib primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose"= "Primary series") = 3 @code: Three Hib primary series doses were administered-122 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) */ define "Three Hib primary series doses were administered": "Number of Hib Primary Series Doses Administered" = 3 /* @input: Client's age is more than 5 years @pseudocode: Today's date − "Date of birth" > 5 years @code: Client's age is more than 5 years-40 @decision: IMMZ.D2.DT.Hib.3 doses: 3 primary doses without a booster dose (3p) @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "Client's age is more than 5 years": Elements."Current Patient Age In Years" > 5 /* @input: No Hib booster doses were administered @pseudocode: Count of vaccines administered where "Vaccine type" = "Hib-containing vaccines" and "Type of dose"" = "Booster dose") = 0 @code: No Hib booster doses were administered-121 @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "No Hib booster doses were administered": "Number of Hib Booster Series Doses Administered" = 0 /* @input: The latest Hib dose was administered less than 6 months ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Hib-containing vaccines") < 6 months @code: The latest Hib dose was administered less than 6 months ago-114 @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "The latest Hib dose was administered less than 6 months ago": "Date of Latest Hib Dose" is not null and duration in months between "Date of Latest Hib Dose" and Now() < 6 /* @input: The latest Hib dose was administered more than 6 months ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Hib-containing vaccines") ≥ 6 months @code: The latest Hib dose was administered more than 6 months ago-114 @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "The latest Hib dose was administered more than 6 months ago": not("The latest Hib dose was administered less than 6 months ago") /* @input: One Hib booster dose was administered @pseudocode: Count of vaccines administered where "Vaccine type" = "Hib-containing vaccines" and "Type of dose" = "Booster dose") = 1 @code: One Hib booster dose was administered-120 @decision: IMMZ.D2.DT.Hib.3 doses with booster dose: 3 primary doses with a booster dose (3p+1) @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "One Hib booster dose was administered": "Number of Hib Booster Series Doses Administered" = 1 /* @input: One Hib primary series doses was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose"= "Primary series") = 1 @code: One Hib primary series doses was administered-122 @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "One Hib primary series doses was administered": "One Hib primary series dose was administered" /* @input: The latest Hib dose was administered less than 8 weeks ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Hib-containing vaccines") < 8 weeks @code: The latest Hib dose was administered less than 8 weeks ago-113 @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "The latest Hib dose was administered less than 8 weeks ago": "Date of Latest Hib Dose" is not null and duration in weeks between "Date of Latest Hib Dose" and Now() < 8 /* @input: The latest Hib dose was administered more than 8 weeks ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Hib-containing vaccines") ≥ 8 weeks @code: The latest Hib dose was administered more than 8 weeks ago-113 @decision: IMMZ.D2.DT.Hib.2 doses with booster dose: 2 primary doses with a booster dose (2p+1) */ define "The latest Hib dose was administered more than 8 weeks ago": "The latest Hib dose was administered less than 8 weeks ago" /* @internal: Hib Booster Series Doses Administered to Patient */ define "Hib Booster Series Doses Administered to Patient": "Hib Doses Administered to Patient".seriesBooster() /* @internal: Number of Hib Booster Series Doses Administered */ define "Number of Hib Booster Series Doses Administered": Count("Hib Booster Series Doses Administered to Patient") /* @internal: Date of First Hib Dose */ define "Date of First Hib Dose": date from start of "Hib Doses Administered to Patient".earliest().occurrence.toInterval() /* @internal: Date of Latest Hib Dose */ define "Date of Latest Hib Dose": date from start of "Hib Doses Administered to Patient".mostRecent().occurrence.toInterval() Content: application/elm+xml Encoded data (90228 characters)
This library defines context-independent elements for Hib used throughout the Immunization CPG
Hib Primary Series Doses Administered to Patient
Number of Hib Primary Series Doses Administered
No Hib primary series doses were administered
Client's age is between 6 weeks and 5 years
One Hib primary series dose was administered
Client's age is at least 6 weeks and not more than 5 years
Client's age was less than 1 year when first Hib dose was administered
The latest Hib dose was administered less than 4 weeks ago
The latest Hib dose was administered more than 4 weeks ago
Client's age was more than 1 year when first Hib dose was administered
Two Hib primary series doses were administered
Client's age is between 6 weeks and not more than 5 years
Three Hib primary series doses were administered
Hib Booster Series Doses Administered to Patient
Number of Hib Booster Series Doses Administered
The latest Hib dose was administered less than 6 months ago
The latest Hib dose was administered more than 6 months ago
One Hib primary series doses was administered
The latest Hib dose was administered less than 8 weeks ago
The latest Hib dose was administered more than 8 weeks ago