<?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="301">
         <a:s>/*
  * Library: IMMZD2DTCholeraElements
  */
library IMMZD2DTCholeraElements</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD2DTCholeraElements" 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:19" localIdentifier="WHOConcepts" path="http://smart.who.int/immunizations/WHOConcepts">
         <annotation xsi:type="a:Annotation">
            <a:s r="210">
               <a:s>include </a:s>
               <a:s>
                  <a:s>WHOConcepts</a:s>
               </a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="212" locator="11:1-11:27" localIdentifier="WC" path="http://smart.who.int/immunizations/WHOCommon">
         <annotation xsi:type="a:Annotation">
            <a:s r="212">
               <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="214" locator="12:1-12:29" localIdentifier="WE" path="http://smart.who.int/immunizations/WHOElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="214">
               <a:s>include </a:s>
               <a:s>
                  <a:s>WHOElements</a:s>
               </a:s>
               <a:s> called WE</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="216" locator="14:1-14:32" localIdentifier="Common" path="http://smart.who.int/immunizations/IMMZCommon">
         <annotation xsi:type="a:Annotation">
            <a:s r="216">
               <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="218" locator="15:1-15:36" localIdentifier="Concepts" path="http://smart.who.int/immunizations/IMMZConcepts">
         <annotation xsi:type="a:Annotation">
            <a:s r="218">
               <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="220" locator="16:1-16:36" localIdentifier="Elements" path="http://smart.who.int/immunizations/IMMZElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="220">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZElements</a:s>
               </a:s>
               <a:s> called Elements</a:s>
            </a:s>
         </annotation>
      </def>
   </includes>
   <parameters>
      <def localId="222" locator="18:1-18:51" name="CholeraLowerLimitDays" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="222">
               <a:s>parameter CholeraLowerLimitDays </a:s>
               <a:s r="224">
                  <a:s>Integer</a:s>
               </a:s>
               <a:s r="223"> default 150</a:s>
            </a:s>
         </annotation>
         <default localId="223" locator="18:49-18:51" valueType="t:Integer" value="150" xsi:type="Literal"/>
         <parameterTypeSpecifier localId="224" locator="18:33-18:39" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
      </def>
      <def localId="226" locator="19:1-19:52" name="CholeraExactIntervalDays" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="226">
               <a:s>parameter CholeraExactIntervalDays </a:s>
               <a:s r="228">
                  <a:s>Integer</a:s>
               </a:s>
               <a:s r="227"> default 0</a:s>
            </a:s>
         </annotation>
         <default localId="227" locator="19:52" valueType="t:Integer" value="0" xsi:type="Literal"/>
         <parameterTypeSpecifier localId="228" locator="19:36-19:42" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
      </def>
   </parameters>
   <contexts>
      <def localId="233" locator="21:1-21:15" name="Patient"/>
   </contexts>
   <statements>
      <def localId="231" locator="21:1-21:15" name="Patient" context="Patient">
         <expression localId="232" xsi:type="SingletonFrom">
            <operand localId="230" locator="21:1-21:15" dataType="fhir:Patient" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/>
         </expression>
      </def>
      <def localId="236" locator="26:1-29:48" name="Cholera Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Cholera containing Doses Administered to Patient"/>
            <a:s r="236">
               <a:s>/*
@internal: Cholera containing Doses Administered to Patient
*/
define &quot;Cholera Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="248">
                  <a:s>
                     <a:s r="237">
                        <a:s r="239">
                           <a:s>
                              <a:s>Elements.&quot;Doses Administered to Patient&quot;</a:s>
                           </a:s>
                        </a:s>
                        <a:s> I</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  </a:s>
                  <a:s r="245">
                     <a:s>where
    </a:s>
                     <a:s r="245">
                        <a:s r="242">
                           <a:s r="241">
                              <a:s>I</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="242">
                              <a:s>vaccineCode</a:s>
                           </a:s>
                        </a:s>
                        <a:s> in </a:s>
                        <a:s r="244">
                           <a:s r="243">
                              <a:s>Concepts</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="244">
                              <a:s>&quot;Cholera vaccines&quot;</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="248" locator="27:3-29:48" xsi:type="Query">
            <source localId="237" locator="27:3-27:44" alias="I">
               <expression localId="239" locator="27:3-27:42" name="Doses Administered to Patient" libraryName="Elements" xsi:type="ExpressionRef"/>
            </source>
            <where localId="245" locator="28:3-29:48" xsi:type="InValueSet">
               <signature localId="247" name="t:Concept" xsi:type="NamedTypeSpecifier"/>
               <code localId="246" name="ToConcept" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                  <operand localId="242" locator="29:5-29:17" path="vaccineCode" scope="I" xsi:type="Property"/>
               </code>
               <valueset localId="244" locator="29:22-29:48" name="Cholera vaccines" libraryName="Concepts" preserve="true"/>
            </where>
         </expression>
      </def>
      <def localId="251" locator="34:1-35:57" name="Cholera Primary Series Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Cholera containing Doses Administered to Patient that are in the Primary series"/>
            <a:s r="251">
               <a:s>/*
@internal: Cholera containing Doses Administered to Patient that are in the Primary series
*/
define &quot;Cholera Primary Series Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="253">
                  <a:s r="252">
                     <a:s>&quot;Cholera Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="253">
                     <a:s>seriesPrimary()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="253" locator="35:3-35:57" name="seriesPrimary" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="252" locator="35:3-35:41" name="Cholera Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="256" locator="40:1-41:63" name="Number of Cholera Primary Series Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of Cholera Primary Series doses"/>
            <a:s r="256">
               <a:s>/*
@internal: Number of Cholera Primary Series doses
*/
define &quot;Number of Cholera Primary Series Doses Administered&quot;:
  </a:s>
               <a:s r="260">
                  <a:s>Count(</a:s>
                  <a:s r="257">
                     <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="260" locator="41:3-41:63" xsi:type="Count">
            <source localId="257" locator="41:9-41:62" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="263" locator="49:1-50:45" name="Client's age is less than 1 year" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 1 year"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 1 year"/>
            <a:t name="code" value="Client's age is less than 1 year-39"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="263">
               <a:s>/*
@input: Client's age is less than 1 year
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 1 year
@code: Client's age is less than 1 year-39
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;Client's age is less than 1 year&quot;:
  </a:s>
               <a:s r="264">
                  <a:s r="266">
                     <a:s r="265">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="266">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="267"> &lt; 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="264" locator="50:3-50:45" xsi:type="Less">
            <signature localId="268" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="269" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="266" locator="50:3-50:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="267" locator="50:45" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="272" locator="58:1-59:46" name="Client's age is more than or equal to 1 year" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 1 year"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 1 year"/>
            <a:t name="code" value="Client's age is more than or equal to 1 year-39"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="272">
               <a:s>/*
@input: Client's age is more than or equal to 1 year
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 1 year
@code: Client's age is more than or equal to 1 year-39
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;Client's age is more than or equal to 1 year&quot;:
  </a:s>
               <a:s r="273">
                  <a:s r="275">
                     <a:s r="274">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="275">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="276"> >= 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="273" locator="59:3-59:46" xsi:type="GreaterOrEqual">
            <signature localId="277" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="278" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="275" locator="59:3-59:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="276" locator="59:46" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="281" locator="69:1-70:59" name="No cholera primary series dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No cholera primary series dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0"/>
            <a:t name="code" value="No cholera primary series dose was administered-116"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years"/>
            <a:s r="281">
               <a:s>/*
@input: No cholera primary series dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0
@code: No cholera primary series dose was administered-116
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years
*/
define &quot;No cholera primary series dose was administered&quot;:
  </a:s>
               <a:s r="282">
                  <a:s r="283">
                     <a:s>&quot;Number of Cholera Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="284"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="282" locator="70:3-70:59" xsi:type="Equal">
            <signature localId="285" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="286" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="283" locator="70:3-70:55" name="Number of Cholera Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="284" locator="70:59" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="289" locator="78:1-79:59" name="One cholera primary series dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="One cholera primary series dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1"/>
            <a:t name="code" value="One cholera primary series dose was administered-116"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="289">
               <a:s>/*
@input: One cholera primary series dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1
@code: One cholera primary series dose was administered-116
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;One cholera primary series dose was administered&quot;:
  </a:s>
               <a:s r="290">
                  <a:s r="291">
                     <a:s>&quot;Number of Cholera Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="292"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="290" locator="79:3-79:59" xsi:type="Equal">
            <signature localId="293" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="294" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="291" locator="79:3-79:55" name="Number of Cholera Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="292" locator="79:59" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="301" locator="361:1-362:97" name="Date of Latest Cholera Dose" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Date of Latest Cholera Dose"/>
            <a:s r="301">
               <a:s>/*
@internal: Date of Latest Cholera Dose
*/
define &quot;Date of Latest Cholera Dose&quot;:
  </a:s>
               <a:s r="302">
                  <a:s>date from </a:s>
                  <a:s r="303">
                     <a:s>start of </a:s>
                     <a:s r="309">
                        <a:s r="308">
                           <a:s r="305">
                              <a:s r="304">
                                 <a:s>&quot;Cholera Doses Administered to Patient&quot;</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="305">
                                 <a:s>mostRecent()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="308">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="309">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="302" locator="362:3-362:97" xsi:type="DateFrom">
            <operand localId="303" locator="362:13-362:97" xsi:type="Start">
               <operand localId="309" locator="362:22-362:97" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="308" locator="362:22-362:84" path="occurrence" xsi:type="Property">
                     <source localId="305" locator="362:22-362:73" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="306" xsi:type="ListTypeSpecifier">
                           <elementType localId="307" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="304" locator="362:22-362:60" name="Cholera Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="297" locator="87:1-89:75" name="The latest cholera dose was administered less than 14 days ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered less than 14 days ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) &lt; 14 days"/>
            <a:t name="code" value="The latest cholera dose was administered less than 14 days ago-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="297">
               <a:s>/*
@input: The latest cholera dose was administered less than 14 days ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) &lt; 14 days
@code: The latest cholera dose was administered less than 14 days ago-106
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;The latest cholera dose was administered less than 14 days ago&quot;:
  </a:s>
               <a:s r="298">
                  <a:s r="312">
                     <a:s r="310">
                        <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="313">
                     <a:s r="314">
                        <a:s>duration in days between </a:s>
                        <a:s r="315">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="318">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="324"> &lt; 14</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="298" locator="88:3-89:75" xsi:type="And">
            <operand localId="312" locator="88:3-88:43" xsi:type="Not">
               <operand localId="311" locator="88:3-88:43" xsi:type="IsNull">
                  <operand localId="310" locator="88:3-88:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="313" locator="89:7-89:75" xsi:type="Less">
               <signature localId="325" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="326" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="314" locator="89:7-89:70" precision="Day" xsi:type="DurationBetween">
                  <signature localId="322" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="323" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="320" xsi:type="ToDateTime">
                     <signature localId="321" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="315" locator="89:32-89:60" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="318" locator="89:66-89:70" xsi:type="Now"/>
               </operand>
               <operand localId="324" locator="89:74-89:75" valueType="t:Integer" value="14" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="329" locator="97:1-98:70" name="The latest cholera dose was administered more than 14 days ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered more than 14 days ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≥ 14 days"/>
            <a:t name="code" value="The latest cholera dose was administered more than 14 days ago-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="329">
               <a:s>/*
@input: The latest cholera dose was administered more than 14 days ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≥ 14 days
@code: The latest cholera dose was administered more than 14 days ago-106
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;The latest cholera dose was administered more than 14 days ago&quot;:
  </a:s>
               <a:s r="330">
                  <a:s>not </a:s>
                  <a:s r="331">
                     <a:s>&quot;The latest cholera dose was administered less than 14 days ago&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="330" locator="98:3-98:70" xsi:type="Not">
            <operand localId="331" locator="98:7-98:70" name="The latest cholera dose was administered less than 14 days ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="334" locator="106:1-107:59" name="Two cholera primary series doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Two cholera primary series doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2"/>
            <a:t name="code" value="Two cholera primary series doses were administered-116"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="334">
               <a:s>/*
@input: Two cholera primary series doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2
@code: Two cholera primary series doses were administered-116
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;Two cholera primary series doses were administered&quot;:
  </a:s>
               <a:s r="335">
                  <a:s r="336">
                     <a:s>&quot;Number of Cholera Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="337"> = 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="335" locator="107:3-107:59" xsi:type="Equal">
            <signature localId="338" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="339" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="336" locator="107:3-107:55" name="Number of Cholera Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="337" locator="107:59" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="349" locator="349:1-350:57" name="Cholera Booster Series Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Cholera Booster Series Doses Administered to Patient"/>
            <a:s r="349">
               <a:s>/*
@internal: Cholera Booster Series Doses Administered to Patient
*/
define &quot;Cholera Booster Series Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="351">
                  <a:s r="350">
                     <a:s>&quot;Cholera Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="351">
                     <a:s>seriesBooster()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="351" locator="350:3-350:57" name="seriesBooster" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="350" locator="350:3-350:41" name="Cholera Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="346" locator="355:1-356:63" name="Number of Cholera Booster Series Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of Cholera Booster Series Doses Administered"/>
            <a:s r="346">
               <a:s>/*
@internal: Number of Cholera Booster Series Doses Administered
*/
define &quot;Number of Cholera Booster Series Doses Administered&quot;:
  </a:s>
               <a:s r="355">
                  <a:s>Count(</a:s>
                  <a:s r="352">
                     <a:s>&quot;Cholera Booster Series Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="355" locator="356:3-356:63" xsi:type="Count">
            <source localId="352" locator="356:9-356:62" name="Cholera Booster Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="342" locator="115:1-116:59" name="No cholera booster series dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No cholera booster series dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0"/>
            <a:t name="code" value="No cholera booster series dose was administered-114"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="342">
               <a:s>/*
@input: No cholera booster series dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0
@code: No cholera booster series dose was administered-114
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;No cholera booster series dose was administered&quot;:
  </a:s>
               <a:s r="343">
                  <a:s r="356">
                     <a:s>&quot;Number of Cholera Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="357"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="343" locator="116:3-116:59" xsi:type="Equal">
            <signature localId="358" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="359" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="356" locator="116:3-116:55" name="Number of Cholera Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="357" locator="116:59" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="362" locator="124:1-126:75" name="The latest cholera dose was administered less than 3 years ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered less than 3 years ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) &lt; 3 years"/>
            <a:t name="code" value="The latest cholera dose was administered less than 3 years ago-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="362">
               <a:s>/*
@input: The latest cholera dose was administered less than 3 years ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) &lt; 3 years
@code: The latest cholera dose was administered less than 3 years ago-106
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;The latest cholera dose was administered less than 3 years ago&quot;:
  </a:s>
               <a:s r="363">
                  <a:s r="366">
                     <a:s r="364">
                        <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="367">
                     <a:s r="368">
                        <a:s>duration in years between </a:s>
                        <a:s r="369">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="372">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="378"> &lt; 3</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="363" locator="125:3-126:75" xsi:type="And">
            <operand localId="366" locator="125:3-125:43" xsi:type="Not">
               <operand localId="365" locator="125:3-125:43" xsi:type="IsNull">
                  <operand localId="364" locator="125:3-125:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="367" locator="126:7-126:75" xsi:type="Less">
               <signature localId="379" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="380" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="368" locator="126:7-126:71" precision="Year" xsi:type="DurationBetween">
                  <signature localId="376" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="377" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="374" xsi:type="ToDateTime">
                     <signature localId="375" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="369" locator="126:33-126:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="372" locator="126:67-126:71" xsi:type="Now"/>
               </operand>
               <operand localId="378" locator="126:75" valueType="t:Integer" value="3" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="383" locator="134:1-135:70" name="The latest cholera dose was administered more than 3 years ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered more than 3 years ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≥ 3 years"/>
            <a:t name="code" value="The latest cholera dose was administered more than 3 years ago-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="383">
               <a:s>/*
@input: The latest cholera dose was administered more than 3 years ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≥ 3 years
@code: The latest cholera dose was administered more than 3 years ago-106
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;The latest cholera dose was administered more than 3 years ago&quot;:
  </a:s>
               <a:s r="384">
                  <a:s>not </a:s>
                  <a:s r="385">
                     <a:s>&quot;The latest cholera dose was administered less than 3 years ago&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="384" locator="135:3-135:70" xsi:type="Not">
            <operand localId="385" locator="135:7-135:70" name="The latest cholera dose was administered less than 3 years ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="388" locator="143:1-144:60" name="At least one booster series dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="At least one booster series dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) >= 1"/>
            <a:t name="code" value="At least one booster series dose was administered-115"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="388">
               <a:s>/*
@input: At least one booster series dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) >= 1
@code: At least one booster series dose was administered-115
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;At least one booster series dose was administered&quot;:
  </a:s>
               <a:s r="389">
                  <a:s r="390">
                     <a:s>&quot;Number of Cholera Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="391"> >= 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="389" locator="144:3-144:60" xsi:type="GreaterOrEqual">
            <signature localId="392" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="393" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="390" locator="144:3-144:55" name="Number of Cholera Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="391" locator="144:60" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="396" locator="152:1-153:79" name="Dose number of the latest dose is one" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Dose number of the latest dose is one"/>
            <a:t name="pseudocode" value="&quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 1"/>
            <a:t name="code" value="Dose number of the latest dose is one-68"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="396">
               <a:s>/*
@input: Dose number of the latest dose is one
@pseudocode: Latest &quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 1
@code: Dose number of the latest dose is one-68
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;Dose number of the latest dose is one&quot;:
  </a:s>
               <a:s r="407">
                  <a:s r="403">
                     <a:s r="398">
                        <a:s r="397">
                           <a:s>&quot;Cholera Doses Administered to Patient&quot;</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="398">
                           <a:s>mostRecent()</a:s>
                        </a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="403">
                        <a:s>getDose(</a:s>
                        <a:s r="401">
                           <a:s>'1'</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s> is not null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="407" locator="153:3-153:79" xsi:type="Not">
            <operand localId="406" locator="153:3-153:79" xsi:type="IsNull">
               <operand localId="403" locator="153:3-153:67" name="getDose" libraryName="Common" xsi:type="FunctionRef">
                  <signature localId="404" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="405" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="398" locator="153:3-153:54" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                     <signature localId="399" xsi:type="ListTypeSpecifier">
                        <elementType localId="400" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                     </signature>
                     <operand localId="397" locator="153:3-153:41" name="Cholera Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="401" locator="153:64-153:66" valueType="t:String" value="1" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="410" locator="161:1-163:70" name="The latest cholera dose was administered more than 14 days ago and less than 3 years ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered more than 14 days ago and less than 3 years ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) &lt;= 3 years"/>
            <a:t name="code" value="The latest cholera dose was administered more than 14 days ago and less than 3 years ago-118"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="410">
               <a:s>/*
@input: The latest cholera dose was administered more than 14 days ago and less than 3 years ago
@pseudocode: 14 days &lt;= Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) &lt;= 3 years
@code: The latest cholera dose was administered more than 14 days ago and less than 3 years ago-118
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;The latest cholera dose was administered more than 14 days ago and less than 3 years ago&quot;:
  </a:s>
               <a:s r="411">
                  <a:s r="412">
                     <a:s>&quot;The latest cholera dose was administered more than 14 days ago&quot;</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="413">
                     <a:s>&quot;The latest cholera dose was administered less than 3 years ago&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="411" locator="162:3-163:70" xsi:type="And">
            <operand localId="412" locator="162:3-162:66" name="The latest cholera dose was administered more than 14 days ago" xsi:type="ExpressionRef"/>
            <operand localId="413" locator="163:7-163:70" name="The latest cholera dose was administered less than 3 years ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="416" locator="171:1-172:79" name="Dose number of the latest dose is two" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Dose number of the latest dose is two"/>
            <a:t name="pseudocode" value="&quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 2"/>
            <a:t name="code" value="Dose number of the latest dose is two-68"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule"/>
            <a:s r="416">
               <a:s>/*
@input: Dose number of the latest dose is two
@pseudocode: Latest &quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 2
@code: Dose number of the latest dose is two-68
@decision: IMMZ.D2.DT.Cholera.WC vaccines: Whole-cell (WC) vaccines schedule
*/
define &quot;Dose number of the latest dose is two&quot;:
  </a:s>
               <a:s r="427">
                  <a:s r="423">
                     <a:s r="418">
                        <a:s r="417">
                           <a:s>&quot;Cholera Doses Administered to Patient&quot;</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="418">
                           <a:s>mostRecent()</a:s>
                        </a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="423">
                        <a:s>getDose(</a:s>
                        <a:s r="421">
                           <a:s>'2'</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s> is not null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="427" locator="172:3-172:79" xsi:type="Not">
            <operand localId="426" locator="172:3-172:79" xsi:type="IsNull">
               <operand localId="423" locator="172:3-172:67" name="getDose" libraryName="Common" xsi:type="FunctionRef">
                  <signature localId="424" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="425" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="418" locator="172:3-172:54" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                     <signature localId="419" xsi:type="ListTypeSpecifier">
                        <elementType localId="420" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                     </signature>
                     <operand localId="417" locator="172:3-172:41" name="Cholera Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="421" locator="172:64-172:66" valueType="t:String" value="2" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="430" locator="180:1-181:45" name="Client's age is less than 2 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 2 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 2 years"/>
            <a:t name="code" value="Client's age is less than 2 years-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:s r="430">
               <a:s>/*
@input: Client's age is less than 2 years
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 2 years
@code: Client's age is less than 2 years-40
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
*/
define &quot;Client's age is less than 2 years&quot;:
  </a:s>
               <a:s r="431">
                  <a:s r="433">
                     <a:s r="432">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="433">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="434"> &lt; 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="431" locator="181:3-181:45" xsi:type="Less">
            <signature localId="435" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="436" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="433" locator="181:3-181:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="434" locator="181:45" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="439" locator="189:1-191:50" name="Client's age is 2–5 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is 2–5 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≤ 5 years"/>
            <a:t name="code" value="Client's age is 2–5 years-50"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:s r="439">
               <a:s>/*
@input: Client's age is 2–5 years
@pseudocode: 2 years ≤ Today's date − &quot;Date of birth&quot; ≤ 5 years
@code: Client's age is 2–5 years-50
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
*/
define &quot;Client's age is 2–5 years&quot;:
  </a:s>
               <a:s r="440">
                  <a:s r="441">
                     <a:s r="443">
                        <a:s r="442">
                           <a:s>Elements</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="443">
                           <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="444"> >= 2</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="447">
                     <a:s r="449">
                        <a:s r="448">
                           <a:s>Elements</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="449">
                           <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="450"> &lt;= 5</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="440" locator="190:3-191:50" xsi:type="And">
            <operand localId="441" locator="190:3-190:46" xsi:type="GreaterOrEqual">
               <signature localId="445" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="446" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="443" locator="190:3-190:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
               <operand localId="444" locator="190:46" valueType="t:Integer" value="2" xsi:type="Literal"/>
            </operand>
            <operand localId="447" locator="191:7-191:50" xsi:type="LessOrEqual">
               <signature localId="451" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="452" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="449" locator="191:7-191:45" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
               <operand localId="450" locator="191:50" valueType="t:Integer" value="5" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="455" locator="200:1-201:60" name="At least one cholera primary series dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="At least one cholera primary series dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) >= 1"/>
            <a:t name="code" value="At least one cholera primary series dose was administered-117"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years"/>
            <a:s r="455">
               <a:s>/*
@input: At least one cholera primary series dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) >= 1
@code: At least one cholera primary series dose was administered-117
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years
*/
define &quot;At least one cholera primary series dose was administered&quot;:
  </a:s>
               <a:s r="456">
                  <a:s r="457">
                     <a:s>&quot;Number of Cholera Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="458"> >= 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="456" locator="201:3-201:60" xsi:type="GreaterOrEqual">
            <signature localId="459" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="460" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="457" locator="201:3-201:55" name="Number of Cholera Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="458" locator="201:60" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="463" locator="210:1-211:94" name="Dose number of the latest primary series dose is one" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Dose number of the latest primary series dose is one"/>
            <a:t name="pseudocode" value="&quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1"/>
            <a:t name="code" value="Dose number of the latest primary series dose is one-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years"/>
            <a:s r="463">
               <a:s>/*
@input: Dose number of the latest primary series dose is one
@pseudocode: Latest &quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1
@code: Dose number of the latest primary series dose is one-106
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years
*/
define &quot;Dose number of the latest primary series dose is one&quot;:
  </a:s>
               <a:s r="474">
                  <a:s r="470">
                     <a:s r="465">
                        <a:s r="464">
                           <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="465">
                           <a:s>mostRecent()</a:s>
                        </a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="470">
                        <a:s>getDose(</a:s>
                        <a:s r="468">
                           <a:s>'1'</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s> is not null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="474" locator="211:3-211:94" xsi:type="Not">
            <operand localId="473" locator="211:3-211:94" xsi:type="IsNull">
               <operand localId="470" locator="211:3-211:82" name="getDose" libraryName="Common" xsi:type="FunctionRef">
                  <signature localId="471" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="472" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="465" locator="211:3-211:69" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                     <signature localId="466" xsi:type="ListTypeSpecifier">
                        <elementType localId="467" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                     </signature>
                     <operand localId="464" locator="211:3-211:56" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="468" locator="211:79-211:81" valueType="t:String" value="1" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="477" locator="220:1-222:75" name="The latest cholera dose was administered less than 1 week ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered less than 1 week ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) &lt; 1 week"/>
            <a:t name="code" value="The latest cholera dose was administered less than 1 week ago-105"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years"/>
            <a:s r="477">
               <a:s>/*
@input: The latest cholera dose was administered less than 1 week ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) &lt; 1 week
@code: The latest cholera dose was administered less than 1 week ago-105
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years
*/
define &quot;The latest cholera dose was administered less than 1 week ago&quot;:
  </a:s>
               <a:s r="478">
                  <a:s r="481">
                     <a:s r="479">
                        <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="482">
                     <a:s r="483">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="484">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="487">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="493"> &lt; 1</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="478" locator="221:3-222:75" xsi:type="And">
            <operand localId="481" locator="221:3-221:43" xsi:type="Not">
               <operand localId="480" locator="221:3-221:43" xsi:type="IsNull">
                  <operand localId="479" locator="221:3-221:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="482" locator="222:7-222:75" xsi:type="Less">
               <signature localId="494" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="495" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="483" locator="222:7-222:71" precision="Week" xsi:type="DurationBetween">
                  <signature localId="491" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="492" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="489" xsi:type="ToDateTime">
                     <signature localId="490" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="484" locator="222:33-222:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="487" locator="222:67-222:71" xsi:type="Now"/>
               </operand>
               <operand localId="493" locator="222:75" valueType="t:Integer" value="1" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="498" locator="231:1-234:75" name="The latest cholera dose was administered more than 1 week and less than 6 weeks ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered more than 1 week and less than 6 weeks ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) &lt; 6 weeks"/>
            <a:t name="code" value="The latest cholera dose was administered more than 1 week and less than 6 weeks ago-115"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years"/>
            <a:s r="498">
               <a:s>/*
@input: The latest cholera dose was administered more than 1 week and less than 6 weeks ago
@pseudocode: 1 week ≤ Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) &lt; 6 weeks
@code: The latest cholera dose was administered more than 1 week and less than 6 weeks ago-115
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years
*/
define &quot;The latest cholera dose was administered more than 1 week and less than 6 weeks ago&quot;:
  </a:s>
               <a:s r="499">
                  <a:s r="500">
                     <a:s r="503">
                        <a:s r="501">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> is not null</a:s>
                     </a:s>
                     <a:s>
  and </a:s>
                     <a:s r="504">
                        <a:s r="505">
                           <a:s>duration in weeks between </a:s>
                           <a:s r="506">
                              <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                           </a:s>
                           <a:s> and </a:s>
                           <a:s r="509">
                              <a:s>Now()</a:s>
                           </a:s>
                        </a:s>
                        <a:s r="515"> >= 1</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="518">
                     <a:s r="519">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="520">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="523">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="529"> &lt; 6</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="499" locator="232:3-234:75" xsi:type="And">
            <operand localId="500" locator="232:3-233:76" xsi:type="And">
               <operand localId="503" locator="232:3-232:43" xsi:type="Not">
                  <operand localId="502" locator="232:3-232:43" xsi:type="IsNull">
                     <operand localId="501" locator="232:3-232:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
               </operand>
               <operand localId="504" locator="233:7-233:76" xsi:type="GreaterOrEqual">
                  <signature localId="516" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="517" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="505" locator="233:7-233:71" precision="Week" xsi:type="DurationBetween">
                     <signature localId="513" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="514" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="511" xsi:type="ToDateTime">
                        <signature localId="512" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="506" locator="233:33-233:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                     </operand>
                     <operand localId="509" locator="233:67-233:71" xsi:type="Now"/>
                  </operand>
                  <operand localId="515" locator="233:76" valueType="t:Integer" value="1" xsi:type="Literal"/>
               </operand>
            </operand>
            <operand localId="518" locator="234:7-234:75" xsi:type="Less">
               <signature localId="530" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="531" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="519" locator="234:7-234:71" precision="Week" xsi:type="DurationBetween">
                  <signature localId="527" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="528" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="525" xsi:type="ToDateTime">
                     <signature localId="526" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="520" locator="234:33-234:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="523" locator="234:67-234:71" xsi:type="Now"/>
               </operand>
               <operand localId="529" locator="234:75" valueType="t:Integer" value="6" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="534" locator="242:1-243:94" name="Dose number of the latest primary series dose is two" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Dose number of the latest primary series dose is two"/>
            <a:t name="pseudocode" value="&quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2"/>
            <a:t name="code" value="Dose number of the latest primary series dose is two-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:s r="534">
               <a:s>/*
@input: Dose number of the latest primary series dose is two
@pseudocode: Latest &quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2
@code: Dose number of the latest primary series dose is two-106
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
*/
define &quot;Dose number of the latest primary series dose is two&quot;:
  </a:s>
               <a:s r="545">
                  <a:s r="541">
                     <a:s r="536">
                        <a:s r="535">
                           <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="536">
                           <a:s>mostRecent()</a:s>
                        </a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="541">
                        <a:s>getDose(</a:s>
                        <a:s r="539">
                           <a:s>'2'</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s> is not null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="545" locator="243:3-243:94" xsi:type="Not">
            <operand localId="544" locator="243:3-243:94" xsi:type="IsNull">
               <operand localId="541" locator="243:3-243:82" name="getDose" libraryName="Common" xsi:type="FunctionRef">
                  <signature localId="542" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="543" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="536" locator="243:3-243:69" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                     <signature localId="537" xsi:type="ListTypeSpecifier">
                        <elementType localId="538" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                     </signature>
                     <operand localId="535" locator="243:3-243:56" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="539" locator="243:79-243:81" valueType="t:String" value="2" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="548" locator="251:1-253:87" name="Dose number of the latest primary series dose is less than three" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Dose number of the latest primary series dose is less than three"/>
            <a:t name="pseudocode" value="&quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) &lt; 3"/>
            <a:t name="code" value="Dose number of the latest primary series dose is less than three-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:s r="548">
               <a:s>/*
@input: Dose number of the latest primary series dose is less than three
@pseudocode: Latest &quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) &lt; 3
@code: Dose number of the latest primary series dose is less than three-106
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
*/
define &quot;Dose number of the latest primary series dose is less than three&quot;:
  </a:s>
               <a:s r="580">
                  <a:s r="578">
                     <a:s>(</a:s>
                     <a:s r="578">
                        <a:s>
                           <a:s r="549">
                              <a:s r="551">
                                 <a:s>(</a:s>
                                 <a:s r="551">
                                    <a:s r="550">
                                       <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                                    </a:s>
                                    <a:s>.</a:s>
                                    <a:s r="551">
                                       <a:s>mostRecent()</a:s>
                                    </a:s>
                                 </a:s>
                                 <a:s>)</a:s>
                              </a:s>
                              <a:s> I</a:s>
                           </a:s>
                        </a:s>
                        <a:s>
    </a:s>
                        <a:s r="555">
                           <a:s>where </a:s>
                           <a:s r="555">
                              <a:s>exists</a:s>
                              <a:s r="577">
                                 <a:s>( </a:s>
                                 <a:s r="577">
                                    <a:s>
                                       <a:s r="556">
                                          <a:s r="558">
                                             <a:s>
                                                <a:s>I.protocolApplied</a:s>
                                             </a:s>
                                          </a:s>
                                          <a:s> pa</a:s>
                                       </a:s>
                                    </a:s>
                                    <a:s> </a:s>
                                    <a:s r="560">
                                       <a:s>where </a:s>
                                       <a:s r="560">
                                          <a:s r="569">
                                             <a:s>ToInteger(</a:s>
                                             <a:s r="562">
                                                <a:s r="561">
                                                   <a:s>pa</a:s>
                                                </a:s>
                                                <a:s>.</a:s>
                                                <a:s r="562">
                                                   <a:s>doseNumber</a:s>
                                                </a:s>
                                             </a:s>
                                             <a:s>)</a:s>
                                          </a:s>
                                          <a:s r="574"> &lt; 3</a:s>
                                       </a:s>
                                    </a:s>
                                 </a:s>
                                 <a:s>)</a:s>
                              </a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
                  <a:s> is not null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="580" locator="252:3-253:87" xsi:type="Not">
            <operand localId="579" locator="252:3-253:87" xsi:type="IsNull">
               <operand localId="578" locator="252:3-253:75" xsi:type="Query">
                  <source localId="549" locator="252:4-252:74" alias="I">
                     <expression localId="551" locator="252:4-252:72" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="552" xsi:type="ListTypeSpecifier">
                           <elementType localId="553" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="550" locator="252:5-252:58" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </expression>
                  </source>
                  <where localId="555" locator="253:5-253:74" xsi:type="Exists">
                     <operand localId="577" locator="253:17-253:74" xsi:type="Query">
                        <source localId="556" locator="253:19-253:38" alias="pa">
                           <expression localId="558" locator="253:19-253:35" path="protocolApplied" scope="I" xsi:type="Property"/>
                        </source>
                        <where localId="560" locator="253:40-253:73" xsi:type="Less">
                           <signature localId="575" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                           <signature localId="576" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                           <operand localId="569" locator="253:46-253:69" xsi:type="ToInteger">
                              <signature localId="573" name="t:String" xsi:type="NamedTypeSpecifier"/>
                              <operand localId="571" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                                 <signature localId="572" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                                 <operand localId="570" asType="fhir:string" xsi:type="As">
                                    <operand localId="562" locator="253:56-253:68" path="doseNumber" scope="pa" xsi:type="Property"/>
                                 </operand>
                              </operand>
                           </operand>
                           <operand localId="574" locator="253:73" valueType="t:Integer" value="3" xsi:type="Literal"/>
                        </where>
                     </operand>
                  </where>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="583" locator="262:1-264:76" name="The latest cholera dose was administered more than 6 weeks ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered more than 6 weeks ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≥ 6 weeks"/>
            <a:t name="code" value="The latest cholera dose was administered more than 6 weeks ago-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years"/>
            <a:s r="583">
               <a:s>/*
@input: The latest cholera dose was administered more than 6 weeks ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≥ 6 weeks
@code: The latest cholera dose was administered more than 6 weeks ago-106
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years
*/
define &quot;The latest cholera dose was administered more than 6 weeks ago&quot;:
  </a:s>
               <a:s r="584">
                  <a:s r="587">
                     <a:s r="585">
                        <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="588">
                     <a:s r="589">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="590">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="593">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="599"> >= 6</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="584" locator="263:3-264:76" xsi:type="And">
            <operand localId="587" locator="263:3-263:43" xsi:type="Not">
               <operand localId="586" locator="263:3-263:43" xsi:type="IsNull">
                  <operand localId="585" locator="263:3-263:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="588" locator="264:7-264:76" xsi:type="GreaterOrEqual">
               <signature localId="600" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="601" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="589" locator="264:7-264:71" precision="Week" xsi:type="DurationBetween">
                  <signature localId="597" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="598" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="595" xsi:type="ToDateTime">
                     <signature localId="596" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="590" locator="264:33-264:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="593" locator="264:67-264:71" xsi:type="Now"/>
               </operand>
               <operand localId="599" locator="264:76" valueType="t:Integer" value="6" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="604" locator="272:1-273:94" name="Dose number of the latest primary series dose is three" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Dose number of the latest primary series dose is three"/>
            <a:t name="pseudocode" value="&quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 3"/>
            <a:t name="code" value="Dose number of the latest primary series dose is three-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:s r="604">
               <a:s>/*
@input: Dose number of the latest primary series dose is three
@pseudocode: Latest &quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 3
@code: Dose number of the latest primary series dose is three-106
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
*/
define &quot;Dose number of the latest primary series dose is three&quot;:
  </a:s>
               <a:s r="615">
                  <a:s r="611">
                     <a:s r="606">
                        <a:s r="605">
                           <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="606">
                           <a:s>mostRecent()</a:s>
                        </a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="611">
                        <a:s>getDose(</a:s>
                        <a:s r="609">
                           <a:s>'3'</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s> is not null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="615" locator="273:3-273:94" xsi:type="Not">
            <operand localId="614" locator="273:3-273:94" xsi:type="IsNull">
               <operand localId="611" locator="273:3-273:82" name="getDose" libraryName="Common" xsi:type="FunctionRef">
                  <signature localId="612" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="613" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="606" locator="273:3-273:69" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                     <signature localId="607" xsi:type="ListTypeSpecifier">
                        <elementType localId="608" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                     </signature>
                     <operand localId="605" locator="273:3-273:56" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="609" locator="273:79-273:81" valueType="t:String" value="3" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="618" locator="281:1-283:95" name="The latest cholera dose was administered less than {Member States defined lower limit} days ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered less than {Member States defined lower limit} days ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≤ Member States defined lower limit"/>
            <a:t name="code" value="The latest cholera dose was administered less than {Member States defined lower limit} days ago-132"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:s r="618">
               <a:s>/*
@input: The latest cholera dose was administered less than {Member States defined lower limit} days ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≤ Member States defined lower limit
@code: The latest cholera dose was administered less than {Member States defined lower limit} days ago-132
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
*/
define &quot;The latest cholera dose was administered less than {Member States defined lower limit} days ago&quot;:
  </a:s>
               <a:s r="619">
                  <a:s r="622">
                     <a:s r="620">
                        <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="623">
                     <a:s r="624">
                        <a:s>duration in days between </a:s>
                        <a:s r="625">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="628">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s> &lt;= </a:s>
                     <a:s r="634">
                        <a:s>CholeraLowerLimitDays</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="619" locator="282:3-283:95" xsi:type="And">
            <operand localId="622" locator="282:3-282:43" xsi:type="Not">
               <operand localId="621" locator="282:3-282:43" xsi:type="IsNull">
                  <operand localId="620" locator="282:3-282:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="623" locator="283:7-283:95" xsi:type="LessOrEqual">
               <signature localId="635" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="636" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="624" locator="283:7-283:70" precision="Day" xsi:type="DurationBetween">
                  <signature localId="632" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="633" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="630" xsi:type="ToDateTime">
                     <signature localId="631" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="625" locator="283:32-283:60" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="628" locator="283:66-283:70" xsi:type="Now"/>
               </operand>
               <operand localId="634" locator="283:75-283:95" name="CholeraLowerLimitDays" xsi:type="ParameterRef"/>
            </operand>
         </expression>
      </def>
      <def localId="639" locator="291:1-294:111" name="The latest cholera dose was administered approximately less than 6 months ago {Member States defined exact interval}" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered approximately less than 6 months ago {Member States defined exact interval}"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≤ 6 months"/>
            <a:t name="code" value="The latest cholera dose was administered approximately less than 6 months ago {Member States defined exact interval}-107"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:s r="639">
               <a:s>/*
@input: The latest cholera dose was administered approximately less than 6 months ago {Member States defined exact interval}
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≤ 6 months
@code: The latest cholera dose was administered approximately less than 6 months ago {Member States defined exact interval}-107
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
*/
define &quot;The latest cholera dose was administered approximately less than 6 months ago {Member States defined exact interval}&quot;:
  </a:s>
               <a:s r="640">
                  <a:s r="641">
                     <a:s r="644">
                        <a:s r="642">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> is not null</a:s>
                     </a:s>
                     <a:s>
  and </a:s>
                     <a:s r="645">
                        <a:s r="646">
                           <a:s>duration in days between </a:s>
                           <a:s r="647">
                              <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                           </a:s>
                           <a:s> and </a:s>
                           <a:s r="650">
                              <a:s>Now()</a:s>
                           </a:s>
                        </a:s>
                        <a:s> > </a:s>
                        <a:s r="656">
                           <a:s>CholeraLowerLimitDays</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="659">
                     <a:s r="660">
                        <a:s>duration in days between </a:s>
                        <a:s r="661">
                           <a:s>(</a:s>
                           <a:s r="661">
                              <a:s r="662">
                                 <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                              </a:s>
                              <a:s> + </a:s>
                              <a:s r="663">
                                 <a:s>6 months</a:s>
                              </a:s>
                           </a:s>
                           <a:s>)</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="668">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s> &lt;= </a:s>
                     <a:s r="674">
                        <a:s>CholeraExactIntervalDays</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="640" locator="292:3-294:111" xsi:type="And">
            <operand localId="641" locator="292:3-293:94" xsi:type="And">
               <operand localId="644" locator="292:3-292:43" xsi:type="Not">
                  <operand localId="643" locator="292:3-292:43" xsi:type="IsNull">
                     <operand localId="642" locator="292:3-292:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
               </operand>
               <operand localId="645" locator="293:7-293:94" xsi:type="Greater">
                  <signature localId="657" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="658" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="646" locator="293:7-293:70" precision="Day" xsi:type="DurationBetween">
                     <signature localId="654" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="655" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="652" xsi:type="ToDateTime">
                        <signature localId="653" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="647" locator="293:32-293:60" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                     </operand>
                     <operand localId="650" locator="293:66-293:70" xsi:type="Now"/>
                  </operand>
                  <operand localId="656" locator="293:74-293:94" name="CholeraLowerLimitDays" xsi:type="ParameterRef"/>
               </operand>
            </operand>
            <operand localId="659" locator="294:7-294:111" xsi:type="LessOrEqual">
               <signature localId="675" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="676" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="660" locator="294:7-294:83" precision="Day" xsi:type="DurationBetween">
                  <signature localId="672" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="673" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="670" xsi:type="ToDateTime">
                     <signature localId="671" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="661" locator="294:32-294:73" xsi:type="Add">
                        <signature localId="664" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="665" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="662" locator="294:33-294:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                        <operand localId="663" locator="294:65-294:72" value="6" unit="months" xsi:type="Quantity"/>
                     </operand>
                  </operand>
                  <operand localId="668" locator="294:79-294:83" xsi:type="Now"/>
               </operand>
               <operand localId="674" locator="294:88-294:111" name="CholeraExactIntervalDays" xsi:type="ParameterRef"/>
            </operand>
         </expression>
      </def>
      <def localId="679" locator="302:1-304:110" name="The latest cholera dose was administered approximately more than 6 months ago {Member States defined exact interval}" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered approximately more than 6 months ago {Member States defined exact interval}"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) > 6 months"/>
            <a:t name="code" value="The latest cholera dose was administered approximately more than 6 months ago {Member States defined exact interval}-107"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years"/>
            <a:s r="679">
               <a:s>/*
@input: The latest cholera dose was administered approximately more than 6 months ago {Member States defined exact interval}
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) > 6 months
@code: The latest cholera dose was administered approximately more than 6 months ago {Member States defined exact interval}-107
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 3 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 3-dose schedule for clients aged 2–5 years
*/
define &quot;The latest cholera dose was administered approximately more than 6 months ago {Member States defined exact interval}&quot;:
  </a:s>
               <a:s r="680">
                  <a:s r="683">
                     <a:s r="681">
                        <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="684">
                     <a:s r="685">
                        <a:s>duration in days between </a:s>
                        <a:s r="686">
                           <a:s>(</a:s>
                           <a:s r="686">
                              <a:s r="687">
                                 <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                              </a:s>
                              <a:s> + </a:s>
                              <a:s r="688">
                                 <a:s>6 months</a:s>
                              </a:s>
                           </a:s>
                           <a:s>)</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="693">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s> > </a:s>
                     <a:s r="699">
                        <a:s>CholeraExactIntervalDays</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="680" locator="303:3-304:110" xsi:type="And">
            <operand localId="683" locator="303:3-303:43" xsi:type="Not">
               <operand localId="682" locator="303:3-303:43" xsi:type="IsNull">
                  <operand localId="681" locator="303:3-303:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="684" locator="304:7-304:110" xsi:type="Greater">
               <signature localId="700" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="701" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="685" locator="304:7-304:83" precision="Day" xsi:type="DurationBetween">
                  <signature localId="697" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="698" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="695" xsi:type="ToDateTime">
                     <signature localId="696" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="686" locator="304:32-304:73" xsi:type="Add">
                        <signature localId="689" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="690" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="687" locator="304:33-304:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                        <operand localId="688" locator="304:65-304:72" value="6" unit="months" xsi:type="Quantity"/>
                     </operand>
                  </operand>
                  <operand localId="693" locator="304:79-304:83" xsi:type="Now"/>
               </operand>
               <operand localId="699" locator="304:87-304:110" name="CholeraExactIntervalDays" xsi:type="ParameterRef"/>
            </operand>
         </expression>
      </def>
      <def localId="704" locator="312:1-313:45" name="Client's age is more than 5 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than 5 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; > 5 years"/>
            <a:t name="code" value="Client's age is more than 5 years-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years"/>
            <a:s r="704">
               <a:s>/*
@input: Client's age is more than 5 years
@pseudocode: Today's date − &quot;Date of birth&quot; > 5 years
@code: Client's age is more than 5 years-40
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years
*/
define &quot;Client's age is more than 5 years&quot;:
  </a:s>
               <a:s r="705">
                  <a:s r="707">
                     <a:s r="706">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="707">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="708"> > 5</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="705" locator="313:3-313:45" xsi:type="Greater">
            <signature localId="709" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="710" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="707" locator="313:3-313:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="708" locator="313:45" valueType="t:Integer" value="5" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="713" locator="321:1-323:88" name="Dose number of the latest primary series dose is more than or equal to two" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Dose number of the latest primary series dose is more than or equal to two"/>
            <a:t name="pseudocode" value="&quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) >= 2"/>
            <a:t name="code" value="Dose number of the latest primary series dose is more than or equal to two-107"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years"/>
            <a:s r="713">
               <a:s>/*
@input: Dose number of the latest primary series dose is more than or equal to two
@pseudocode: Latest &quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) >= 2
@code: Dose number of the latest primary series dose is more than or equal to two-107
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years
*/
define &quot;Dose number of the latest primary series dose is more than or equal to two&quot;:
  </a:s>
               <a:s r="745">
                  <a:s r="743">
                     <a:s>(</a:s>
                     <a:s r="743">
                        <a:s>
                           <a:s r="714">
                              <a:s r="716">
                                 <a:s>(</a:s>
                                 <a:s r="716">
                                    <a:s r="715">
                                       <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                                    </a:s>
                                    <a:s>.</a:s>
                                    <a:s r="716">
                                       <a:s>mostRecent()</a:s>
                                    </a:s>
                                 </a:s>
                                 <a:s>)</a:s>
                              </a:s>
                              <a:s> I</a:s>
                           </a:s>
                        </a:s>
                        <a:s>
    </a:s>
                        <a:s r="720">
                           <a:s>where </a:s>
                           <a:s r="720">
                              <a:s>exists</a:s>
                              <a:s r="742">
                                 <a:s>( </a:s>
                                 <a:s r="742">
                                    <a:s>
                                       <a:s r="721">
                                          <a:s r="723">
                                             <a:s>
                                                <a:s>I.protocolApplied</a:s>
                                             </a:s>
                                          </a:s>
                                          <a:s> pa</a:s>
                                       </a:s>
                                    </a:s>
                                    <a:s> </a:s>
                                    <a:s r="725">
                                       <a:s>where </a:s>
                                       <a:s r="725">
                                          <a:s r="734">
                                             <a:s>ToInteger(</a:s>
                                             <a:s r="727">
                                                <a:s r="726">
                                                   <a:s>pa</a:s>
                                                </a:s>
                                                <a:s>.</a:s>
                                                <a:s r="727">
                                                   <a:s>doseNumber</a:s>
                                                </a:s>
                                             </a:s>
                                             <a:s>)</a:s>
                                          </a:s>
                                          <a:s r="739"> >= 2</a:s>
                                       </a:s>
                                    </a:s>
                                 </a:s>
                                 <a:s>)</a:s>
                              </a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
                  <a:s> is not null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="745" locator="322:3-323:88" xsi:type="Not">
            <operand localId="744" locator="322:3-323:88" xsi:type="IsNull">
               <operand localId="743" locator="322:3-323:76" xsi:type="Query">
                  <source localId="714" locator="322:4-322:74" alias="I">
                     <expression localId="716" locator="322:4-322:72" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="717" xsi:type="ListTypeSpecifier">
                           <elementType localId="718" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="715" locator="322:5-322:58" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </expression>
                  </source>
                  <where localId="720" locator="323:5-323:75" xsi:type="Exists">
                     <operand localId="742" locator="323:17-323:75" xsi:type="Query">
                        <source localId="721" locator="323:19-323:38" alias="pa">
                           <expression localId="723" locator="323:19-323:35" path="protocolApplied" scope="I" xsi:type="Property"/>
                        </source>
                        <where localId="725" locator="323:40-323:74" xsi:type="GreaterOrEqual">
                           <signature localId="740" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                           <signature localId="741" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                           <operand localId="734" locator="323:46-323:69" xsi:type="ToInteger">
                              <signature localId="738" name="t:String" xsi:type="NamedTypeSpecifier"/>
                              <operand localId="736" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                                 <signature localId="737" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                                 <operand localId="735" asType="fhir:string" xsi:type="As">
                                    <operand localId="727" locator="323:56-323:68" path="doseNumber" scope="pa" xsi:type="Property"/>
                                 </operand>
                              </operand>
                           </operand>
                           <operand localId="739" locator="323:74" valueType="t:Integer" value="2" xsi:type="Literal"/>
                        </where>
                     </operand>
                  </where>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="748" locator="331:1-334:110" name="The latest cholera dose was administered approximately less than 2 years ago {Member States defined interval}" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered approximately less than 2 years ago {Member States defined interval}"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≤ 2 years ± Member States defined interval"/>
            <a:t name="code" value="The latest cholera dose was administered approximately less than 2 years ago {Member States defined interval}-139"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years"/>
            <a:s r="748">
               <a:s>/*
@input: The latest cholera dose was administered approximately less than 2 years ago {Member States defined interval}
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≤ 2 years ± Member States defined interval
@code: The latest cholera dose was administered approximately less than 2 years ago {Member States defined interval}-139
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years
*/
define &quot;The latest cholera dose was administered approximately less than 2 years ago {Member States defined interval}&quot;:
  </a:s>
               <a:s r="749">
                  <a:s r="750">
                     <a:s r="753">
                        <a:s r="751">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> is not null</a:s>
                     </a:s>
                     <a:s>
  and </a:s>
                     <a:s r="754">
                        <a:s r="755">
                           <a:s>duration in months between </a:s>
                           <a:s r="756">
                              <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                           </a:s>
                           <a:s> and </a:s>
                           <a:s r="759">
                              <a:s>Now()</a:s>
                           </a:s>
                        </a:s>
                        <a:s r="765"> > 21</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="768">
                     <a:s r="769">
                        <a:s>duration in days between </a:s>
                        <a:s r="770">
                           <a:s>(</a:s>
                           <a:s r="770">
                              <a:s r="771">
                                 <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                              </a:s>
                              <a:s> + </a:s>
                              <a:s r="772">
                                 <a:s>2 years</a:s>
                              </a:s>
                           </a:s>
                           <a:s>)</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="777">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s> &lt;= </a:s>
                     <a:s r="783">
                        <a:s>CholeraExactIntervalDays</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="749" locator="332:3-334:110" xsi:type="And">
            <operand localId="750" locator="332:3-333:77" xsi:type="And">
               <operand localId="753" locator="332:3-332:43" xsi:type="Not">
                  <operand localId="752" locator="332:3-332:43" xsi:type="IsNull">
                     <operand localId="751" locator="332:3-332:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
               </operand>
               <operand localId="754" locator="333:7-333:77" xsi:type="Greater">
                  <signature localId="766" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="767" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="755" locator="333:7-333:72" precision="Month" xsi:type="DurationBetween">
                     <signature localId="763" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="764" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="761" xsi:type="ToDateTime">
                        <signature localId="762" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="756" locator="333:34-333:62" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                     </operand>
                     <operand localId="759" locator="333:68-333:72" xsi:type="Now"/>
                  </operand>
                  <operand localId="765" locator="333:76-333:77" valueType="t:Integer" value="21" xsi:type="Literal"/>
               </operand>
            </operand>
            <operand localId="768" locator="334:7-334:110" xsi:type="LessOrEqual">
               <signature localId="784" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="785" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="769" locator="334:7-334:82" precision="Day" xsi:type="DurationBetween">
                  <signature localId="781" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="782" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="779" xsi:type="ToDateTime">
                     <signature localId="780" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="770" locator="334:32-334:72" xsi:type="Add">
                        <signature localId="773" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="774" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="771" locator="334:33-334:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                        <operand localId="772" locator="334:65-334:71" value="2" unit="years" xsi:type="Quantity"/>
                     </operand>
                  </operand>
                  <operand localId="777" locator="334:78-334:82" xsi:type="Now"/>
               </operand>
               <operand localId="783" locator="334:87-334:110" name="CholeraExactIntervalDays" xsi:type="ParameterRef"/>
            </operand>
         </expression>
      </def>
      <def localId="788" locator="342:1-344:109" name="The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) > 2 years ± Member States defined interval"/>
            <a:t name="code" value="The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}-139"/>
            <a:t name="decision" value="IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years"/>
            <a:s r="788">
               <a:s>/*
@input: The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) > 2 years ± Member States defined interval
@code: The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}-139
@decision: IMMZ.D2.DT.Cholera.WC-rBS vaccine 2 doses: Whole cell-recombinant B subunit (WC-rBS) vaccine, 2-dose schedule for clients aged over 5 years
*/
define &quot;The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}&quot;:
  </a:s>
               <a:s r="789">
                  <a:s r="792">
                     <a:s r="790">
                        <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="793">
                     <a:s r="794">
                        <a:s>duration in days between </a:s>
                        <a:s r="795">
                           <a:s>(</a:s>
                           <a:s r="795">
                              <a:s r="796">
                                 <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                              </a:s>
                              <a:s> + </a:s>
                              <a:s r="797">
                                 <a:s>2 years</a:s>
                              </a:s>
                           </a:s>
                           <a:s>)</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="802">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s> > </a:s>
                     <a:s r="808">
                        <a:s>CholeraExactIntervalDays</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="789" locator="343:3-344:109" xsi:type="And">
            <operand localId="792" locator="343:3-343:43" xsi:type="Not">
               <operand localId="791" locator="343:3-343:43" xsi:type="IsNull">
                  <operand localId="790" locator="343:3-343:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="793" locator="344:7-344:109" xsi:type="Greater">
               <signature localId="809" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="810" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="794" locator="344:7-344:82" precision="Day" xsi:type="DurationBetween">
                  <signature localId="806" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="807" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="804" xsi:type="ToDateTime">
                     <signature localId="805" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="795" locator="344:32-344:72" xsi:type="Add">
                        <signature localId="798" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="799" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="796" locator="344:33-344:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                        <operand localId="797" locator="344:65-344:71" value="2" unit="years" xsi:type="Quantity"/>
                     </operand>
                  </operand>
                  <operand localId="802" locator="344:78-344:82" xsi:type="Now"/>
               </operand>
               <operand localId="808" locator="344:86-344:109" name="CholeraExactIntervalDays" xsi:type="ParameterRef"/>
            </operand>
         </expression>
      </def>
   </statements>
</library>
