IMMZD2DTDTPOnTimeStart
type: PlanDefinition
node role: treeRoot
id:
  v: IMMZD2DTDTPOnTimeStart
meta:
  profile:
    v: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition
    l: cpg-recommendationdefinition
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableplandefinition
    l: crmi-shareableplandefinition
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishableplandefinition
    l: crmi-publishableplandefinition
text:
  status:
    v: extensions
  div:
    v: Id: IMMZD2DTDTPOnTimeStart Url: IMMZ.D2.DT.DTP.On-time start Version: 0.2.0 Title: IMMZ.D2.DT.DTP.On-time start Status: draft Type: system: http://terminology.hl7.org/CodeSystem/plan-definition-type code: eca-rule Date: 2026-03-03 13:07:11+0000 Publisher: WHO Description: IMMZ.D2.DT.DTP.On-time start DTP vaccination schedule, on-time start (at ≤ 12 months of age) Knowledge Capability: computable Related Artifacts: References WHO recommendations for routine immunization - summary tables (January 2025) Libraries: IMMZD2DTDTPOnTimeStartLogic Actions: Determine if the client is due for DTP.: Determine if the client is due for DTP vaccine according to the national immunization protocol. DTP vaccination schedule, on-time start (at ≤ 12 months of age) If: Applicability: Client is due for DTP vaccination (Client is due for DTP vaccination) Then: Definition: IMMZD2DTMR Dynamic Values: status: ('draft') intent: ('proposal') medication: (Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE24', display: 'DTP-containing vaccines' } }, display: 'DTP-containing vaccines' }) Determine if the client is due for DTP.: Determine if the client is due for DTP vaccine according to the national immunization protocol. DTP vaccination schedule, on-time start (at ≤ 12 months of age) If: Applicability: Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose (Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose) Then: Definition: IMMZD2DTMR Dynamic Values: status: ('draft') intent: ('proposal') medication: (Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE28', display: 'Tetanus and diphtheria-containing vaccines' } }, display: 'Tetanus and diphtheria-containing vaccines' }) Determine if the client is due for DTP.: Determine if the client is due for DTP vaccine according to the national immunization protocol. DTP vaccination schedule, on-…
contained: Library
  id:
    v: effective-data-requirements
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: IMMZElements
    extension:
      url:
        v: name
        l: name
      value: String
        v: Doses Administered to Patient
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: /** * @dataElement All Doses Administered to Patient */ define "Doses Administered to Patient": [Immunization] I where I.status = 'completed' and I.isSubpotent is not true
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 0
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: IMMZD2DTDTPElements
    extension:
      url:
        v: name
        l: name
      value: String
        v: DTP Doses Administered to Patient
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: /* @internal: DTP containing Doses Administered to Patient */ define "DTP Doses Administered to Patient": Elements."Doses Administered to Patient" I where I.vaccineCode in Concepts."DTP-containing vaccines"
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 1
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: IMMZD2DTDTPElements
    extension:
      url:
        v: name
        l: name
      value: String
        v: DTP Primary Series Doses Administered to Patient
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: /* @internal: DTP containing Doses Administered to Patient that are in the Primary series */ define "DTP Primary Series Doses Administered to Patient": "DTP Doses Administered to Patient".seriesPrimary()
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 2
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: IMMZD2DTDTPEncounterElements
    extension:
      url:
        v: name
        l: name
      value: String
        v: DTP Primary Series Doses Administered to Patient
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: /* @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)
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 3
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: IMMZD2DTDTPEncounterElements
    extension:
      url:
        v: name
        l: name
      value: String
        v: Number of DTP Primary Series Doses Administered
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: /* @internal: Number of DTP Primary Series doses */ define "Number of DTP Primary Series Doses Administered": Count("DTP Primary Series Doses Administered to Patient")
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 4
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: IMMZD2DTDTPEncounterElements
    extension:
      url:
        v: name
        l: name
      value: String
        v: Three DTP primary series doses were administered
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: /* @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
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 5
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: IMMZD2DTDTPElements
    extension:
      url:
        v: name
        l: name
      value: String
        v: Td Doses Administered to Patient

url:
  v: statement
  l: statement
value: String
  v: /* @internal: Td Doses Administered to Patient */ define "Td Doses Administered to Patient": Elements."Doses Administered to Patient" I where I.vaccineCode in Concepts."Tetanus and diphtheria-containing vaccines"

url:
  v: displaySequence
  l: displaySequence
