WHO Immunization Implementation Guide
0.2.0 - ci-build

WHO Immunization Implementation Guide, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-immunizations/tree/123/merge and changes regularly. See the Directory of published versions

: IMMZ.D2.DT.DTP.On-time start - JSON Representation

Draft as of 2026-03-03

Raw json | Download

{
  "resourceType" : "PlanDefinition",
  "id" : "IMMZD2DTDTPOnTimeStart",
  "meta" : {
    "profile" : [
      🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition"🔗 ,
      "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableplandefinition"🔗 ,
      "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishableplandefinition"
    ]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n    <table class=\"grid dict\">\n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">IMMZD2DTDTPOnTimeStart</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"PlanDefinition-IMMZD2DTDTPOnTimeStart.html\">IMMZ.D2.DT.DTP.On-time start</a></td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">0.2.0</td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">IMMZ.D2.DT.DTP.On-time start</td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Status: </b></th>\n            <td style=\"padding-left: 4px;\">draft</td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Type: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span><a href=\"http://terminology.hl7.org/7.0.1/CodeSystem-plan-definition-type.html\">http://terminology.hl7.org/CodeSystem/plan-definition-type</a></span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>eca-rule</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2026-03-03 13:07:11+0000</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">WHO</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Description: </b></th>\n            <td style=\"padding-left: 4px;\"><div><p>IMMZ.D2.DT.DTP.On-time start\nDTP vaccination schedule, on-time start (at ≤ 12 months of age)</p>\n</div></td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Knowledge Capability: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                computable \n            </td>\n        </tr>\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Related Artifacts: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                \n                <p><b>References</b></p>\n                <ul>\n                    \n                    <li><div><p>WHO recommendations for routine immunization - summary tables (January 2025)</p>\n</div><br/><a href=\"null\"/></li>\n                    \n                </ul>\n                \n                \n                \n                \n                \n                \n            </td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Libraries: </b></th>\n            <td style=\"padding-left: 4px;\">\n                <table class=\"grid-dict\">\n                    \n                    <tr>\n                        <td><a href=\"Library-IMMZD2DTDTPOnTimeStartLogic.html\">IMMZD2DTDTPOnTimeStartLogic</a></td>\n                    </tr>\n                    \n                </table>\n            </td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Actions: </b></th>\n            <td style=\"padding-left: 4px;\">\n                <table class=\"grid-dict\">\n                    \n                    <tr>\n                        <td>\n                            \n                            <b> Determine if the client is due for DTP.:</b> Determine if the client is due for DTP vaccine according to the national immunization protocol.\nDTP vaccination schedule, on-time start (at ≤ 12 months of age)\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            Client is due for DTP vaccination\n                            \n                            <i>(Client is due for DTP vaccination)</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                            <b>Then:</b> <i>Definition:</i> <a href=\"ActivityDefinition-IMMZD2DTMR.html\">IMMZD2DTMR</a><br/>\n                            \n                            <i>Dynamic Values:</i><br/>\n                            \n                            status: <i>('draft')</i>\n                            <br/>\n                            \n                            intent: <i>('proposal')</i>\n                            <br/>\n                            \n                            medication: <i>(Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE24', display: 'DTP-containing vaccines' } }, display: 'DTP-containing vaccines' })</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                        </td>\n                    </tr>\n                    \n                    <tr>\n                        <td>\n                            \n                            <b> Determine if the client is due for DTP.:</b> Determine if the client is due for DTP vaccine according to the national immunization protocol.\nDTP vaccination schedule, on-time start (at ≤ 12 months of age)\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose\n                            \n                            <i>(Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose)</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                            <b>Then:</b> <i>Definition:</i> <a href=\"ActivityDefinition-IMMZD2DTMR.html\">IMMZD2DTMR</a><br/>\n                            \n                            <i>Dynamic Values:</i><br/>\n                            \n                            status: <i>('draft')</i>\n                            <br/>\n                            \n                            intent: <i>('proposal')</i>\n                            <br/>\n                            \n                            medication: <i>(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' })</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                        </td>\n                    </tr>\n                    \n                    <tr>\n                        <td>\n                            \n                            <b> Determine if the client is due for DTP.:</b> Determine if the client is due for DTP vaccine according to the national immunization protocol.\nDTP vaccination schedule, on-time start (at ≤ 12 months of age)\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            Client is due for tetanus and diphtheria booster dose\n                            \n                            <i>(Client is due for tetanus and diphtheria booster dose)</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                            <b>Then:</b> <i>Definition:</i> <a href=\"ActivityDefinition-IMMZD2DTMR.html\">IMMZD2DTMR</a><br/>\n                            \n                            <i>Dynamic Values:</i><br/>\n                            \n                            status: <i>('draft')</i>\n                            <br/>\n                            \n                            intent: <i>('proposal')</i>\n                            <br/>\n                            \n                            medication: <i>(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' })</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                        </td>\n                    </tr>\n                    \n                    <tr>\n                        <td>\n                            \n                            <b> Determine if the client is due for DTP.:</b> Determine if the client is due for DTP vaccine according to the national immunization protocol.\nDTP vaccination schedule, on-time start (at ≤ 12 months of age)\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            Primary DTP series is complete. Client is due for pertussis booster dose\n                            \n                            <i>(Primary DTP series is complete. Client is due for pertussis booster dose)</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                            <b>Then:</b> <i>Definition:</i> <a href=\"ActivityDefinition-IMMZD2DTMR.html\">IMMZD2DTMR</a><br/>\n                            \n                            <i>Dynamic Values:</i><br/>\n                            \n                            status: <i>('draft')</i>\n                            <br/>\n                            \n                            intent: <i>('proposal')</i>\n                            <br/>\n                            \n                            medication: <i>(Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE12', display: 'Pertussis-containing vaccines' } }, display: 'Pertussis-containing vaccines' })</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                        </td>\n                    </tr>\n                    \n                    <tr>\n                        <td>\n                            \n                            <b> Check for Guidance for the patient regarding IMMZ.D2.DT.DTP.On-time start.:</b> Show Guidance for the patient regarding IMMZ.D2.DT.DTP.On-time start.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            Has Guidance\n                            \n                            <i>(Has Guidance)</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                            <b>Then:</b> <i>Definition:</i> <a href=\"ActivityDefinition-IMMZD2DTCR.html\">IMMZ.D2.DT.CR</a><br/>\n                            \n                            <i>Dynamic Values:</i><br/>\n                            \n                            status: <i>('active')</i>\n                            <br/>\n                            \n                            payload.contentString: <i>(Guidance)</i>\n                            <br/>\n                            \n                            category.coding: <i>(Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' })</i>\n                            <br/>\n                            \n                            priority: <i>(Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' })</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                        </td>\n                    </tr>\n                    \n                </table>\n            </td>\n        </tr>\n        \n    </table>\n</div>\n</div>"
  },
  "contained" : [
    {
      "resourceType" : "Library",
      "id" : "effective-data-requirements",
      "extension" : [
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZElements"
            },
            {
              "url" : "name",
              "valueString" : "Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/**\n * @dataElement All Doses Administered to Patient\n */\ndefine \"Doses Administered to Patient\":\n  [Immunization] I\n    where I.status = 'completed'\n    and I.isSubpotent is not true"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 0
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPElements"
            },
            {
              "url" : "name",
              "valueString" : "DTP Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: DTP containing Doses Administered to Patient\n*/\ndefine \"DTP Doses Administered to Patient\":\n  Elements.\"Doses Administered to Patient\" I\n  where\n    I.vaccineCode in Concepts.\"DTP-containing vaccines\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 1
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPElements"
            },
            {
              "url" : "name",
              "valueString" : "DTP Primary Series Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: DTP containing Doses Administered to Patient that are in the Primary series\n*/\ndefine \"DTP Primary Series Doses Administered to Patient\":\n  \"DTP Doses Administered to Patient\".seriesPrimary()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 2
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "DTP Primary Series Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: DTP containing Doses Administered to Patient that are in the Primary series\n*/\ndefine \"DTP Primary Series Doses Administered to Patient\":\n  DTPElements.\"DTP Primary Series Doses Administered to Patient\".onOrBefore(Today)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 3
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Number of DTP Primary Series Doses Administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Number of DTP Primary Series doses\n*/\ndefine \"Number of DTP Primary Series Doses Administered\":\n  Count(\"DTP Primary Series Doses Administered to Patient\")"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 4
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Three DTP primary series doses were administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Three DTP primary series doses were administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 3\n@code: Three DTP primary series doses were administered-123\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"Three DTP primary series doses were administered\":\n  \"Number of DTP Primary Series Doses Administered\" = 3"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 5
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPElements"
            },
            {
              "url" : "name",
              "valueString" : "Td Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Td Doses Administered to Patient\n*/\ndefine \"Td Doses Administered to Patient\":\n  Elements.\"Doses Administered to Patient\" I\n  where\n    I.vaccineCode in Concepts.\"Tetanus and diphtheria-containing vaccines\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 6
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPElements"
            },
            {
              "url" : "name",
              "valueString" : "Td Booster Series Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Td Booster Series Doses Administered to Patient\n*/\ndefine \"Td Booster Series Doses Administered to Patient\":\n  \"Td Doses Administered to Patient\".seriesBooster()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 7
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Td Booster Series Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Td Booster Series Doses Administered to Patient\n*/\ndefine \"Td Booster Series Doses Administered to Patient\":\n  DTPElements.\"Td Booster Series Doses Administered to Patient\".onOrBefore(Today)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 8
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Number of Td Booster Series Doses Administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Number of Td Booster Series Doses Administered\n*/\ndefine \"Number of Td Booster Series Doses Administered\":\n  Count(\"Td Booster Series Doses Administered to Patient\")"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 9
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "No tetanus and diphtheria booster doses were administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: No tetanus and diphtheria booster doses were administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 0\n@code: No tetanus and diphtheria booster doses were administered-140\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses\n*/\ndefine \"No tetanus and diphtheria booster doses were administered\":\n  \"Number of Td Booster Series Doses Administered\" = 0"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 10
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Current Patient Age In Months"
            },
            {
              "url" : "statement",
              "valueString" : "/** \n * @dataElement Patient age in months\n */\ndefine \"Current Patient Age In Months\":\n  AgeInMonthsAt(Today)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 11
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is less than 12 months"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is less than 12 months\n@pseudocode: Today's date − \"Date of birth\" < 12 months\n@code: Client's age is less than 12 months-42\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n*/\ndefine \"Client's age is less than 12 months\":\n  Encounter.\"Current Patient Age In Months\" < 12"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 12
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose\n@pseudocode: \"Immunization recommendation status\" = \"Not due\" (where \"Vaccine type\" =\"Tetanus and diphtheria-containing vaccines\")\n\"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"No tetanus and diphtheria booster doses were administered\"\n    and Encounter.\"Client's age is less than 12 months\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 13
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPElements"
            },
            {
              "url" : "name",
              "valueString" : "Pertussis Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Pertussis Doses Administered to Patient\n*/\ndefine \"Pertussis Doses Administered to Patient\":\n  Elements.\"Doses Administered to Patient\" I\n  where\n    I.vaccineCode in Concepts.\"Pertussis-containing vaccines\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 14
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPElements"
            },
            {
              "url" : "name",
              "valueString" : "Pertussis Booster Series Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Pertussis Booster Series Doses Administered to Patient\n*/\ndefine \"Pertussis Booster Series Doses Administered to Patient\":\n  \"Pertussis Doses Administered to Patient\".seriesBooster()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 15
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Pertussis Booster Series Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Pertussis Booster Series Doses Administered to Patient\n*/\ndefine \"Pertussis Booster Series Doses Administered to Patient\":\n  DTPElements.\"Pertussis Booster Series Doses Administered to Patient\".onOrBefore(Today)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 16
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Number of Pertussis Booster Series Doses Administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Number of Pertussis Booster Series Doses Administered\n*/\ndefine \"Number of Pertussis Booster Series Doses Administered\":\n  Count(\"Pertussis Booster Series Doses Administered to Patient\")"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 17
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "No pertussis booster doses were administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: No pertussis booster doses were administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Pertussis-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 0\n@code: No pertussis booster doses were administered-127\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n*/\ndefine \"No pertussis booster doses were administered\":\n  \"Number of Pertussis Booster Series Doses Administered\" = 0"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 18
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Current Patient Age In Years"
            },
            {
              "url" : "statement",
              "valueString" : "/** \n * @dataElement Patient age in years\n */\ndefine \"Current Patient Age In Years\":\n  AgeInYearsAt(Today)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 19
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is less than 1 year"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is less than 1 year\n@pseudocode: Today's date − \"Date of birth\" < 1 year\n@code: Client's age is less than 1 year-39\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n*/\ndefine \"Client's age is less than 1 year\":\n  Encounter.\"Current Patient Age In Years\" < 1"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 20
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for pertussis booster dose"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for pertussis booster dose\n@pseudocode: \"Immunization recommendation status\" = \"Not due\"\n*/\ndefine \"Client is not due for pertussis booster dose\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"No pertussis booster doses were administered\"\n    and Encounter.\"Client's age is less than 1 year\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 21
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose Guidance\n@guidance: Should not vaccinate client with first tetanus and diphtheria booster dose as client's age is less than 12 months. \nCheck for any other vaccines due and inform the caregiver of when to come back for first tetanus and diphtheria booster dose.\n*/\ndefine \"Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose Guidance\":\n  'Should not vaccinate client with first tetanus and diphtheria booster dose as client\\'s age is less than 12 months. \nCheck for any other vaccines due and inform the caregiver of when to come back for first tetanus and diphtheria booster dose.'"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 22
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for pertussis booster dose Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for pertussis booster dose Guidance\n@guidance: Should not vaccinate client with pertussis booster dose as client's age is less than 1 year. \nCheck for any other vaccines due and inform the caregiver of when to come back for pertussis booster dose.\n*/\ndefine \"Client is not due for pertussis booster dose Guidance\":\n  'Should not vaccinate client with pertussis booster dose as client\\'s age is less than 1 year. \nCheck for any other vaccines due and inform the caregiver of when to come back for pertussis booster dose.'"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 23
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is more than or equal to 12 months"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is more than or equal to 12 months\n@pseudocode: Today's date − \"Date of birth\" ≥ 12 months\n@code: Client's age is more than or equal to 12 months-42\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n*/\ndefine \"Client's age is more than or equal to 12 months\":\n  Encounter.\"Current Patient Age In Months\" >= 12"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 24
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n\"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"No tetanus and diphtheria booster doses were administered\"\n    and Encounter.\"Client's age is more than or equal to 12 months\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 25
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is between 1 year and 6 years"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is between 1 year and 6 years\n@pseudocode: 1 year ≤ Today's date − \"Date of birth\" ≤ 6 years\n@code: Client's age is between 1 year and 6 years-49\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n*/\ndefine \"Client's age is between 1 year and 6 years\":\n  1 <= Encounter.\"Current Patient Age In Years\"\n  and Encounter.\"Current Patient Age In Years\" <= 6"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 26
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "DTP Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: DTP containing Doses Administered to Patient\n*/\ndefine \"DTP Doses Administered to Patient\":\n  DTPElements.\"DTP Doses Administered to Patient\".onOrBefore(Today)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 27
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Date of Latest DTP Dose"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Date of Latest DTP Dose\n*/\ndefine \"Date of Latest DTP Dose\":\n  date from start of \"DTP Doses Administered to Patient\".mostRecent().occurrence.toInterval()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 28
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "The latest DTP dose was administered less than 6 months ago"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: The latest DTP dose was administered less than 6 months ago\n@pseudocode: Today's date − latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\") < 6 months\n@code: The latest DTP dose was administered less than 6 months ago-114\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n*/\ndefine \"The latest DTP dose was administered less than 6 months ago\":\n  \"Date of Latest DTP Dose\" is not null\n    and duration in months between \"Date of Latest DTP Dose\" and Today < 6"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 29
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Primary DTP series is complete. Client is not due for pertussis booster dose"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Primary DTP series is complete. Client is not due for pertussis booster dose\n@pseudocode: \"Immunization recommendation status\" = \"Not due\" (where \"Vaccine type\" = \"Pertussis-containing vaccines\")\n\"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Primary DTP series is complete. Client is not due for pertussis booster dose\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"No pertussis booster doses were administered\"\n    and Encounter.\"Client's age is between 1 year and 6 years\"\n    and Encounter.\"The latest DTP dose was administered less than 6 months ago\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 30
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance\n@guidance: Should vaccinate client with first tetanus and diphtheria booster dose as client is at least 12 months old. Check for contraindications.\n*/\ndefine \"Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance\":\n  'Should vaccinate client with first tetanus and diphtheria booster dose as client is at least 12 months old. Check for contraindications.'"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 31
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Primary DTP series is complete. Client is not due for pertussis booster dose Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Primary DTP series is complete. Client is not due for pertussis booster dose Guidance\n@guidance: Should not vaccinate client with pertussis booster dose as the latest DTP dose was administered less than 6 months ago. \nCheck for any other vaccines due and inform the caregiver of when to come back for pertussis booster dose.\n*/\ndefine \"Primary DTP series is complete. Client is not due for pertussis booster dose Guidance\":\n  'Should not vaccinate client with pertussis booster dose as the latest DTP dose was administered less than 6 months ago. \nCheck for any other vaccines due and inform the caregiver of when to come back for pertussis booster dose.'"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 32
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "The latest DTP dose was administered more than 6 months ago"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: The latest DTP dose was administered more than 6 months ago\n@pseudocode: Today's date − latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\") ≥ 6 months\n@code: The latest DTP dose was administered more than 6 months ago-114\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n*/\ndefine \"The latest DTP dose was administered more than 6 months ago\":\n  not(\"The latest DTP dose was administered less than 6 months ago\")"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 33
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Primary DTP series is complete. Client is due for pertussis booster dose"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Primary DTP series is complete. Client is due for pertussis booster dose\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"Pertussis-containing vaccines\")\n\"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Primary DTP series is complete. Client is due for pertussis booster dose\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"No pertussis booster doses were administered\"\n    and Encounter.\"Client's age is between 1 year and 6 years\"\n    and Encounter.\"The latest DTP dose was administered more than 6 months ago\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 34
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Primary DTP series is complete. Client is due for pertussis booster dose Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Primary DTP series is complete. Client is due for pertussis booster dose Guidance\n@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. \nCheck for contraindications.\n*/\ndefine \"Primary DTP series is complete. Client is due for pertussis booster dose Guidance\":\n  '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. \nCheck for contraindications.'"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 35
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is more than 6 years"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is more than 6 years\n@pseudocode: Today's date − \"Date of birth\" > 6 years\n@code: Client's age is more than 6 years-40\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n*/\ndefine \"Client's age is more than 6 years\":\n  Encounter.\"Current Patient Age In Years\" > 6"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 36
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Pertussis immunization schedule is complete Case 1"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Pertussis immunization schedule is complete Case 1\n@pseudocode: \"Immunization recommendation status\" = \"Complete\" (where \"Vaccine type\" = \"Pertussis-containing vaccines\")\n*/\ndefine \"Pertussis immunization schedule is complete Case 1\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"No pertussis booster doses were administered\"\n    and Encounter.\"Client's age is more than 6 years\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 37
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "One pertussis booster dose was administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: One pertussis booster dose was administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Pertussis-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 1\n@code: One pertussis booster dose was administered-127\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n*/\ndefine \"One pertussis booster dose was administered\":\n  \"Number of Pertussis Booster Series Doses Administered\" = 1"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 38
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Pertussis immunization schedule is complete Case 2"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Pertussis immunization schedule is complete Case 2\n@pseudocode: \"Immunization recommendation status\" = \"Complete\" (where \"Vaccine type\" = \"Pertussis-containing vaccines\")\n*/\ndefine \"Pertussis immunization schedule is complete Case 2\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"One pertussis booster dose was administered\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 39
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Pertussis immunization schedule is complete"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Pertussis immunization schedule is complete\n@pseudocode: \"Immunization recommendation status\" = \"Complete\" (where \"Vaccine type\" = \"Pertussis-containing vaccines\")\n*/\ndefine \"Pertussis immunization schedule is complete\":\n  \"Pertussis immunization schedule is complete Case 1\"\n    or \"Pertussis immunization schedule is complete Case 2\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 40
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Pertussis immunization schedule is complete Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Pertussis immunization schedule is complete Guidance\n@guidance = Pertussis immunization schedule is complete. Three DTP primary series doses were administered.\nCheck for any other vaccines due.\n@guidance = Pertussis immunization schedule is complete. Three DTP primary series doses and one pertussis booster dose were administered. \nCheck for any other vaccines due.\n*/\ndefine \"Pertussis immunization schedule is complete Guidance\":\n  case\n    when \"Pertussis immunization schedule is complete Case 1\" then 'Pertussis immunization schedule is complete. Three DTP primary series doses were administered.\nCheck for any other vaccines due.'\n    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. \nCheck for any other vaccines due.'\n    else ''\n  end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 41
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "One tetanus and diphtheria booster dose was administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: One tetanus and diphtheria booster dose was administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 1\n@code: One tetanus and diphtheria booster dose was administered-140\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"One tetanus and diphtheria booster dose was administered\":\n  \"Number of Td Booster Series Doses Administered\" = 1"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 42
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is less than 4 years"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is less than 4 years\n@pseudocode: Today's date − \"Date of birth\" < 4 years\n@code: Client's age is less than 4 years-40\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n*/\ndefine \"Client's age is less than 4 years\":\n  Encounter.\"Current Patient Age In Years\" < 4"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 43
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for tetanus and diphtheria booster dose Case 1"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for tetanus and diphtheria booster dose Case 1\n@pseudocode: \"Immunization recommendation status\" = \"Not due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Client is not due for tetanus and diphtheria booster dose Case 1\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"One tetanus and diphtheria booster dose was administered\"\n    and Encounter.\"Client's age is less than 4 years\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 44
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Two tetanus and diphtheria booster doses were administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Two tetanus and diphtheria booster doses were administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 2\n@code: Two tetanus and diphtheria booster doses were administered-140\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"Two tetanus and diphtheria booster doses were administered\":\n  \"Number of Td Booster Series Doses Administered\" = 2"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 45
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is less than 9 years"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is less than 9 years\n@pseudocode: Today's date − \"Date of birth\" < 9 years\n@code: Client's age is less than 9 years-40\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n*/\ndefine \"Client's age is less than 9 years\":\n  Encounter.\"Current Patient Age In Years\" < 9"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 46
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for tetanus and diphtheria booster dose Case 2"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for tetanus and diphtheria booster dose Case 2\n@pseudocode: \"Immunization recommendation status\" = \"Not due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Client is not due for tetanus and diphtheria booster dose Case 2\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"Two tetanus and diphtheria booster doses were administered\"\n    and Encounter.\"Client's age is less than 9 years\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 47
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for tetanus and diphtheria booster dose"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for tetanus and diphtheria booster dose\n@pseudocode: \"Immunization recommendation status\" = \"Not due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Client is not due for tetanus and diphtheria booster dose\":\n  \"Client is not due for tetanus and diphtheria booster dose Case 1\"\n    or \"Client is not due for tetanus and diphtheria booster dose Case 2\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 48
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for tetanus and diphtheria booster dose Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for tetanus and diphtheria booster dose Guidance\n@guidance = Should not vaccinate client with second tetanus and diphtheria booster dose as client's age is less than 4 years. \nCheck for any other vaccines due and inform the caregiver of when to come back for second tetanus and diphtheria booster dose.\n@guidance = Should not vaccinate client with third tetanus and diphtheria booster dose as client's age is less than 9 years. \nCheck for any vaccines due, and inform the caregiver of when to come back for third tetanus and diphtheria booster dose.\n*/\ndefine \"Client is not due for tetanus and diphtheria booster dose Guidance\":\n  case\n    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. \nCheck for any other vaccines due and inform the caregiver of when to come back for second tetanus and diphtheria booster dose.'\n    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. \nCheck for any vaccines due, and inform the caregiver of when to come back for third tetanus and diphtheria booster dose.'\n    else ''\n  end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 49
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is more than or equal to 4 years"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is more than or equal to 4 years\n@pseudocode: Today's date − \"Date of birth\" ≥ 4 years\n@code: Client's age is more than or equal to 4 years-40\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n*/\ndefine \"Client's age is more than or equal to 4 years\":\n  Encounter.\"Current Patient Age In Years\" >= 4"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 50
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is due for tetanus and diphtheria booster dose Case 1"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is due for tetanus and diphtheria booster dose Case 1\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Client is due for tetanus and diphtheria booster dose Case 1\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"One tetanus and diphtheria booster dose was administered\"\n    and Encounter.\"Client's age is more than or equal to 4 years\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 51
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is more than or equal to 9 years"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is more than or equal to 9 years\n@pseudocode: Today's date − \"Date of birth\" ≥ 9 years\n@code: Client's age is more than or equal to 9 years-40\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n*/\ndefine \"Client's age is more than or equal to 9 years\":\n  Encounter.\"Current Patient Age In Years\" >= 9"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 52
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is due for tetanus and diphtheria booster dose Case 2"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is due for tetanus and diphtheria booster dose Case 2\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Client is due for tetanus and diphtheria booster dose Case 2\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"Two tetanus and diphtheria booster doses were administered\"\n    and Encounter.\"Client's age is more than or equal to 9 years\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 53
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is due for tetanus and diphtheria booster dose"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is due for tetanus and diphtheria booster dose\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Client is due for tetanus and diphtheria booster dose\":\n  \"Client is due for tetanus and diphtheria booster dose Case 1\"\n    or \"Client is due for tetanus and diphtheria booster dose Case 2\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 54
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is due for tetanus and diphtheria booster dose Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is due for tetanus and diphtheria booster dose Guidance\n@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. \nCheck for contraindications.\n@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. \nCheck for contraindications.\n*/\ndefine \"Client is due for tetanus and diphtheria booster dose Guidance\":\n  case\n    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. \nCheck for contraindications.'\n    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. \nCheck for contraindications.'\n    else ''\n  end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 55
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Three tetanus and diphtheria booster doses were administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Three tetanus and diphtheria booster doses were administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 3\n@code: Three tetanus and diphtheria booster doses were administered-140\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses\n@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses\n*/\ndefine \"Three tetanus and diphtheria booster doses were administered\":\n  \"Number of Td Booster Series Doses Administered\" = 3"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 56
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Tetanus and diphtheria immunization schedule is complete"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Tetanus and diphtheria immunization schedule is complete\n@pseudocode: \"Immunization recommendation status\" = \"Complete\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Tetanus and diphtheria immunization schedule is complete\":\n  Encounter.\"Three DTP primary series doses were administered\"\n    and Encounter.\"Three tetanus and diphtheria booster doses were administered\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 57
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Tetanus and diphtheria immunization schedule is complete Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Tetanus and diphtheria immunization schedule is complete Guidance\n@guidance: Tetanus and diphtheria immunization schedule is complete. Three DTP primary series doses and three tetanus and diphtheria booster doses were administered.\nCheck for any other vaccines due.\n*/\ndefine \"Tetanus and diphtheria immunization schedule is complete Guidance\":\n  'Tetanus and diphtheria immunization schedule is complete. Three DTP primary series doses and three tetanus and diphtheria booster doses were administered.\nCheck for any other vaccines due.'"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 58
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Current Patient Age In Weeks"
            },
            {
              "url" : "statement",
              "valueString" : "/** \n * @dataElement Patient age in weeks\n */\ndefine \"Current Patient Age In Weeks\":\n  AgeInWeeksAt(Today)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 59
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is less than 6 weeks"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is less than 6 weeks\n@pseudocode: Today's date − \"Date of birth\" < 6 weeks\n@code: Client's age is less than 6 weeks-40\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n*/\ndefine \"Client's age is less than 6 weeks\":\n  Encounter.\"Current Patient Age In Weeks\" < 6"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 60
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for DTP vaccination Case 1"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for DTP vaccination Case 1\n@pseudocode: \"Immunization recommendation status\" = \"Not due\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Client is not due for DTP vaccination Case 1\":\n  Encounter.\"Client's age is less than 6 weeks\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 61
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "One DTP primary series dose was administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: One DTP primary series dose was administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 1\n@code: One DTP primary series dose was administered-123\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n*/\ndefine \"One DTP primary series dose was administered\":\n  \"Number of DTP Primary Series Doses Administered\" = 1"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 62
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "The latest DTP dose was administered less than 4 weeks ago"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: The latest DTP dose was administered less than 4 weeks ago\n@pseudocode: Today's date − latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\") < 4 weeks\n@code: The latest DTP dose was administered less than 4 weeks ago-113\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n*/\ndefine \"The latest DTP dose was administered less than 4 weeks ago\":\n  \"Date of Latest DTP Dose\" is not null\n    and duration in weeks between \"Date of Latest DTP Dose\" and Today < 4"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 63
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for DTP vaccination Case 2"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for DTP vaccination Case 2\n@pseudocode: \"Immunization recommendation status\" = \"Not due\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Client is not due for DTP vaccination Case 2\":\n  Encounter.\"One DTP primary series dose was administered\"\n    and Encounter.\"The latest DTP dose was administered less than 4 weeks ago\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 64
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Two DTP primary series doses were administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Two DTP primary series doses were administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 2\n@code: Two DTP primary series doses were administered-123\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n*/\ndefine \"Two DTP primary series doses were administered\":\n  \"Number of DTP Primary Series Doses Administered\" = 2"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 65
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for DTP vaccination Case 3"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for DTP vaccination Case 3\n@pseudocode: \"Immunization recommendation status\" = \"Not due\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Client is not due for DTP vaccination Case 3\":\n  Encounter.\"Two DTP primary series doses were administered\"\n    and Encounter.\"The latest DTP dose was administered less than 4 weeks ago\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 66
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for DTP vaccination"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for DTP vaccination\n@pseudocode: \"Immunization recommendation status\" = \"Not due\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Client is not due for DTP vaccination\":\n  \"Client is not due for DTP vaccination Case 1\"\n    or \"Client is not due for DTP vaccination Case 2\"\n    or \"Client is not due for DTP vaccination Case 3\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 67
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for DTP vaccination Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for DTP vaccination Guidance\n@guidance = Should not vaccinate client with first DTP dose as client is less than 6 weeks old. \nCheck for any other vaccines due and inform the caregiver of when to come back for first dose.\n@guidance = Should not vaccinate client with second DTP dose as latest DTP dose was administered less than 4 weeks ago. \nCheck for any other vaccines due and inform the caregiver of when to come back for second dose.\n@guidance = Should not vaccinate client with third DTP dose as the latest DTP dose was administered less than 4 weeks ago. \nCheck for any other vaccines due and inform the caregiver of when to come back for next dose.\n*/\ndefine \"Client is not due for DTP vaccination Guidance\":\n  case\n    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. \nCheck for any other vaccines due and inform the caregiver of when to come back for first dose.'\n    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. \nCheck for any other vaccines due and inform the caregiver of when to come back for second dose.'\n    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. \nCheck for any other vaccines due and inform the caregiver of when to come back for next dose.'\n    else ''\n  end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 68
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "No DTP primary series doses were administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: No DTP primary series doses were administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 0\n@code: No DTP primary series doses were administered-123\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women\n*/\ndefine \"No DTP primary series doses were administered\":\n  \"Number of DTP Primary Series Doses Administered\" = 0"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 69
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is between 6 weeks and 1 year"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is between 6 weeks and 1 year\n@pseudocode: 6 weeks ≤ Today's date − \"Date of birth\" < 1 year\n@code: Client's age is between 6 weeks and 1 year-49\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n*/\ndefine \"Client's age is between 6 weeks and 1 year\":\n  6 <= Encounter.\"Current Patient Age In Weeks\"\n  and Encounter.\"Current Patient Age In Years\" < 1"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 70
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is due for DTP vaccination Case 1"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is due for DTP vaccination Case 1\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Client is due for DTP vaccination Case 1\":\n  Encounter.\"No DTP primary series doses were administered\"\n    and Encounter.\"Client's age is between 6 weeks and 1 year\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 71
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "The latest DTP dose was administered more than 4 weeks ago"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: The latest DTP dose was administered more than 4 weeks ago\n@pseudocode: Today's date − latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\") ≥ 4 weeks\n@code: The latest DTP dose was administered more than 4 weeks ago-113\n@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)\n@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\n*/\ndefine \"The latest DTP dose was administered more than 4 weeks ago\":\n  not(\"The latest DTP dose was administered less than 4 weeks ago\")"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 72
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is due for DTP vaccination Case 2"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is due for DTP vaccination Case 2\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Client is due for DTP vaccination Case 2\":\n  Encounter.\"One DTP primary series dose was administered\"\n    and Encounter.\"The latest DTP dose was administered more than 4 weeks ago\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 73
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is due for DTP vaccination Case 3"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is due for DTP vaccination Case 3\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Client is due for DTP vaccination Case 3\":\n  Encounter.\"Two DTP primary series doses were administered\"\n    and Encounter.\"The latest DTP dose was administered more than 4 weeks ago\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 74
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is due for DTP vaccination"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is due for DTP vaccination\n@pseudocode: \"Immunization recommendation status\" = \"Due\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Client is due for DTP vaccination\":\n  \"Client is due for DTP vaccination Case 1\"\n    or \"Client is due for DTP vaccination Case 2\"\n    or \"Client is due for DTP vaccination Case 3\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 75
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Client is due for DTP vaccination Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is due for DTP vaccination Guidance\n@guidance = Should vaccinate client with first DTP dose as no DTP doses were administered and and client's age is within appropriate age range. \nCheck for contraindications.\n@guidance = Should vaccinate client with second DTP dose as the latest DTP dose was administered more than 4 weeks ago. \nCheck for contraindications.\n@guidance = Should vaccinate client with third DTP dose as the latest DTP dose was administered more than 4 weeks ago. \nCheck for contraindications.\n*/\ndefine \"Client is due for DTP vaccination Guidance\":\n  case\n    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. \nCheck for contraindications.'\n    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. \nCheck for contraindications.'\n    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. \nCheck for contraindications.'\n    else ''\n  end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 76
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@dynamicValue: Guidance\n*/\ndefine \"Guidance\":\n  case \n\n    // Handling overlaps for Pertussis and Td boosters.\n    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\"\n      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\"\n    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\" \n      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\"\n    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\" \n      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\"\n    when \"Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose\" and \"Pertussis immunization schedule is complete\" \n      then \"Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance\" + '\\n' + \"Pertussis immunization schedule is complete Guidance\"\n    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\" \n      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\"\n    when \"Client is not due for tetanus and diphtheria booster dose\" and \"Primary DTP series is complete. Client is due for pertussis booster dose\" \n      then \"Client is not due for tetanus and diphtheria booster dose Guidance\" + '\\n' + \"Primary DTP series is complete. Client is due for pertussis booster dose Guidance\"\n    when \"Client is not due for tetanus and diphtheria booster dose\" and \"Pertussis immunization schedule is complete\" \n      then \"Client is not due for tetanus and diphtheria booster dose Guidance\" + '\\n' + \"Pertussis immunization schedule is complete Guidance\"\n    when \"Client is due for tetanus and diphtheria booster dose\" and \"Primary DTP series is complete. Client is not due for pertussis booster dose\" \n      then \"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\"\n    when \"Client is due for tetanus and diphtheria booster dose\" and \"Primary DTP series is complete. Client is due for pertussis booster dose\" \n      then \"Client is due for tetanus and diphtheria booster dose Guidance\" + '\\n' + \"Primary DTP series is complete. Client is due for pertussis booster dose Guidance\"\n    when \"Client is due for tetanus and diphtheria booster dose\" and \"Pertussis immunization schedule is complete\" \n      then \"Client is due for tetanus and diphtheria booster dose Guidance\" + '\\n' + \"Pertussis immunization schedule is complete Guidance\"\n    when \"Tetanus and diphtheria immunization schedule is complete\" and \"Pertussis immunization schedule is complete\" \n      then \"Tetanus and diphtheria immunization schedule is complete Guidance\" + '\\n' + \"Pertussis immunization schedule is complete Guidance\"\n\n    when \"Client is not due for DTP vaccination\" then \"Client is not due for DTP vaccination Guidance\"\n    when \"Client is due for DTP vaccination\" then \"Client is due for DTP vaccination Guidance\"\n    when \"Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose\" then \"Primary DTP series is complete. Client is not due for tetanus and diphtheria booster dose Guidance\"\n    when \"Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose\" then \"Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose Guidance\"\n    when \"Client is not due for tetanus and diphtheria booster dose\" then \"Client is not due for tetanus and diphtheria booster dose Guidance\"\n    when \"Client is due for tetanus and diphtheria booster dose\" then \"Client is due for tetanus and diphtheria booster dose Guidance\"\n    when \"Tetanus and diphtheria immunization schedule is complete\" then \"Tetanus and diphtheria immunization schedule is complete Guidance\"\n    when \"Client is not due for pertussis booster dose\" then \"Client is not due for pertussis booster dose Guidance\"\n    when \"Primary DTP series is complete. Client is not due for pertussis booster dose\" then \"Primary DTP series is complete. Client is not due for pertussis booster dose Guidance\"\n    when \"Primary DTP series is complete. Client is due for pertussis booster dose\" then \"Primary DTP series is complete. Client is due for pertussis booster dose Guidance\"\n    when \"Pertussis immunization schedule is complete\" then \"Pertussis immunization schedule is complete Guidance\" \n    else ''\n  end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 77
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTDTPOnTimeStartLogic"
            },
            {
              "url" : "name",
              "valueString" : "Has Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Guidance\":\n  \"Guidance\" is not null and \"Guidance\" != ''"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 78
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZCommon"
            },
            {
              "url" : "name",
              "valueString" : "onOrBefore"
            },
            {
              "url" : "statement",
              "valueString" : "/**\n * @description: Gets immunizations on or before a date\n */\ndefine fluent function onOrBefore(immunizations List<Immunization>, beforeDate Date):\n  immunizations I where\n    I.occurrence.toInterval() same day or before beforeDate"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 79
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZCommon"
            },
            {
              "url" : "name",
              "valueString" : "seriesPrimary"
            },
            {
              "url" : "statement",
              "valueString" : "/**\n * @description: Gets the doses from the primary series\n */\ndefine fluent function seriesPrimary(immunizations List<Immunization>):\n  immunizations I where\n    exists( I.protocolApplied pa where pa.series = 'Primary series' )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 80
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value string): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 81
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value ImmunizationStatus): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 82
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToBoolean"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToBoolean(value boolean): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 83
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToConcept"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 84
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToCode"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 85
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZCommon"
            },
            {
              "url" : "name",
              "valueString" : "seriesBooster"
            },
            {
              "url" : "statement",
              "valueString" : "/**\n * @description: Gets the doses from the Booster series\n */\ndefine fluent function seriesBooster(immunizations List<Immunization>):\n  immunizations I where\n    exists( I.protocolApplied pa where pa.series = 'Booster dose' )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 86
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "WHOCommon"
            },
            {
              "url" : "name",
              "valueString" : "mostRecent"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function mostRecent(immunizations List<Immunization>):\n  Last(\n    immunizations I\n      sort by start of occurrence.toInterval()\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 87
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        }
      ],
      "name" : "EffectiveDataRequirements",
      "status" : "active",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/library-type",
            "code" : "module-definition"
          }
        ]
      },
      "relatedArtifact" : [
        {
          "type" : "depends-on",
          "display" : "FHIR model information",
          "resource" : "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Library Encounter",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZD2DTDTPEncounterElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library Common",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Library WC",
          "resource" : "http://smart.who.int/immunizations/Library/WHOCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Library DTPElements",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZD2DTDTPElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library FHIRHelpers",
          "resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Library Elements",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library FHIRHelpers",
          "resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Library Concepts",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZConcepts"
        },
        {
          "type" : "depends-on",
          "display" : "Library Encounter",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZEncounterElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library WC",
          "resource" : "http://smart.who.int/immunizations/Library/WHOCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Value set DTP-containing vaccines",
          "resource" : "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE24"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Tetanus and diphtheria-containing vaccines",
          "resource" : "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE28"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Pertussis-containing vaccines",
          "resource" : "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE12"
        }
      ],
      "parameter" : [
        {
          "name" : "Today",
          "use" : "in",
          "min" : 0,
          "max" : "1",
          "type" : "date"
        },
        {
          "name" : "Guidance",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "string"
        },
        {
          "name" : "Client is due for DTP vaccination",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Primary DTP series is complete. Client is due for pertussis booster dose",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Client is due for tetanus and diphtheria booster dose",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Has Guidance",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        }
      ],
      "dataRequirement" : [
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Patient",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Patient"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        }
      ]
    }
  ],
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability",
      "valueCode" : "computable"
    },
    {
      "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
      "valueCanonical" : "#effective-data-requirements"
    }
  ],
  "url" : "http://smart.who.int/immunizations/PlanDefinition/IMMZD2DTDTPOnTimeStart",
  "version" : "0.2.0",
  "name" : "IMMZD2DTDTPOnTimeStart",
  "title" : "IMMZ.D2.DT.DTP.On-time start",
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
        "code" : "eca-rule"
      }
    ]
  },
  "status" : "draft",
  "experimental" : false,
  "date" : "2026-03-03T13:07:11+00:00",
  "publisher" : "WHO",
  "contact" : [
    {
      "name" : "WHO",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://who.int"
        }
      ]
    }
  ],
  "description" : "IMMZ.D2.DT.DTP.On-time start\nDTP vaccination schedule, on-time start (at ≤ 12 months of age)",
  "relatedArtifact" : [
    {
      "type" : "citation",
      "citation" : "WHO recommendations for routine immunization - summary tables (January 2025)"
    }
  ],
  "library" : [
    🔗 "http://smart.who.int/immunizations/Library/IMMZD2DTDTPOnTimeStartLogic"
  ],
  "action" : [
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale",
          "valueMarkdown" : "A primary series of 3 doses of DTP-containing vaccine is recommended, with the first \n  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" : "Determine if the client is due for DTP.",
      "description" : "Determine if the client is due for DTP vaccine according to the national immunization protocol.\nDTP vaccination schedule, on-time start (at ≤ 12 months of age)",
      "condition" : [
        {
          "kind" : "applicability",
          "expression" : {
            "description" : "Client is due for DTP vaccination",
            "language" : "text/cql-identifier",
            "expression" : "Client is due for DTP vaccination"
          }
        }
      ],
      "definitionCanonical" : "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTMR",
      "dynamicValue" : [
        {
          "path" : "status",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "'draft'"
          }
        },
        {
          "path" : "intent",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "'proposal'"
          }
        },
        {
          "path" : "medication",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE24', display: 'DTP-containing vaccines' } }, display: 'DTP-containing vaccines' }"
          }
        }
      ]
    },
    {
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale",
          "valueMarkdown" : "Three booster doses of diphtheria toxoid-containing vaccine should be provided during childhood and adolescence. The \n  diphtheria booster doses should be given in combination with tetanus toxoid using the same schedule (i.e at 12–23 months of age, \n  4–7 years of age and 9–15 years of age, using age-appropriate vaccine formulations). Ideally, there should be at least 4 years \n  between booster doses. Member States may update this schedule based on their country context.  For children aged under 7 years, \n  diphtheria and tetanus toxoids and whole-cell pertussis (DTwP) vaccine or diphtheria and tetanus toxoids and acellular pertussis \n  (DTaP) combinations may be used. For children aged 4 years and older, tetanus toxoid, reduced diphtheria toxoid (Td)-containing \n  vaccine may be used and is preferred. From 7 years of age, only Td combinations should be used. Age-appropriate combinations-containing \n  pertussis vaccine with low-dose diphtheria antigen are also available. Only aP-containing vaccines should be used for vaccination of \n  persons aged 7 years and older.  National vaccination schedules can be adjusted within the age limits specified above to enable \n  programmes to tailor their schedules based on local epidemiology, the objectives of the immunization programme, any particular \n  programmatic issues and to better align tetanus vaccination with the immunological requirements of other vaccines (particularly \n  for pertussis and diphtheria)."
        }
      ],
      "title" : "Determine if the client is due for DTP.",
      "description" : "Determine if the client is due for DTP vaccine according to the national immunization protocol.\nDTP vaccination schedule, on-time start (at ≤ 12 months of age)",
      "condition" : [
        {
          "kind" : "applicability",
          "expression" : {
            "description" : "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose",
            "language" : "text/cql-identifier",
            "expression" : "Primary DTP series is complete. Client is due for tetanus and diphtheria booster dose"
          }
        }
      ],
      "definitionCanonical" : "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTMR",
      "dynamicValue" : [
        {
          "path" : "status",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "'draft'"
          }
        },
        {
          "path" : "intent",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "'proposal'"
          }
        },
        {
          "path" : "medication",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "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" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale",
          "valueMarkdown" : "Three booster doses of diphtheria toxoid-containing vaccine should be provided during childhood and adolescence. The \n  diphtheria booster doses should be given in combination with tetanus toxoid using the same schedule (i.e at 12–23 months of age, \n  4–7 years of age and 9–15 years of age, using age-appropriate vaccine formulations). Ideally, there should be at least 4 years \n  between booster doses. Member States may update this schedule based on their country context.  For children aged under 7 years, \n  diphtheria and tetanus toxoids and whole-cell pertussis (DTwP) vaccine or diphtheria and tetanus toxoids and acellular pertussis \n  (DTaP) combinations may be used. For children aged 4 years and older, tetanus toxoid, reduced diphtheria toxoid (Td)-containing \n  vaccine may be used and is preferred. From 7 years of age, only Td combinations should be used. Age-appropriate combinations-containing \n  pertussis vaccine with low-dose diphtheria antigen are also available. Only aP-containing vaccines should be used for vaccination of \n  persons aged 7 years and older.  National vaccination schedules can be adjusted within the age limits specified above to enable \n  programmes to tailor their schedules based on local epidemiology, the objectives of the immunization programme, any particular \n  programmatic issues and to better align tetanus vaccination with the immunological requirements of other vaccines (particularly \n  for pertussis and diphtheria)."
        }
      ],
      "title" : "Determine if the client is due for DTP.",
      "description" : "Determine if the client is due for DTP vaccine according to the national immunization protocol.\nDTP vaccination schedule, on-time start (at ≤ 12 months of age)",
      "condition" : [
        {
          "kind" : "applicability",
          "expression" : {
            "description" : "Client is due for tetanus and diphtheria booster dose",
            "language" : "text/cql-identifier",
            "expression" : "Client is due for tetanus and diphtheria booster dose"
          }
        }
      ],
      "definitionCanonical" : "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTMR",
      "dynamicValue" : [
        {
          "path" : "status",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "'draft'"
          }
        },
        {
          "path" : "intent",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "'proposal'"
          }
        },
        {
          "path" : "medication",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "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" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-rationale",
          "valueMarkdown" : "A pertussis booster dose is recommended for children aged 1–6 years, preferably during the second year of life (≥ 6 \n  months after last primary dose), unless otherwise indicated by local epidemiology; the contact could also be used to catch up on \n  any missed doses of other vaccines. This schedule should provide protection for at least 6 years for countries using wP-containing \n  vaccine. For countries using aP-containing vaccine, protection may decline appreciably before 6 years of age.  Only aP-containing \n  vaccines should be used for vaccination of persons aged 7 years and over. Although a booster dose in adolescence has been shown to \n  decrease disease in adolescents, this is not generally recommended as a means of controlling pertussis in infants."
        }
      ],
      "title" : "Determine if the client is due for DTP.",
      "description" : "Determine if the client is due for DTP vaccine according to the national immunization protocol.\nDTP vaccination schedule, on-time start (at ≤ 12 months of age)",
      "condition" : [
        {
          "kind" : "applicability",
          "expression" : {
            "description" : "Primary DTP series is complete. Client is due for pertussis booster dose",
            "language" : "text/cql-identifier",
            "expression" : "Primary DTP series is complete. Client is due for pertussis booster dose"
          }
        }
      ],
      "definitionCanonical" : "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTMR",
      "dynamicValue" : [
        {
          "path" : "status",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "'draft'"
          }
        },
        {
          "path" : "intent",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "'proposal'"
          }
        },
        {
          "path" : "medication",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "Concept { codes: { Code { system: 'http://smart.who.int/immunizations/CodeSystem/IMMZ.Z', code: 'DE12', display: 'Pertussis-containing vaccines' } }, display: 'Pertussis-containing vaccines' }"
          }
        }
      ]
    },
    {
      "title" : "Check for Guidance for the patient regarding IMMZ.D2.DT.DTP.On-time start.",
      "description" : "Show Guidance for the patient regarding IMMZ.D2.DT.DTP.On-time start.",
      "condition" : [
        {
          "kind" : "applicability",
          "expression" : {
            "description" : "Has Guidance",
            "language" : "text/cql-identifier",
            "expression" : "Has Guidance"
          }
        }
      ],
      "definitionCanonical" : "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR",
      "dynamicValue" : [
        {
          "path" : "status",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "'active'"
          }
        },
        {
          "path" : "payload.contentString",
          "expression" : {
            "language" : "text/cql-identifier",
            "expression" : "Guidance"
          }
        },
        {
          "path" : "category.coding",
          "expression" : {
            "description" : "Category of communication",
            "language" : "text/cql-expression",
            "expression" : "Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }"
          }
        },
        {
          "path" : "priority",
          "expression" : {
            "description" : "Alert priority",
            "language" : "text/cql-expression",
            "expression" : "Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }"
          }
        }
      ]
    }
  ]
}