Title: IMMZD2DTDTPEncounterElements Id: IMMZD2DTDTPEncounterElements Version: 0.2.0 Url: IMMZD2DTDTPEncounterElements Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-11-25 19:41:02+0000 Publisher: WHO Description: This library defines encounter-based elements for DTP used throughout the Immunization CPG Related Artifacts: Dependencies WHOConcepts WHOCommon WHOElements IMMZCommon IMMZConcepts IMMZEncounterElements IMMZD2DTDTPElements Parameters: Name Type Min Max In/Out Today date 0 1 In EncounterId string 0 1 In Patient Patient 0 1 Out DTP Doses Administered to Patient Immunization 0 * Out DTP Primary Series Doses Administered to Patient Immunization 0 * Out Number of DTP Primary Series Doses Administered integer 0 1 Out Client's age is less than 6 weeks boolean 0 1 Out No DTP primary series doses were administered boolean 0 1 Out Client's age is between 6 weeks and 1 year boolean 0 1 Out One DTP primary series dose was administered boolean 0 1 Out Date of Latest DTP Dose date 0 1 Out The latest DTP dose was administered less than 4 weeks ago boolean 0 1 Out The latest DTP dose was administered more than 4 weeks ago boolean 0 1 Out Two DTP primary series doses were administered boolean 0 1 Out Three DTP primary series doses were administered boolean 0 1 Out Td Booster Series Doses Administered to Patient Immunization 0 * Out Number of Td Booster Series Doses Administered integer 0 1 Out No tetanus and diphtheria booster doses were administered boolean 0 1 Out Client's age is less than 12 months boolean 0 1 Out Client's age is more than or equal to 12 months boolean 0 1 Out One tetanus and diphtheria booster dose was administered boolean 0 1 Out Client's age is less than 4 years boolean 0 1 Out Client's age is more than or equal to 4 years boolean 0 1 Out Two tetanus and diphtheria booster 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 or equal to 9 years boolean 0 1 Out Three tetanus and diphtheria booster doses were administered boolean 0 1 Out Pertussis Booster Series Doses Administered to Patient Immunization 0 * Out Number of Pertussis Booster Series Doses Administered integer 0 1 Out No pertussis booster doses were administered boolean 0 1 Out Client's age is less than 1 year boolean 0 1 Out Client's age is between 1 year and 6 years boolean 0 1 Out The latest DTP dose was administered less than 6 months ago boolean 0 1 Out The latest DTP dose was administered more than 6 months ago boolean 0 1 Out Client's age is more than 6 years boolean 0 1 Out One pertussis booster dose was administered boolean 0 1 Out Client's age is more than 1 year boolean 0 1 Out The latest DTP dose was administered less than 1 year ago boolean 0 1 Out The latest DTP dose was administered more than 1 year ago boolean 0 1 Out Td Doses Administered to Patient Immunization 0 * Out Date of Latest Td Dose date 0 1 Out The latest tetanus and diphtheria dose was administered less than 1 year ago boolean 0 1 Out The latest tetanus and diphtheria dose was administered more than 1 year ago boolean 0 1 Out Client is currently pregnant boolean 0 1 Out No tetanus and diphtheria booster dose was administered boolean 0 1 Out One tetanus and diphtheria booster doses were administered boolean 0 1 Out The latest tetanus and diphtheria dose was administered less than 4 weeks ago boolean 0 1 Out The latest tetanus and diphtheria dose was administered more than 4 weeks ago boolean 0 1 Out Pertussis Doses Administered to Patient Immunization 0 * Out Date of Latest Pertussis Dose date 0 1 Out Content: text/cql /* * Library: IMMZD2DTDTPEncounterElements */ library IMMZD2DTDTPEncounterElements 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 IMMZD2DTDTPElements called DTPElements parameter Today Date default Today() parameter EncounterId String context Patient /* @internal: DTP containing Doses Administered to Patient */ define "DTP Doses Administered to Patient": DTPElements."DTP Doses Administered to Patient".onOrBefore(Today) /* @internal: DTP containing Doses Administered to Patient that are in the Primary series */ define "DTP Primary Series Doses Administered to Patient": DTPElements."DTP Primary Series Doses Administered to Patient".onOrBefore(Today) /* @internal: Number of DTP Primary Series doses */ define "Number of DTP Primary Series Doses Administered": Count("DTP 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.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) */ define "Client's age is less than 6 weeks": Encounter."Current Patient Age In Weeks" < 6 /* @input: No DTP primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "DTP-containing vaccines" and "Type of dose" = "Primary series") = 0 @code: No DTP primary series doses were administered-123 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age @decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women */ define "No DTP primary series doses were administered": "Number of DTP Primary Series Doses Administered" = 0 /* @input: Client's age is between 6 weeks and 1 year @pseudocode: 6 weeks ≤ Today's date − "Date of birth" < 1 year @code: Client's age is between 6 weeks and 1 year-49 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) */ define "Client's age is between 6 weeks and 1 year": 6 <= Encounter."Current Patient Age In Weeks" and Encounter."Current Patient Age In Years" < 1 /* @input: One DTP primary series dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "DTP-containing vaccines" and "Type of dose" = "Primary series") = 1 @code: One DTP primary series dose was administered-123 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "One DTP primary series dose was administered": "Number of DTP Primary Series Doses Administered" = 1 /* @input: The latest DTP dose was administered less than 4 weeks ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "DTP-containing vaccines") < 4 weeks @code: The latest DTP dose was administered less than 4 weeks ago-113 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "The latest DTP dose was administered less than 4 weeks ago": "Date of Latest DTP Dose" is not null and duration in weeks between "Date of Latest DTP Dose" and Today < 4 /* @input: The latest DTP dose was administered more than 4 weeks ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "DTP-containing vaccines") ≥ 4 weeks @code: The latest DTP dose was administered more than 4 weeks ago-113 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "The latest DTP dose was administered more than 4 weeks ago": not("The latest DTP dose was administered less than 4 weeks ago") /* @input: Two DTP primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "DTP-containing vaccines" and "Type of dose" = "Primary series") = 2 @code: Two DTP primary series doses were administered-123 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "Two DTP primary series doses were administered": "Number of DTP Primary Series Doses Administered" = 2 /* @input: Three DTP primary series doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "DTP-containing vaccines" and "Type of dose" = "Primary series") = 3 @code: Three DTP primary series doses were administered-123 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age @decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses */ define "Three DTP primary series doses were administered": "Number of DTP Primary Series Doses Administered" = 3 /* @input: No tetanus and diphtheria booster doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines" and "Type of dose" = "Booster dose") = 0 @code: No tetanus and diphtheria booster doses were administered-140 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses */ define "No tetanus and diphtheria booster doses were administered": "Number of Td Booster Series Doses Administered" = 0 /* @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.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) */ define "Client's age is less than 12 months": Encounter."Current Patient Age In Months" < 12 /* @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.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) */ define "Client's age is more than or equal to 12 months": Encounter."Current Patient Age In Months" >= 12 /* @input: One tetanus and diphtheria booster dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines" and "Type of dose" = "Booster dose") = 1 @code: One tetanus and diphtheria booster dose was administered-140 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age @decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses */ define "One tetanus and diphtheria booster dose was administered": "Number of Td Booster Series Doses Administered" = 1 /* @input: Client's age is less than 4 years @pseudocode: Today's date − "Date of birth" < 4 years @code: Client's age is less than 4 years-40 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) */ define "Client's age is less than 4 years": Encounter."Current Patient Age In Years" < 4 /* @input: Client's age is more than or equal to 4 years @pseudocode: Today's date − "Date of birth" ≥ 4 years @code: Client's age is more than or equal to 4 years-40 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) */ define "Client's age is more than or equal to 4 years": Encounter."Current Patient Age In Years" >= 4 /* @input: Two tetanus and diphtheria booster doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines" and "Type of dose" = "Booster dose") = 2 @code: Two tetanus and diphtheria booster doses were administered-140 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age @decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses */ define "Two tetanus and diphtheria booster doses were administered": "Number of Td Booster Series Doses Administered" = 2 /* @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.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) */ define "Client's age is less than 9 years": Encounter."Current Patient Age In Years" < 9 /* @input: Client's age is more than or equal to 9 years @pseudocode: Today's date − "Date of birth" ≥ 9 years @code: Client's age is more than or equal to 9 years-40 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) */ define "Client's age is more than or equal to 9 years": Encounter."Current Patient Age In Years" >= 9 /* @input: Three tetanus and diphtheria booster doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines" and "Type of dose" = "Booster dose") = 3 @code: Three tetanus and diphtheria booster doses were administered-140 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses */ define "Three tetanus and diphtheria booster doses were administered": "Number of Td Booster Series Doses Administered" = 3 /* @input: No pertussis booster doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Pertussis-containing vaccines" and "Type of dose" = "Booster dose") = 0 @code: No pertussis booster doses were administered-127 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "No pertussis booster doses were administered": "Number of Pertussis Booster Series Doses Administered" = 0 /* @input: Client's age is less than 1 year @pseudocode: Today's date − "Date of birth" < 1 year @code: Client's age is less than 1 year-39 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) */ define "Client's age is less than 1 year": Encounter."Current Patient Age In Years" < 1 /* @input: Client's age is between 1 year and 6 years @pseudocode: 1 year ≤ Today's date − "Date of birth" ≤ 6 years @code: Client's age is between 1 year and 6 years-49 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "Client's age is between 1 year and 6 years": 1 <= Encounter."Current Patient Age In Years" and Encounter."Current Patient Age In Years" <= 6 /* @input: The latest DTP dose was administered less than 6 months ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "DTP-containing vaccines") < 6 months @code: The latest DTP dose was administered less than 6 months ago-114 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "The latest DTP dose was administered less than 6 months ago": "Date of Latest DTP Dose" is not null and duration in months between "Date of Latest DTP Dose" and Today < 6 /* @input: The latest DTP dose was administered more than 6 months ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "DTP-containing vaccines") ≥ 6 months @code: The latest DTP dose was administered more than 6 months ago-114 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "The latest DTP dose was administered more than 6 months ago": not("The latest DTP dose was administered less than 6 months ago") /* @input: Client's age is more than 6 years @pseudocode: Today's date − "Date of birth" > 6 years @code: Client's age is more than 6 years-40 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "Client's age is more than 6 years": Encounter."Current Patient Age In Years" > 6 /* @input: One pertussis booster dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Pertussis-containing vaccines" and "Type of dose" = "Booster dose") = 1 @code: One pertussis booster dose was administered-127 @decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age) @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "One pertussis booster dose was administered": "Number of Pertussis Booster Series Doses Administered" = 1 /* @input: Client's age is more than 1 year @pseudocode: Today's date − "Date of birth" > 1 year @code: Client's age is more than 1 year-39 @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "Client's age is more than 1 year": Encounter."Current Patient Age In Years" >= 1 /* @input: The latest DTP dose was administered less than 1 year ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "DTP-containing vaccines") < 1 year @code: The latest DTP dose was administered less than 1 year ago-112 @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "The latest DTP dose was administered less than 1 year ago": "Date of Latest DTP Dose" is not null and duration in years between "Date of Latest DTP Dose" and Today < 1 /* @input: The latest DTP dose was administered more than 1 year ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "DTP-containing vaccines") ≥ 1 year @code: The latest DTP dose was administered more than 1 year ago-112 @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age */ define "The latest DTP dose was administered more than 1 year ago": not("The latest DTP dose was administered less than 1 year ago") /* @input: The latest tetanus and diphtheria dose was administered less than 1 year ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") < 1 year @code: The latest tetanus and diphtheria dose was administered less than 1 year ago-131 @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses */ define "The latest tetanus and diphtheria dose was administered less than 1 year ago": "Date of Latest Td Dose" is not null and duration in years between "Date of Latest Td Dose" and Today < 1 /* @input: The latest tetanus and diphtheria dose was administered more than 1 year ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") ≥ 1 year @code: The latest tetanus and diphtheria dose was administered more than 1 year ago-131 @decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses */ define "The latest tetanus and diphtheria dose was administered more than 1 year ago": not("The latest tetanus and diphtheria dose was administered less than 1 year ago") /* @input: Client is currently pregnant @pseudocode: "Currently pregnant" = TRUE @code: Client is currently pregnant-27 @decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses */ define "Client is currently pregnant": Encounter."The client is pregnant" /* @input: No tetanus and diphtheria booster dose was administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines" and "Type of dose" = "Booster dose") = 0 @code: No tetanus and diphtheria booster dose was administered-140 @decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women */ define "No tetanus and diphtheria booster dose was administered": "No tetanus and diphtheria booster doses were administered" /* @input: One tetanus and diphtheria booster doses were administered @pseudocode: Count of vaccines administered (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines" and "Type of dose" = "Booster dose") = 1 @code: One tetanus and diphtheria booster doses were administered-140 @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses */ define "One tetanus and diphtheria booster doses were administered": "One tetanus and diphtheria booster dose was administered" /* @input: The latest tetanus and diphtheria dose was administered less than 4 weeks ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") < 4 weeks @code: The latest tetanus and diphtheria dose was administered less than 4 weeks ago-132 @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses */ define "The latest tetanus and diphtheria dose was administered less than 4 weeks ago": "Date of Latest Td Dose" is not null and duration in weeks between "Date of Latest Td Dose" and Today < 4 /* @input: The latest tetanus and diphtheria dose was administered more than 4 weeks ago @pseudocode: Today's date − latest "Date and time of vaccination" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") > 4 weeks @code: The latest tetanus and diphtheria dose was administered more than 4 weeks ago-132 @decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses */ define "The latest tetanus and diphtheria dose was administered more than 4 weeks ago": not("The latest tetanus and diphtheria dose was administered less than 4 weeks ago") /* @internal: Td Doses Administered to Patient */ define "Td Doses Administered to Patient": DTPElements."Td Doses Administered to Patient".onOrBefore(Today) /* @internal: Pertussis Doses Administered to Patient */ define "Pertussis Doses Administered to Patient": DTPElements."Pertussis Doses Administered to Patient".onOrBefore(Today) /* @internal: Date of Latest DTP Dose */ define "Date of Latest DTP Dose": date from start of "DTP Doses Administered to Patient".mostRecent().occurrence.toInterval() /* @internal: Date of Latest Td Dose */ define "Date of Latest Td Dose": date from start of "Td Doses Administered to Patient".mostRecent().occurrence.toInterval() /* @internal: Date of Latest Pertussis Dose */ define "Date of Latest Pertussis Dose": date from start of "Pertussis Doses Administered to Patient".mostRecent().occurrence.toInterval() /* @internal: Td Booster Series Doses Administered to Patient */ define "Td Booster Series Doses Administered to Patient": DTPElements."Td Booster Series Doses Administered to Patient".onOrBefore(Today) /* @internal: Number of Td Booster Series Doses Administered */ define "Number of Td Booster Series Doses Administered": Count("Td Booster Series Doses Administered to Patient") /* @internal: Pertussis Booster Series Doses Administered to Patient */ define "Pertussis Booster Series Doses Administered to Patient": DTPElements."Pertussis Booster Series Doses Administered to Patient".onOrBefore(Today) /* @internal: Number of Pertussis Booster Series Doses Administered */ define "Number of Pertussis Booster Series Doses Administered": Count("Pertussis Booster Series Doses Administered to Patient") Content: application/elm+xml Encoded data (167324 characters)
This library defines encounter-based elements for DTP used throughout the Immunization CPG
DTP Primary Series Doses Administered to Patient
Number of DTP Primary Series Doses Administered
No DTP primary series doses were administered
Client's age is between 6 weeks and 1 year
One DTP primary series dose was administered
The latest DTP dose was administered less than 4 weeks ago
The latest DTP dose was administered more than 4 weeks ago
Two DTP primary series doses were administered
Three DTP primary series doses were administered
Td Booster Series Doses Administered to Patient
Number of Td Booster Series Doses Administered
No tetanus and diphtheria booster doses were administered
Client's age is more than or equal to 12 months
One tetanus and diphtheria booster dose was administered
Client's age is more than or equal to 4 years
Two tetanus and diphtheria booster doses were administered
Client's age is more than or equal to 9 years
Three tetanus and diphtheria booster doses were administered
Pertussis Booster Series Doses Administered to Patient
Number of Pertussis Booster Series Doses Administered
No pertussis booster doses were administered
Client's age is between 1 year and 6 years
The latest DTP dose was administered less than 6 months ago
The latest DTP dose was administered more than 6 months ago
One pertussis booster dose was administered
The latest DTP dose was administered less than 1 year ago
The latest DTP dose was administered more than 1 year ago
The latest tetanus and diphtheria dose was administered less than 1 year ago
The latest tetanus and diphtheria dose was administered more than 1 year ago
No tetanus and diphtheria booster dose was administered
One tetanus and diphtheria booster doses were administered
The latest tetanus and diphtheria dose was administered less than 4 weeks ago
The latest tetanus and diphtheria dose was administered more than 4 weeks ago