<?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="312">
         <a:s>/*
  * Library: IMMZD2DTCholeraEncounterElements
  */
library IMMZD2DTCholeraEncounterElements</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD2DTCholeraEncounterElements" 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:46" localIdentifier="Encounter" path="http://smart.who.int/immunizations/IMMZEncounterElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="220">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZEncounterElements</a:s>
               </a:s>
               <a:s> called Encounter</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="222" locator="18:1-18:54" localIdentifier="CholeraElements" path="http://smart.who.int/immunizations/IMMZD2DTCholeraElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="222">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZD2DTCholeraElements</a:s>
               </a:s>
               <a:s> called CholeraElements</a:s>
            </a:s>
         </annotation>
      </def>
   </includes>
   <parameters>
      <def localId="224" locator="20:1-20:36" name="Today" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="224">
               <a:s>parameter Today </a:s>
               <a:s r="228">
                  <a:s>Date</a:s>
               </a:s>
               <a:s> default </a:s>
               <a:s r="227">
                  <a:s>Today()</a:s>
               </a:s>
            </a:s>
         </annotation>
         <default localId="227" locator="20:30-20:36" xsi:type="Today"/>
         <parameterTypeSpecifier localId="228" locator="20:17-20:20" name="t:Date" xsi:type="NamedTypeSpecifier"/>
      </def>
      <def localId="230" locator="21:1-21:28" name="EncounterId" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="230">
               <a:s>parameter EncounterId </a:s>
               <a:s r="231">
                  <a:s>String</a:s>
               </a:s>
            </a:s>
         </annotation>
         <parameterTypeSpecifier localId="231" locator="21:23-21:28" name="t:String" xsi:type="NamedTypeSpecifier"/>
      </def>
      <def localId="233" locator="22:1-22:51" name="CholeraLowerLimitDays" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="233">
               <a:s>parameter CholeraLowerLimitDays </a:s>
               <a:s r="235">
                  <a:s>Integer</a:s>
               </a:s>
               <a:s r="234"> default 150</a:s>
            </a:s>
         </annotation>
         <default localId="234" locator="22:49-22:51" valueType="t:Integer" value="150" xsi:type="Literal"/>
         <parameterTypeSpecifier localId="235" locator="22:33-22:39" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
      </def>
      <def localId="237" locator="23:1-23:52" name="CholeraExactIntervalDays" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="237">
               <a:s>parameter CholeraExactIntervalDays </a:s>
               <a:s r="239">
                  <a:s>Integer</a:s>
               </a:s>
               <a:s r="238"> default 0</a:s>
            </a:s>
         </annotation>
         <default localId="238" locator="23:52" valueType="t:Integer" value="0" xsi:type="Literal"/>
         <parameterTypeSpecifier localId="239" locator="23:36-23:42" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
      </def>
   </parameters>
   <contexts>
      <def localId="244" locator="25:1-25:15" name="Patient"/>
   </contexts>
   <statements>
      <def localId="242" locator="25:1-25:15" name="Patient" context="Patient">
         <expression localId="243" xsi:type="SingletonFrom">
            <operand localId="241" locator="25:1-25:15" dataType="fhir:Patient" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/>
         </expression>
      </def>
      <def localId="247" locator="30:1-33: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="247">
               <a:s>/*
@internal: Cholera containing Doses Administered to Patient
*/
define &quot;Cholera Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="259">
                  <a:s>
                     <a:s r="248">
                        <a:s r="250">
                           <a:s>
                              <a:s>Encounter.&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="256">
                     <a:s>where
    </a:s>
                     <a:s r="256">
                        <a:s r="253">
                           <a:s r="252">
                              <a:s>I</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="253">
                              <a:s>vaccineCode</a:s>
                           </a:s>
                        </a:s>
                        <a:s> in </a:s>
                        <a:s r="255">
                           <a:s r="254">
                              <a:s>Concepts</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="255">
                              <a:s>&quot;Cholera vaccines&quot;</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="259" locator="31:3-33:48" xsi:type="Query">
            <source localId="248" locator="31:3-31:45" alias="I">
               <expression localId="250" locator="31:3-31:43" name="Doses Administered to Patient" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </source>
            <where localId="256" locator="32:3-33:48" xsi:type="InValueSet">
               <signature localId="258" name="t:Concept" xsi:type="NamedTypeSpecifier"/>
               <code localId="257" name="ToConcept" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                  <operand localId="253" locator="33:5-33:17" path="vaccineCode" scope="I" xsi:type="Property"/>
               </code>
               <valueset localId="255" locator="33:22-33:48" name="Cholera vaccines" libraryName="Concepts" preserve="true"/>
            </where>
         </expression>
      </def>
      <def localId="262" locator="38:1-39: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="262">
               <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="264">
                  <a:s r="263">
                     <a:s>&quot;Cholera Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="264">
                     <a:s>seriesPrimary()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="264" locator="39:3-39:57" name="seriesPrimary" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="263" locator="39:3-39:41" name="Cholera Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="267" locator="44:1-45: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="267">
               <a:s>/*
@internal: Number of Cholera Primary Series doses
*/
define &quot;Number of Cholera Primary Series Doses Administered&quot;:
  </a:s>
               <a:s r="271">
                  <a:s>Count(</a:s>
                  <a:s r="268">
                     <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="271" locator="45:3-45:63" xsi:type="Count">
            <source localId="268" locator="45:9-45:62" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="274" locator="53:1-54:46" 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="274">
               <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="275">
                  <a:s r="277">
                     <a:s r="276">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="277">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="278"> &lt; 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="275" locator="54:3-54:46" xsi:type="Less">
            <signature localId="279" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="280" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="277" locator="54:3-54:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="278" locator="54:46" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="283" locator="62:1-63:47" 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="283">
               <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="284">
                  <a:s r="286">
                     <a:s r="285">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="286">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="287"> >= 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="284" locator="63:3-63:47" xsi:type="GreaterOrEqual">
            <signature localId="288" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="289" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="286" locator="63:3-63:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="287" locator="63:47" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="292" locator="73:1-74: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="292">
               <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="293">
                  <a:s r="294">
                     <a:s>&quot;Number of Cholera Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="295"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="293" locator="74:3-74:59" xsi:type="Equal">
            <signature localId="296" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="297" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="294" locator="74:3-74:55" name="Number of Cholera Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="295" locator="74:59" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="300" locator="82:1-83: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="300">
               <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="301">
                  <a:s r="302">
                     <a:s>&quot;Number of Cholera Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="303"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="301" locator="83:3-83:59" xsi:type="Equal">
            <signature localId="304" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="305" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="302" locator="83:3-83:55" name="Number of Cholera Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="303" locator="83:59" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="312" locator="365:1-366: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="312">
               <a:s>/*
@internal: Date of Latest Cholera Dose
*/
define &quot;Date of Latest Cholera Dose&quot;:
  </a:s>
               <a:s r="313">
                  <a:s>date from </a:s>
                  <a:s r="314">
                     <a:s>start of </a:s>
                     <a:s r="320">
                        <a:s r="319">
                           <a:s r="316">
                              <a:s r="315">
                                 <a:s>&quot;Cholera Doses Administered to Patient&quot;</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="316">
                                 <a:s>mostRecent()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="319">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="320">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="313" locator="366:3-366:97" xsi:type="DateFrom">
            <operand localId="314" locator="366:13-366:97" xsi:type="Start">
               <operand localId="320" locator="366:22-366:97" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="319" locator="366:22-366:84" path="occurrence" xsi:type="Property">
                     <source localId="316" locator="366:22-366:73" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="317" xsi:type="ListTypeSpecifier">
                           <elementType localId="318" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="315" locator="366:22-366:60" name="Cholera Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="308" locator="91:1-93: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="308">
               <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="309">
                  <a:s r="323">
                     <a:s r="321">
                        <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="324">
                     <a:s r="325">
                        <a:s>duration in days between </a:s>
                        <a:s r="326">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="327">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="330"> &lt; 14</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="309" locator="92:3-93:75" xsi:type="And">
            <operand localId="323" locator="92:3-92:43" xsi:type="Not">
               <operand localId="322" locator="92:3-92:43" xsi:type="IsNull">
                  <operand localId="321" locator="92:3-92:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="324" locator="93:7-93:75" xsi:type="Less">
               <signature localId="331" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="332" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="325" locator="93:7-93:70" precision="Day" xsi:type="DurationBetween">
                  <signature localId="328" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="329" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="326" locator="93:32-93:60" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  <operand localId="327" locator="93:66-93:70" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="330" locator="93:74-93:75" valueType="t:Integer" value="14" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="335" locator="101:1-102: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="335">
               <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="336">
                  <a:s>not </a:s>
                  <a:s r="337">
                     <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="336" locator="102:3-102:70" xsi:type="Not">
            <operand localId="337" locator="102:7-102:70" name="The latest cholera dose was administered less than 14 days ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="340" locator="110:1-111: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="340">
               <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="341">
                  <a:s r="342">
                     <a:s>&quot;Number of Cholera Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="343"> = 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="341" locator="111:3-111:59" xsi:type="Equal">
            <signature localId="344" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="345" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="342" locator="111:3-111:55" name="Number of Cholera Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="343" locator="111:59" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="355" locator="353:1-354: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="355">
               <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="357">
                  <a:s r="356">
                     <a:s>&quot;Cholera Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="357">
                     <a:s>seriesBooster()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="357" locator="354:3-354:57" name="seriesBooster" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="356" locator="354:3-354:41" name="Cholera Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="352" locator="359:1-360: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="352">
               <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="361">
                  <a:s>Count(</a:s>
                  <a:s r="358">
                     <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="361" locator="360:3-360:63" xsi:type="Count">
            <source localId="358" locator="360:9-360:62" name="Cholera Booster Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="348" locator="119:1-120: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="348">
               <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="349">
                  <a:s r="362">
                     <a:s>&quot;Number of Cholera Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="363"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="349" locator="120:3-120:59" xsi:type="Equal">
            <signature localId="364" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="365" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="362" locator="120:3-120:55" name="Number of Cholera Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="363" locator="120:59" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="368" locator="128:1-130: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="368">
               <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="369">
                  <a:s r="372">
                     <a:s r="370">
                        <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="373">
                     <a:s r="374">
                        <a:s>duration in years between </a:s>
                        <a:s r="375">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="376">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="379"> &lt; 3</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="369" locator="129:3-130:75" xsi:type="And">
            <operand localId="372" locator="129:3-129:43" xsi:type="Not">
               <operand localId="371" locator="129:3-129:43" xsi:type="IsNull">
                  <operand localId="370" locator="129:3-129:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="373" locator="130:7-130:75" xsi:type="Less">
               <signature localId="380" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="381" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="374" locator="130:7-130:71" precision="Year" xsi:type="DurationBetween">
                  <signature localId="377" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="378" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="375" locator="130:33-130:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  <operand localId="376" locator="130:67-130:71" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="379" locator="130:75" valueType="t:Integer" value="3" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="384" locator="138:1-139: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="384">
               <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="385">
                  <a:s>not </a:s>
                  <a:s r="386">
                     <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="385" locator="139:3-139:70" xsi:type="Not">
            <operand localId="386" locator="139:7-139:70" name="The latest cholera dose was administered less than 3 years ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="389" locator="147:1-148: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="389">
               <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="390">
                  <a:s r="391">
                     <a:s>&quot;Number of Cholera Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="392"> >= 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="390" locator="148:3-148:60" xsi:type="GreaterOrEqual">
            <signature localId="393" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="394" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="391" locator="148:3-148:55" name="Number of Cholera Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="392" locator="148:60" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="397" locator="156:1-157: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="397">
               <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="408">
                  <a:s r="404">
                     <a:s r="399">
                        <a:s r="398">
                           <a:s>&quot;Cholera Doses Administered to Patient&quot;</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="399">
                           <a:s>mostRecent()</a:s>
                        </a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="404">
                        <a:s>getDose(</a:s>
                        <a:s r="402">
                           <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="408" locator="157:3-157:79" xsi:type="Not">
            <operand localId="407" locator="157:3-157:79" xsi:type="IsNull">
               <operand localId="404" locator="157:3-157:67" name="getDose" libraryName="Common" xsi:type="FunctionRef">
                  <signature localId="405" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="406" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="399" locator="157:3-157:54" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                     <signature localId="400" xsi:type="ListTypeSpecifier">
                        <elementType localId="401" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                     </signature>
                     <operand localId="398" locator="157:3-157:41" name="Cholera Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="402" locator="157:64-157:66" valueType="t:String" value="1" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="411" locator="165:1-167: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="411">
               <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="412">
                  <a:s r="413">
                     <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="414">
                     <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="412" locator="166:3-167:70" xsi:type="And">
            <operand localId="413" locator="166:3-166:66" name="The latest cholera dose was administered more than 14 days ago" xsi:type="ExpressionRef"/>
            <operand localId="414" locator="167:7-167:70" name="The latest cholera dose was administered less than 3 years ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="417" locator="175:1-176: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="417">
               <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="428">
                  <a:s r="424">
                     <a:s r="419">
                        <a:s r="418">
                           <a:s>&quot;Cholera Doses Administered to Patient&quot;</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="419">
                           <a:s>mostRecent()</a:s>
                        </a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="424">
                        <a:s>getDose(</a:s>
                        <a:s r="422">
                           <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="428" locator="176:3-176:79" xsi:type="Not">
            <operand localId="427" locator="176:3-176:79" xsi:type="IsNull">
               <operand localId="424" locator="176:3-176:67" name="getDose" libraryName="Common" xsi:type="FunctionRef">
                  <signature localId="425" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="426" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="419" locator="176:3-176:54" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                     <signature localId="420" xsi:type="ListTypeSpecifier">
                        <elementType localId="421" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                     </signature>
                     <operand localId="418" locator="176:3-176:41" name="Cholera Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="422" locator="176:64-176:66" valueType="t:String" value="2" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="431" locator="184:1-185:46" 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="431">
               <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="432">
                  <a:s r="434">
                     <a:s r="433">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="434">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="435"> &lt; 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="432" locator="185:3-185:46" xsi:type="Less">
            <signature localId="436" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="437" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="434" locator="185:3-185:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="435" locator="185:46" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="440" locator="193:1-195:51" 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="440">
               <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="441">
                  <a:s r="442">
                     <a:s r="444">
                        <a:s r="443">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="444">
                           <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="445"> >= 2</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="448">
                     <a:s r="450">
                        <a:s r="449">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="450">
                           <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="451"> &lt;= 5</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="441" locator="194:3-195:51" xsi:type="And">
            <operand localId="442" locator="194:3-194:47" xsi:type="GreaterOrEqual">
               <signature localId="446" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="447" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="444" locator="194:3-194:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="445" locator="194:47" valueType="t:Integer" value="2" xsi:type="Literal"/>
            </operand>
            <operand localId="448" locator="195:7-195:51" xsi:type="LessOrEqual">
               <signature localId="452" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="453" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="450" locator="195:7-195:46" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="451" locator="195:51" valueType="t:Integer" value="5" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="456" locator="204:1-205: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="456">
               <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="457">
                  <a:s r="458">
                     <a:s>&quot;Number of Cholera Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="459"> >= 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="457" locator="205:3-205:60" xsi:type="GreaterOrEqual">
            <signature localId="460" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="461" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="458" locator="205:3-205:55" name="Number of Cholera Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="459" locator="205:60" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="464" locator="214:1-215: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="464">
               <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="475">
                  <a:s r="471">
                     <a:s r="466">
                        <a:s r="465">
                           <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="466">
                           <a:s>mostRecent()</a:s>
                        </a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="471">
                        <a:s>getDose(</a:s>
                        <a:s r="469">
                           <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="475" locator="215:3-215:94" xsi:type="Not">
            <operand localId="474" locator="215:3-215:94" xsi:type="IsNull">
               <operand localId="471" locator="215:3-215:82" name="getDose" libraryName="Common" xsi:type="FunctionRef">
                  <signature localId="472" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="473" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="466" locator="215:3-215:69" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                     <signature localId="467" xsi:type="ListTypeSpecifier">
                        <elementType localId="468" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                     </signature>
                     <operand localId="465" locator="215:3-215:56" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="469" locator="215:79-215:81" valueType="t:String" value="1" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="478" locator="224:1-226: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="478">
               <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="479">
                  <a:s r="482">
                     <a:s r="480">
                        <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="483">
                     <a:s r="484">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="485">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="486">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="489"> &lt; 1</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="479" locator="225:3-226:75" xsi:type="And">
            <operand localId="482" locator="225:3-225:43" xsi:type="Not">
               <operand localId="481" locator="225:3-225:43" xsi:type="IsNull">
                  <operand localId="480" locator="225:3-225:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="483" locator="226:7-226:75" xsi:type="Less">
               <signature localId="490" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="491" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="484" locator="226:7-226:71" precision="Week" xsi:type="DurationBetween">
                  <signature localId="487" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="488" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="485" locator="226:33-226:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  <operand localId="486" locator="226:67-226:71" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="489" locator="226:75" valueType="t:Integer" value="1" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="494" locator="235:1-238: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="494">
               <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="495">
                  <a:s r="496">
                     <a:s r="499">
                        <a:s r="497">
                           <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="500">
                        <a:s r="501">
                           <a:s>duration in weeks between </a:s>
                           <a:s r="502">
                              <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                           </a:s>
                           <a:s> and </a:s>
                           <a:s r="503">
                              <a:s>Today</a:s>
                           </a:s>
                        </a:s>
                        <a:s r="506"> >= 1</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="509">
                     <a:s r="510">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="511">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="512">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="515"> &lt; 6</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="495" locator="236:3-238:75" xsi:type="And">
            <operand localId="496" locator="236:3-237:76" xsi:type="And">
               <operand localId="499" locator="236:3-236:43" xsi:type="Not">
                  <operand localId="498" locator="236:3-236:43" xsi:type="IsNull">
                     <operand localId="497" locator="236:3-236:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
               </operand>
               <operand localId="500" locator="237:7-237:76" xsi:type="GreaterOrEqual">
                  <signature localId="507" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="508" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="501" locator="237:7-237:71" precision="Week" xsi:type="DurationBetween">
                     <signature localId="504" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="505" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="502" locator="237:33-237:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                     <operand localId="503" locator="237:67-237:71" name="Today" xsi:type="ParameterRef"/>
                  </operand>
                  <operand localId="506" locator="237:76" valueType="t:Integer" value="1" xsi:type="Literal"/>
               </operand>
            </operand>
            <operand localId="509" locator="238:7-238:75" xsi:type="Less">
               <signature localId="516" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="517" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="510" locator="238:7-238:71" precision="Week" xsi:type="DurationBetween">
                  <signature localId="513" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="514" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="511" locator="238:33-238:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  <operand localId="512" locator="238:67-238:71" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="515" locator="238:75" valueType="t:Integer" value="6" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="520" locator="246:1-247: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="520">
               <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="531">
                  <a:s r="527">
                     <a:s r="522">
                        <a:s r="521">
                           <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="522">
                           <a:s>mostRecent()</a:s>
                        </a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="527">
                        <a:s>getDose(</a:s>
                        <a:s r="525">
                           <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="531" locator="247:3-247:94" xsi:type="Not">
            <operand localId="530" locator="247:3-247:94" xsi:type="IsNull">
               <operand localId="527" locator="247:3-247:82" name="getDose" libraryName="Common" xsi:type="FunctionRef">
                  <signature localId="528" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="529" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="522" locator="247:3-247:69" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                     <signature localId="523" xsi:type="ListTypeSpecifier">
                        <elementType localId="524" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                     </signature>
                     <operand localId="521" locator="247:3-247:56" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="525" locator="247:79-247:81" valueType="t:String" value="2" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="534" locator="255:1-257: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="534">
               <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="566">
                  <a:s r="564">
                     <a:s>(</a:s>
                     <a:s r="564">
                        <a:s>
                           <a:s r="535">
                              <a:s r="537">
                                 <a:s>(</a:s>
                                 <a:s r="537">
                                    <a:s r="536">
                                       <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                                    </a:s>
                                    <a:s>.</a:s>
                                    <a:s r="537">
                                       <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="541">
                           <a:s>where </a:s>
                           <a:s r="541">
                              <a:s>exists</a:s>
                              <a:s r="563">
                                 <a:s>( </a:s>
                                 <a:s r="563">
                                    <a:s>
                                       <a:s r="542">
                                          <a:s r="544">
                                             <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="546">
                                       <a:s>where </a:s>
                                       <a:s r="546">
                                          <a:s r="555">
                                             <a:s>ToInteger(</a:s>
                                             <a:s r="548">
                                                <a:s r="547">
                                                   <a:s>pa</a:s>
                                                </a:s>
                                                <a:s>.</a:s>
                                                <a:s r="548">
                                                   <a:s>doseNumber</a:s>
                                                </a:s>
                                             </a:s>
                                             <a:s>)</a:s>
                                          </a:s>
                                          <a:s r="560"> &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="566" locator="256:3-257:87" xsi:type="Not">
            <operand localId="565" locator="256:3-257:87" xsi:type="IsNull">
               <operand localId="564" locator="256:3-257:75" xsi:type="Query">
                  <source localId="535" locator="256:4-256:74" alias="I">
                     <expression localId="537" locator="256:4-256:72" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="538" xsi:type="ListTypeSpecifier">
                           <elementType localId="539" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="536" locator="256:5-256:58" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </expression>
                  </source>
                  <where localId="541" locator="257:5-257:74" xsi:type="Exists">
                     <operand localId="563" locator="257:17-257:74" xsi:type="Query">
                        <source localId="542" locator="257:19-257:38" alias="pa">
                           <expression localId="544" locator="257:19-257:35" path="protocolApplied" scope="I" xsi:type="Property"/>
                        </source>
                        <where localId="546" locator="257:40-257:73" xsi:type="Less">
                           <signature localId="561" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                           <signature localId="562" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                           <operand localId="555" locator="257:46-257:69" xsi:type="ToInteger">
                              <signature localId="559" name="t:String" xsi:type="NamedTypeSpecifier"/>
                              <operand localId="557" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                                 <signature localId="558" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                                 <operand localId="556" asType="fhir:string" xsi:type="As">
                                    <operand localId="548" locator="257:56-257:68" path="doseNumber" scope="pa" xsi:type="Property"/>
                                 </operand>
                              </operand>
                           </operand>
                           <operand localId="560" locator="257:73" valueType="t:Integer" value="3" xsi:type="Literal"/>
                        </where>
                     </operand>
                  </where>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="569" locator="266:1-268: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="569">
               <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="570">
                  <a:s r="573">
                     <a:s r="571">
                        <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="574">
                     <a:s r="575">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="576">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="577">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="580"> >= 6</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="570" locator="267:3-268:76" xsi:type="And">
            <operand localId="573" locator="267:3-267:43" xsi:type="Not">
               <operand localId="572" locator="267:3-267:43" xsi:type="IsNull">
                  <operand localId="571" locator="267:3-267:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="574" locator="268:7-268:76" xsi:type="GreaterOrEqual">
               <signature localId="581" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="582" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="575" locator="268:7-268:71" precision="Week" xsi:type="DurationBetween">
                  <signature localId="578" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="579" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="576" locator="268:33-268:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  <operand localId="577" locator="268:67-268:71" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="580" locator="268:76" valueType="t:Integer" value="6" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="585" locator="276:1-277: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="585">
               <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="596">
                  <a:s r="592">
                     <a:s r="587">
                        <a:s r="586">
                           <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="587">
                           <a:s>mostRecent()</a:s>
                        </a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="592">
                        <a:s>getDose(</a:s>
                        <a:s r="590">
                           <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="596" locator="277:3-277:94" xsi:type="Not">
            <operand localId="595" locator="277:3-277:94" xsi:type="IsNull">
               <operand localId="592" locator="277:3-277:82" name="getDose" libraryName="Common" xsi:type="FunctionRef">
                  <signature localId="593" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="594" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="587" locator="277:3-277:69" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                     <signature localId="588" xsi:type="ListTypeSpecifier">
                        <elementType localId="589" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                     </signature>
                     <operand localId="586" locator="277:3-277:56" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="590" locator="277:79-277:81" valueType="t:String" value="3" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="599" locator="285:1-287: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="599">
               <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="600">
                  <a:s r="603">
                     <a:s r="601">
                        <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="604">
                     <a:s r="605">
                        <a:s>duration in days between </a:s>
                        <a:s r="606">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="607">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s> &lt;= </a:s>
                     <a:s r="610">
                        <a:s>CholeraLowerLimitDays</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="600" locator="286:3-287:95" xsi:type="And">
            <operand localId="603" locator="286:3-286:43" xsi:type="Not">
               <operand localId="602" locator="286:3-286:43" xsi:type="IsNull">
                  <operand localId="601" locator="286:3-286:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="604" locator="287:7-287:95" xsi:type="LessOrEqual">
               <signature localId="611" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="612" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="605" locator="287:7-287:70" precision="Day" xsi:type="DurationBetween">
                  <signature localId="608" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="609" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="606" locator="287:32-287:60" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  <operand localId="607" locator="287:66-287:70" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="610" locator="287:75-287:95" name="CholeraLowerLimitDays" xsi:type="ParameterRef"/>
            </operand>
         </expression>
      </def>
      <def localId="615" locator="295:1-298: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="615">
               <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="616">
                  <a:s r="617">
                     <a:s r="620">
                        <a:s r="618">
                           <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="621">
                        <a:s r="622">
                           <a:s>duration in days between </a:s>
                           <a:s r="623">
                              <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                           </a:s>
                           <a:s> and </a:s>
                           <a:s r="624">
                              <a:s>Today</a:s>
                           </a:s>
                        </a:s>
                        <a:s> > </a:s>
                        <a:s r="627">
                           <a:s>CholeraLowerLimitDays</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="630">
                     <a:s r="631">
                        <a:s>duration in days between </a:s>
                        <a:s r="632">
                           <a:s>(</a:s>
                           <a:s r="632">
                              <a:s r="633">
                                 <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                              </a:s>
                              <a:s> + </a:s>
                              <a:s r="634">
                                 <a:s>6 months</a:s>
                              </a:s>
                           </a:s>
                           <a:s>)</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="637">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s> &lt;= </a:s>
                     <a:s r="640">
                        <a:s>CholeraExactIntervalDays</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="616" locator="296:3-298:111" xsi:type="And">
            <operand localId="617" locator="296:3-297:94" xsi:type="And">
               <operand localId="620" locator="296:3-296:43" xsi:type="Not">
                  <operand localId="619" locator="296:3-296:43" xsi:type="IsNull">
                     <operand localId="618" locator="296:3-296:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
               </operand>
               <operand localId="621" locator="297:7-297:94" xsi:type="Greater">
                  <signature localId="628" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="629" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="622" locator="297:7-297:70" precision="Day" xsi:type="DurationBetween">
                     <signature localId="625" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="626" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="623" locator="297:32-297:60" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                     <operand localId="624" locator="297:66-297:70" name="Today" xsi:type="ParameterRef"/>
                  </operand>
                  <operand localId="627" locator="297:74-297:94" name="CholeraLowerLimitDays" xsi:type="ParameterRef"/>
               </operand>
            </operand>
            <operand localId="630" locator="298:7-298:111" xsi:type="LessOrEqual">
               <signature localId="641" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="642" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="631" locator="298:7-298:83" precision="Day" xsi:type="DurationBetween">
                  <signature localId="638" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="639" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="632" locator="298:32-298:73" xsi:type="Add">
                     <signature localId="635" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="636" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="633" locator="298:33-298:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                     <operand localId="634" locator="298:65-298:72" value="6" unit="months" xsi:type="Quantity"/>
                  </operand>
                  <operand localId="637" locator="298:79-298:83" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="640" locator="298:88-298:111" name="CholeraExactIntervalDays" xsi:type="ParameterRef"/>
            </operand>
         </expression>
      </def>
      <def localId="645" locator="306:1-308: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="645">
               <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="646">
                  <a:s r="649">
                     <a:s r="647">
                        <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="650">
                     <a:s r="651">
                        <a:s>duration in days between </a:s>
                        <a:s r="652">
                           <a:s>(</a:s>
                           <a:s r="652">
                              <a:s r="653">
                                 <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                              </a:s>
                              <a:s> + </a:s>
                              <a:s r="654">
                                 <a:s>6 months</a:s>
                              </a:s>
                           </a:s>
                           <a:s>)</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="657">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s> > </a:s>
                     <a:s r="660">
                        <a:s>CholeraExactIntervalDays</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="646" locator="307:3-308:110" xsi:type="And">
            <operand localId="649" locator="307:3-307:43" xsi:type="Not">
               <operand localId="648" locator="307:3-307:43" xsi:type="IsNull">
                  <operand localId="647" locator="307:3-307:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="650" locator="308:7-308:110" xsi:type="Greater">
               <signature localId="661" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="662" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="651" locator="308:7-308:83" precision="Day" xsi:type="DurationBetween">
                  <signature localId="658" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="659" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="652" locator="308:32-308:73" xsi:type="Add">
                     <signature localId="655" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="656" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="653" locator="308:33-308:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                     <operand localId="654" locator="308:65-308:72" value="6" unit="months" xsi:type="Quantity"/>
                  </operand>
                  <operand localId="657" locator="308:79-308:83" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="660" locator="308:87-308:110" name="CholeraExactIntervalDays" xsi:type="ParameterRef"/>
            </operand>
         </expression>
      </def>
      <def localId="665" locator="316:1-317:46" 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="665">
               <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="666">
                  <a:s r="668">
                     <a:s r="667">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="668">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="669"> > 5</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="666" locator="317:3-317:46" xsi:type="Greater">
            <signature localId="670" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="671" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="668" locator="317:3-317:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="669" locator="317:46" valueType="t:Integer" value="5" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="674" locator="325:1-327: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="674">
               <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="706">
                  <a:s r="704">
                     <a:s>(</a:s>
                     <a:s r="704">
                        <a:s>
                           <a:s r="675">
                              <a:s r="677">
                                 <a:s>(</a:s>
                                 <a:s r="677">
                                    <a:s r="676">
                                       <a:s>&quot;Cholera Primary Series Doses Administered to Patient&quot;</a:s>
                                    </a:s>
                                    <a:s>.</a:s>
                                    <a:s r="677">
                                       <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="681">
                           <a:s>where </a:s>
                           <a:s r="681">
                              <a:s>exists</a:s>
                              <a:s r="703">
                                 <a:s>( </a:s>
                                 <a:s r="703">
                                    <a:s>
                                       <a:s r="682">
                                          <a:s r="684">
                                             <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="686">
                                       <a:s>where </a:s>
                                       <a:s r="686">
                                          <a:s r="695">
                                             <a:s>ToInteger(</a:s>
                                             <a:s r="688">
                                                <a:s r="687">
                                                   <a:s>pa</a:s>
                                                </a:s>
                                                <a:s>.</a:s>
                                                <a:s r="688">
                                                   <a:s>doseNumber</a:s>
                                                </a:s>
                                             </a:s>
                                             <a:s>)</a:s>
                                          </a:s>
                                          <a:s r="700"> >= 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="706" locator="326:3-327:88" xsi:type="Not">
            <operand localId="705" locator="326:3-327:88" xsi:type="IsNull">
               <operand localId="704" locator="326:3-327:76" xsi:type="Query">
                  <source localId="675" locator="326:4-326:74" alias="I">
                     <expression localId="677" locator="326:4-326:72" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="678" xsi:type="ListTypeSpecifier">
                           <elementType localId="679" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="676" locator="326:5-326:58" name="Cholera Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </expression>
                  </source>
                  <where localId="681" locator="327:5-327:75" xsi:type="Exists">
                     <operand localId="703" locator="327:17-327:75" xsi:type="Query">
                        <source localId="682" locator="327:19-327:38" alias="pa">
                           <expression localId="684" locator="327:19-327:35" path="protocolApplied" scope="I" xsi:type="Property"/>
                        </source>
                        <where localId="686" locator="327:40-327:74" xsi:type="GreaterOrEqual">
                           <signature localId="701" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                           <signature localId="702" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                           <operand localId="695" locator="327:46-327:69" xsi:type="ToInteger">
                              <signature localId="699" name="t:String" xsi:type="NamedTypeSpecifier"/>
                              <operand localId="697" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                                 <signature localId="698" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                                 <operand localId="696" asType="fhir:string" xsi:type="As">
                                    <operand localId="688" locator="327:56-327:68" path="doseNumber" scope="pa" xsi:type="Property"/>
                                 </operand>
                              </operand>
                           </operand>
                           <operand localId="700" locator="327:74" valueType="t:Integer" value="2" xsi:type="Literal"/>
                        </where>
                     </operand>
                  </where>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="709" locator="335:1-338: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="709">
               <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="710">
                  <a:s r="711">
                     <a:s r="714">
                        <a:s r="712">
                           <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="715">
                        <a:s r="716">
                           <a:s>duration in months between </a:s>
                           <a:s r="717">
                              <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                           </a:s>
                           <a:s> and </a:s>
                           <a:s r="718">
                              <a:s>Today</a:s>
                           </a:s>
                        </a:s>
                        <a:s r="721"> > 21</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="724">
                     <a:s r="725">
                        <a:s>duration in days between </a:s>
                        <a:s r="726">
                           <a:s>(</a:s>
                           <a:s r="726">
                              <a:s r="727">
                                 <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                              </a:s>
                              <a:s> + </a:s>
                              <a:s r="728">
                                 <a:s>2 years</a:s>
                              </a:s>
                           </a:s>
                           <a:s>)</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="731">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s> &lt;= </a:s>
                     <a:s r="734">
                        <a:s>CholeraExactIntervalDays</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="710" locator="336:3-338:110" xsi:type="And">
            <operand localId="711" locator="336:3-337:77" xsi:type="And">
               <operand localId="714" locator="336:3-336:43" xsi:type="Not">
                  <operand localId="713" locator="336:3-336:43" xsi:type="IsNull">
                     <operand localId="712" locator="336:3-336:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                  </operand>
               </operand>
               <operand localId="715" locator="337:7-337:77" xsi:type="Greater">
                  <signature localId="722" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="723" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="716" locator="337:7-337:72" precision="Month" xsi:type="DurationBetween">
                     <signature localId="719" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="720" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="717" locator="337:34-337:62" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                     <operand localId="718" locator="337:68-337:72" name="Today" xsi:type="ParameterRef"/>
                  </operand>
                  <operand localId="721" locator="337:76-337:77" valueType="t:Integer" value="21" xsi:type="Literal"/>
               </operand>
            </operand>
            <operand localId="724" locator="338:7-338:110" xsi:type="LessOrEqual">
               <signature localId="735" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="736" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="725" locator="338:7-338:82" precision="Day" xsi:type="DurationBetween">
                  <signature localId="732" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="733" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="726" locator="338:32-338:72" xsi:type="Add">
                     <signature localId="729" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="730" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="727" locator="338:33-338:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                     <operand localId="728" locator="338:65-338:71" value="2" unit="years" xsi:type="Quantity"/>
                  </operand>
                  <operand localId="731" locator="338:78-338:82" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="734" locator="338:87-338:110" name="CholeraExactIntervalDays" xsi:type="ParameterRef"/>
            </operand>
         </expression>
      </def>
      <def localId="739" locator="346:1-348: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="739">
               <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="740">
                  <a:s r="743">
                     <a:s r="741">
                        <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="744">
                     <a:s r="745">
                        <a:s>duration in days between </a:s>
                        <a:s r="746">
                           <a:s>(</a:s>
                           <a:s r="746">
                              <a:s r="747">
                                 <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                              </a:s>
                              <a:s> + </a:s>
                              <a:s r="748">
                                 <a:s>2 years</a:s>
                              </a:s>
                           </a:s>
                           <a:s>)</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="751">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s> > </a:s>
                     <a:s r="754">
                        <a:s>CholeraExactIntervalDays</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="740" locator="347:3-348:109" xsi:type="And">
            <operand localId="743" locator="347:3-347:43" xsi:type="Not">
               <operand localId="742" locator="347:3-347:43" xsi:type="IsNull">
                  <operand localId="741" locator="347:3-347:31" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="744" locator="348:7-348:109" xsi:type="Greater">
               <signature localId="755" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="756" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="745" locator="348:7-348:82" precision="Day" xsi:type="DurationBetween">
                  <signature localId="752" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="753" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="746" locator="348:32-348:72" xsi:type="Add">
                     <signature localId="749" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="750" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="747" locator="348:33-348:61" name="Date of Latest Cholera Dose" xsi:type="ExpressionRef"/>
                     <operand localId="748" locator="348:65-348:71" value="2" unit="years" xsi:type="Quantity"/>
                  </operand>
                  <operand localId="751" locator="348:78-348:82" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="754" locator="348:86-348:109" name="CholeraExactIntervalDays" xsi:type="ParameterRef"/>
            </operand>
         </expression>
      </def>
   </statements>
</library>