value: Integer
  v: 6

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Td Booster Series Doses Administered to Patient
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @internal: Td Booster Series Doses Administered to Patient */ define "Td Booster Series Doses Administered to Patient": "Td Doses Administered to Patient".seriesBooster()
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 7
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Td Booster Series Doses Administered to Patient
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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)
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 8
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Number of Td Booster Series Doses Administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @internal: Number of Td Booster Series Doses Administered */ define "Number of Td Booster Series Doses Administered": Count("Td Booster Series Doses Administered to Patient")
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 9
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: No tetanus and diphtheria booster doses were administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 10
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Current Patient Age In Months
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /** * @dataElement Patient age in months */ define "Current Patient Age In Months": AgeInMonthsAt(Today)
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 11
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is less than 12 months
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 12
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose @pseudocode: "Immunization recommendation status" = "Not due" (where "Vaccine type" ="Tetanus and diphtheria-containing vaccines") "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "DTP-containing vaccines") */ define "Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose": Encounter."Three DTP primary series doses were administered" and Encounter."No tetanus and diphtheria booster doses were administered" and Encounter."Client's age is less than 12 months"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 13
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Pertussis Doses Administered to Patient
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @internal: Pertussis Doses Administered to Patient */ define "Pertussis Doses Administered to Patient": Elements."Doses Administered to Patient" I where I.vaccineCode in Concepts."Pertussis-containing vaccines"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 14
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Pertussis Booster Series Doses Administered to Patient
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @internal: Pertussis Booster Series Doses Administered to Patient */ define "Pertussis Booster Series Doses Administered to Patient": "Pertussis Doses Administered to Patient".seriesBooster()
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 15
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Pertussis Booster Series Doses Administered to Patient
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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)
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 16
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Number of Pertussis Booster Series Doses Administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @internal: Number of Pertussis Booster Series Doses Administered */ define "Number of Pertussis Booster Series Doses Administered": Count("Pertussis Booster Series Doses Administered to Patient")
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 17
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: No pertussis booster doses were administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 18
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Current Patient Age In Years
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /** * @dataElement Patient age in years */ define "Current Patient Age In Years": AgeInYearsAt(Today)
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 19
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is less than 1 year
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 20
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for pertussis booster dose
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for pertussis booster dose @pseudocode: "Immunization recommendation status" = "Not due" */ define "Client is not due for pertussis booster dose": Encounter."Three DTP primary series doses were administered" and Encounter."No pertussis booster doses were administered" and Encounter."Client's age is less than 1 year"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 21
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose Guidance @guidance: Should not vaccinate client with first tetanus and diphtheria booster dose as client's age is less than 12 months. Check for any other vaccines due and inform the caregiver of when to come back for first tetanus and diphtheria booster dose. */ define "Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose Guidance": 'Should not vaccinate client with first tetanus and diphtheria booster dose as client\'s age is less than 12 months. Check for any other vaccines due and inform the caregiver of when to come back for first tetanus and diphtheria booster dose.'
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 22
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for pertussis booster dose Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for pertussis booster dose Guidance @guidance: Should not vaccinate client with pertussis booster dose as client's age is less than 1 year. Check for any other vaccines due and inform the caregiver of when to come back for pertussis booster dose. */ define "Client is not due for pertussis booster dose Guidance": 'Should not vaccinate client with pertussis booster dose as client\'s age is less than 1 year. Check for any other vaccines due and inform the caregiver of when to come back for pertussis booster dose.'
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 23
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is more than or equal to 12 months
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 24
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose @pseudocode: "Immunization recommendation status" = "Due" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "DTP-containing vaccines") */ define "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose": Encounter."Three DTP primary series doses were administered" and Encounter."No tetanus and diphtheria booster doses were administered" and Encounter."Client's age is more than or equal to 12 months"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 25
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is between 1 year and 6 years
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 26
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: DTP Doses Administered to Patient
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @internal: DTP containing Doses Administered to Patient */ define "DTP Doses Administered to Patient": DTPElements."DTP Doses Administered to Patient".onOrBefore(Today)
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 27
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Date of Latest DTP Dose
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @internal: Date of Latest DTP Dose */ define "Date of Latest DTP Dose": date from start of "DTP Doses Administered to Patient".mostRecent().occurrence.toInterval()
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 28
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: The latest DTP dose was administered less than 6 months ago
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 29
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Primary DTP series is complete. Client is not due for pertussis booster dose
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Primary DTP series is complete. Client is not due for pertussis booster dose @pseudocode: "Immunization recommendation status" = "Not due" (where "Vaccine type" = "Pertussis-containing vaccines") "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "DTP-containing vaccines") */ define "Primary DTP series is complete. Client is not due for pertussis booster dose": Encounter."Three DTP primary series doses were administered" and Encounter."No pertussis booster doses were administered" and Encounter."Client's age is between 1 year and 6 years" and Encounter."The latest DTP dose was administered less than 6 months ago"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 30
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance @guidance: Should vaccinate client with first tetanus and diphtheria booster dose as client is at least 12 months old. Check for contraindications. */ define "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance": 'Should vaccinate client with first tetanus and diphtheria booster dose as client is at least 12 months old. Check for contraindications.'
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 31
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Primary DTP series is complete. Client is not due for pertussis booster dose Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Primary DTP series is complete. Client is not due for pertussis booster dose Guidance @guidance: Should not vaccinate client with pertussis booster dose as the latest DTP dose was administered less than 6 months ago. Check for any other vaccines due and inform the caregiver of when to come back for pertussis booster dose. */ define "Primary DTP series is complete. Client is not due for pertussis booster dose Guidance": 'Should not vaccinate client with pertussis booster dose as the latest DTP dose was administered less than 6 months ago. Check for any other vaccines due and inform the caregiver of when to come back for pertussis booster dose.'
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 32
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: The latest DTP dose was administered more than 6 months ago
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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")
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 33
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Primary DTP series is complete. Client is due for pertussis booster dose
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Primary DTP series is complete. Client is due for pertussis booster dose @pseudocode: "Immunization recommendation status" = "Due" (where "Vaccine type" = "Pertussis-containing vaccines") "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "DTP-containing vaccines") */ define "Primary DTP series is complete. Client is due for pertussis booster dose": Encounter."Three DTP primary series doses were administered" and Encounter."No pertussis booster doses were administered" and Encounter."Client's age is between 1 year and 6 years" and Encounter."The latest DTP dose was administered more than 6 months ago"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 34
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Primary DTP series is complete. Client is due for pertussis booster dose Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Primary DTP series is complete. Client is due for pertussis booster dose Guidance @guidance: Should vaccinate client with pertussis booster dose as no pertussis booster dose was administered, client is within the appropriate age range and the latest DTP dose was administered more than 6 months ago. Check for contraindications. */ define "Primary DTP series is complete. Client is due for pertussis booster dose Guidance": 'Should vaccinate client with pertussis booster dose as no pertussis booster dose was administered, client is within the appropriate age range and the latest DTP dose was administered more than 6 months ago. Check for contraindications.'
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 35
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is more than 6 years
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 36
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Pertussis immunization schedule is complete Case 1
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Pertussis immunization schedule is complete Case 1 @pseudocode: "Immunization recommendation status" = "Complete" (where "Vaccine type" = "Pertussis-containing vaccines") */ define "Pertussis immunization schedule is complete Case 1": Encounter."Three DTP primary series doses were administered" and Encounter."No pertussis booster doses were administered" and Encounter."Client's age is more than 6 years"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 37
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: One pertussis booster dose was administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 38
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Pertussis immunization schedule is complete Case 2
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Pertussis immunization schedule is complete Case 2 @pseudocode: "Immunization recommendation status" = "Complete" (where "Vaccine type" = "Pertussis-containing vaccines") */ define "Pertussis immunization schedule is complete Case 2": Encounter."Three DTP primary series doses were administered" and Encounter."One pertussis booster dose was administered"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 39
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Pertussis immunization schedule is complete
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Pertussis immunization schedule is complete @pseudocode: "Immunization recommendation status" = "Complete" (where "Vaccine type" = "Pertussis-containing vaccines") */ define "Pertussis immunization schedule is complete": "Pertussis immunization schedule is complete Case 1" or "Pertussis immunization schedule is complete Case 2"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 40
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Pertussis immunization schedule is complete Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Pertussis immunization schedule is complete Guidance @guidance = Pertussis immunization schedule is complete. Three DTP primary series doses were administered. Check for any other vaccines due. @guidance = Pertussis immunization schedule is complete. Three DTP primary series doses and one pertussis booster dose were administered. Check for any other vaccines due. */ define "Pertussis immunization schedule is complete Guidance": case when "Pertussis immunization schedule is complete Case 1" then 'Pertussis immunization schedule is complete. Three DTP primary series doses were administered. Check for any other vaccines due.' when "Pertussis immunization schedule is complete Case 2" then 'Pertussis immunization schedule is complete. Three DTP primary series doses and one pertussis booster dose were administered. Check for any other vaccines due.' else '' end
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 41
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: One tetanus and diphtheria booster dose was administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 42
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is less than 4 years
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 43
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for tetanus and diphtheria booster dose Case 1
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for tetanus and diphtheria booster dose Case 1 @pseudocode: "Immunization recommendation status" = "Not due" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") */ define "Client is not due for tetanus and diphtheria booster dose Case 1": Encounter."Three DTP primary series doses were administered" and Encounter."One tetanus and diphtheria booster dose was administered" and Encounter."Client's age is less than 4 years"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 44
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Two tetanus and diphtheria booster doses were administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 45
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is less than 9 years
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 46
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for tetanus and diphtheria booster dose Case 2
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for tetanus and diphtheria booster dose Case 2 @pseudocode: "Immunization recommendation status" = "Not due" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") */ define "Client is not due for tetanus and diphtheria booster dose Case 2": Encounter."Three DTP primary series doses were administered" and Encounter."Two tetanus and diphtheria booster doses were administered" and Encounter."Client's age is less than 9 years"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 47
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for tetanus and diphtheria booster dose
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for tetanus and diphtheria booster dose @pseudocode: "Immunization recommendation status" = "Not due" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") */ define "Client is not due for tetanus and diphtheria booster dose": "Client is not due for tetanus and diphtheria booster dose Case 1" or "Client is not due for tetanus and diphtheria booster dose Case 2"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 48
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for tetanus and diphtheria booster dose Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for tetanus and diphtheria booster dose Guidance @guidance = Should not vaccinate client with second tetanus and diphtheria booster dose as client's age is less than 4 years. Check for any other vaccines due and inform the caregiver of when to come back for second tetanus and diphtheria booster dose. @guidance = Should not vaccinate client with third tetanus and diphtheria booster dose as client's age is less than 9 years. Check for any vaccines due, and inform the caregiver of when to come back for third tetanus and diphtheria booster dose. */ define "Client is not due for tetanus and diphtheria booster dose Guidance": case when "Client is not due for tetanus and diphtheria booster dose Case 1" then 'Should not vaccinate client with second tetanus and diphtheria booster dose as client\'s age is less than 4 years. Check for any other vaccines due and inform the caregiver of when to come back for second tetanus and diphtheria booster dose.' when "Client is not due for tetanus and diphtheria booster dose Case 2" then 'Should not vaccinate client with third tetanus and diphtheria booster dose as client\'s age is less than 9 years. Check for any vaccines due, and inform the caregiver of when to come back for third tetanus and diphtheria booster dose.' else '' end
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 49
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is more than or equal to 4 years
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 50
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is due for tetanus and diphtheria booster dose Case 1
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is due for tetanus and diphtheria booster dose Case 1 @pseudocode: "Immunization recommendation status" = "Due" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") */ define "Client is due for tetanus and diphtheria booster dose Case 1": Encounter."Three DTP primary series doses were administered" and Encounter."One tetanus and diphtheria booster dose was administered" and Encounter."Client's age is more than or equal to 4 years"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 51
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is more than or equal to 9 years
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 52
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is due for tetanus and diphtheria booster dose Case 2
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is due for tetanus and diphtheria booster dose Case 2 @pseudocode: "Immunization recommendation status" = "Due" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") */ define "Client is due for tetanus and diphtheria booster dose Case 2": Encounter."Three DTP primary series doses were administered" and Encounter."Two tetanus and diphtheria booster doses were administered" and Encounter."Client's age is more than or equal to 9 years"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 53
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is due for tetanus and diphtheria booster dose
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is due for tetanus and diphtheria booster dose @pseudocode: "Immunization recommendation status" = "Due" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") */ define "Client is due for tetanus and diphtheria booster dose": "Client is due for tetanus and diphtheria booster dose Case 1" or "Client is due for tetanus and diphtheria booster dose Case 2"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 54
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is due for tetanus and diphtheria booster dose Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is due for tetanus and diphtheria booster dose Guidance @guidance = Should vaccinate client with second tetanus and diphtheria booster dose as client is within appropriate age range and the latest tetanus and diphtheria booster dose was administered more than 4 years ago. Check for contraindications. @guidance = Should vaccinate client with third tetanus and diphtheria booster dose as client is within appropriate age range and the latest tetanus and diphtheria dose was administered more than 4 years ago. Check for contraindications. */ define "Client is due for tetanus and diphtheria booster dose Guidance": case when "Client is due for tetanus and diphtheria booster dose Case 1" then 'Should vaccinate client with second tetanus and diphtheria booster dose as client is within appropriate age range and the latest tetanus and diphtheria booster dose was administered more than 4 years ago. Check for contraindications.' when "Client is due for tetanus and diphtheria booster dose Case 2" then 'Should vaccinate client with third tetanus and diphtheria booster dose as client is within appropriate age range and the latest tetanus and diphtheria dose was administered more than 4 years ago. Check for contraindications.' else '' end
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 55
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Three tetanus and diphtheria booster doses were administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 56
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Tetanus and diphtheria immunization schedule is complete
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Tetanus and diphtheria immunization schedule is complete @pseudocode: "Immunization recommendation status" = "Complete" (where "Vaccine type" = "Tetanus and diphtheria-containing vaccines") */ define "Tetanus and diphtheria immunization schedule is complete": Encounter."Three DTP primary series doses were administered" and Encounter."Three tetanus and diphtheria booster doses were administered"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 57
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Tetanus and diphtheria immunization schedule is complete Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Tetanus and diphtheria immunization schedule is complete Guidance @guidance: Tetanus and diphtheria immunization schedule is complete. Three DTP primary series doses and three tetanus and diphtheria booster doses were administered. Check for any other vaccines due. */ define "Tetanus and diphtheria immunization schedule is complete Guidance": 'Tetanus and diphtheria immunization schedule is complete. Three DTP primary series doses and three tetanus and diphtheria booster doses were administered. Check for any other vaccines due.'
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 58
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Current Patient Age In Weeks
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /** * @dataElement Patient age in weeks */ define "Current Patient Age In Weeks": AgeInWeeksAt(Today)
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 59
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is less than 6 weeks
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 60
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for DTP vaccination Case 1
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for DTP vaccination Case 1 @pseudocode: "Immunization recommendation status" = "Not due" (where "Vaccine type" = "DTP-containing vaccines") */ define "Client is not due for DTP vaccination Case 1": Encounter."Client's age is less than 6 weeks"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 61
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: One DTP primary series dose was administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 62
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: The latest DTP dose was administered less than 4 weeks ago
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 63
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for DTP vaccination Case 2
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for DTP vaccination Case 2 @pseudocode: "Immunization recommendation status" = "Not due" (where "Vaccine type" = "DTP-containing vaccines") */ define "Client is not due for DTP vaccination Case 2": Encounter."One DTP primary series dose was administered" and Encounter."The latest DTP dose was administered less than 4 weeks ago"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 64
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Two DTP primary series doses were administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 65
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for DTP vaccination Case 3
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for DTP vaccination Case 3 @pseudocode: "Immunization recommendation status" = "Not due" (where "Vaccine type" = "DTP-containing vaccines") */ define "Client is not due for DTP vaccination Case 3": Encounter."Two DTP primary series doses were administered" and Encounter."The latest DTP dose was administered less than 4 weeks ago"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 66
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for DTP vaccination
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for DTP vaccination @pseudocode: "Immunization recommendation status" = "Not due" (where "Vaccine type" = "DTP-containing vaccines") */ define "Client is not due for DTP vaccination": "Client is not due for DTP vaccination Case 1" or "Client is not due for DTP vaccination Case 2" or "Client is not due for DTP vaccination Case 3"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 67
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is not due for DTP vaccination Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is not due for DTP vaccination Guidance @guidance = Should not vaccinate client with first DTP dose as client is less than 6 weeks old. Check for any other vaccines due and inform the caregiver of when to come back for first dose. @guidance = Should not vaccinate client with second DTP dose as latest DTP dose was administered less than 4 weeks ago. Check for any other vaccines due and inform the caregiver of when to come back for second dose. @guidance = Should not vaccinate client with third DTP dose as the latest DTP dose was administered less than 4 weeks ago. Check for any other vaccines due and inform the caregiver of when to come back for next dose. */ define "Client is not due for DTP vaccination Guidance": case when "Client is not due for DTP vaccination Case 1" then 'Should not vaccinate client with first DTP dose as client is less than 6 weeks old. Check for any other vaccines due and inform the caregiver of when to come back for first dose.' when "Client is not due for DTP vaccination Case 2" then 'Should not vaccinate client with second DTP dose as latest DTP dose was administered less than 4 weeks ago. Check for any other vaccines due and inform the caregiver of when to come back for second dose.' when "Client is not due for DTP vaccination Case 3" then 'Should not vaccinate client with third DTP dose as the latest DTP dose was administered less than 4 weeks ago. Check for any other vaccines due and inform the caregiver of when to come back for next dose.' else '' end
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 68
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: No DTP primary series doses were administered
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 69
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: Client's age is between 6 weeks and 1 year
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 70
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is due for DTP vaccination Case 1
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is due for DTP vaccination Case 1 @pseudocode: "Immunization recommendation status" = "Due" (where "Vaccine type" = "DTP-containing vaccines") */ define "Client is due for DTP vaccination Case 1": Encounter."No DTP primary series doses were administered" and Encounter."Client's age is between 6 weeks and 1 year"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 71
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPEncounterElements
extension:
  url:
    v: name
    l: name
  value: String
    v: The latest DTP dose was administered more than 4 weeks ago
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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")
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 72
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is due for DTP vaccination Case 2
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is due for DTP vaccination Case 2 @pseudocode: "Immunization recommendation status" = "Due" (where "Vaccine type" = "DTP-containing vaccines") */ define "Client is due for DTP vaccination Case 2": Encounter."One DTP primary series dose was administered" and Encounter."The latest DTP dose was administered more than 4 weeks ago"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 73
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is due for DTP vaccination Case 3
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is due for DTP vaccination Case 3 @pseudocode: "Immunization recommendation status" = "Due" (where "Vaccine type" = "DTP-containing vaccines") */ define "Client is due for DTP vaccination Case 3": Encounter."Two DTP primary series doses were administered" and Encounter."The latest DTP dose was administered more than 4 weeks ago"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 74
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is due for DTP vaccination
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is due for DTP vaccination @pseudocode: "Immunization recommendation status" = "Due" (where "Vaccine type" = "DTP-containing vaccines") */ define "Client is due for DTP vaccination": "Client is due for DTP vaccination Case 1" or "Client is due for DTP vaccination Case 2" or "Client is due for DTP vaccination Case 3"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 75
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Client is due for DTP vaccination Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @output: Client is due for DTP vaccination Guidance @guidance = Should vaccinate client with first DTP dose as no DTP doses were administered and and client's age is within appropriate age range. Check for contraindications. @guidance = Should vaccinate client with second DTP dose as the latest DTP dose was administered more than 4 weeks ago. Check for contraindications. @guidance = Should vaccinate client with third DTP dose as the latest DTP dose was administered more than 4 weeks ago. Check for contraindications. */ define "Client is due for DTP vaccination Guidance": case when "Client is due for DTP vaccination Case 1" then 'Should vaccinate client with first DTP dose as no DTP doses were administered and and client\'s age is within appropriate age range. Check for contraindications.' when "Client is due for DTP vaccination Case 2" then 'Should vaccinate client with second DTP dose as the latest DTP dose was administered more than 4 weeks ago. Check for contraindications.' when "Client is due for DTP vaccination Case 3" then 'Should vaccinate client with third DTP dose as the latest DTP dose was administered more than 4 weeks ago. Check for contraindications.' else '' end
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 76
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @dynamicValue: Guidance */ define "Guidance": case // Handling overlaps for Pertussis and Td boosters. when "Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose" and "Client is not due for pertussis booster dose" then "Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose Guidance" + '\n' + "Client is not due for pertussis booster dose Guidance" when "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose" and "Primary DTP series is complete. Client is not due for pertussis booster dose" then "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance" + '\n' + "Primary DTP series is complete. Client is not due for pertussis booster dose Guidance" when "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose" and "Primary DTP series is complete. Client is due for pertussis booster dose" then "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance" + '\n' + "Primary DTP series is complete. Client is due for pertussis booster dose Guidance" when "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose" and "Pertussis immunization schedule is complete" then "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance" + '\n' + "Pertussis immunization schedule is complete Guidance" when "Client is not due for tetanus and diphtheria booster dose" and "Primary DTP series is complete. Client is not due for pertussis booster dose" then "Client is not due for tetanus and diphtheria booster dose Guidance" + '\n' + "Primary DTP series is complete. Client is not due for pertussis booster dose Guidance" when "Client is not due for tetanus and diphtheria booster dose" and "Primary DTP series is complete. Client is due for pertussis booster dose" then "Client is not due for tetanus and diphtheria booster do…
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 77
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZD2DTDTPOnTimeStartLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Has Guidance
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "Has Guidance": "Guidance" is not null and "Guidance" != ''
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 78
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZCommon
extension:
  url:
    v: name
    l: name
  value: String
    v: onOrBefore
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /** * @description: Gets immunizations on or before a date */ define fluent function onOrBefore(immunizations List<Immunization>, beforeDate Date): immunizations I where I.occurrence.toInterval() same day or before beforeDate
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 79
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZCommon
extension:
  url:
    v: name
    l: name
  value: String
    v: seriesPrimary
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /** * @description: Gets the doses from the primary series */ define fluent function seriesPrimary(immunizations List<Immunization>): immunizations I where exists( I.protocolApplied pa where pa.series = 'Primary series' )
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 80
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToString
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function ToString(value string): value.value
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 81
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToString
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function ToString(value ImmunizationStatus): value.value
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 82
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToBoolean
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function ToBoolean(value boolean): value.value
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 83
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToConcept
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 84
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToCode
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function ToCode(coding FHIR.Coding): if coding is null then null else System.Code { code: coding.code.value, system: coding.system.value, version: coding.version.value, display: coding.display.value }
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 85
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: IMMZCommon
extension:
  url:
    v: name
    l: name
  value: String
    v: seriesBooster
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /** * @description: Gets the doses from the Booster series */ define fluent function seriesBooster(immunizations List<Immunization>): immunizations I where exists( I.protocolApplied pa where pa.series = 'Booster dose' )
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 86
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: WHOCommon
extension:
  url:
    v: name
    l: name
  value: String
    v: mostRecent
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define fluent function mostRecent(immunizations List<Immunization>): Last( immunizations I sort by start of occurrence.toInterval() )
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 87
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

