<?xml version="1.0" encoding="UTF-8"?>
<library xmlns="urn:hl7-org:elm:r1" xmlns:t="urn:hl7-org:elm-types:r1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:fhir="http://hl7.org/fhir" xmlns:qdm43="urn:healthit-gov:qdm:v4_3" xmlns:qdm53="urn:healthit-gov:qdm:v5_3" xmlns:a="urn:hl7-org:cql-annotations:r1" localId="0">
   <annotation translatorOptions="EnableAnnotations,EnableLocators,DisableListDemotion,DisableListPromotion" signatureLevel="Overloads" xsi:type="a:CqlToElmInfo"/>
   <annotation message="An operand identifier reference is hiding another identifier of the same name." errorType="semantic" errorSeverity="warning" xsi:type="a:CqlToElmError"/>
   <annotation message="An operand identifier reference is hiding another identifier of the same name." errorType="semantic" errorSeverity="warning" xsi:type="a:CqlToElmError"/>
   <annotation message="An operand identifier reference is hiding another identifier of the same name." errorType="semantic" errorSeverity="warning" xsi:type="a:CqlToElmError"/>
   <annotation xsi:type="a:Annotation">
      <a:s r="475">
         <a:s>/*
 * Library: IMMZD18SPolioSequentialIPVbOPVLogic (IMMZ.D18.S.Polio.Sequential IPV–bOPV schedule)
 * Schedule Table: Sequential bivalent oral polio vaccine (bOPV)–inactivated polio vaccine (IPV) schedule
 */
