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/ and changes regularly. See the Directory of published versions

: IMMZ.D18.S.DTP.Delayed or interrupted schedule - TTL Representation

Draft as of 2026-07-07

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/PlanDefinition/IMMZD18SDTPDelayedOrInterruptedSeries> a fhir:PlanDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeries"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition" ;
       fhir:index 0 ;
       fhir:link <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition>
     ], [
       fhir:value "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableplandefinition" ;
       fhir:index 1 ;
       fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableplandefinition>
     ], [
       fhir:value "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishableplandefinition" ;
       fhir:index 2 ;
       fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishableplandefinition>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.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;\">IMMZD18SDTPDelayedOrInterruptedSeries</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-IMMZD18SDTPDelayedOrInterruptedSeries.html\">IMMZ.D18.S.DTP.Delayed or interrupted schedule</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.D18.S.DTP.Delayed or interrupted schedule</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.2.0/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-07-07 22:09:13+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.D18.S.DTP.Delayed or interrupted schedule\nDiphtheria–tetanus–pertussis (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</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-IMMZD18SDTPDelayedOrInterruptedSeriesLogic.html\">IMMZD18SDTPDelayedOrInterruptedSeriesLogic</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> DTP dose 1 (delayed start):</b> Provision of DTP dose 1 with a delayed start\nTrigger event: No DTP doses were administered and client's age is more than 1 year\nTrigger pseudo: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\") = 0 AND Today's date − \"Date of birth\" &gt; 1 year\nTrigger date: Date of birth\nCreate condition: For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\n\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\n\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            DTP dose 1 (delayed start)\n                            \n                            <i>(DTP dose 1 (delayed start))</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>(DTP dose 1 (delayed start) Create)</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                    <tr>\n                        <td>\n                            \n                            <b> DTP dose 2 (delayed start):</b> Provision of DTP dose 2 with a delayed start\nTrigger event: First DTP dose from the primary series was administered\nTrigger pseudo: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 1\nTrigger date: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\"\nCreate condition: For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\n\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\n\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            DTP dose 2 (delayed start)\n                            \n                            <i>(DTP dose 2 (delayed start))</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>(DTP dose 2 (delayed start) Create)</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                    <tr>\n                        <td>\n                            \n                            <b> DTP dose 3 (delayed start):</b> Provision of DTP dose 3 with a delayed start\nTrigger event: Second DTP dose from the primary series was administered\nTrigger pseudo: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 2\nTrigger date: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\"\nCreate condition: For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\n\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\n\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            DTP dose 3 (delayed start)\n                            \n                            <i>(DTP dose 3 (delayed start))</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>(DTP dose 3 (delayed start) Create)</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                    <tr>\n                        <td>\n                            \n                            <b> Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start):</b> Provision of tetanus and diphtheria booster dose 1\nTrigger event: The primary DTP series has been completed\nTrigger pseudo: \"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\")\nTrigger date: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\"\nCreate condition: Two subsequent booster doses using tetanus toxoid with reduced diphteria toxoid (Td) or Td with acellular pertussis (TdaP) combination vaccines are needed with an interval of at least 1 year between doses.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start)\n                            \n                            <i>(Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start))</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>(Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start) Create)</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                    <tr>\n                        <td>\n                            \n                            <b> Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start):</b> Provision of tetanus and diphtheria booster dose 2\nTrigger event: First tetanus and diphtheria booster dose was administered\nTrigger pseudo: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 1\nTrigger date: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\nCreate condition: Two subsequent booster doses using tetanus toxoid with reduced diphteria toxoid (Td) or Td with acellular pertussis (TdaP) combination vaccines are needed with an interval of at least 1 year between doses.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start)\n                            \n                            <i>(Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start))</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>(Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start) Create)</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                    <tr>\n                        <td>\n                            \n                            <b> Pertussis-containing vaccine booster dose 1 (delayed start):</b> Provision of the pertussis-containing booster dose 1\nTrigger event: The primary DTP series has been completed and client's age is between 1 year and 6 years\nTrigger pseudo: \"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\") AND 1 year ≤ Today's date − \"Date of birth\" ≤ 6 years\nTrigger date: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\nCreate condition: A booster dose is recommended for children aged 1–6 years, preferably during the second year of life (≥ 6 months after last primary dose).\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            Pertussis-containing vaccine booster dose 1 (delayed start)\n                            \n                            <i>(Pertussis-containing vaccine booster dose 1 (delayed start))</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>(Pertussis-containing vaccine booster dose 1 (delayed start) Create)</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>"
  ] ;
  fhir:DomainResource.contained [
     a fhir:Library ;
     fhir:index 0 ;
     fhir:Resource.id [ fhir:value "effective-data-requirements" ] ;
     fhir:DomainResource.extension [
       fhir:index 0 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/**\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 1 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 2 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP Primary Series Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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()" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "2"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 3 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP Primary Series Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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)" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "3"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 4 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Number of DTP Primary Series Doses Administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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\")" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "4"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 5 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Three DTP primary series doses were administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "5"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 6 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Third DTP dose from the primary series was administered. The primary DTP series has been completed" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: Third DTP dose from the primary series was administered. The primary DTP series has been completed\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 3\n\"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Third DTP dose from the primary series was administered. The primary DTP series has been completed\":\n  Encounter.\"Three DTP primary series doses were administered\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "6"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 7 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Td Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "7"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 8 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Td Booster Series Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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()" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "8"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 9 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Td Booster Series Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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)" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "9"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 10 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Number of Td Booster Series Doses Administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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\")" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "10"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 11 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "No tetanus and diphtheria booster doses were administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "11"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 12 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start)" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start)\n@description: Provision of tetanus and diphtheria booster dose 1\n@trigger: The primary DTP series has been completed\n@pseudo: \"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\")\n@triggerDate: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\"\n*/\ndefine \"Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start)\":\n  \"Third DTP dose from the primary series was administered. The primary DTP series has been completed\" and\n  Encounter.\"No tetanus and diphtheria booster doses were administered\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "12"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 13 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: DTP containing Doses Administered to Patient\n*/\ndefine \"DTP Doses Administered to Patient\":\n  DTPElements.\"DTP Doses Administered to Patient\".onOrBefore(Today)" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "13"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 14 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Date of Latest DTP Dose" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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()" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "14"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 15 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start) Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start) Due Date\n@pseudocode: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\") + 1 year\n*/\ndefine \"Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start) Due Date\":\n  if \"Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start)\" then Encounter.\"Date of Latest DTP Dose\" + 1 year\n  else null" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "15"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 16 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start) Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start) Create\n@create: Two subsequent booster doses using tetanus toxoid with reduced diphteria toxoid (Td) or Td with acellular pertussis (TdaP) combination vaccines are needed with an interval of at least 1 year between doses.\n*/\ndefine \"Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start) Create\":\n  if \"Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start)\"\n  then 'Two subsequent booster doses using tetanus toxoid with reduced diphteria toxoid (Td) or Td with acellular pertussis (TdaP) combination vaccines are needed with an interval of at least 1 year between doses.' + '\nDue Date: ' + ToString(\"Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start) Due Date\")\n  else ''" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "16"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 17 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "One tetanus and diphtheria booster dose was administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "17"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 18 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "First tetanus and diphtheria booster dose was administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: First 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*/\ndefine \"First tetanus and diphtheria booster dose was administered\":\n  Encounter.\"One tetanus and diphtheria booster dose was administered\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "18"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 19 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Two tetanus and diphtheria booster doses were administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "19"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 20 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Second tetanus and diphtheria booster dose was administered. Tetanus and diphtheria immunization schedule has been completed" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: Second tetanus and diphtheria booster dose was administered. Tetanus and diphtheria immunization schedule has been completed\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 2\n\"Immunization recommendation status\" = \"Complete\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Second tetanus and diphtheria booster dose was administered. Tetanus and diphtheria immunization schedule has been completed\":\n  Encounter.\"Two tetanus and diphtheria booster doses were administered\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "20"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 21 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start)" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start)\n@description: Provision of tetanus and diphtheria booster dose 2\n@trigger: First tetanus and diphtheria booster dose was administered\n@pseudo: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 1\n@triggerDate: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\n*/\ndefine \"Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start)\":\n  \"First tetanus and diphtheria booster dose was administered\" and\n  not \"Second tetanus and diphtheria booster dose was administered. Tetanus and diphtheria immunization schedule has been completed\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "21"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 22 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Current Patient Age In Years" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/** \n * @dataElement Patient age in years\n */\ndefine \"Current Patient Age In Years\":\n  AgeInYearsAt(Today)" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "22"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 23 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Client's age is between 1 year and 6 years" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "23"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 24 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start) Expiration" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: Pertussis-containing vaccine booster dose 1 (delayed start) Expiration\n@pseudocode: \"Date of birth\" + 7 years\n*/\ndefine \"Pertussis-containing vaccine booster dose 1 (delayed start) Expiration\":\n  Patient.birthDate + 7 years" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "24"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 25 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Pertussis Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "25"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 26 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Pertussis Booster Series Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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()" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "26"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 27 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Pertussis Booster Series Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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)" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "27"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 28 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Number of Pertussis Booster Series Doses Administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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\")" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "28"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 29 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "One pertussis booster dose was administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "29"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 30 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Pertussis-containing booster dose was administered. Pertussis immunization schedule has been completed" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: Pertussis-containing booster dose was administered. Pertussis immunization schedule has been completed\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Pertussis-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 1\n\"Immunization recommendation status\" = \"Complete\" (where \"Vaccine type\" = \"Pertussis-containing vaccines\")\n*/\ndefine \"Pertussis-containing booster dose was administered. Pertussis immunization schedule has been completed\":\n  Encounter.\"One pertussis booster dose was administered\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "30"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 31 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start)" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: Pertussis-containing vaccine booster dose 1 (delayed start)\n@description: Provision of the pertussis-containing booster dose 1\n@trigger: The primary DTP series has been completed and client's age is between 1 year and 6 years\n@pseudo: \"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\") AND 1 year ≤ Today's date − \"Date of birth\" ≤ 6 years\n@triggerDate: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\n*/\ndefine \"Pertussis-containing vaccine booster dose 1 (delayed start)\":\n  \"Third DTP dose from the primary series was administered. The primary DTP series has been completed\" and\n  Encounter.\"Client's age is between 1 year and 6 years\" and\n  \"Pertussis-containing vaccine booster dose 1 (delayed start) Expiration\" after day of Today and\n  not \"Pertussis-containing booster dose was administered. Pertussis immunization schedule has been completed\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "31"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 32 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Pertussis Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Pertussis Doses Administered to Patient\n*/\ndefine \"Pertussis Doses Administered to Patient\":\n  DTPElements.\"Pertussis Doses Administered to Patient\".onOrBefore(Today)" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "32"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 33 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Date of Latest Pertussis Dose" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Date of Latest Pertussis Dose\n*/\ndefine \"Date of Latest Pertussis Dose\":\n  date from start of \"Pertussis Doses Administered to Patient\".mostRecent().occurrence.toInterval()" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "33"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 34 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start) Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: Pertussis-containing vaccine booster dose 1 (delayed start) Due Date\n@pseudocode: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"Pertussis-containing vaccines\") + 6 months\n*/\ndefine \"Pertussis-containing vaccine booster dose 1 (delayed start) Due Date\":\n  if \"Pertussis-containing vaccine booster dose 1 (delayed start)\" then Encounter.\"Date of Latest Pertussis Dose\" + 6 months\n  else null" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "34"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 35 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start) Overdue" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: Pertussis-containing vaccine booster dose 1 (delayed start) Overdue\n@pseudocode: \"Date of birth\" + 7 years\n*/\ndefine \"Pertussis-containing vaccine booster dose 1 (delayed start) Overdue\":\n  if \"Pertussis-containing vaccine booster dose 1 (delayed start)\" then Patient.birthDate + 7 years\n  else null" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "35"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 36 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start) Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: Pertussis-containing vaccine booster dose 1 (delayed start) Create\n@create: A booster dose is recommended for children aged 1–6 years, preferably during the second year of life (≥ 6 months after last primary dose).\n*/\ndefine \"Pertussis-containing vaccine booster dose 1 (delayed start) Create\":\n  if \"Pertussis-containing vaccine booster dose 1 (delayed start)\"\n  then 'A booster dose is recommended for children aged 1–6 years, preferably during the second year of life (≥ 6 months after last primary dose).' + '\nDue Date: ' + ToString(\"Pertussis-containing vaccine booster dose 1 (delayed start) Due Date\") + '\nOverdue: ' + ToString(\"Pertussis-containing vaccine booster dose 1 (delayed start) Overdue\") + '\nExpiration: ' + ToString(\"Pertussis-containing vaccine booster dose 1 (delayed start) Expiration\")\n  else ''" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "36"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 37 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Two DTP primary series doses were administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "37"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 38 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Second DTP dose from the primary series was administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: Second DTP dose from the primary series was administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 2\n*/\ndefine \"Second DTP dose from the primary series was administered\":\n  Encounter.\"Two DTP primary series doses were administered\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "38"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 39 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP dose 3 (delayed start)" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: DTP dose 3 (delayed start)\n@description: Provision of DTP dose 3 with a delayed start\n@trigger: Second DTP dose from the primary series was administered\n@pseudo: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 2\n@triggerDate: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\"\n*/\ndefine \"DTP dose 3 (delayed start)\":\n  \"Second DTP dose from the primary series was administered\" and\n  not \"Third DTP dose from the primary series was administered. The primary DTP series has been completed\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "39"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 40 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP dose 3 (delayed start) Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: DTP dose 3 (delayed start) Due Date\n@pseudocode: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\") + 6 months\n*/\ndefine \"DTP dose 3 (delayed start) Due Date\":\n  if \"DTP dose 3 (delayed start)\" then Encounter.\"Date of Latest DTP Dose\" + 6 months\n  else null" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "40"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 41 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP dose 3 (delayed start) Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: DTP dose 3 (delayed start) Create\n@create: For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\n\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\n\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood.\n*/\ndefine \"DTP dose 3 (delayed start) Create\":\n  if \"DTP dose 3 (delayed start)\"\n  then 'For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood.' + '\nDue Date: ' + ToString(\"DTP dose 3 (delayed start) Due Date\")\n  else ''" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "41"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 42 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "No DTP primary series doses were administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "42"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 43 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Client's age is more than 1 year" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@input: Client's age is more than 1 year\n@pseudocode: Today's date − \"Date of birth\" > 1 year\n@code: Client's age is more than 1 year-39\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 1 year\":\n  Encounter.\"Current Patient Age In Years\" >= 1" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "43"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 44 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP dose 1 (delayed start)" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: DTP dose 1 (delayed start)\n@description: Provision of DTP dose 1 with a delayed start\n@trigger: No DTP doses were administered and client's age is more than 1 year\n@pseudo: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\") = 0 AND Today's date − \"Date of birth\" > 1 year\n@triggerDate: Date of birth\n*/\ndefine \"DTP dose 1 (delayed start)\":\n  Encounter.\"No DTP primary series doses were administered\"\n  and Encounter.\"Client's age is more than 1 year\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "44"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 45 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP dose 1 (delayed start) Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: DTP dose 1 (delayed start) Due Date\n@pseudocode: As soon as possible\n*/\ndefine \"DTP dose 1 (delayed start) Due Date\":\n  if \"DTP dose 1 (delayed start)\" then Patient.birthDate + 1 year\n  else null" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "45"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 46 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP dose 1 (delayed start) Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: DTP dose 1 (delayed start) Create\n@create: For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\n\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\n\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood.\n*/\ndefine \"DTP dose 1 (delayed start) Create\":\n  if \"DTP dose 1 (delayed start)\"\n  then 'For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood.' + '\nDue Date: ' + ToString(\"DTP dose 1 (delayed start) Due Date\")\n  else ''" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "46"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 47 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "One DTP primary series dose was administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "47"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 48 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "First DTP dose from the primary series was administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: First DTP dose from the primary series was administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 1\n*/\ndefine \"First DTP dose from the primary series was administered\":\n  Encounter.\"One DTP primary series dose was administered\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "48"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 49 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP dose 2 (delayed start)" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: DTP dose 2 (delayed start)\n@description: Provision of DTP dose 2 with a delayed start\n@trigger: First DTP dose from the primary series was administered\n@pseudo: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 1\n@triggerDate: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\"\n*/\ndefine \"DTP dose 2 (delayed start)\":\n  \"First DTP dose from the primary series was administered\" and\n  not \"Second DTP dose from the primary series was administered\"" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "49"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 50 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP dose 2 (delayed start) Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: DTP dose 2 (delayed start) Due Date\n@pseudocode: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\") + 4 weeks\n*/\ndefine \"DTP dose 2 (delayed start) Due Date\":\n  if \"DTP dose 2 (delayed start)\" then Encounter.\"Date of Latest DTP Dose\" + 4 weeks\n  else null" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "50"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 51 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "DTP dose 2 (delayed start) Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: DTP dose 2 (delayed start) Create\n@create: For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\n\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\n\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood.\n*/\ndefine \"DTP dose 2 (delayed start) Create\":\n  if \"DTP dose 2 (delayed start)\"\n  then 'For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood.' + '\nDue Date: ' + ToString(\"DTP dose 2 (delayed start) Due Date\")\n  else ''" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "51"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 52 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Td Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Td Doses Administered to Patient\n*/\ndefine \"Td Doses Administered to Patient\":\n  DTPElements.\"Td Doses Administered to Patient\".onOrBefore(Today)" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "52"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 53 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTDTPEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Date of Latest Td Dose" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Date of Latest Td Dose\n*/\ndefine \"Date of Latest Td Dose\":\n  date from start of \"Td Doses Administered to Patient\".mostRecent().occurrence.toInterval()" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "53"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 54 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start) Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start) Due Date\n@pseudocode: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\") + 1 year\n*/\ndefine \"Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start) Due Date\":\n  if \"Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start)\" then Encounter.\"Date of Latest Td Dose\" + 1 year\n  else null" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "54"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 55 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start) Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start) Create\n@create: Two subsequent booster doses using tetanus toxoid with reduced diphteria toxoid (Td) or Td with acellular pertussis (TdaP) combination vaccines are needed with an interval of at least 1 year between doses.\n*/\ndefine \"Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start) Create\":\n  if \"Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start)\"\n  then 'Two subsequent booster doses using tetanus toxoid with reduced diphteria toxoid (Td) or Td with acellular pertussis (TdaP) combination vaccines are needed with an interval of at least 1 year between doses.' + '\nDue Date: ' + ToString(\"Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start) Due Date\")\n  else ''" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "55"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 56 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZCommon" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "onOrBefore" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/**\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" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "56"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 57 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZCommon" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "seriesPrimary" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/**\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' )" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "57"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 58 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "FHIRHelpers" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "ToString" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "define function ToString(value string): value.value" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "58"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 59 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "FHIRHelpers" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "ToString" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "define function ToString(value ImmunizationStatus): value.value" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "59"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 60 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "FHIRHelpers" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "ToBoolean" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "define function ToBoolean(value boolean): value.value" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "60"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 61 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "FHIRHelpers" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "ToConcept" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "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        }" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "61"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 62 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "FHIRHelpers" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "ToCode" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "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        }" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "62"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 63 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZCommon" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "seriesBooster" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/**\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' )" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "63"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 64 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "WHOCommon" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "mostRecent" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "define fluent function mostRecent(immunizations List<Immunization>):\n  Last(\n    immunizations I\n      sort by start of occurrence.toInterval()\n  )" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "64"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ], [
       fhir:index 65 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "FHIRHelpers" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "ToDate" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "define function ToDate(value date): value.value" ]
       ], [
         fhir:index 3 ;
         fhir:Extension.url [ fhir:value "displaySequence" ] ;
         fhir:Extension.valueInteger [ fhir:value "65"^^xsd:integer ]
       ] ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ]
     ] ;
     fhir:Library.name [ fhir:value "EffectiveDataRequirements" ] ;
     fhir:Library.status [ fhir:value "active" ] ;
     fhir:Library.type [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/library-type" ] ;
         fhir:Coding.code [ fhir:value "module-definition" ]
       ]
     ] ;
     fhir:Library.relatedArtifact [
       fhir:index 0 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "FHIR model information" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1" ;
         fhir:link <http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1>
       ]
     ], [
       fhir:index 1 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library Encounter" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/Library/IMMZD2DTDTPEncounterElements" ;
         fhir:link <http://smart.who.int/immunizations/Library/IMMZD2DTDTPEncounterElements>
       ]
     ], [
       fhir:index 2 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library Common" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/Library/IMMZCommon" ;
         fhir:link <http://smart.who.int/immunizations/Library/IMMZCommon>
       ]
     ], [
       fhir:index 3 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library WC" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/Library/WHOCommon" ;
         fhir:link <http://smart.who.int/immunizations/Library/WHOCommon>
       ]
     ], [
       fhir:index 4 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library DTPElements" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/Library/IMMZD2DTDTPElements" ;
         fhir:link <http://smart.who.int/immunizations/Library/IMMZD2DTDTPElements>
       ]
     ], [
       fhir:index 5 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library FHIRHelpers" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1" ;
         fhir:link <http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1>
       ]
     ], [
       fhir:index 6 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library Elements" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/Library/IMMZElements" ;
         fhir:link <http://smart.who.int/immunizations/Library/IMMZElements>
       ]
     ], [
       fhir:index 7 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library FHIRHelpers" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1" ;
         fhir:link <http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1>
       ]
     ], [
       fhir:index 8 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library Concepts" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/Library/IMMZConcepts" ;
         fhir:link <http://smart.who.int/immunizations/Library/IMMZConcepts>
       ]
     ], [
       fhir:index 9 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library WC" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/Library/WHOCommon" ;
         fhir:link <http://smart.who.int/immunizations/Library/WHOCommon>
       ]
     ], [
       fhir:index 10 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library Encounter" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/Library/IMMZEncounterElements" ;
         fhir:link <http://smart.who.int/immunizations/Library/IMMZEncounterElements>
       ]
     ], [
       fhir:index 11 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Value set DTP-containing vaccines" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE24" ;
         fhir:link <http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE24>
       ]
     ], [
       fhir:index 12 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Value set Tetanus and diphtheria-containing vaccines" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE28" ;
         fhir:link <http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE28>
       ]
     ], [
       fhir:index 13 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Value set Pertussis-containing vaccines" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE12" ;
         fhir:link <http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE12>
       ]
     ] ;
     fhir:Library.parameter [
       fhir:index 0 ;
       fhir:ParameterDefinition.name [ fhir:value "Today" ] ;
       fhir:ParameterDefinition.use [ fhir:value "in" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "date" ]
     ], [
       fhir:index 1 ;
       fhir:ParameterDefinition.name [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start) Create" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "string" ]
     ], [
       fhir:index 2 ;
       fhir:ParameterDefinition.name [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start)" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "boolean" ]
     ], [
       fhir:index 3 ;
       fhir:ParameterDefinition.name [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start) Create" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "string" ]
     ], [
       fhir:index 4 ;
       fhir:ParameterDefinition.name [ fhir:value "DTP dose 3 (delayed start) Create" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "string" ]
     ], [
       fhir:index 5 ;
       fhir:ParameterDefinition.name [ fhir:value "DTP dose 1 (delayed start) Create" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "string" ]
     ], [
       fhir:index 6 ;
       fhir:ParameterDefinition.name [ fhir:value "DTP dose 2 (delayed start)" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "boolean" ]
     ], [
       fhir:index 7 ;
       fhir:ParameterDefinition.name [ fhir:value "DTP dose 2 (delayed start) Create" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "string" ]
     ], [
       fhir:index 8 ;
       fhir:ParameterDefinition.name [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start)" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "boolean" ]
     ], [
       fhir:index 9 ;
       fhir:ParameterDefinition.name [ fhir:value "DTP dose 3 (delayed start)" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "boolean" ]
     ], [
       fhir:index 10 ;
       fhir:ParameterDefinition.name [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start)" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "boolean" ]
     ], [
       fhir:index 11 ;
       fhir:ParameterDefinition.name [ fhir:value "DTP dose 1 (delayed start)" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "boolean" ]
     ], [
       fhir:index 12 ;
       fhir:ParameterDefinition.name [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start) Create" ] ;
       fhir:ParameterDefinition.use [ fhir:value "out" ] ;
       fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ;
       fhir:ParameterDefinition.max [ fhir:value "1" ] ;
       fhir:ParameterDefinition.type [ fhir:value "string" ]
     ] ;
     fhir:Library.dataRequirement [
       fhir:index 0 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ]
     ], [
       fhir:index 1 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 2 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 3 ;
       fhir:DataRequirement.type [ fhir:value "Patient" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>
       ]
     ], [
       fhir:index 4 ;
       fhir:DataRequirement.type [ fhir:value "Patient" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>
       ]
     ], [
       fhir:index 5 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 6 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 7 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 8 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 9 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 10 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 11 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 12 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 13 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ], [
       fhir:index 14 ;
       fhir:DataRequirement.type [ fhir:value "Immunization" ] ;
       fhir:DataRequirement.profile [
         fhir:value "http://hl7.org/fhir/StructureDefinition/Immunization" ;
         fhir:index 0 ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Immunization>
       ] ;
       fhir:DataRequirement.mustSupport [
         fhir:value "status" ;
         fhir:index 0
       ], [
         fhir:value "isSubpotent" ;
         fhir:index 1
       ], [
         fhir:value "vaccineCode" ;
         fhir:index 2
       ]
     ]
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability" ] ;
     fhir:Extension.valueCode [ fhir:value "computable" ]
  ], [
     fhir:index 1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements" ] ;
     fhir:Extension.valueCanonical [ fhir:value "#effective-data-requirements" ]
  ] ;
  fhir:PlanDefinition.url [ fhir:value "http://smart.who.int/immunizations/PlanDefinition/IMMZD18SDTPDelayedOrInterruptedSeries"] ;
  fhir:PlanDefinition.version [ fhir:value "0.2.0"] ;
  fhir:PlanDefinition.name [ fhir:value "IMMZD18SDTPDelayedOrInterruptedSeries"] ;
  fhir:PlanDefinition.title [ fhir:value "IMMZ.D18.S.DTP.Delayed or interrupted schedule"] ;
  fhir:PlanDefinition.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/plan-definition-type" ] ;
       fhir:Coding.code [ fhir:value "eca-rule" ]
     ]
  ] ;
  fhir:PlanDefinition.status [ fhir:value "draft"] ;
  fhir:PlanDefinition.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:PlanDefinition.date [ fhir:value "2026-07-07T22:09:13+00:00"^^xsd:dateTime] ;
  fhir:PlanDefinition.publisher [ fhir:value "WHO"] ;
  fhir:PlanDefinition.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "WHO" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "http://who.int" ]
     ]
  ] ;
  fhir:PlanDefinition.description [ fhir:value "IMMZ.D18.S.DTP.Delayed or interrupted schedule\nDiphtheria–tetanus–pertussis (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"] ;
  fhir:PlanDefinition.relatedArtifact [
     fhir:index 0 ;
     fhir:RelatedArtifact.type [ fhir:value "citation" ] ;
     fhir:RelatedArtifact.citation [ fhir:value "WHO recommendations for routine immunization - summary tables (January 2025)" ]
  ] ;
  fhir:PlanDefinition.library [
     fhir:value "http://smart.who.int/immunizations/Library/IMMZD18SDTPDelayedOrInterruptedSeriesLogic" ;
     fhir:index 0 ;
     fhir:link <http://smart.who.int/immunizations/Library/IMMZD18SDTPDelayedOrInterruptedSeriesLogic>
  ] ;
  fhir:PlanDefinition.action [
     fhir:index 0 ;
     fhir:PlanDefinition.action.title [ fhir:value "DTP dose 1 (delayed start)" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of DTP dose 1 with a delayed start\nTrigger event: No DTP doses were administered and client's age is more than 1 year\nTrigger pseudo: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\") = 0 AND Today's date − \"Date of birth\" > 1 year\nTrigger date: Date of birth\nCreate condition: For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\n\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\n\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood." ] ;
     fhir:PlanDefinition.action.condition [
       fhir:index 0 ;
       fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ] ;
       fhir:PlanDefinition.action.condition.expression [
         fhir:Expression.description [ fhir:value "DTP dose 1 (delayed start)" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "DTP dose 1 (delayed start)" ]
       ]
     ] ;
     fhir:PlanDefinition.action.definitionCanonical [
       fhir:value "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR" ;
       fhir:link <http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR>
     ] ;
     fhir:PlanDefinition.action.dynamicValue [
       fhir:index 0 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "status" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "'active'" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "payload.contentString" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "DTP dose 1 (delayed start) Create" ]
       ]
     ], [
       fhir:index 2 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "category.coding" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Category of communication" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }" ]
       ]
     ], [
       fhir:index 3 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "priority" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Alert priority" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }" ]
       ]
     ]
  ], [
     fhir:index 1 ;
     fhir:PlanDefinition.action.title [ fhir:value "DTP dose 2 (delayed start)" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of DTP dose 2 with a delayed start\nTrigger event: First DTP dose from the primary series was administered\nTrigger pseudo: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 1\nTrigger date: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\"\nCreate condition: For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\n\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\n\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood." ] ;
     fhir:PlanDefinition.action.condition [
       fhir:index 0 ;
       fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ] ;
       fhir:PlanDefinition.action.condition.expression [
         fhir:Expression.description [ fhir:value "DTP dose 2 (delayed start)" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "DTP dose 2 (delayed start)" ]
       ]
     ] ;
     fhir:PlanDefinition.action.definitionCanonical [
       fhir:value "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR" ;
       fhir:link <http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR>
     ] ;
     fhir:PlanDefinition.action.dynamicValue [
       fhir:index 0 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "status" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "'active'" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "payload.contentString" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "DTP dose 2 (delayed start) Create" ]
       ]
     ], [
       fhir:index 2 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "category.coding" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Category of communication" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }" ]
       ]
     ], [
       fhir:index 3 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "priority" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Alert priority" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }" ]
       ]
     ]
  ], [
     fhir:index 2 ;
     fhir:PlanDefinition.action.title [ fhir:value "DTP dose 3 (delayed start)" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of DTP dose 3 with a delayed start\nTrigger event: Second DTP dose from the primary series was administered\nTrigger pseudo: Count of vaccines administered (where \"Vaccine type\" = \"DTP-containing vaccines\" and \"Type of dose\" = \"Primary series\") = 2\nTrigger date: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\"\nCreate condition: For children whose vaccination series has been interrupted, the series should be resumed without repeating previous doses. Children aged 1 year to under 7 years who have not previously been vaccinated should receive 3 doses of vaccine following a 0, 1, 6 month schedule.\n\nIf tetanus vaccination is started during adolescence or adulthood, a total of only 5 appropriately spaced doses are required to obtain lifelong protection.\n\nPregnant women and their newborn infants are protected from birth-associated tetanus if the mother received 5 doses if first vaccinated during adolescence/adulthood." ] ;
     fhir:PlanDefinition.action.condition [
       fhir:index 0 ;
       fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ] ;
       fhir:PlanDefinition.action.condition.expression [
         fhir:Expression.description [ fhir:value "DTP dose 3 (delayed start)" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "DTP dose 3 (delayed start)" ]
       ]
     ] ;
     fhir:PlanDefinition.action.definitionCanonical [
       fhir:value "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR" ;
       fhir:link <http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR>
     ] ;
     fhir:PlanDefinition.action.dynamicValue [
       fhir:index 0 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "status" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "'active'" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "payload.contentString" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "DTP dose 3 (delayed start) Create" ]
       ]
     ], [
       fhir:index 2 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "category.coding" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Category of communication" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }" ]
       ]
     ], [
       fhir:index 3 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "priority" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Alert priority" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }" ]
       ]
     ]
  ], [
     fhir:index 3 ;
     fhir:PlanDefinition.action.title [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start)" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of tetanus and diphtheria booster dose 1\nTrigger event: The primary DTP series has been completed\nTrigger pseudo: \"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\")\nTrigger date: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\"\nCreate condition: Two subsequent booster doses using tetanus toxoid with reduced diphteria toxoid (Td) or Td with acellular pertussis (TdaP) combination vaccines are needed with an interval of at least 1 year between doses." ] ;
     fhir:PlanDefinition.action.condition [
       fhir:index 0 ;
       fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ] ;
       fhir:PlanDefinition.action.condition.expression [
         fhir:Expression.description [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start)" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start)" ]
       ]
     ] ;
     fhir:PlanDefinition.action.definitionCanonical [
       fhir:value "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR" ;
       fhir:link <http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR>
     ] ;
     fhir:PlanDefinition.action.dynamicValue [
       fhir:index 0 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "status" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "'active'" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "payload.contentString" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 1 (delayed start) Create" ]
       ]
     ], [
       fhir:index 2 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "category.coding" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Category of communication" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }" ]
       ]
     ], [
       fhir:index 3 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "priority" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Alert priority" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }" ]
       ]
     ]
  ], [
     fhir:index 4 ;
     fhir:PlanDefinition.action.title [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start)" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of tetanus and diphtheria booster dose 2\nTrigger event: First tetanus and diphtheria booster dose was administered\nTrigger pseudo: Count of vaccines administered (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\" and \"Type of dose\" = \"Booster dose\") = 1\nTrigger date: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"Tetanus and diphtheria-containing vaccines\")\nCreate condition: Two subsequent booster doses using tetanus toxoid with reduced diphteria toxoid (Td) or Td with acellular pertussis (TdaP) combination vaccines are needed with an interval of at least 1 year between doses." ] ;
     fhir:PlanDefinition.action.condition [
       fhir:index 0 ;
       fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ] ;
       fhir:PlanDefinition.action.condition.expression [
         fhir:Expression.description [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start)" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start)" ]
       ]
     ] ;
     fhir:PlanDefinition.action.definitionCanonical [
       fhir:value "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR" ;
       fhir:link <http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR>
     ] ;
     fhir:PlanDefinition.action.dynamicValue [
       fhir:index 0 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "status" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "'active'" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "payload.contentString" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "Tetanus and diphtheria-containing vaccine booster dose 2 (delayed start) Create" ]
       ]
     ], [
       fhir:index 2 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "category.coding" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Category of communication" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }" ]
       ]
     ], [
       fhir:index 3 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "priority" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Alert priority" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }" ]
       ]
     ]
  ], [
     fhir:index 5 ;
     fhir:PlanDefinition.action.title [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start)" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of the pertussis-containing booster dose 1\nTrigger event: The primary DTP series has been completed and client's age is between 1 year and 6 years\nTrigger pseudo: \"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"DTP-containing vaccines\") AND 1 year ≤ Today's date − \"Date of birth\" ≤ 6 years\nTrigger date: Latest \"Date and time of vaccination\" (where \"Vaccine type\" = \"DTP-containing vaccines\")\nCreate condition: A booster dose is recommended for children aged 1–6 years, preferably during the second year of life (≥ 6 months after last primary dose)." ] ;
     fhir:PlanDefinition.action.condition [
       fhir:index 0 ;
       fhir:PlanDefinition.action.condition.kind [ fhir:value "applicability" ] ;
       fhir:PlanDefinition.action.condition.expression [
         fhir:Expression.description [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start)" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start)" ]
       ]
     ] ;
     fhir:PlanDefinition.action.definitionCanonical [
       fhir:value "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR" ;
       fhir:link <http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR>
     ] ;
     fhir:PlanDefinition.action.dynamicValue [
       fhir:index 0 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "status" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "'active'" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "payload.contentString" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "Pertussis-containing vaccine booster dose 1 (delayed start) Create" ]
       ]
     ], [
       fhir:index 2 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "category.coding" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Category of communication" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }" ]
       ]
     ], [
       fhir:index 3 ;
       fhir:PlanDefinition.action.dynamicValue.path [ fhir:value "priority" ] ;
       fhir:PlanDefinition.action.dynamicValue.expression [
         fhir:Expression.description [ fhir:value "Alert priority" ] ;
         fhir:Expression.language [ fhir:value "text/cql-expression" ] ;
         fhir:Expression.expression [ fhir:value "Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/PlanDefinition/IMMZD18SDTPDelayedOrInterruptedSeries.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/PlanDefinition/IMMZD18SDTPDelayedOrInterruptedSeries.ttl> .