v: EffectiveDataRequirements

v: active

coding:
  system:
    v: http://terminology.hl7.org/CodeSystem/library-type
    l: library-type
  code:
    v: module-definition

type:
  v: depends-on
display:
  v: FHIR model information
resource:
  v: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
  l: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo

type:
  v: depends-on
display:
  v: Library Encounter
resource:
  v: http://smart.who.int/immunizations/Library/IMMZD2DTDTPEncounterElements
  l: IMMZD2DTDTPEncounterElements

type:
  v: depends-on
display:
  v: Library Common
resource:
  v: http://smart.who.int/immunizations/Library/IMMZCommon
  l: IMMZCommon

type:
  v: depends-on
display:
  v: Library WC
resource:
  v: http://smart.who.int/immunizations/Library/WHOCommon
  l: WHOCommon

type:
  v: depends-on
display:
  v: Library DTPElements
resource:
  v: http://smart.who.int/immunizations/Library/IMMZD2DTDTPElements
  l: IMMZD2DTDTPElements

type:
  v: depends-on
display:
  v: Library FHIRHelpers
resource:
  v: http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
  l: http://fhir.org/guides/cqf/common/Library/FHIRHelpers

type:
  v: depends-on
display:
  v: Library Elements
resource:
  v: http://smart.who.int/immunizations/Library/IMMZElements
  l: IMMZElements