library IMMZD18SPolioSequentialIPVbOPVLogic</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD18SPolioSequentialIPVbOPVLogic" system="http://smart.who.int/immunizations"/>
   <schemaIdentifier id="urn:hl7-org:elm" version="r1"/>
   <usings>
      <def localId="1" localIdentifier="System" uri="urn:hl7-org:elm-types:r1" version="1.0.0"/>
      <def localId="206" locator="7:1-7:26" localIdentifier="FHIR" uri="http://hl7.org/fhir" version="4.0.1">
         <annotation xsi:type="a:Annotation">
            <a:s r="206">
               <a:s>using </a:s>
               <a:s>
                  <a:s>FHIR</a:s>
               </a:s>
               <a:s> version '4.0.1'</a:s>
            </a:s>
         </annotation>
      </def>
   </usings>
   <includes>
      <def localId="208" locator="8:1-8:35" localIdentifier="FHIRHelpers" path="http://hl7.org/fhir/FHIRHelpers" version="4.0.1">
         <annotation xsi:type="a:Annotation">
            <a:s r="208">
               <a:s>include </a:s>
               <a:s>
                  <a:s>FHIRHelpers</a:s>
               </a:s>
               <a:s> version '4.0.1'</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="210" locator="10:1-10:27" localIdentifier="WC" path="http://smart.who.int/immunizations/WHOCommon">
         <annotation xsi:type="a:Annotation">
            <a:s r="210">
               <a:s>include </a:s>
               <a:s>
                  <a:s>WHOCommon</a:s>
               </a:s>
               <a:s> called WC</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="212" locator="12:1-12:32" localIdentifier="Common" path="http://smart.who.int/immunizations/IMMZCommon">
         <annotation xsi:type="a:Annotation">
            <a:s r="212">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZCommon</a:s>
               </a:s>
               <a:s> called Common</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="214" locator="13:1-13:36" localIdentifier="Concepts" path="http://smart.who.int/immunizations/IMMZConcepts">
         <annotation xsi:type="a:Annotation">
            <a:s r="214">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZConcepts</a:s>
               </a:s>
               <a:s> called Concepts</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="216" locator="15:1-15:39" localIdentifier="IE" path="http://smart.who.int/immunizations/IMMZEncounterElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="216">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZEncounterElements</a:s>
               </a:s>
               <a:s> called IE</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="218" locator="16:1-16:55" localIdentifier="Encounter" path="http://smart.who.int/immunizations/IMMZD2DTPolioEncounterElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="218">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZD2DTPolioEncounterElements</a:s>
               </a:s>
               <a:s> called Encounter</a:s>
            </a:s>
         </annotation>
      </def>
   </includes>
   <parameters>
      <def localId="220" locator="18:1-18:36" name="Today" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="220">
               <a:s>parameter Today </a:s>
               <a:s r="224">
                  <a:s>Date</a:s>
               </a:s>
               <a:s> default </a:s>
               <a:s r="223">
                  <a:s>Today()</a:s>
               </a:s>
            </a:s>
         </annotation>
         <default localId="223" locator="18:30-18:36" xsi:type="Today"/>
         <parameterTypeSpecifier localId="224" locator="18:17-18:20" name="t:Date" xsi:type="NamedTypeSpecifier"/>
      </def>
   </parameters>
   <contexts>
      <def localId="229" locator="21:1-21:15" name="Patient"/>
   </contexts>
   <statements>
      <def localId="227" locator="21:1-21:15" name="Patient" context="Patient">
         <expression localId="228" xsi:type="SingletonFrom">
            <operand localId="226" locator="21:1-21:15" dataType="fhir:Patient" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/>
         </expression>
      </def>
      <def localId="236" locator="75:1-76:72" name="First IPV dose from the primary series was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="complete" value="First IPV dose from the primary series was administered"/>
            <a:t name="pseudocode" value="&quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) = 1"/>
            <a:s r="236">
               <a:s>/*
@complete: First IPV dose from the primary series was administered
@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) = 1
*/
define &quot;First IPV dose from the primary series was administered&quot;:
  </a:s>
               <a:s r="237">
                  <a:s r="239">
                     <a:s r="238">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="239">
                        <a:s>&quot;Number of Polio IPV Primary Series Doses Administered&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="240"> >= 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="237" locator="76:3-76:72" xsi:type="GreaterOrEqual">
            <signature localId="241" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="242" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="239" locator="76:3-76:67" name="Number of Polio IPV Primary Series Doses Administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="240" locator="76:72" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="232" locator="31:1-32:63" name="IPV dose 1" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="IPV dose 1"/>
            <a:t name="description" value="Provision of IPV dose 1"/>
            <a:t name="trigger" value="Child's birth"/>
            <a:t name="pseudo"/>
            <a:t name="triggerDate" value="&quot;Date of birth&quot;"/>
            <a:s r="232">
               <a:s>/*
@output: IPV dose 1
@description: Provision of IPV dose 1
@trigger: Child's birth
@pseudo: 
@triggerDate: &quot;Date of birth&quot;
*/
define &quot;IPV dose 1&quot;:
  </a:s>
               <a:s r="233">
                  <a:s>not </a:s>
                  <a:s r="243">
                     <a:s>&quot;First IPV dose from the primary series was administered&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="233" locator="32:3-32:63" xsi:type="Not">
            <operand localId="243" locator="32:7-32:63" name="First IPV dose from the primary series was administered" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="260" locator="50:1-52:11" name="IPV dose 1 Due Date" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="IPV dose 1 Due Date"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; + 8 weeks"/>
            <a:s r="260">
               <a:s>/*
@dynamicValue: IPV dose 1 Due Date
@pseudocode: &quot;Date of birth&quot; + 8 weeks
*/
define &quot;IPV dose 1 Due Date&quot;:
  </a:s>
               <a:s r="261">
                  <a:s>if </a:s>
                  <a:s r="262">
                     <a:s>&quot;IPV dose 1&quot;</a:s>
                  </a:s>
                  <a:s> then </a:s>
                  <a:s r="263">
                     <a:s r="265">
                        <a:s r="264">
                           <a:s>Patient</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="265">
                           <a:s>birthDate</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="266">
                        <a:s>8 weeks</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="270">
  else null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="261" locator="51:3-52:11" xsi:type="If">
            <condition localId="262" locator="51:6-51:17" name="IPV dose 1" xsi:type="ExpressionRef"/>
            <then localId="263" locator="51:24-51:50" xsi:type="Add">
               <signature localId="268" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <signature localId="269" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
               <operand localId="267" name="ToDate" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                  <operand localId="265" locator="51:24-51:40" path="birthDate" xsi:type="Property">
                     <source localId="264" locator="51:24-51:30" name="Patient" xsi:type="ExpressionRef"/>
                  </operand>
               </operand>
               <operand localId="266" locator="51:44-51:50" value="8" unit="weeks" xsi:type="Quantity"/>
            </then>
            <else localId="271" asType="t:Date" xsi:type="As">
               <operand localId="270" locator="52:8-52:11" xsi:type="Null"/>
            </else>
         </expression>
      </def>
      <def localId="246" locator="39:1-43:9" name="IPV dose 1 Create" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="IPV dose 1 Create"/>
            <a:t name="create" value="For sequential IPV– bOPV schedules, WHO recommends that the first dose of IPV be given starting from 8 weeks of age with an interval of 4–8 weeks before administration of the second IPV dose."/>
            <a:s r="246">
               <a:s>/*
@output: IPV dose 1 Create
@create: For sequential IPV– bOPV schedules, WHO recommends that the first dose of IPV be given starting from 8 weeks of age with an interval of 4–8 weeks before administration of the second IPV dose.
*/
define &quot;IPV dose 1 Create&quot;:
  </a:s>
               <a:s r="247">
                  <a:s>if </a:s>
                  <a:s r="248">
                     <a:s>&quot;IPV dose 1&quot;</a:s>
                  </a:s>
                  <a:s>
  then </a:s>
                  <a:s r="280">
                     <a:s r="257">
                        <a:s r="251">
                           <a:s>'For sequential IPV– bOPV schedules, WHO recommends that the first dose of IPV be given starting from 8 weeks of age with an interval of 4–8 weeks before administration of the second IPV dose.'</a:s>
                        </a:s>
                        <a:s> + </a:s>
                        <a:s r="253">
                           <a:s>'
