{
  "resourceType": "Library",
  "id": "IMMZD2DTPolioElements",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary",
      "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary",
      "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library",
      "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n    <table class=\"grid dict\">\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">IMMZD2DTPolioElements</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">IMMZD2DTPolioElements</td>\n        </tr>\n        \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        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"Library-IMMZD2DTPolioElements.html\">IMMZD2DTPolioElements</a></td>\n        </tr>\n        \n\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.1.0/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a></span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>logic-library</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2026-03-25 23:30:34+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>This library defines context-independent elements for Polio used throughout the Immunization CPG</p>\n</div></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\n        \n        <tr>\n            <th scope=\"row\"><b>Related Artifacts: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                \n                \n                <p><b>Dependencies</b></p>\n                <ul>\n                  \n                    <li><a href=\"Library-WHOConcepts.html\">WHOConcepts</a></li>\n                  \n                    <li><a href=\"Library-WHOCommon.html\">WHOCommon</a></li>\n                  \n                    <li><a href=\"Library-WHOElements.html\">WHOElements</a></li>\n                  \n                    <li><a href=\"Library-IMMZCommon.html\">IMMZCommon</a></li>\n                  \n                    <li><a href=\"Library-IMMZConcepts.html\">IMMZConcepts</a></li>\n                  \n                    <li><a href=\"Library-IMMZElements.html\">IMMZElements</a></li>\n                  \n                </ul>\n                \n                \n                \n                \n                \n            </td>\n        </tr>\n        \n\n        \n        <tr>\n          <th scope=\"row\"><b>Parameters: </b></th>\n          <td style=\"padding-left: 4px;\">\n            <table class=\"grid-dict\">\n              <tr><th><b>Name</b></th><th><b>Type</b></th><th><b>Min</b></th><th><b>Max</b></th><th><b>In/Out</b></th></tr>\n              \n                <tr><th>Patient</th><th>Patient</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Polio Doses Administered to Patient</th><th>Immunization</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Polio Primary Series Doses Administered to Patient</th><th>Immunization</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Number of Polio Primary Series Doses Administered</th><th>integer</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Polio Dose 0 Doses Administered to Patient</th><th>Immunization</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Number of Polio Dose 0 Doses Administered</th><th>integer</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>bOPV birth dose (a zero dose) was not administered</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is less than 1 week</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is more than or equal to 1 week</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>bOPV birth dose (a zero dose) was administered</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is less than 6 weeks</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>No poliovirus primary series doses were administered</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is between 6 weeks and 3 months</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is more than 3 months</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>One poliovirus primary series dose was administered</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is between 6 weeks and 14 weeks</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>bOPV Doses Administered to Patient</th><th>Immunization</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Date of Latest bOPV Dose</th><th>date</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The latest bOPV dose was administered less than 4 weeks ago</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The latest bOPV dose was administered more than 4 weeks ago</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Polio bOPV Primary Series Doses Administered to Patient</th><th>Immunization</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Number of Polio bOPV Primary Series Doses Administered</th><th>integer</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The poliovirus dose administered is bOPV</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is more than or equal to 14 weeks</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The poliovirus dose administered is IPV</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>IPV Doses Administered to Patient</th><th>Immunization</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Date of Latest IPV Dose</th><th>date</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The latest IPV dose was administered less than 4 months ago</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The latest IPV dose was administered more than 4 months ago</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Two poliovirus primary series doses were administered</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The two doses administered are bOPV</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>From the two doses administered one is bOPV and one is IPV</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The two doses administered are IPV</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Three poliovirus primary series doses were administered</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The three doses administered are bOPV</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is less than 14 weeks</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>From the three doses administered, one is IPV and two are bOPV</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>From the three doses administered, one is bOPV and two are IPV</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Four poliovirus primary series doses were administered</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>From the four doses administered, one is IPV and three are bOPV</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>From the four doses administered, two are IPV and two are bOPV</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Five poliovirus primary series doses were administered</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is less than 8 weeks</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is more than or equal to 8 weeks</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Date of Latest Polio Dose</th><th>date</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The latest poliovirus dose was administered less than 4 weeks ago</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The latest poliovirus dose was administered more than 4 weeks ago</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age is more than or equal to 6 weeks</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Date of First Primary Series Polio Dose</th><th>date</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age was more than 6 weeks when the primary series was started</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client's age was 6 weeks when the primary series was started</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The latest poliovirus dose was administered less than 6 months ago</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The latest poliovirus dose was administered more than 6 months ago</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Polio Booster Series Doses Administered to Patient</th><th>Immunization</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Number of Polio Booster Series Doses Administered</th><th>integer</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>No polio booster dose was administered</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Polio booster dose was administered</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Polio IPV Primary Series Doses Administered to Patient</th><th>Immunization</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Number of Polio IPV Primary Series Doses Administered</th><th>integer</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n            </table>\n          </td>\n        </tr>\n        \n\n        \n\n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n              <tr><td><pre><code class=\"language-cql\">\n/*\n  * Library: IMMZD2DTPolioElements\n  */\nlibrary IMMZD2DTPolioElements\n\nusing FHIR version '4.0.1'\ninclude FHIRHelpers version '4.0.1'\n\ninclude WHOConcepts\ninclude WHOCommon called WC\ninclude WHOElements called WE\n\ninclude IMMZCommon called Common\ninclude IMMZConcepts called Concepts\ninclude IMMZElements called Elements\n\n\ncontext Patient\n\n/*\n@internal: Polio containing Doses Administered to Patient\n*/\ndefine &quot;Polio Doses Administered to Patient&quot;:\n  Elements.&quot;Doses Administered to Patient&quot; I\n  where\n    I.vaccineCode in Concepts.&quot;Poliovirus-containing vaccines&quot;\n\n/*\n@internal: Polio containing Doses Administered to Patient that are in the Primary series\n*/\ndefine &quot;Polio Primary Series Doses Administered to Patient&quot;:\n  &quot;Polio Doses Administered to Patient&quot;.seriesPrimary()\n\n/*\n@internal: Number of Polio Primary Series doses\n*/\ndefine &quot;Number of Polio Primary Series Doses Administered&quot;:\n  Count(&quot;Polio Primary Series Doses Administered to Patient&quot;)\n\n/*\n@input: bOPV birth dose (a zero dose) was not administered\n@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Dose 0&quot; AND &quot;Birth dose&quot; = TRUE) = 0\n@code: bOPV birth dose (a zero dose) was not administered-146\n@decision: IMMZ.D2.DT.Polio.Birth dose: Birth dose administration as part of &quot;bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (in countries that are poliomyelitis (polio)-endemic countries or at high risk of importation and subsequent spread of polio that follow the combined bOPV–IPV schedule)\n*/\ndefine &quot;bOPV birth dose (a zero dose) was not administered&quot;:\n  &quot;Number of Polio Dose 0 Doses Administered&quot; = 0\n\n/*\n@input: Client's age is less than 1 week\n@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 1 week\n@code: Client's age is less than 1 week-39\n@decision: IMMZ.D2.DT.Polio.Birth dose: Birth dose administration as part of &quot;bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (in countries that are poliomyelitis (polio)-endemic countries or at high risk of importation and subsequent spread of polio that follow the combined bOPV–IPV schedule)\n*/\ndefine &quot;Client's age is less than 1 week&quot;:\n  Elements.&quot;Current Patient Age In Weeks&quot; &lt; 1\n\n/*\n@input: Client's age is more than or equal to 1 week\n@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 1 week\n@code: Client's age is more than or equal to 1 week-39\n@decision: IMMZ.D2.DT.Polio.Birth dose: Birth dose administration as part of &quot;bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (in countries that are poliomyelitis (polio)-endemic countries or at high risk of importation and subsequent spread of polio that follow the combined bOPV–IPV schedule)\n*/\ndefine &quot;Client's age is more than or equal to 1 week&quot;:\n  Elements.&quot;Current Patient Age In Weeks&quot; &gt;= 1\n\n/*\n@input: bOPV birth dose (a zero dose) was administered\n@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Dose 0&quot; AND &quot;Birth dose&quot; = TRUE) = 1\n@code: bOPV birth dose (a zero dose) was administered-146\n@decision: IMMZ.D2.DT.Polio.Birth dose: Birth dose administration as part of &quot;bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (in countries that are poliomyelitis (polio)-endemic countries or at high risk of importation and subsequent spread of polio that follow the combined bOPV–IPV schedule)\n*/\ndefine &quot;bOPV birth dose (a zero dose) was administered&quot;:\n  &quot;Number of Polio Dose 0 Doses Administered&quot; = 1\n\n/*\n@input: Client's age is less than 6 weeks\n@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 6 weeks\n@code: Client's age is less than 6 weeks-40\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;Client's age is less than 6 weeks&quot;:\n  Elements.&quot;Current Patient Age In Weeks&quot; &lt; 6\n\n/*\n@input: No poliovirus primary series doses were administered\n@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0\n@code: No poliovirus primary series doses were administered-130\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n@decision: IMMZ.D2.DT.Polio.Sequential IPV–bOPV: Sequential &quot;Bivalent oral polio vaccine (bOPV)–inactivated polio vaccine (IPV)&quot; schedule (in countries with high vaccination coverage [e.g. 90–95%] and low importation risk [where neighbouring countries and/or countries that share substantial population movement have a similarly high coverage])\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;No poliovirus primary series doses were administered&quot;:\n  &quot;Number of Polio Primary Series Doses Administered&quot; = 0\n\n/*\n@input: Client's age is between 6 weeks and 3 months\n@pseudocode: 6 weeks ≤ Today's date − &quot;Date of birth&quot; ≤ 3 months\n@code: Client's age is between 6 weeks and 3 months-51\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;Client's age is between 6 weeks and 3 months&quot;:\n  6 &lt;= Elements.&quot;Current Patient Age In Weeks&quot;\n  and Elements.&quot;Current Patient Age In Months&quot; &lt;= 3\n\n/*\n@input: Client's age is more than 3 months\n@pseudocode: Today's date − &quot;Date of birth&quot; &gt; 3 months\n@code: Client's age is more than 3 months-41\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;Client's age is more than 3 months&quot;:\n  Elements.&quot;Current Patient Age In Months&quot; &gt; 3\n\n/*\n@input: One poliovirus primary series dose was administered\n@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1\n@code: One poliovirus primary series dose was administered-130\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n@decision: IMMZ.D2.DT.Polio.Sequential IPV–bOPV: Sequential &quot;Bivalent oral polio vaccine (bOPV)–inactivated polio vaccine (IPV)&quot; schedule (in countries with high vaccination coverage [e.g. 90–95%] and low importation risk [where neighbouring countries and/or countries that share substantial population movement have a similarly high coverage])\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;One poliovirus primary series dose was administered&quot;:\n  &quot;Number of Polio Primary Series Doses Administered&quot; = 1\n\n/*\n@input: Client's age is between 6 weeks and 14 weeks\n@pseudocode: 6 weeks ≤ Today's date − &quot;Date of birth&quot; &lt; 14 weeks\n@code: Client's age is between 6 weeks and 14 weeks-51\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;Client's age is between 6 weeks and 14 weeks&quot;:\n  6 &lt;= Elements.&quot;Current Patient Age In Weeks&quot;\n  and Elements.&quot;Current Patient Age In Weeks&quot; &lt; 14\n\n/*\n@input: The latest bOPV dose was administered less than 4 weeks ago\n@pseudocode: Today's date − Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot;) &lt; 4 weeks\n@code: The latest bOPV dose was administered less than 4 weeks ago-159\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;The latest bOPV dose was administered less than 4 weeks ago&quot;:\n  &quot;Date of Latest bOPV Dose&quot; is not null\n    and duration in weeks between &quot;Date of Latest bOPV Dose&quot; and Now() &lt; 4\n\n/*\n@input: The latest bOPV dose was administered more than 4 weeks ago\n@pseudocode: Today's date − Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot;) ≥ 4 weeks\n@code: The latest bOPV dose was administered more than 4 weeks ago-159\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;The latest bOPV dose was administered more than 4 weeks ago&quot;:\n  not(&quot;The latest bOPV dose was administered less than 4 weeks ago&quot;)\n\n/*\n@input: The poliovirus dose administered is bOPV\n@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1\n@code: The poliovirus dose administered is bOPV-115\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;The poliovirus dose administered is bOPV&quot;:\n  &quot;Number of Polio bOPV Primary Series Doses Administered&quot; = 1\n\n/*\n@input: Client's age is more than or equal to 14 weeks\n@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 14 weeks\n@code: Client's age is more than or equal to 14 weeks-41\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;Client's age is more than or equal to 14 weeks&quot;:\n  Elements.&quot;Current Patient Age In Weeks&quot; &gt;= 14\n\n/*\n@input: The poliovirus dose administered is IPV\n@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0\n@code: The poliovirus dose administered is IPV-115\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;The poliovirus dose administered is IPV&quot;:\n  &quot;Number of Polio bOPV Primary Series Doses Administered&quot; = 0\n\n/*\n@input: The latest IPV dose was administered less than 4 months ago\n@pseudocode: Today's date − Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) &lt; 4 months\n@code: The latest IPV dose was administered less than 4 months ago-159\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;The latest IPV dose was administered less than 4 months ago&quot;:\n  &quot;Date of Latest IPV Dose&quot; is not null\n    and duration in months between &quot;Date of Latest IPV Dose&quot; and Now() &lt; 4\n\n/*\n@input: The latest IPV dose was administered more than 4 months ago\n@pseudocode: Today's date − Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) ≥ 4 months\n@code: The latest IPV dose was administered more than 4 months ago-159\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;The latest IPV dose was administered more than 4 months ago&quot;:\n  not(&quot;The latest IPV dose was administered less than 4 months ago&quot;)\n\n/*\n@input: Two poliovirus primary series doses were administered\n@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2\n@code: Two poliovirus primary series doses were administered-130\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n@decision: IMMZ.D2.DT.Polio.Sequential IPV–bOPV: Sequential &quot;Bivalent oral polio vaccine (bOPV)–inactivated polio vaccine (IPV)&quot; schedule (in countries with high vaccination coverage [e.g. 90–95%] and low importation risk [where neighbouring countries and/or countries that share substantial population movement have a similarly high coverage])\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;Two poliovirus primary series doses were administered&quot;:\n  &quot;Number of Polio Primary Series Doses Administered&quot; = 2\n\n/*\n@input: The two doses administered are bOPV\n@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2\n@code: The two doses administered are bOPV-115\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;The two doses administered are bOPV&quot;:\n  &quot;Number of Polio bOPV Primary Series Doses Administered&quot; = 2\n\n/*\n@input: From the two doses administered one is bOPV and one is IPV\n@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1\n@code: From the two doses administered one is bOPV and one is IPV-115\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;From the two doses administered one is bOPV and one is IPV&quot;:\n  &quot;Number of Polio bOPV Primary Series Doses Administered&quot; = 1\n\n/*\n@input: The two doses administered are IPV\n@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0\n@code: The two doses administered are IPV-115\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;The two doses administered are IPV&quot;:\n  &quot;Number of Polio bOPV Primary Series Doses Administered&quot; = 0\n\n/*\n@input: Three poliovirus primary series doses were administered\n@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 3\n@code: Three poliovirus primary series doses were administered-130\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n@decision: IMMZ.D2.DT.Polio.Sequential IPV–bOPV: Sequential &quot;Bivalent oral polio vaccine (bOPV)–inactivated polio vaccine (IPV)&quot; schedule (in countries with high vaccination coverage [e.g. 90–95%] and low importation risk [where neighbouring countries and/or countries that share substantial population movement have a similarly high coverage])\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;Three poliovirus primary series doses were administered&quot;:\n  &quot;Number of Polio Primary Series Doses Administered&quot; = 3\n\n/*\n@input: The three doses administered are bOPV\n@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 3\n@code: The three doses administered are bOPV-115\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;The three doses administered are bOPV&quot;:\n  &quot;Number of Polio bOPV Primary Series Doses Administered&quot; = 3\n\n/*\n@input: Client's age is less than 14 weeks\n@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 14 weeks\n@code: Client's age is less than 14 weeks-41\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;Client's age is less than 14 weeks&quot;:\n  Elements.&quot;Current Patient Age In Weeks&quot; &lt; 14\n\n/*\n@input: From the three doses administered, one is IPV and two are bOPV\n@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2\n@code: From the three doses administered, one is IPV and two are bOPV-115\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;From the three doses administered, one is IPV and two are bOPV&quot;:\n  &quot;Number of Polio bOPV Primary Series Doses Administered&quot; = 2\n\n/*\n@input: From the three doses administered, one is bOPV and two are IPV\n@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1\n@code: From the three doses administered, one is bOPV and two are IPV-115\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;From the three doses administered, one is bOPV and two are IPV&quot;:\n  &quot;Number of Polio bOPV Primary Series Doses Administered&quot; = 1\n\n/*\n@input: Four poliovirus primary series doses were administered\n@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 4\n@code: Four poliovirus primary series doses were administered-130\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n@decision: IMMZ.D2.DT.Polio.Sequential IPV–bOPV: Sequential &quot;Bivalent oral polio vaccine (bOPV)–inactivated polio vaccine (IPV)&quot; schedule (in countries with high vaccination coverage [e.g. 90–95%] and low importation risk [where neighbouring countries and/or countries that share substantial population movement have a similarly high coverage])\n*/\ndefine &quot;Four poliovirus primary series doses were administered&quot;:\n  &quot;Number of Polio Primary Series Doses Administered&quot; = 4\n\n/*\n@input: From the four doses administered, one is IPV and three are bOPV\n@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 3\n@code: From the four doses administered, one is IPV and three are bOPV-115\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;From the four doses administered, one is IPV and three are bOPV&quot;:\n  &quot;Number of Polio bOPV Primary Series Doses Administered&quot; = 3\n\n/*\n@input: From the four doses administered, two are IPV and two are bOPV\n@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2\n@code: From the four doses administered, two are IPV and two are bOPV-115\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;From the four doses administered, two are IPV and two are bOPV&quot;:\n  &quot;Number of Polio bOPV Primary Series Doses Administered&quot; = 2\n\n/*\n@input: Five poliovirus primary series doses were administered\n@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 5\n@code: Five poliovirus primary series doses were administered-130\n@decision: IMMZ.D2.DT.Polio.bOPV plus IPV: &quot;Bivalent oral polio vaccine (bOPV) plus inactivated polio vaccine (IPV)&quot; schedule (applicable for all countries)\n*/\ndefine &quot;Five poliovirus primary series doses were administered&quot;:\n  &quot;Number of Polio Primary Series Doses Administered&quot; = 5\n\n/*\n@input: Client's age is less than 8 weeks\n@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 8 weeks\n@code: Client's age is less than 8 weeks-40\n@decision: IMMZ.D2.DT.Polio.Sequential IPV–bOPV: Sequential &quot;Bivalent oral polio vaccine (bOPV)–inactivated polio vaccine (IPV)&quot; schedule (in countries with high vaccination coverage [e.g. 90–95%] and low importation risk [where neighbouring countries and/or countries that share substantial population movement have a similarly high coverage])\n*/\ndefine &quot;Client's age is less than 8 weeks&quot;:\n  Elements.&quot;Current Patient Age In Weeks&quot; &lt; 8\n\n/*\n@input: Client's age is more than or equal to 8 weeks\n@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 8 weeks\n@code: Client's age is more than or equal to 8 weeks-40\n@decision: IMMZ.D2.DT.Polio.Sequential IPV–bOPV: Sequential &quot;Bivalent oral polio vaccine (bOPV)–inactivated polio vaccine (IPV)&quot; schedule (in countries with high vaccination coverage [e.g. 90–95%] and low importation risk [where neighbouring countries and/or countries that share substantial population movement have a similarly high coverage])\n*/\ndefine &quot;Client's age is more than or equal to 8 weeks&quot;:\n  Elements.&quot;Current Patient Age In Weeks&quot; &gt;= 8\n\n/*\n@input: The latest poliovirus dose was administered less than 4 weeks ago\n@pseudocode: Today's date − Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot;) &lt; 4 weeks\n@code: The latest poliovirus dose was administered less than 4 weeks ago-120\n@decision: IMMZ.D2.DT.Polio.Sequential IPV–bOPV: Sequential &quot;Bivalent oral polio vaccine (bOPV)–inactivated polio vaccine (IPV)&quot; schedule (in countries with high vaccination coverage [e.g. 90–95%] and low importation risk [where neighbouring countries and/or countries that share substantial population movement have a similarly high coverage])\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;The latest poliovirus dose was administered less than 4 weeks ago&quot;:\n  &quot;Date of Latest Polio Dose&quot; is not null\n    and duration in weeks between &quot;Date of Latest Polio Dose&quot; and Now() &lt; 4\n\n/*\n@input: The latest poliovirus dose was administered more than 4 weeks ago\n@pseudocode: Today's date − Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot;) ≥ 4 weeks\n@code: The latest poliovirus dose was administered more than 4 weeks ago-120\n@decision: IMMZ.D2.DT.Polio.Sequential IPV–bOPV: Sequential &quot;Bivalent oral polio vaccine (bOPV)–inactivated polio vaccine (IPV)&quot; schedule (in countries with high vaccination coverage [e.g. 90–95%] and low importation risk [where neighbouring countries and/or countries that share substantial population movement have a similarly high coverage])\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;The latest poliovirus dose was administered more than 4 weeks ago&quot;:\n  not(&quot;The latest poliovirus dose was administered less than 4 weeks ago&quot;)\n\n/*\n@input: Client's age is more than or equal to 6 weeks\n@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 6 weeks\n@code: Client's age is more than or equal to 6 weeks-40\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;Client's age is more than or equal to 6 weeks&quot;:\n  Elements.&quot;Current Patient Age In Weeks&quot; &gt;= 6\n\n/*\n@input: Client's age was more than 6 weeks when the primary series was started\n@pseudocode: &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; AND &quot;Dose number&quot; = 1) − &quot;Date of birth&quot; &gt; 6 weeks\n@code: Client's age was more than 6 weeks when the primary series was started-138\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;Client's age was more than 6 weeks when the primary series was started&quot;:\n  AgeInWeeksAt(&quot;Date of First Primary Series Polio Dose&quot;) &gt; 6\n\n/*\n@input: Client's age was 6 weeks when the primary series was started\n@pseudocode: &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; AND &quot;Dose number&quot; = 1) − &quot;Date of birth&quot; = 6 weeks\n@code: Client's age was 6 weeks when the primary series was started-138\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;Client's age was 6 weeks when the primary series was started&quot;:\n  AgeInWeeksAt(&quot;Date of First Primary Series Polio Dose&quot;) = 6\n\n/*\n@input: The latest poliovirus dose was administered less than 6 months ago\n@pseudocode: Today's date − Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot;) &lt; 6 months\n@code: The latest poliovirus dose was administered less than 6 months ago-121\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;The latest poliovirus dose was administered less than 6 months ago&quot;:\n  &quot;Date of Latest Polio Dose&quot; is not null\n    and duration in months between &quot;Date of Latest Polio Dose&quot; and Now() &lt; 6\n\n/*\n@input: The latest poliovirus dose was administered more than 6 months ago\n@pseudocode: Today's date − Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot;) ≥ 6 months\n@code: The latest poliovirus dose was administered more than 6 months ago-121\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;The latest poliovirus dose was administered more than 6 months ago&quot;:\n  not(&quot;The latest poliovirus dose was administered less than 6 months ago&quot;)\n\n/*\n@input: No polio booster dose was administered\n@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0\n@code: No polio booster dose was administered-128\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;No polio booster dose was administered&quot;:\n  &quot;Number of Polio Booster Series Doses Administered&quot; = 0\n\n/*\n@input: Polio booster dose was administered\n@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 1\n@code: Polio booster dose was administered-128\n@decision: IMMZ.D2.DT.Polio.IPV-only: Inactivated polio vaccine (IPV)-only (in countries, in polio-free regions, with a very low risk of importation and sustained high routine immunization coverage (third dose of the diphtheria–tetanus–pertussis vaccine [DTP3] &gt; 90%)\n*/\ndefine &quot;Polio booster dose was administered&quot;:\n  &quot;Number of Polio Booster Series Doses Administered&quot; = 1\n\n/*\n@internal: bOPV Doses Administered to Patient\n*/\ndefine &quot;bOPV Doses Administered to Patient&quot;:\n  &quot;Polio Doses Administered to Patient&quot; I\n  where I.typeOfDose() ~ Concepts.&quot;bOPV&quot;\n\n/*\n@internal: IPV Doses Administered to Patient\n*/\ndefine &quot;IPV Doses Administered to Patient&quot;:\n  &quot;Polio Doses Administered to Patient&quot; I\n  where I.typeOfDose() ~ Concepts.&quot;IPV&quot;\n\n/*\n@internal: Date of Latest Polio Dose\n*/\ndefine &quot;Date of Latest Polio Dose&quot;:\n  date from start of &quot;Polio Doses Administered to Patient&quot;.mostRecent().occurrence.toInterval()\n\n/*\n@internal: Date of Latest bOPV Dose\n*/\ndefine &quot;Date of Latest bOPV Dose&quot;:\n  date from start of &quot;bOPV Doses Administered to Patient&quot;.mostRecent().occurrence.toInterval()\n\n/*\n@internal: Date of Latest IPV Dose\n*/\ndefine &quot;Date of Latest IPV Dose&quot;:\n  date from start of &quot;IPV Doses Administered to Patient&quot;.mostRecent().occurrence.toInterval()\n\n/*\n@internal: Polio Dose 0 Doses Administered to Patient\n*/\ndefine &quot;Polio Dose 0 Doses Administered to Patient&quot;:\n  &quot;Polio Doses Administered to Patient&quot;.seriesDose0()\n\n/*\n@internal: Number of Polio Dose 0 Doses Administered\n*/\ndefine &quot;Number of Polio Dose 0 Doses Administered&quot;:\n  Count(&quot;Polio Dose 0 Doses Administered to Patient&quot;)\n\n/*\n@internal: Date of First Primary Series Polio Dose\n*/\ndefine &quot;Date of First Primary Series Polio Dose&quot;:\n  date from start of &quot;Polio Primary Series Doses Administered to Patient&quot;.earliest().occurrence.toInterval()\n\n/*\n@internal: Polio bOPV Primary Series Doses Administered to Patient\n*/\ndefine &quot;Polio bOPV Primary Series Doses Administered to Patient&quot;:\n  &quot;Polio Primary Series Doses Administered to Patient&quot; I\n  where I.typeOfDose() ~ Concepts.&quot;bOPV&quot;\n\n/*\n@internal: Polio IPV Primary Series Doses Administered to Patient\n*/\ndefine &quot;Polio IPV Primary Series Doses Administered to Patient&quot;:\n  &quot;Polio Primary Series Doses Administered to Patient&quot; I\n  where I.typeOfDose() ~ Concepts.&quot;IPV&quot;\n\n/*\n@internal: Number of Polio bOPV Primary Series Doses Administered\n*/\ndefine &quot;Number of Polio bOPV Primary Series Doses Administered&quot;:\n  Count(&quot;Polio bOPV Primary Series Doses Administered to Patient&quot;)\n\n/*\n@internal: Number of Polio IPV Primary Series Doses Administered\n*/\ndefine &quot;Number of Polio IPV Primary Series Doses Administered&quot;:\n  Count(&quot;Polio IPV Primary Series Doses Administered to Patient&quot;)\n\n/*\n@internal: Polio Booster Series Doses Administered to Patient\n*/\ndefine &quot;Polio Booster Series Doses Administered to Patient&quot;:\n  &quot;Polio Doses Administered to Patient&quot;.seriesBooster()\n\n/*\n@internal: Number of Polio Booster Series Doses Administered\n*/\ndefine &quot;Number of Polio Booster Series Doses Administered&quot;:\n  Count(&quot;Polio Booster Series Doses Administered to Patient&quot;)\n</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><b>Content: </b> application/elm+xml</th></tr>\n              <tr><td><pre><code>Encoded data (198872 characters)</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n    </table>\n</div>\n</div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
      "valueCode": "computable"
    }
  ],
  "url": "http://smart.who.int/immunizations/Library/IMMZD2DTPolioElements",
  "version": "0.2.0",
  "name": "IMMZD2DTPolioElements",
  "title": "IMMZD2DTPolioElements",
  "status": "draft",
  "experimental": false,
  "type": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/library-type",
        "code": "logic-library"
      }
    ]
  },
  "date": "2026-03-25T23:30:34+00:00",
  "publisher": "WHO",
  "contact": [
    {
      "name": "WHO",
      "telecom": [
        {
          "system": "url",
          "value": "http://who.int"
        }
      ]
    }
  ],
  "description": "This library defines context-independent elements for Polio used throughout the Immunization CPG",
  "relatedArtifact": [
    {
      "type": "depends-on",
      "display": "Library WHOConcepts",
      "resource": "http://smart.who.int/immunizations/Library/WHOConcepts"
    },
    {
      "type": "depends-on",
      "display": "Library WC",
      "resource": "http://smart.who.int/immunizations/Library/WHOCommon"
    },
    {
      "type": "depends-on",
      "display": "Library WE",
      "resource": "http://smart.who.int/immunizations/Library/WHOElements"
    },
    {
      "type": "depends-on",
      "display": "Library Common",
      "resource": "http://smart.who.int/immunizations/Library/IMMZCommon"
    },
    {
      "type": "depends-on",
      "display": "Library Concepts",
      "resource": "http://smart.who.int/immunizations/Library/IMMZConcepts"
    },
    {
      "type": "depends-on",
      "display": "Library Elements",
      "resource": "http://smart.who.int/immunizations/Library/IMMZElements"
    }
  ],
  "parameter": [
    {
      "name": "Patient",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Patient"
    },
    {
      "name": "Polio Doses Administered to Patient",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Polio Primary Series Doses Administered to Patient",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Number of Polio Primary Series Doses Administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "integer"
    },
    {
      "name": "Polio Dose 0 Doses Administered to Patient",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Number of Polio Dose 0 Doses Administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "integer"
    },
    {
      "name": "bOPV birth dose (a zero dose) was not administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is less than 1 week",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is more than or equal to 1 week",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "bOPV birth dose (a zero dose) was administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is less than 6 weeks",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "No poliovirus primary series doses were administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is between 6 weeks and 3 months",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is more than 3 months",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "One poliovirus primary series dose was administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is between 6 weeks and 14 weeks",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "bOPV Doses Administered to Patient",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Date of Latest bOPV Dose",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "date"
    },
    {
      "name": "The latest bOPV dose was administered less than 4 weeks ago",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The latest bOPV dose was administered more than 4 weeks ago",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Polio bOPV Primary Series Doses Administered to Patient",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Number of Polio bOPV Primary Series Doses Administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "integer"
    },
    {
      "name": "The poliovirus dose administered is bOPV",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is more than or equal to 14 weeks",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The poliovirus dose administered is IPV",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "IPV Doses Administered to Patient",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Date of Latest IPV Dose",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "date"
    },
    {
      "name": "The latest IPV dose was administered less than 4 months ago",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The latest IPV dose was administered more than 4 months ago",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Two poliovirus primary series doses were administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The two doses administered are bOPV",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "From the two doses administered one is bOPV and one is IPV",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The two doses administered are IPV",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Three poliovirus primary series doses were administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The three doses administered are bOPV",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is less than 14 weeks",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "From the three doses administered, one is IPV and two are bOPV",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "From the three doses administered, one is bOPV and two are IPV",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Four poliovirus primary series doses were administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "From the four doses administered, one is IPV and three are bOPV",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "From the four doses administered, two are IPV and two are bOPV",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Five poliovirus primary series doses were administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is less than 8 weeks",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is more than or equal to 8 weeks",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Date of Latest Polio Dose",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "date"
    },
    {
      "name": "The latest poliovirus dose was administered less than 4 weeks ago",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The latest poliovirus dose was administered more than 4 weeks ago",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age is more than or equal to 6 weeks",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Date of First Primary Series Polio Dose",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "date"
    },
    {
      "name": "Client's age was more than 6 weeks when the primary series was started",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Client's age was 6 weeks when the primary series was started",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The latest poliovirus dose was administered less than 6 months ago",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The latest poliovirus dose was administered more than 6 months ago",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Polio Booster Series Doses Administered to Patient",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Number of Polio Booster Series Doses Administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "integer"
    },
    {
      "name": "No polio booster dose was administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Polio booster dose was administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Polio IPV Primary Series Doses Administered to Patient",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Number of Polio IPV Primary Series Doses Administered",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "integer"
    }
  ],
  "content": [
    {
      "contentType": "text/cql",
      "url": "Library-IMMZD2DTPolioElements.cql"
    },
    {
      "contentType": "application/elm+xml",
      "url": "Library-IMMZD2DTPolioElements.elm.xml"
    }
  ]
}