type:
  v: depends-on
display:
  v: Library FHIRHelpers
resource:
  v: http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
  l: http://fhir.org/guides/cqf/common/Library/FHIRHelpers

type:
  v: depends-on
display:
  v: Library Concepts
resource:
  v: http://smart.who.int/immunizations/Library/IMMZConcepts
  l: IMMZConcepts

type:
  v: depends-on
display:
  v: Library Encounter
resource:
  v: http://smart.who.int/immunizations/Library/IMMZEncounterElements
  l: IMMZEncounterElements

type:
  v: depends-on
display:
  v: Library WC
resource:
  v: http://smart.who.int/immunizations/Library/WHOCommon
  l: WHOCommon

type:
  v: depends-on
display:
  v: Value set DTP-containing vaccines
resource:
  v: http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE24
  l: IMMZ.Z.DE24

type:
  v: depends-on
display:
  v: Value set Tetanus and diphtheria-containing vaccines
resource:
  v: http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE28
  l: IMMZ.Z.DE28

type:
  v: depends-on
display:
  v: Value set Pertussis-containing vaccines
resource:
  v: http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE12
  l: IMMZ.Z.DE12

name:
  v: Today
use:
  v: in
min:
  v: 0
max:
  v: 1
type:
  v: date

name:
  v: Guidance
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Client is due for DTP vaccination
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Primary DTP series is complete. Client is due for pertussis booster dose
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Client is due for tetanus and diphtheria booster dose
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Has Guidance
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent
must support:
  v: vaccineCode

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent
must support:
  v: vaccineCode