Due Date: '</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="276">
                        <a:s>ToString(</a:s>
                        <a:s r="272">
                           <a:s>&quot;IPV dose 1 Due Date&quot;</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  else </a:s>
                  <a:s r="281">
                     <a:s>''</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="247" locator="40:3-43:9" xsi:type="If">
            <condition localId="248" locator="40:6-40:17" name="IPV dose 1" xsi:type="ExpressionRef"/>
            <then localId="280" locator="41:8-42:45" xsi:type="Concatenate">
               <operand localId="257" locator="41:8-41:216" xsi:type="Concatenate">
                  <operand localId="251" locator="41:8-41:200" valueType="t:String" value="For sequential IPV– bOPV schedules, WHO recommends that the first dose of IPV be given starting from 8 weeks of age with an interval of 4–8 weeks before administration of the second IPV dose." xsi:type="Literal"/>
                  <operand localId="253" locator="41:204-41:216" valueType="t:String" value="&#xa;Due Date: " xsi:type="Literal"/>
               </operand>
               <operand localId="276" locator="42:15-42:45" xsi:type="ToString">
                  <signature localId="277" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="272" locator="42:24-42:44" name="IPV dose 1 Due Date" xsi:type="ExpressionRef"/>
               </operand>
            </then>
            <else localId="281" locator="43:8-43:9" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="285" locator="59:1-60:6" name="IPV dose 1 Overdue" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="IPV dose 1 Overdue"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated."/>
            <a:s r="285">
               <a:s r="286">/*
@dynamicValue: IPV dose 1 Overdue
@pseudocode: To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated.
*/
define &quot;IPV dose 1 Overdue&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="286" locator="60:3-60:6" xsi:type="Null"/>
      </def>
      <def localId="289" locator="67:1-68:6" name="IPV dose 1 Expiration" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="IPV dose 1 Expiration"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated."/>
            <a:s r="289">
               <a:s r="290">/*
@dynamicValue: IPV dose 1 Expiration
@pseudocode: To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated.
*/
define &quot;IPV dose 1 Expiration&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="290" locator="68:3-68:6" xsi:type="Null"/>
      </def>
      <def localId="299" locator="131:1-132:72" name="Second IPV dose from the primary series was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="complete" value="Second IPV dose from the primary series was administered"/>
            <a:t name="pseudocode" value="&quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) = 2"/>
            <a:s r="299">
               <a:s>/*
@complete: Second IPV dose from the primary series was administered
@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) = 2
*/
define &quot;Second IPV dose from the primary series was administered&quot;:
  </a:s>
               <a:s r="300">
                  <a:s r="302">
                     <a:s r="301">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="302">
                        <a:s>&quot;Number of Polio IPV Primary Series Doses Administered&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="303"> >= 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="300" locator="132:3-132:72" xsi:type="GreaterOrEqual">
            <signature localId="304" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="305" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="302" locator="132:3-132:67" name="Number of Polio IPV Primary Series Doses Administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="303" locator="132:72" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="293" locator="87:1-88:126" name="IPV dose 2" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="IPV dose 2"/>
            <a:t name="description" value="Provision of IPV dose 2"/>
            <a:t name="trigger" value="First IPV dose from the primary series was administered"/>
            <a:t name="pseudo" value="&quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) = 1"/>
            <a:t name="triggerDate" value="&quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;)"/>
            <a:s r="293">
               <a:s>/*
@output: IPV dose 2
@description: Provision of IPV dose 2
@trigger: First IPV dose from the primary series was administered
@pseudo: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) = 1
@triggerDate: Latest &quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;)
*/
define &quot;IPV dose 2&quot;:
  </a:s>
               <a:s r="294">
                  <a:s r="295">
                     <a:s>&quot;First IPV dose from the primary series was administered&quot;</a:s>
                  </a:s>
                  <a:s> and </a:s>
                  <a:s r="296">
                     <a:s>not </a:s>
                     <a:s r="306">
                        <a:s>&quot;Second IPV dose from the primary series was administered&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="294" locator="88:3-88:126" xsi:type="And">
            <operand localId="295" locator="88:3-88:59" name="First IPV dose from the primary series was administered" xsi:type="ExpressionRef"/>
            <operand localId="296" locator="88:65-88:126" xsi:type="Not">
               <operand localId="306" locator="88:69-88:126" name="Second IPV dose from the primary series was administered" xsi:type="ExpressionRef"/>
            </operand>
         </expression>
      </def>
      <def localId="323" locator="106:1-108:11" name="IPV dose 2 Due Date" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="IPV dose 2 Due Date"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) + 4 weeks"/>
            <a:s r="323">
               <a:s>/*
@dynamicValue: IPV dose 2 Due Date
@pseudocode: Latest &quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) + 4 weeks
*/
define &quot;IPV dose 2 Due Date&quot;:
  </a:s>
               <a:s r="324">
                  <a:s>if </a:s>
                  <a:s r="325">
                     <a:s>&quot;IPV dose 2&quot;</a:s>
                  </a:s>
                  <a:s> then </a:s>
                  <a:s r="326">
                     <a:s r="328">
                        <a:s r="327">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="328">
                           <a:s>&quot;Date of Latest IPV Dose&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="329">
                        <a:s>4 weeks</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="332">
  else null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="324" locator="107:3-108:11" xsi:type="If">
            <condition localId="325" locator="107:6-107:17" name="IPV dose 2" xsi:type="ExpressionRef"/>
            <then localId="326" locator="107:24-107:68" xsi:type="Add">
               <signature localId="330" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <signature localId="331" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
               <operand localId="328" locator="107:24-107:58" name="Date of Latest IPV Dose" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="329" locator="107:62-107:68" value="4" unit="weeks" xsi:type="Quantity"/>
            </then>
            <else localId="333" asType="t:Date" xsi:type="As">
               <operand localId="332" locator="108:8-108:11" xsi:type="Null"/>
            </else>
         </expression>
      </def>
      <def localId="309" locator="95:1-99:9" name="IPV dose 2 Create" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="IPV dose 2 Create"/>
            <a:t name="create" value="For sequential IPV– bOPV schedules, WHO recommends that the first dose of IPV be given starting from 8 weeks of age with an interval of 4–8 weeks before administration of the second IPV dose."/>
            <a:s r="309">
               <a:s>/*
@output: IPV dose 2 Create
@create: For sequential IPV– bOPV schedules, WHO recommends that the first dose of IPV be given starting from 8 weeks of age with an interval of 4–8 weeks before administration of the second IPV dose.
*/
define &quot;IPV dose 2 Create&quot;:
  </a:s>
               <a:s r="310">
                  <a:s>if </a:s>
                  <a:s r="311">
                     <a:s>&quot;IPV dose 2&quot;</a:s>
                  </a:s>
                  <a:s>
  then </a:s>
                  <a:s r="342">
                     <a:s r="320">
                        <a:s r="314">
                           <a:s>'For sequential IPV– bOPV schedules, WHO recommends that the first dose of IPV be given starting from 8 weeks of age with an interval of 4–8 weeks before administration of the second IPV dose.'</a:s>
                        </a:s>
                        <a:s> + </a:s>
                        <a:s r="316">
                           <a:s>'
