@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://smart.who.int/immunizations/PlanDefinition/IMMZD18SPolioBOPVPlusIPV> a fhir:PlanDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "IMMZD18SPolioBOPVPlusIPV"] ;
  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;\">IMMZD18SPolioBOPVPlusIPV</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-IMMZD18SPolioBOPVPlusIPV.html\">IMMZ.D18.S.Polio.bOPV plus IPV 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.Polio.bOPV plus IPV 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.5.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-11-19 08:10:32+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.Polio.bOPV plus IPV schedule\nBivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV) schedule</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=\"\"/></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-IMMZD18SPolioBOPVPlusIPVLogic.html\">IMMZD18SPolioBOPVPlusIPVLogic</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> bOPV dose 1:</b> Provision of bOPV dose 1\nTrigger event: Child's birth\nTrigger pseudo: \nTrigger date: \"Date of birth\"\nCreate condition: The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval between doses.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            bOPV dose 1\n                            \n                            <i>(bOPV dose 1)</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>(bOPV dose 1 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> IPV dose 1:</b> Provision of IPV dose 1\nTrigger event: Child's birth\nTrigger pseudo: \nTrigger date: \"Date of birth\"\nCreate condition: The first IPV dose should be administered from a minimum of 14 weeks of age.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            IPV dose 1\n                            \n                            <i>(IPV dose 1)</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>(IPV dose 1 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> bOPV dose 2:</b> Provision of bOPV dose 2\nTrigger event: First bOPV dose from the primary series was administered\nTrigger pseudo: Count of vaccines administered (where \"Type of dose\" = \"Primary series\" and \"Type of poliovirus dose\" = \"bOPV\") = 1\nTrigger date: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"bOPV\")\nCreate condition: The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval between doses.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            bOPV dose 2\n                            \n                            <i>(bOPV dose 2)</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>(bOPV dose 2 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> IPV dose 2:</b> Provision of IPV dose 2\nTrigger event: First IPV dose from the primary series was administered\nTrigger pseudo: Count of vaccines administered (where \"Type of poliovirus dose\" = \"IPV\") = 1\nTrigger date: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"IPV\")\nCreate condition: The first IPV dose should be administered from a minimum of 14 weeks of age (with the third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] or pentavalent vaccine [penta3]), with the second IPV dose being given at least 4 months later (possibly coinciding with other vaccines administered at 9 months of age).\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            IPV dose 2\n                            \n                            <i>(IPV dose 2)</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>(IPV dose 2 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> bOPV dose 3:</b> Provision of bOPV dose 3\nTrigger event: Second bOPV dose from the primary series was administered\nTrigger pseudo: Count of vaccines administered (where \"Type of dose\" = \"Primary series\" and \"Type of poliovirus dose\" = \"bOPV\") = 2\nTrigger date: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"bOPV\")\nCreate condition: The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval between doses.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            bOPV dose 3\n                            \n                            <i>(bOPV dose 3)</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>(bOPV dose 3 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:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ;
       fhir:Extension.valueCoding [
         fhir:Coding.system [ fhir:value "http://smart.who.int/immunizations/CodeSystem/IMMZ.D" ] ;
         fhir:Coding.code [ fhir:value "DE214" ] ;
         fhir:Coding.display [ fhir:value "bOPV" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ;
       fhir:Extension.valueCoding [
         fhir:Coding.system [ fhir:value "http://smart.who.int/immunizations/CodeSystem/IMMZ.D" ] ;
         fhir:Coding.code [ fhir:value "DE213" ] ;
         fhir:Coding.display [ fhir:value "IPV" ]
       ]
     ], [
       fhir:index 2 ;
       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 3 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Polio Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Polio containing Doses Administered to Patient\n*/\ndefine \"Polio Doses Administered to Patient\":\n  Elements.\"Doses Administered to Patient\" I\n  where\n    I.vaccineCode in Concepts.\"Poliovirus-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 4 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Polio Primary Series Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Polio containing Doses Administered to Patient that are in the Primary series\n*/\ndefine \"Polio Primary Series Doses Administered to Patient\":\n  \"Polio 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 5 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Polio Primary Series Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Polio containing Doses Administered to Patient that are in the Primary series\n*/\ndefine \"Polio Primary Series Doses Administered to Patient\":\n  PolioElements.\"Polio 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 6 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Polio bOPV Primary Series Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Polio bOPV Primary Series Doses Administered to Patient\n*/\ndefine \"Polio bOPV Primary Series Doses Administered to Patient\":\n  \"Polio Primary Series Doses Administered to Patient\" I\n  where I.typeOfDose() ~ Concepts.\"bOPV\"" ]
       ], [
         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 7 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Number of Polio bOPV Primary Series Doses Administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Number of Polio bOPV Primary Series Doses Administered\n*/\ndefine \"Number of Polio bOPV Primary Series Doses Administered\":\n  Count(\"Polio bOPV Primary Series Doses Administered to Patient\")" ]
       ], [
         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 8 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "First bOPV dose from the primary series was administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: First bOPV dose from the primary series was administered\n@pseudocode: Count of vaccines administered (where \"Type of dose\" = \"Primary series\" and \"Type of poliovirus dose\" = \"bOPV\") = 1\n*/\ndefine \"First bOPV dose from the primary series was administered\":\n  Encounter.\"Number of Polio bOPV Primary Series Doses Administered\" >= 1" ]
       ], [
         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 9 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Second bOPV dose from the primary series was administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: Second bOPV dose from the primary series was administered\n@pseudocode: Count of vaccines administered (where \"Type of dose\" = \"Primary series\" and \"Type of poliovirus dose\" = \"bOPV\") = 2\n*/\ndefine \"Second bOPV dose from the primary series was administered\":\n  Encounter.\"Number of Polio bOPV Primary Series Doses Administered\" >= 2" ]
       ], [
         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 10 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "bOPV dose 2" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: bOPV dose 2\n@description: Provision of bOPV dose 2\n@trigger: First bOPV dose from the primary series was administered\n@pseudo: Count of vaccines administered (where \"Type of dose\" = \"Primary series\" and \"Type of poliovirus dose\" = \"bOPV\") = 1\n@triggerDate: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"bOPV\")\n*/\ndefine \"bOPV dose 2\":\n  \"First bOPV dose from the primary series was administered\" and not \"Second bOPV dose from the primary series was administered\"" ]
       ], [
         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 11 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Third bOPV dose from the primary series was administered. The primary series has been completed" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: Third bOPV dose from the primary series was administered. The primary series has been completed\n@pseudocode: \"Completed the primary vaccination series\" = TRUE (where \"Vaccine type\" = \"Poliovirus-containing vaccines\")\n*/\ndefine \"Third bOPV dose from the primary series was administered. The primary series has been completed\":\n  Encounter.\"Number of Polio bOPV Primary Series Doses Administered\" >= 3" ]
       ], [
         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 12 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "bOPV dose 3" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: bOPV dose 3\n@description: Provision of bOPV dose 3\n@trigger: Second bOPV dose from the primary series was administered\n@pseudo: Count of vaccines administered (where \"Type of dose\" = \"Primary series\" and \"Type of poliovirus dose\" = \"bOPV\") = 2\n@triggerDate: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"bOPV\")\n*/\ndefine \"bOPV dose 3\":\n  \"Second bOPV dose from the primary series was administered\" and not \"Third bOPV dose from the primary series was administered. The primary series has been completed\"" ]
       ], [
         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 13 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Polio Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Polio containing Doses Administered to Patient\n*/\ndefine \"Polio Doses Administered to Patient\":\n  PolioElements.\"Polio Doses Administered to Patient\".onOrBefore(Today)" ]
       ], [
         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 14 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "bOPV Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: bOPV Doses Administered to Patient\n*/\ndefine \"bOPV Doses Administered to Patient\":\n  \"Polio Doses Administered to Patient\" I\n  where I.typeOfDose() ~ Concepts.\"bOPV\"" ]
       ], [
         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 15 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Date of Latest bOPV Dose" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Date of Latest bOPV Dose\n*/\ndefine \"Date of Latest bOPV Dose\":\n  date from start of \"bOPV Doses Administered to Patient\".mostRecent().occurrence.toInterval()" ]
       ], [
         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 16 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "bOPV dose 3 Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: bOPV dose 3 Due Date\n@pseudocode: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"bOPV\") + 4 weeks\n*/\ndefine \"bOPV dose 3 Due Date\":\n  if \"bOPV dose 3\" then Encounter.\"Date of Latest bOPV Dose\" + 4 weeks\n  else null" ]
       ], [
         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 17 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "bOPV dose 3 Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: bOPV dose 3 Create\n@create: The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval between doses.\n*/\ndefine \"bOPV dose 3 Create\":\n  if \"bOPV dose 3\"\n  then 'The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval between doses.' + '\nDue Date: ' + ToString(\"bOPV dose 3 Due Date\")\n  else ''" ]
       ], [
         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 18 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Polio IPV Primary Series Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Polio IPV Primary Series Doses Administered to Patient\n*/\ndefine \"Polio IPV Primary Series Doses Administered to Patient\":\n  \"Polio Primary Series Doses Administered to Patient\" I\n  where I.typeOfDose() ~ Concepts.\"IPV\"" ]
       ], [
         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 19 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Number of Polio IPV Primary Series Doses Administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Number of Polio IPV Primary Series Doses Administered\n*/\ndefine \"Number of Polio IPV Primary Series Doses Administered\":\n  Count(\"Polio IPV Primary Series Doses Administered to Patient\")" ]
       ], [
         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 20 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "First IPV dose from the primary series was administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: First IPV dose from the primary series was administered\n@pseudocode: Count of vaccines administered (where \"Type of poliovirus dose\" = \"IPV\") = 1\n*/\ndefine \"First IPV dose from the primary series was administered\":\n  Encounter.\"Number of Polio IPV Primary Series Doses Administered\" >= 1" ]
       ], [
         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 21 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "IPV dose 1" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: IPV dose 1\n@description: Provision of IPV dose 1\n@trigger: Child's birth\n@pseudo: \n@triggerDate: \"Date of birth\"\n*/\ndefine \"IPV dose 1\":\n  not \"First IPV dose from the primary series was administered\"" ]
       ], [
         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 22 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "IPV dose 1 Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: IPV dose 1 Due Date\n@pseudocode: \"Date of birth\" + 14 weeks\n*/\ndefine \"IPV dose 1 Due Date\":\n  if \"IPV dose 1\" then Patient.birthDate + 14 weeks\n  else null" ]
       ], [
         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 23 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "IPV dose 1 Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: IPV dose 1 Create\n@create: The first IPV dose should be administered from a minimum of 14 weeks of age.\n*/\ndefine \"IPV dose 1 Create\":\n  if \"IPV dose 1\"\n  then 'The first IPV dose should be administered from a minimum of 14 weeks of age.' + '\nDue Date: ' + ToString(\"IPV dose 1 Due Date\")\n  else ''" ]
       ], [
         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 24 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Second IPV dose from the primary series was administered" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@complete: Second IPV dose from the primary series was administered\n@pseudocode: Count of vaccines administered (where \"Type of poliovirus dose\" = \"IPV\") = 2\n*/\ndefine \"Second IPV dose from the primary series was administered\":\n  Encounter.\"Number of Polio IPV Primary Series Doses Administered\" >= 2" ]
       ], [
         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 25 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "IPV dose 2" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: IPV dose 2\n@description: Provision of IPV dose 2\n@trigger: First IPV dose from the primary series was administered\n@pseudo: Count of vaccines administered (where \"Type of poliovirus dose\" = \"IPV\") = 1\n@triggerDate: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"IPV\")\n*/\ndefine \"IPV dose 2\":\n  \"First IPV dose from the primary series was administered\" and not \"Second IPV dose from the primary series was administered\"" ]
       ], [
         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 26 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "IPV Doses Administered to Patient" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: IPV Doses Administered to Patient\n*/\ndefine \"IPV Doses Administered to Patient\":\n  \"Polio Doses Administered to Patient\" I\n  where I.typeOfDose() ~ Concepts.\"IPV\"" ]
       ], [
         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 27 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD2DTPolioEncounterElements" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "Date of Latest IPV Dose" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@internal: Date of Latest IPV Dose\n*/\ndefine \"Date of Latest IPV Dose\":\n  date from start of \"IPV Doses Administered to Patient\".mostRecent().occurrence.toInterval()" ]
       ], [
         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 28 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "IPV dose 2 Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: IPV dose 2 Due Date\n@pseudocode: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"IPV\") + 4 months\n*/\ndefine \"IPV dose 2 Due Date\":\n  if \"IPV dose 2\" then Encounter.\"Date of Latest IPV Dose\" + 4 months\n  else null" ]
       ], [
         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 29 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "IPV dose 2 Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: IPV dose 2 Create\n@create: The first IPV dose should be administered from a minimum of 14 weeks of age (with the third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] or pentavalent vaccine [penta3]), with the second IPV dose being given at least 4 months later (possibly coinciding with other vaccines administered at 9 months of age).\n*/\ndefine \"IPV dose 2 Create\":\n  if \"IPV dose 2\"\n  then 'The first IPV dose should be administered from a minimum of 14 weeks of age (with the third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] or pentavalent vaccine [penta3]), with the second IPV dose being given at least 4 months later (possibly coinciding with other vaccines administered at 9 months of age).' + '\nDue Date: ' + ToString(\"IPV dose 2 Due Date\")\n  else ''" ]
       ], [
         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 30 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "bOPV dose 1" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: bOPV dose 1\n@description: Provision of bOPV dose 1\n@trigger: Child's birth\n@pseudo: \n@triggerDate: \"Date of birth\"\n*/\ndefine \"bOPV dose 1\":\n  not \"First bOPV dose from the primary series was administered\"" ]
       ], [
         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 31 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "bOPV dose 1 Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: bOPV dose 1 Due Date\n@pseudocode: \"Date of birth\" + 6 weeks\n*/\ndefine \"bOPV dose 1 Due Date\":\n  if \"bOPV dose 1\" then Patient.birthDate + 6 weeks\n  else null" ]
       ], [
         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 32 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "bOPV dose 1 Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: bOPV dose 1 Create\n@create: The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval between doses.\n*/\ndefine \"bOPV dose 1 Create\":\n  if \"bOPV dose 1\"\n  then 'The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval between doses.' + '\nDue Date: ' + ToString(\"bOPV dose 1 Due Date\")\n  else ''" ]
       ], [
         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 33 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "bOPV dose 2 Due Date" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@dynamicValue: bOPV dose 2 Due Date\n@pseudocode: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"bOPV\") + 4 weeks\n*/\ndefine \"bOPV dose 2 Due Date\":\n  if \"bOPV dose 2\" then Encounter.\"Date of Latest bOPV Dose\" + 4 weeks\n  else null" ]
       ], [
         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 34 ;
       fhir:Element.extension [
         fhir:index 0 ;
         fhir:Extension.url [ fhir:value "libraryName" ] ;
         fhir:Extension.valueString [ fhir:value "IMMZD18SPolioBOPVPlusIPVLogic" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "bOPV dose 2 Create" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\n@output: bOPV dose 2 Create\n@create: The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval between doses.\n*/\ndefine \"bOPV dose 2 Create\":\n  if \"bOPV dose 2\"\n  then 'The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval between doses.' + '\nDue Date: ' + ToString(\"bOPV dose 2 Due Date\")\n  else ''" ]
       ], [
         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 35 ;
       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 "33"^^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 "WHOCommon" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "toInterval" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/*\nFrom FHIRCommon 4.1.0:\n*/\n\n/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine fluent function toInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n  case\n    when choice is FHIR.dateTime then\n      Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n    when choice is FHIR.Period then\n      FHIRHelpers.ToInterval(choice as FHIR.Period)\n    when choice is FHIR.instant then\n      Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n    when choice is FHIR.Age then\n      Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n        FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n    when choice is FHIR.Range then\n      Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n        FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n    when choice is FHIR.Timing then\n      Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')\n    when choice is FHIR.string then\n      Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n    else\n      null as Interval<DateTime>\n  end" ]
       ], [
         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 37 ;
       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 "ToDateTime" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "define function ToDateTime(value dateTime): value.value" ]
       ], [
         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 38 ;
       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 "ToInterval" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "define function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]" ]
       ], [
         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 39 ;
       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 "ToDateTime" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "define function ToDateTime(value instant): value.value" ]
       ], [
         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 40 ;
       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 "38"^^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 "FHIRHelpers" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "ToQuantity" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "define function ToQuantity(quantity FHIR.Quantity):\n    case\n        when quantity is null then null\n        when quantity.value is null then null\n        when quantity.comparator is not null then\n            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n        else\n            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n    end" ]
       ], [
         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 42 ;
       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 "ToCalendarUnit" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "define function ToCalendarUnit(unit System.String):\n    case unit\n        when 'ms' then 'millisecond'\n        when 's' then 'second'\n        when 'min' then 'minute'\n        when 'h' then 'hour'\n        when 'd' then 'day'\n        when 'wk' then 'week'\n        when 'mo' then 'month'\n        when 'a' then 'year'\n        else unit\n    end" ]
       ], [
         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 43 ;
       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 "41"^^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 "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 "42"^^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 "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 "43"^^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 "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 "44"^^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 "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 "45"^^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 "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 "46"^^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 "IMMZCommon" ]
       ], [
         fhir:index 1 ;
         fhir:Extension.url [ fhir:value "name" ] ;
         fhir:Extension.valueString [ fhir:value "typeOfDose" ]
       ], [
         fhir:index 2 ;
         fhir:Extension.url [ fhir:value "statement" ] ;
         fhir:Extension.valueString [ fhir:value "/**\n * @description: Gets the type of antigen dose extension value from an Immunization\n */\ndefine fluent function typeOfDose(immz Immunization):\n  (First(\n    immz.extension E where E.url = 'http://smart.who.int/immunizations/StructureDefinition/IMMZTypeOfDose'\n  )).value as FHIR.CodeableConcept" ]
       ], [
         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 50 ;
       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 uri): value.value" ]
       ], [
         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 51 ;
       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 "49"^^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/IMMZD2DTPolioEncounterElements" ;
         fhir:link <http://smart.who.int/immunizations/Library/IMMZD2DTPolioEncounterElements>
       ]
     ], [
       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 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 5 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Library PolioElements" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/Library/IMMZD2DTPolioElements" ;
         fhir:link <http://smart.who.int/immunizations/Library/IMMZD2DTPolioElements>
       ]
     ], [
       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 "Code system IMMZD" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/CodeSystem/IMMZ.D" ;
         fhir:link <http://smart.who.int/immunizations/CodeSystem/IMMZ.D>
       ]
     ], [
       fhir:index 11 ;
       fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ;
       fhir:RelatedArtifact.display [ fhir:value "Value set Poliovirus-containing vaccines" ] ;
       fhir:RelatedArtifact.resource [
         fhir:value "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE14" ;
         fhir:link <http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE14>
       ]
     ] ;
     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 "bOPV dose 2" ] ;
       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 2 ;
       fhir:ParameterDefinition.name [ fhir:value "bOPV dose 3 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 3 ;
       fhir:ParameterDefinition.name [ fhir:value "bOPV dose 3" ] ;
       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 4 ;
       fhir:ParameterDefinition.name [ fhir:value "IPV dose 1 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 "IPV dose 2 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 "bOPV dose 1" ] ;
       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 "IPV dose 2" ] ;
       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 8 ;
       fhir:ParameterDefinition.name [ fhir:value "IPV dose 1" ] ;
       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 "bOPV dose 1 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 10 ;
       fhir:ParameterDefinition.name [ fhir:value "bOPV dose 2 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 "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 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: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 "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 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: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/IMMZD18SPolioBOPVPlusIPV"] ;
  fhir:PlanDefinition.version [ fhir:value "0.2.0"] ;
  fhir:PlanDefinition.name [ fhir:value "IMMZD18SPolioBOPVPlusIPV"] ;
  fhir:PlanDefinition.title [ fhir:value "IMMZ.D18.S.Polio.bOPV plus IPV 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-11-19T08:10:32+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.Polio.bOPV plus IPV schedule\nBivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV) schedule"] ;
  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/IMMZD18SPolioBOPVPlusIPVLogic" ;
     fhir:index 0 ;
     fhir:link <http://smart.who.int/immunizations/Library/IMMZD18SPolioBOPVPlusIPVLogic>
  ] ;
  fhir:PlanDefinition.action [
     fhir:index 0 ;
     fhir:PlanDefinition.action.title [ fhir:value "bOPV dose 1" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of bOPV dose 1\nTrigger event: Child's birth\nTrigger pseudo: \nTrigger date: \"Date of birth\"\nCreate condition: The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval 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 "bOPV dose 1" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "bOPV dose 1" ]
       ]
     ] ;
     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 "bOPV dose 1 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 "IPV dose 1" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of IPV dose 1\nTrigger event: Child's birth\nTrigger pseudo: \nTrigger date: \"Date of birth\"\nCreate condition: The first IPV dose should be administered from a minimum of 14 weeks of age." ] ;
     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 "IPV dose 1" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "IPV dose 1" ]
       ]
     ] ;
     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 "IPV dose 1 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 "bOPV dose 2" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of bOPV dose 2\nTrigger event: First bOPV dose from the primary series was administered\nTrigger pseudo: Count of vaccines administered (where \"Type of dose\" = \"Primary series\" and \"Type of poliovirus dose\" = \"bOPV\") = 1\nTrigger date: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"bOPV\")\nCreate condition: The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval 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 "bOPV dose 2" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "bOPV dose 2" ]
       ]
     ] ;
     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 "bOPV dose 2 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 "IPV dose 2" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of IPV dose 2\nTrigger event: First IPV dose from the primary series was administered\nTrigger pseudo: Count of vaccines administered (where \"Type of poliovirus dose\" = \"IPV\") = 1\nTrigger date: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"IPV\")\nCreate condition: The first IPV dose should be administered from a minimum of 14 weeks of age (with the third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] or pentavalent vaccine [penta3]), with the second IPV dose being given at least 4 months later (possibly coinciding with other vaccines administered at 9 months of age)." ] ;
     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 "IPV dose 2" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "IPV dose 2" ]
       ]
     ] ;
     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 "IPV dose 2 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 "bOPV dose 3" ] ;
     fhir:PlanDefinition.action.description [ fhir:value "Provision of bOPV dose 3\nTrigger event: Second bOPV dose from the primary series was administered\nTrigger pseudo: Count of vaccines administered (where \"Type of dose\" = \"Primary series\" and \"Type of poliovirus dose\" = \"bOPV\") = 2\nTrigger date: Latest \"Date and time of vaccination\" (where \"Type of poliovirus dose\" = \"bOPV\")\nCreate condition: The preferred schedule is to administer the 3 doses of bOPV starting from the minimum age of 6 weeks, with at least a 4 week-interval 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 "bOPV dose 3" ] ;
         fhir:Expression.language [ fhir:value "text/cql-identifier" ] ;
         fhir:Expression.expression [ fhir:value "bOPV dose 3" ]
       ]
     ] ;
     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 "bOPV dose 3 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://smart.who.int/immunizations/PlanDefinition/IMMZD18SPolioBOPVPlusIPV.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