type:
  v: Patient
profile:
  v: http://hl7.org/fhir/StructureDefinition/Patient
  l: Patient

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent
must support:
  v: vaccineCode

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent
must support:
  v: vaccineCode

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent
must support:
  v: vaccineCode

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent
must support:
  v: vaccineCode

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent
must support:
  v: vaccineCode

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent
must support:
  v: vaccineCode

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent
must support:
  v: vaccineCode

type:
  v: Immunization
profile:
  v: http://hl7.org/fhir/StructureDefinition/Immunization
  l: Immunization
must support:
  v: status
must support:
  v: isSubpotent
must support:
  v: vaccineCode

url:
  v: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability
  l: cpg-knowledgeCapability
value: Code
  v: computable

url:
  v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements
  l: crmi-effectiveDataRequirements
value: Canonical
  v: #effective-data-requirements
  l: effective-data-requirements

v: 0.2.0

v: IMMZD2DTDTPOnTimeStart

v: IMMZ.D2.DT.DTP.On-time start

coding:
  system:
    v: http://terminology.hl7.org/CodeSystem/plan-definition-type
    l: plan-definition-type
  code:
    v: eca-rule

v: draft

v: false

v: 2026-03-03T13:07:11+00:00

v: WHO

name:
  v: WHO