Due Date: '</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="338">
                        <a:s>ToString(</a:s>
                        <a:s r="334">
                           <a:s>&quot;IPV dose 2 Due Date&quot;</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  else </a:s>
                  <a:s r="343">
                     <a:s>''</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="310" locator="96:3-99:9" xsi:type="If">
            <condition localId="311" locator="96:6-96:17" name="IPV dose 2" xsi:type="ExpressionRef"/>
            <then localId="342" locator="97:8-98:45" xsi:type="Concatenate">
               <operand localId="320" locator="97:8-97:216" xsi:type="Concatenate">
                  <operand localId="314" locator="97:8-97:200" valueType="t:String" value="For sequential IPV– bOPV schedules, WHO recommends that the first dose of IPV be given starting from 8 weeks of age with an interval of 4–8 weeks before administration of the second IPV dose." xsi:type="Literal"/>
                  <operand localId="316" locator="97:204-97:216" valueType="t:String" value="&#xa;Due Date: " xsi:type="Literal"/>
               </operand>
               <operand localId="338" locator="98:15-98:45" xsi:type="ToString">
                  <signature localId="339" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="334" locator="98:24-98:44" name="IPV dose 2 Due Date" xsi:type="ExpressionRef"/>
               </operand>
            </then>
            <else localId="343" locator="99:8-99:9" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="347" locator="115:1-116:6" name="IPV dose 2 Overdue" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="IPV dose 2 Overdue"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated."/>
            <a:s r="347">
               <a:s r="348">/*
@dynamicValue: IPV dose 2 Overdue
@pseudocode: To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated.
*/
define &quot;IPV dose 2 Overdue&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="348" locator="116:3-116:6" xsi:type="Null"/>
      </def>
      <def localId="351" locator="123:1-124:6" name="IPV dose 2 Expiration" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="IPV dose 2 Expiration"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated."/>
            <a:s r="351">
               <a:s r="352">/*
@dynamicValue: IPV dose 2 Expiration
@pseudocode: To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated.
*/
define &quot;IPV dose 2 Expiration&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="352" locator="124:3-124:6" xsi:type="Null"/>
      </def>
      <def localId="361" locator="187:1-188:73" name="First bOPV dose from the primary series was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="complete" value="First bOPV dose from the primary series was administered"/>
            <a:t name="pseudocode" value="&quot;Type of poliovirus dose&quot; = &quot;bOPV&quot;) = 1"/>
            <a:s r="361">
               <a:s>/*
@complete: First bOPV dose from the primary series was administered
@pseudocode: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot;) = 1
*/
define &quot;First bOPV dose from the primary series was administered&quot;:
  </a:s>
               <a:s r="362">
                  <a:s r="364">
                     <a:s r="363">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="364">
                        <a:s>&quot;Number of Polio bOPV Primary Series Doses Administered&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="365"> >= 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="362" locator="188:3-188:73" xsi:type="GreaterOrEqual">
            <signature localId="366" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="367" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="364" locator="188:3-188:68" name="Number of Polio bOPV Primary Series Doses Administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="365" locator="188:73" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="355" locator="143:1-144:127" name="bOPV dose 1" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="bOPV dose 1"/>
            <a:t name="description" value="Provision of bOPV dose 1"/>
            <a:t name="trigger" value="Second IPV dose from the primary series was administered"/>
            <a:t name="pseudo" value="&quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) = 2"/>
            <a:t name="triggerDate" value="&quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;)"/>
            <a:s r="355">
               <a:s>/*
@output: bOPV dose 1
@description: Provision of bOPV dose 1
@trigger: Second IPV dose from the primary series was administered
@pseudo: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;) = 2
@triggerDate: Latest &quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;)
*/
define &quot;bOPV dose 1&quot;:
  </a:s>
               <a:s r="356">
                  <a:s r="357">
                     <a:s>&quot;Second IPV dose from the primary series was administered&quot;</a:s>
                  </a:s>
                  <a:s> and </a:s>
                  <a:s r="358">
                     <a:s>not </a:s>
                     <a:s r="368">
                        <a:s>&quot;First bOPV dose from the primary series was administered&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="356" locator="144:3-144:127" xsi:type="And">
            <operand localId="357" locator="144:3-144:60" name="Second IPV dose from the primary series was administered" xsi:type="ExpressionRef"/>
            <operand localId="358" locator="144:66-144:127" xsi:type="Not">
               <operand localId="368" locator="144:70-144:127" name="First bOPV dose from the primary series was administered" xsi:type="ExpressionRef"/>
            </operand>
         </expression>
      </def>
      <def localId="385" locator="162:1-164:11" name="bOPV dose 1 Due Date" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="bOPV dose 1 Due Date"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;)"/>
            <a:s r="385">
               <a:s>/*
@dynamicValue: bOPV dose 1 Due Date
@pseudocode: Latest &quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;IPV&quot;)
*/
define &quot;bOPV dose 1 Due Date&quot;:
  </a:s>
               <a:s r="386">
                  <a:s>if </a:s>
                  <a:s r="387">
                     <a:s>&quot;bOPV dose 1&quot;</a:s>
                  </a:s>
                  <a:s> then </a:s>
                  <a:s r="389">
                     <a:s r="388">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="389">
                        <a:s>&quot;Date of Latest IPV Dose&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="390">
  else null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="386" locator="163:3-164:11" xsi:type="If">
            <condition localId="387" locator="163:6-163:18" name="bOPV dose 1" xsi:type="ExpressionRef"/>
            <then localId="389" locator="163:25-163:59" name="Date of Latest IPV Dose" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <else localId="391" asType="t:Date" xsi:type="As">
               <operand localId="390" locator="164:8-164:11" xsi:type="Null"/>
            </else>
         </expression>
      </def>
      <def localId="371" locator="151:1-155:9" name="bOPV dose 1 Create" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="bOPV dose 1 Create"/>
            <a:t name="create" value="Where a sequential IPV–bOPV schedule is used, the initial administration of 2 doses of IPV should be followed by ≥2 doses of bOPV separated by 4–8 weeks depending on the risk of exposure to poliovirus in early childhood."/>
            <a:s r="371">
               <a:s>/*
@output: bOPV dose 1 Create
@create: Where a sequential IPV–bOPV schedule is used, the initial administration of 2 doses of IPV should be followed by ≥2 doses of bOPV separated by 4–8 weeks depending on the risk of exposure to poliovirus in early childhood.
*/
define &quot;bOPV dose 1 Create&quot;:
  </a:s>
               <a:s r="372">
                  <a:s>if </a:s>
                  <a:s r="373">
                     <a:s>&quot;bOPV dose 1&quot;</a:s>
                  </a:s>
                  <a:s>
  then </a:s>
                  <a:s r="400">
                     <a:s r="382">
                        <a:s r="376">
                           <a:s>'Where a sequential IPV–bOPV schedule is used, the initial administration of 2 doses of IPV should be followed by ≥2 doses of bOPV separated by 4–8 weeks depending on the risk of exposure to poliovirus in early childhood.'</a:s>
                        </a:s>
                        <a:s> + </a:s>
                        <a:s r="378">
                           <a:s>'
Due Date: '</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="396">
                        <a:s>ToString(</a:s>
                        <a:s r="392">
                           <a:s>&quot;bOPV dose 1 Due Date&quot;</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  else </a:s>
                  <a:s r="401">
                     <a:s>''</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="372" locator="152:3-155:9" xsi:type="If">
            <condition localId="373" locator="152:6-152:18" name="bOPV dose 1" xsi:type="ExpressionRef"/>
            <then localId="400" locator="153:8-154:46" xsi:type="Concatenate">
               <operand localId="382" locator="153:8-153:245" xsi:type="Concatenate">
                  <operand localId="376" locator="153:8-153:229" valueType="t:String" value="Where a sequential IPV–bOPV schedule is used, the initial administration of 2 doses of IPV should be followed by ≥2 doses of bOPV separated by 4–8 weeks depending on the risk of exposure to poliovirus in early childhood." xsi:type="Literal"/>
                  <operand localId="378" locator="153:233-153:245" valueType="t:String" value="&#xa;Due Date: " xsi:type="Literal"/>
               </operand>
               <operand localId="396" locator="154:15-154:46" xsi:type="ToString">
                  <signature localId="397" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="392" locator="154:24-154:45" name="bOPV dose 1 Due Date" xsi:type="ExpressionRef"/>
               </operand>
            </then>
            <else localId="401" locator="155:8-155:9" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="405" locator="171:1-172:6" name="bOPV dose 1 Overdue" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="bOPV dose 1 Overdue"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated."/>
            <a:s r="405">
               <a:s r="406">/*
@dynamicValue: bOPV dose 1 Overdue
@pseudocode: To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated.
*/
define &quot;bOPV dose 1 Overdue&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="406" locator="172:3-172:6" xsi:type="Null"/>
      </def>
      <def localId="409" locator="179:1-180:6" name="bOPV dose 1 Expiration" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="bOPV dose 1 Expiration"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated."/>
            <a:s r="409">
               <a:s r="410">/*
@dynamicValue: bOPV dose 1 Expiration
@pseudocode: To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated.
*/
define &quot;bOPV dose 1 Expiration&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="410" locator="180:3-180:6" xsi:type="Null"/>
      </def>
      <def localId="419" locator="243:1-244:73" name="Second bOPV dose from the primary series was administered. The primary series has been completed" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="complete" value="Second bOPV dose from the primary series was administered. The primary series has been completed"/>
            <a:t name="pseudocode" value="&quot;Completed the primary vaccination series&quot; = TRUE (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot;)"/>
            <a:s r="419">
               <a:s>/*
@complete: Second bOPV dose from the primary series was administered. The primary series has been completed
@pseudocode: &quot;Completed the primary vaccination series&quot; = TRUE (where &quot;Vaccine type&quot; = &quot;Poliovirus-containing vaccines&quot;)
*/
define &quot;Second bOPV dose from the primary series was administered. The primary series has been completed&quot;:
  </a:s>
               <a:s r="420">
                  <a:s r="422">
                     <a:s r="421">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="422">
                        <a:s>&quot;Number of Polio bOPV Primary Series Doses Administered&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="423"> >= 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="420" locator="244:3-244:73" xsi:type="GreaterOrEqual">
            <signature localId="424" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="425" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="422" locator="244:3-244:68" name="Number of Polio bOPV Primary Series Doses Administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="423" locator="244:73" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="413" locator="199:1-200:167" name="bOPV dose 2" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="bOPV dose 2"/>
            <a:t name="description" value="Provision of bOPV dose 2"/>
            <a:t name="trigger" value="First bOPV dose from the primary series was administered"/>
            <a:t name="pseudo" value="&quot;Type of poliovirus dose&quot; = &quot;bOPV&quot;) = 1"/>
            <a:t name="triggerDate" value="&quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot;)"/>
            <a:s r="413">
               <a:s>/*
@output: bOPV dose 2
@description: Provision of bOPV dose 2
@trigger: First bOPV dose from the primary series was administered
@pseudo: Count of vaccines administered (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot;) = 1
@triggerDate: Latest &quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot;)
*/
define &quot;bOPV dose 2&quot;:
  </a:s>
               <a:s r="414">
                  <a:s r="415">
                     <a:s>&quot;First bOPV dose from the primary series was administered&quot;</a:s>
                  </a:s>
                  <a:s> and </a:s>
                  <a:s r="416">
                     <a:s>not </a:s>
                     <a:s r="426">
                        <a:s>&quot;Second bOPV dose from the primary series was administered. The primary series has been completed&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="414" locator="200:3-200:167" xsi:type="And">
            <operand localId="415" locator="200:3-200:60" name="First bOPV dose from the primary series was administered" xsi:type="ExpressionRef"/>
            <operand localId="416" locator="200:66-200:167" xsi:type="Not">
               <operand localId="426" locator="200:70-200:167" name="Second bOPV dose from the primary series was administered. The primary series has been completed" xsi:type="ExpressionRef"/>
            </operand>
         </expression>
      </def>
      <def localId="443" locator="218:1-220:11" name="bOPV dose 2 Due Date" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="bOPV dose 2 Due Date"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot;) + 4 weeks"/>
            <a:s r="443">
               <a:s>/*
@dynamicValue: bOPV dose 2 Due Date
@pseudocode: Latest &quot;Date and time of vaccination&quot; (where &quot;Type of poliovirus dose&quot; = &quot;bOPV&quot;) + 4 weeks
*/
define &quot;bOPV dose 2 Due Date&quot;:
  </a:s>
               <a:s r="444">
                  <a:s>if </a:s>
                  <a:s r="445">
                     <a:s>&quot;bOPV dose 2&quot;</a:s>
                  </a:s>
                  <a:s> then </a:s>
                  <a:s r="446">
                     <a:s r="448">
                        <a:s r="447">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="448">
                           <a:s>&quot;Date of Latest bOPV Dose&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="449">
                        <a:s>4 weeks</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="452">
  else null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="444" locator="219:3-220:11" xsi:type="If">
            <condition localId="445" locator="219:6-219:18" name="bOPV dose 2" xsi:type="ExpressionRef"/>
            <then localId="446" locator="219:25-219:70" xsi:type="Add">
               <signature localId="450" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <signature localId="451" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
               <operand localId="448" locator="219:25-219:60" name="Date of Latest bOPV Dose" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="449" locator="219:64-219:70" value="4" unit="weeks" xsi:type="Quantity"/>
            </then>
            <else localId="453" asType="t:Date" xsi:type="As">
               <operand localId="452" locator="220:8-220:11" xsi:type="Null"/>
            </else>
         </expression>
      </def>
      <def localId="429" locator="207:1-211:9" name="bOPV dose 2 Create" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="bOPV dose 2 Create"/>
            <a:t name="create" value="Where a sequential IPV–bOPV schedule is used, the initial administration of 2 doses of IPV should be followed by ≥2 doses of bOPV separated by 4–8 weeks depending on the risk of exposure to poliovirus in early childhood."/>
            <a:s r="429">
               <a:s>/*
@output: bOPV dose 2 Create
@create: Where a sequential IPV–bOPV schedule is used, the initial administration of 2 doses of IPV should be followed by ≥2 doses of bOPV separated by 4–8 weeks depending on the risk of exposure to poliovirus in early childhood.
*/
define &quot;bOPV dose 2 Create&quot;:
  </a:s>
               <a:s r="430">
                  <a:s>if </a:s>
                  <a:s r="431">
                     <a:s>&quot;bOPV dose 2&quot;</a:s>
                  </a:s>
                  <a:s>
  then </a:s>
                  <a:s r="462">
                     <a:s r="440">
                        <a:s r="434">
                           <a:s>'Where a sequential IPV–bOPV schedule is used, the initial administration of 2 doses of IPV should be followed by ≥2 doses of bOPV separated by 4–8 weeks depending on the risk of exposure to poliovirus in early childhood.'</a:s>
                        </a:s>
                        <a:s> + </a:s>
                        <a:s r="436">
                           <a:s>'