telecom:
  system:
    v: url
  value:
    v: http://who.int

v: IMMZ.D2.DT.DTP.On-time start DTP vaccination schedule, on-time start (at ≤ 12 months of age)

type:
  v: citation
citation:
  v: WHO recommendations for routine immunization - summary tables (January 2025)

extension:
  url:
    v: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale
    l: cpg-rationale
  value: Markdown
    v: A primary series of 3 doses of DTP-containing vaccine is recommended, with the first dose administered as early as 6 weeks of age. Subsequent doses should be given with an interval of at least 4 weeks between doses.
title:
  v: Determine if the client is due for DTP.
description:
  v: Determine if the client is due for DTP vaccine according to the national immunization protocol. DTP vaccination schedule, on-time start (at ≤ 12 months of age)
condition:
  kind:
    v: applicability
  expression:
    description:
      v: Client is due for DTP vaccination
    language:
      v: text/cql-identifier
    expression:
      v: Client is due for DTP vaccination
definition: Canonical
  v: http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTMR
  l: IMMZD2DTMR
dynamic value:
  path:
    v: status
  expression:
    language:
      v: text/cql-expression
    expression:
      v: 'draft'
dynamic value:
  path:
    v: intent
  expression:
    language:
      v: text/cql-expression
    expression:
      v: 'proposal'