Due Date: '</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="458">
                        <a:s>ToString(</a:s>
                        <a:s r="454">
                           <a:s>&quot;bOPV dose 2 Due Date&quot;</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  else </a:s>
                  <a:s r="463">
                     <a:s>''</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="430" locator="208:3-211:9" xsi:type="If">
            <condition localId="431" locator="208:6-208:18" name="bOPV dose 2" xsi:type="ExpressionRef"/>
            <then localId="462" locator="209:8-210:46" xsi:type="Concatenate">
               <operand localId="440" locator="209:8-209:245" xsi:type="Concatenate">
                  <operand localId="434" locator="209:8-209:229" valueType="t:String" value="Where a sequential IPV–bOPV schedule is used, the initial administration of 2 doses of IPV should be followed by ≥2 doses of bOPV separated by 4–8 weeks depending on the risk of exposure to poliovirus in early childhood." xsi:type="Literal"/>
                  <operand localId="436" locator="209:233-209:245" valueType="t:String" value="&#xa;Due Date: " xsi:type="Literal"/>
               </operand>
               <operand localId="458" locator="210:15-210:46" xsi:type="ToString">
                  <signature localId="459" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="454" locator="210:24-210:45" name="bOPV dose 2 Due Date" xsi:type="ExpressionRef"/>
               </operand>
            </then>
            <else localId="463" locator="211:8-211:9" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="467" locator="227:1-228:6" name="bOPV dose 2 Overdue" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="bOPV dose 2 Overdue"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated."/>
            <a:s r="467">
               <a:s r="468">/*
@dynamicValue: bOPV dose 2 Overdue
@pseudocode: To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated.
*/
define &quot;bOPV dose 2 Overdue&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="468" locator="228:3-228:6" xsi:type="Null"/>
      </def>
      <def localId="471" locator="235:1-236:6" name="bOPV dose 2 Expiration" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="bOPV dose 2 Expiration"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated."/>
            <a:s r="471">
               <a:s r="472">/*
@dynamicValue: bOPV dose 2 Expiration
@pseudocode: To be determined by Member States; however, there is no recommended overdue date and individuals are always eligible to be vaccinated.
*/
define &quot;bOPV dose 2 Expiration&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="472" locator="236:3-236:6" xsi:type="Null"/>
      </def>
      <def localId="475" locator="251:1-262:5" name="Test Validation" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="test" value="Test expected results based on example patients"/>
            <a:s r="475">
               <a:s>/*
@test: Test expected results based on example patients
*/
define &quot;Test Validation&quot;:
  </a:s>
               <a:s r="476">
                  <a:s>case
    </a:s>
                  <a:s r="477">
                     <a:s>when </a:s>
                     <a:s r="478">
                        <a:s r="480">
                           <a:s r="479">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="480">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="481">
                           <a:s>'Polio56.2'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="487">
                        <a:s>&quot;IPV dose 1&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="488">
                     <a:s>when </a:s>
                     <a:s r="489">
                        <a:s r="491">
                           <a:s r="490">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="491">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="492">
                           <a:s>'Polio57.2'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="498">
                        <a:s>&quot;IPV dose 1&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="499">
                     <a:s>when </a:s>
                     <a:s r="500">
                        <a:s r="502">
                           <a:s r="501">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="502">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="503">
                           <a:s>'Polio58.2'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="509">
                        <a:s>&quot;IPV dose 2&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="510">
                     <a:s>when </a:s>
                     <a:s r="511">
                        <a:s r="513">
                           <a:s r="512">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="513">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="514">
                           <a:s>'Polio59.2'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="520">
                        <a:s>&quot;IPV dose 2&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="521">
                     <a:s>when </a:s>
                     <a:s r="522">
                        <a:s r="524">
                           <a:s r="523">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="524">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="525">
                           <a:s>'Polio60.1'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="531">
                        <a:s>&quot;bOPV dose 1&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="532">
                     <a:s>when </a:s>
                     <a:s r="533">
                        <a:s r="535">
                           <a:s r="534">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="535">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="536">
                           <a:s>'Polio61.2'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="542">
                        <a:s>&quot;bOPV dose 2&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="543">
                     <a:s>when </a:s>
                     <a:s r="544">
                        <a:s r="546">
                           <a:s r="545">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="546">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="547">
                           <a:s>'Polio62.2'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="553">
                        <a:s>&quot;bOPV dose 2&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="554">
                     <a:s>when </a:s>
                     <a:s r="555">
                        <a:s r="557">
                           <a:s r="556">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="557">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="558">
                           <a:s>'Polio63.1'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="564">
                        <a:s>&quot;Second bOPV dose from the primary series was administered. The primary series has been completed&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    else </a:s>
                  <a:s r="565">
                     <a:s>'No test case set'</a:s>
                  </a:s>
                  <a:s>
  end</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="476" locator="252:3-262:5" xsi:type="Case">
            <caseItem localId="477" locator="253:5-253:51">
               <when localId="478" locator="253:10-253:33" xsi:type="Equal">
                  <signature localId="485" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="486" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="483" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="484" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="480" locator="253:10-253:19" path="id" xsi:type="Property">
                        <source localId="479" locator="253:10-253:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="481" locator="253:23-253:33" valueType="t:String" value="Polio56.2" xsi:type="Literal"/>
               </when>
               <then localId="567" xsi:type="As">
                  <operand localId="487" locator="253:40-253:51" name="IPV dose 1" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="568" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="569" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="570" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="488" locator="254:5-254:51">
               <when localId="489" locator="254:10-254:33" xsi:type="Equal">
                  <signature localId="496" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="497" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="494" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="495" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="491" locator="254:10-254:19" path="id" xsi:type="Property">
                        <source localId="490" locator="254:10-254:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="492" locator="254:23-254:33" valueType="t:String" value="Polio57.2" xsi:type="Literal"/>
               </when>
               <then localId="571" xsi:type="As">
                  <operand localId="498" locator="254:40-254:51" name="IPV dose 1" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="572" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="573" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="574" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="499" locator="255:5-255:51">
               <when localId="500" locator="255:10-255:33" xsi:type="Equal">
                  <signature localId="507" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="508" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="505" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="506" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="502" locator="255:10-255:19" path="id" xsi:type="Property">
                        <source localId="501" locator="255:10-255:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="503" locator="255:23-255:33" valueType="t:String" value="Polio58.2" xsi:type="Literal"/>
               </when>
               <then localId="575" xsi:type="As">
                  <operand localId="509" locator="255:40-255:51" name="IPV dose 2" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="576" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="577" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="578" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="510" locator="256:5-256:51">
               <when localId="511" locator="256:10-256:33" xsi:type="Equal">
                  <signature localId="518" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="519" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="516" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="517" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="513" locator="256:10-256:19" path="id" xsi:type="Property">
                        <source localId="512" locator="256:10-256:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="514" locator="256:23-256:33" valueType="t:String" value="Polio59.2" xsi:type="Literal"/>
               </when>
               <then localId="579" xsi:type="As">
                  <operand localId="520" locator="256:40-256:51" name="IPV dose 2" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="580" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="581" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="582" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="521" locator="257:5-257:52">
               <when localId="522" locator="257:10-257:33" xsi:type="Equal">
                  <signature localId="529" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="530" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="527" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="528" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="524" locator="257:10-257:19" path="id" xsi:type="Property">
                        <source localId="523" locator="257:10-257:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="525" locator="257:23-257:33" valueType="t:String" value="Polio60.1" xsi:type="Literal"/>
               </when>
               <then localId="583" xsi:type="As">
                  <operand localId="531" locator="257:40-257:52" name="bOPV dose 1" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="584" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="585" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="586" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="532" locator="258:5-258:52">
               <when localId="533" locator="258:10-258:33" xsi:type="Equal">
                  <signature localId="540" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="541" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="538" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="539" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="535" locator="258:10-258:19" path="id" xsi:type="Property">
                        <source localId="534" locator="258:10-258:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="536" locator="258:23-258:33" valueType="t:String" value="Polio61.2" xsi:type="Literal"/>
               </when>
               <then localId="587" xsi:type="As">
                  <operand localId="542" locator="258:40-258:52" name="bOPV dose 2" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="588" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="589" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="590" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="543" locator="259:5-259:52">
               <when localId="544" locator="259:10-259:33" xsi:type="Equal">
                  <signature localId="551" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="552" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="549" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="550" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="546" locator="259:10-259:19" path="id" xsi:type="Property">
                        <source localId="545" locator="259:10-259:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="547" locator="259:23-259:33" valueType="t:String" value="Polio62.2" xsi:type="Literal"/>
               </when>
               <then localId="591" xsi:type="As">
                  <operand localId="553" locator="259:40-259:52" name="bOPV dose 2" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="592" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="593" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="594" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="554" locator="260:5-260:137">
               <when localId="555" locator="260:10-260:33" xsi:type="Equal">
                  <signature localId="562" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="563" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="560" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="561" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="557" locator="260:10-260:19" path="id" xsi:type="Property">
                        <source localId="556" locator="260:10-260:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="558" locator="260:23-260:33" valueType="t:String" value="Polio63.1" xsi:type="Literal"/>
               </when>
               <then localId="595" xsi:type="As">
                  <operand localId="564" locator="260:40-260:137" name="Second bOPV dose from the primary series was administered. The primary series has been completed" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="596" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="597" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="598" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <else localId="599" xsi:type="As">
               <operand localId="565" locator="261:10-261:27" valueType="t:String" value="No test case set" xsi:type="Literal"/>
               <asTypeSpecifier localId="600" xsi:type="ChoiceTypeSpecifier">
                  <choice localId="601" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                  <choice localId="602" name="t:String" xsi:type="NamedTypeSpecifier"/>
               </asTypeSpecifier>
            </else>
         </expression>
      </def>
   </statements>
</library>