dynamic value:
  path:
    v: medication
  expression:
    language:
      v: text/cql-expression
    expression:
      v: Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE24', display: 'DTP-containing vaccines' } }, display: 'DTP-containing vaccines' }

extension:
  url:
    v: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale
    l: cpg-rationale
  value: Markdown
    v: Three booster doses of diphtheria toxoid-containing vaccine should be provided during childhood and adolescence. The diphtheria booster doses should be given in combination with tetanus toxoid using the same schedule (i.e at 12–23 months of age, 4–7 years of age and 9–15 years of age, using age-appropriate vaccine formulations). Ideally, there should be at least 4 years between booster doses. Member States may update this schedule based on their country context. For children aged under 7 years, diphtheria and tetanus toxoids and whole-cell pertussis (DTwP) vaccine or diphtheria and tetanus toxoids and acellular pertussis (DTaP) combinations may be used. For children aged 4 years and older, tetanus toxoid, reduced diphtheria toxoid (Td)-containing vaccine may be used and is preferred. From 7 years of age, only Td combinations should be used. Age-appropriate combinations-containing pertussis vaccine with low-dose diphtheria antigen are also available. Only aP-containing vaccines should be used for vaccination of persons aged 7 years and older. National vaccination schedules can be adjusted within the age limits specified above to enable programmes to tailor their schedules based on local epidemiology, the objectives of the immunization programme, any particular programmatic issues and to better align tetanus vaccination with the immunological requirements of other vaccines (particularly for pertussis and diphtheria).
title:
  v: Determine if the client is due for DTP.
description:
  v: Determine if the client is due for DTP vaccine according to the national immunization protocol. DTP vaccination schedule, on-time start (at ≤ 12 months of age)
condition:
  kind:
    v: applicability
  expression:
    description:
      v: Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose
    language:
      v: text/cql-identifier
    expression:
      v: Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose
definition: Canonical
  v: http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTMR
  l: IMMZD2DTMR
dynamic value:
  path:
    v: status
  expression:
    language:
      v: text/cql-expression
    expression:
      v: 'draft'
dynamic value:
  path:
    v: intent
  expression:
    language:
      v: text/cql-expression
    expression:
      v: 'proposal'
dynamic value:
  path:
    v: medication
  expression:
    language:
      v: text/cql-expression
    expression:
      v: Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE28', display: 'Tetanus and diphtheria-containing vaccines' } }, display: 'Tetanus and diphtheria-containing vaccines' }

extension:
  url:
    v: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale
    l: cpg-rationale
  value: Markdown
    v: Three booster doses of diphtheria toxoid-containing vaccine should be provided during childhood and adolescence. The diphtheria booster doses should be given in combination with tetanus toxoid using the same schedule (i.e at 12–23 months of age, 4–7 years of age and 9–15 years of age, using age-appropriate vaccine formulations). Ideally, there should be at least 4 years between booster doses. Member States may update this schedule based on their country context. For children aged under 7 years, diphtheria and tetanus toxoids and whole-cell pertussis (DTwP) vaccine or diphtheria and tetanus toxoids and acellular pertussis (DTaP) combinations may be used. For children aged 4 years and older, tetanus toxoid, reduced diphtheria toxoid (Td)-containing vaccine may be used and is preferred. From 7 years of age, only Td combinations should be used. Age-appropriate combinations-containing pertussis vaccine with low-dose diphtheria antigen are also available. Only aP-containing vaccines should be used for vaccination of persons aged 7 years and older. National vaccination schedules can be adjusted within the age limits specified above to enable programmes to tailor their schedules based on local epidemiology, the objectives of the immunization programme, any particular programmatic issues and to better align tetanus vaccination with the immunological requirements of other vaccines (particularly for pertussis and diphtheria).
title:
  v: Determine if the client is due for DTP.
description:
  v: Determine if the client is due for DTP vaccine according to the national immunization protocol. DTP vaccination schedule, on-time start (at ≤ 12 months of age)
condition:
  kind:
    v: applicability
  expression:
    description:
      v: Client is due for tetanus and diphtheria booster dose
    language:
      v: text/cql-identifier
    expression:
      v: Client is due for tetanus and diphtheria booster dose
definition: Canonical
  v: http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTMR
  l: IMMZD2DTMR
dynamic value:
  path:
    v: status
  expression:
    language:
      v: text/cql-expression
    expression:
      v: 'draft'
dynamic value:
  path:
    v: intent
  expression:
    language:
      v: text/cql-expression
    expression:
      v: 'proposal'
dynamic value:
  path:
    v: medication
  expression:
    language:
      v: text/cql-expression
    expression:
      v: Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE28', display: 'Tetanus and diphtheria-containing vaccines' } }, display: 'Tetanus and diphtheria-containing vaccines' }

extension:
  url:
    v: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale
    l: cpg-rationale
  value: Markdown
    v: A pertussis booster dose is recommended for children aged 1–6 years, preferably during the second year of life (≥ 6 months after last primary dose), unless otherwise indicated by local epidemiology; the contact could also be used to catch up on any missed doses of other vaccines. This schedule should provide protection for at least 6 years for countries using wP-containing vaccine. For countries using aP-containing vaccine, protection may decline appreciably before 6 years of age. Only aP-containing vaccines should be used for vaccination of persons aged 7 years and over. Although a booster dose in adolescence has been shown to decrease disease in adolescents, this is not generally recommended as a means of controlling pertussis in infants.
title:
  v: Determine if the client is due for DTP.
description:
  v: Determine if the client is due for DTP vaccine according to the national immunization protocol. DTP vaccination schedule, on-time start (at ≤ 12 months of age)
condition:
  kind:
    v: applicability
  expression:
    description:
      v: Primary DTP series is complete. Client is due for pertussis booster dose
    language:
      v: text/cql-identifier
    expression:
      v: Primary DTP series is complete. Client is due for pertussis booster dose
definition: Canonical
  v: http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTMR
  l: IMMZD2DTMR
dynamic value:
  path:
    v: status
  expression:
    language:
      v: text/cql-expression
    expression:
      v: 'draft'
dynamic value:
  path:
    v: intent
  expression:
    language:
      v: text/cql-expression
    expression:
      v: 'proposal'
dynamic value:
  path:
    v: medication
  expression:
    language:
      v: text/cql-expression
    expression:
      v: Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE12', display: 'Pertussis-containing vaccines' } }, display: 'Pertussis-containing vaccines' }

title:
  v: Check for Guidance for the patient regarding IMMZ.D2.DT.DTP.On-time start.
description:
  v: Show Guidance for the patient regarding IMMZ.D2.DT.DTP.On-time start.
condition:
  kind:
    v: applicability
  expression:
    description:
      v: Has Guidance
    language:
      v: text/cql-identifier
    expression:
      v: Has Guidance
definition: Canonical
  v: http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR
  l: IMMZD2DTCR
dynamic value:
  path:
    v: status
  expression:
    language:
      v: text/cql-expression
    expression:
      v: 'active'
dynamic value:
  path:
    v: payload.contentString
  expression:
    language:
      v: text/cql-identifier
    expression:
      v: Guidance
dynamic value:
  path:
    v: category.coding
  expression:
    description:
      v: Category of communication
    language:
      v: text/cql-expression
    expression:
      v: Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }
dynamic value:
  path:
    v: priority
  expression:
    description:
      v: Alert priority
    language:
      v: text/cql-expression
    expression:
      v: Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }