<?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="498">
         <a:s>/*
 * Library: IMMZD18SCholeraWCRBSVaccine2DosesLogic (IMMZ.D18.S.Cholera.WC-rBS vaccine 2-dose schedule)
 * Schedule Table: Whole cell-recombinant B subunit (WC-rBS) vaccine (Dukoral), 2-dose schedule for clients aged ≥ 6 years
 */
library IMMZD18SCholeraWCRBSVaccine2DosesLogic</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD18SCholeraWCRBSVaccine2DosesLogic" system="http://smart.who.int/immunizations"/>
   <schemaIdentifier id="urn:hl7-org:elm" version="r1"/>
   <usings>
      <def localId="1" localIdentifier="System" uri="urn:hl7-org:elm-types:r1" version="1.0.0"/>
      <def localId="206" locator="7:1-7:26" localIdentifier="FHIR" uri="http://hl7.org/fhir" version="4.0.1">
         <annotation xsi:type="a:Annotation">
            <a:s r="206">
               <a:s>using </a:s>
               <a:s>
                  <a:s>FHIR</a:s>
               </a:s>
               <a:s> version '4.0.1'</a:s>
            </a:s>
         </annotation>
      </def>
   </usings>
   <includes>
      <def localId="208" locator="8:1-8:35" localIdentifier="FHIRHelpers" path="http://hl7.org/fhir/FHIRHelpers" version="4.0.1">
         <annotation xsi:type="a:Annotation">
            <a:s r="208">
               <a:s>include </a:s>
               <a:s>
                  <a:s>FHIRHelpers</a:s>
               </a:s>
               <a:s> version '4.0.1'</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="210" locator="10:1-10:27" localIdentifier="WC" path="http://smart.who.int/immunizations/WHOCommon">
         <annotation xsi:type="a:Annotation">
            <a:s r="210">
               <a:s>include </a:s>
               <a:s>
                  <a:s>WHOCommon</a:s>
               </a:s>
               <a:s> called WC</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="212" locator="12:1-12:32" localIdentifier="Common" path="http://smart.who.int/immunizations/IMMZCommon">
         <annotation xsi:type="a:Annotation">
            <a:s r="212">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZCommon</a:s>
               </a:s>
               <a:s> called Common</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="214" locator="13:1-13:36" localIdentifier="Concepts" path="http://smart.who.int/immunizations/IMMZConcepts">
         <annotation xsi:type="a:Annotation">
            <a:s r="214">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZConcepts</a:s>
               </a:s>
               <a:s> called Concepts</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="216" locator="15:1-15:39" localIdentifier="IE" path="http://smart.who.int/immunizations/IMMZEncounterElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="216">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZEncounterElements</a:s>
               </a:s>
               <a:s> called IE</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="218" locator="16:1-16:57" localIdentifier="Encounter" path="http://smart.who.int/immunizations/IMMZD2DTCholeraEncounterElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="218">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZD2DTCholeraEncounterElements</a:s>
               </a:s>
               <a:s> called Encounter</a:s>
            </a:s>
         </annotation>
      </def>
   </includes>
   <parameters>
      <def localId="220" locator="18:1-18:36" name="Today" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="220">
               <a:s>parameter Today </a:s>
               <a:s r="224">
                  <a:s>Date</a:s>
               </a:s>
               <a:s> default </a:s>
               <a:s r="223">
                  <a:s>Today()</a:s>
               </a:s>
            </a:s>
         </annotation>
         <default localId="223" locator="18:30-18:36" xsi:type="Today"/>
         <parameterTypeSpecifier localId="224" locator="18:17-18:20" name="t:Date" xsi:type="NamedTypeSpecifier"/>
      </def>
   </parameters>
   <contexts>
      <def localId="229" locator="21:1-21:15" name="Patient"/>
   </contexts>
   <statements>
      <def localId="227" locator="21:1-21:15" name="Patient" context="Patient">
         <expression localId="228" xsi:type="SingletonFrom">
            <operand localId="226" locator="21:1-21:15" dataType="fhir:Patient" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/>
         </expression>
      </def>
      <def localId="232" locator="37:1-43:3" name="Cholera dose 1" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Cholera dose 1"/>
            <a:t name="description" value="Provision of the cholera dose 1"/>
            <a:t name="trigger" value="Child's birth"/>
            <a:t name="pseudo" value="&quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 0 AND (Today's date − &quot;Date of birth&quot; ≥ 6 years)"/>
            <a:t name="triggerDate" value="&quot;Date of birth&quot;"/>
            <a:s r="232">
               <a:s>/*
@output: Cholera dose 1
@description: Provision of the cholera dose 1
@trigger: Child's birth
@pseudo: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 0 AND (Today's date − &quot;Date of birth&quot; ≥ 6 years)
OR Primary series interrupted for 6 or more weeks
&quot;Completed the primary vaccination series&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = FALSE AND Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ≥ 6 weeks AND (Today's date − &quot;Date of birth&quot; ≥ 6 years)
OR more than 6 months have passed since completion of primary vaccination series
&quot;Completed the primary vaccination series&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = TRUE AND Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) > 2 years AND (Today's date − &quot;Date of birth&quot; ≥ 6 years)
@triggerDate: &quot;Date of birth&quot;
OR
Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;)
*/
define &quot;Cholera dose 1&quot;:
  </a:s>
               <a:s r="233">
                  <a:s r="235">
                     <a:s r="234">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="235">
                        <a:s>&quot;Client's age is more than 5 years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="236">
                     <a:s>( </a:s>
                     <a:s r="236">
                        <a:s r="237">
                           <a:s r="239">
                              <a:s r="238">
                                 <a:s>Encounter</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="239">
                                 <a:s>&quot;No cholera primary series dose was administered&quot;</a:s>
                              </a:s>
                           </a:s>
                           <a:s>
  or </a:s>
                           <a:s r="240">
                              <a:s>( </a:s>
                              <a:s r="240">
                                 <a:s r="241">
                                    <a:s>not </a:s>
                                    <a:s r="243">
                                       <a:s r="242">
                                          <a:s>Encounter</a:s>
                                       </a:s>
                                       <a:s>.</a:s>
                                       <a:s r="243">
                                          <a:s>&quot;Dose number of the latest primary series dose is more than or equal to two&quot;</a:s>
                                       </a:s>
                                    </a:s>
                                 </a:s>
                                 <a:s>
    and </a:s>
                                 <a:s r="245">
                                    <a:s r="244">
                                       <a:s>Encounter</a:s>
                                    </a:s>
                                    <a:s>.</a:s>
                                    <a:s r="245">
                                       <a:s>&quot;The latest cholera dose was administered more than 6 weeks ago&quot;</a:s>
                                    </a:s>
                                 </a:s>
                              </a:s>
                              <a:s>
  )</a:s>
                           </a:s>
                        </a:s>
                        <a:s> or </a:s>
                        <a:s r="247">
                           <a:s r="246">
                              <a:s>Encounter</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="247">
                              <a:s>&quot;The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}&quot;</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                     <a:s>
  )</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="233" locator="38:3-43:3" xsi:type="And">
            <operand localId="235" locator="38:3-38:47" name="Client's age is more than 5 years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="236" locator="39:7-43:3" xsi:type="Or">
               <operand localId="237" locator="39:9-42:3" xsi:type="Or">
                  <operand localId="239" locator="39:9-39:67" name="No cholera primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
                  <operand localId="240" locator="40:6-42:3" xsi:type="And">
                     <operand localId="241" locator="40:8-40:97" xsi:type="Not">
                        <operand localId="243" locator="40:12-40:97" name="Dose number of the latest primary series dose is more than or equal to two" libraryName="Encounter" xsi:type="ExpressionRef"/>
                     </operand>
                     <operand localId="245" locator="41:9-41:82" name="The latest cholera dose was administered more than 6 weeks ago" libraryName="Encounter" xsi:type="ExpressionRef"/>
                  </operand>
               </operand>
               <operand localId="247" locator="42:8-42:128" name="The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
         </expression>
      </def>
      <def localId="264" locator="64:1-72:11" name="Cholera dose 1 Due Date" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="Cholera dose 1 Due Date"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; + 2 years"/>
            <a:s r="264">
               <a:s>/*
@dynamicValue: Cholera dose 1 Due Date
@pseudocode: &quot;Date of birth&quot; + 2 years
*/
define &quot;Cholera dose 1 Due Date&quot;:
  </a:s>
               <a:s r="265">
                  <a:s>if </a:s>
                  <a:s r="266">
                     <a:s>&quot;Cholera dose 1&quot;</a:s>
                  </a:s>
                  <a:s> then
    </a:s>
                  <a:s r="267">
                     <a:s>case </a:s>
                     <a:s r="268">
                        <a:s>when </a:s>
                        <a:s r="270">
                           <a:s r="269">
                              <a:s>Encounter</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="270">
                              <a:s>&quot;No cholera primary series dose was administered&quot;</a:s>
                           </a:s>
                        </a:s>
                        <a:s> then </a:s>
                        <a:s r="271">
                           <a:s r="273">
                              <a:s r="272">
                                 <a:s>Patient</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="273">
                                 <a:s>birthDate</a:s>
                              </a:s>
                           </a:s>
                           <a:s> + </a:s>
                           <a:s r="274">
                              <a:s>2 years</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                     <a:s>
      </a:s>
                     <a:s r="278">
                        <a:s>when </a:s>
                        <a:s r="279">
                           <a:s r="280">
                              <a:s>not </a:s>
                              <a:s r="282">
                                 <a:s r="281">
                                    <a:s>Encounter</a:s>
                                 </a:s>
                                 <a:s>.</a:s>
                                 <a:s r="282">
                                    <a:s>&quot;Dose number of the latest primary series dose is more than or equal to two&quot;</a:s>
                                 </a:s>
                              </a:s>
                           </a:s>
                           <a:s>
        and </a:s>
                           <a:s r="284">
                              <a:s r="283">
                                 <a:s>Encounter</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="284">
                                 <a:s>&quot;The latest cholera dose was administered more than 6 weeks ago&quot;</a:s>
                              </a:s>
                           </a:s>
                        </a:s>
                        <a:s> then </a:s>
                        <a:s r="285">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s>
      </a:s>
                     <a:s r="286">
                        <a:s>when </a:s>
                        <a:s r="288">
                           <a:s r="287">
                              <a:s>Encounter</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="288">
                              <a:s>&quot;The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}&quot;</a:s>
                           </a:s>
                        </a:s>
                        <a:s> then </a:s>
                        <a:s r="289">
                           <a:s r="291">
                              <a:s r="290">
                                 <a:s>Encounter</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="291">
                                 <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                              </a:s>
                           </a:s>
                           <a:s> + </a:s>
                           <a:s r="292">
                              <a:s>2 years</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                     <a:s r="295">
      else null
    end</a:s>
                  </a:s>
                  <a:s r="297">
  else null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="265" locator="65:3-72:11" xsi:type="If">
            <condition localId="266" locator="65:6-65:21" name="Cholera dose 1" xsi:type="ExpressionRef"/>
            <then localId="267" locator="66:5-71:7" xsi:type="Case">
               <caseItem localId="268" locator="66:10-66:106">
                  <when localId="270" locator="66:15-66:73" name="No cholera primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
                  <then localId="271" locator="66:80-66:106" xsi:type="Add">
                     <signature localId="276" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="277" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="275" name="ToDate" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                        <operand localId="273" locator="66:80-66:96" path="birthDate" xsi:type="Property">
                           <source localId="272" locator="66:80-66:86" name="Patient" xsi:type="ExpressionRef"/>
                        </operand>
                     </operand>
                     <operand localId="274" locator="66:100-66:106" value="2" unit="years" xsi:type="Quantity"/>
                  </then>
               </caseItem>
               <caseItem localId="278" locator="67:7-68:97">
                  <when localId="279" locator="67:12-68:86" xsi:type="And">
                     <operand localId="280" locator="67:12-67:101" xsi:type="Not">
                        <operand localId="282" locator="67:16-67:101" name="Dose number of the latest primary series dose is more than or equal to two" libraryName="Encounter" xsi:type="ExpressionRef"/>
                     </operand>
                     <operand localId="284" locator="68:13-68:86" name="The latest cholera dose was administered more than 6 weeks ago" libraryName="Encounter" xsi:type="ExpressionRef"/>
                  </when>
                  <then localId="285" locator="68:93-68:97" name="Today" xsi:type="ParameterRef"/>
               </caseItem>
               <caseItem localId="286" locator="69:7-69:187">
                  <when localId="288" locator="69:12-69:132" name="The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}" libraryName="Encounter" xsi:type="ExpressionRef"/>
                  <then localId="289" locator="69:139-69:187" xsi:type="Add">
                     <signature localId="293" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="294" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="291" locator="69:139-69:177" name="Date of Latest Cholera Dose" libraryName="Encounter" xsi:type="ExpressionRef"/>
                     <operand localId="292" locator="69:181-69:187" value="2" unit="years" xsi:type="Quantity"/>
                  </then>
               </caseItem>
               <else localId="296" asType="t:Date" xsi:type="As">
                  <operand localId="295" locator="70:12-70:15" xsi:type="Null"/>
               </else>
            </then>
            <else localId="298" asType="t:Date" xsi:type="As">
               <operand localId="297" locator="72:8-72:11" xsi:type="Null"/>
            </else>
         </expression>
      </def>
      <def localId="250" locator="52:1-57:9" name="Cholera dose 1 Create" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Cholera dose 1 Create"/>
            <a:t name="create" value="For WC-rBS vaccine (Dukoral), 2 doses should be given to children aged ≥ 6 years and adults, with an interval of 1–6 weeks between doses. If the interval since the last dose ≥ 6 weeks, restart the primary series.&#xa;&#xa;Revaccination for those aged ≥ 6 years: If more than 2 years have passed since completion of primary vaccination series, the primary series of 2 doses should be repeated."/>
            <a:s r="250">
               <a:s>/*
@output: Cholera dose 1 Create
@create: For WC-rBS vaccine (Dukoral), 2 doses should be given to children aged ≥ 6 years and adults, with an interval of 1–6 weeks between doses. If the interval since the last dose ≥ 6 weeks, restart the primary series.

Revaccination for those aged ≥ 6 years: If more than 2 years have passed since completion of primary vaccination series, the primary series of 2 doses should be repeated.
*/
define &quot;Cholera dose 1 Create&quot;:
  </a:s>
               <a:s r="251">
                  <a:s>if </a:s>
                  <a:s r="252">
                     <a:s>&quot;Cholera dose 1&quot;</a:s>
                  </a:s>
                  <a:s>
  then </a:s>
                  <a:s r="307">
                     <a:s r="261">
                        <a:s r="255">
                           <a:s>'For WC-rBS vaccine (Dukoral), 2 doses should be given to children aged ≥ 6 years and adults, with an interval of 1–6 weeks between doses. If the interval since the last dose ≥ 6 weeks, restart the primary series.
Revaccination for those aged ≥ 6 years: If more than 2 years have passed since completion of primary vaccination series, the primary series of 2 doses should be repeated.'</a:s>
                        </a:s>
                        <a:s> + </a:s>
                        <a:s r="257">
                           <a:s>'
Due Date: '</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="303">
                        <a:s>ToString(</a:s>
                        <a:s r="299">
                           <a:s>&quot;Cholera dose 1 Due Date&quot;</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  else </a:s>
                  <a:s r="308">
                     <a:s>''</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="251" locator="53:3-57:9" xsi:type="If">
            <condition localId="252" locator="53:6-53:21" name="Cholera dose 1" xsi:type="ExpressionRef"/>
            <then localId="307" locator="54:8-56:49" xsi:type="Concatenate">
               <operand localId="261" locator="54:8-55:187" xsi:type="Concatenate">
                  <operand localId="255" locator="54:8-54:392" valueType="t:String" value="For WC-rBS vaccine (Dukoral), 2 doses should be given to children aged ≥ 6 years and adults, with an interval of 1–6 weeks between doses. If the interval since the last dose ≥ 6 weeks, restart the primary series.&#xa;Revaccination for those aged ≥ 6 years: If more than 2 years have passed since completion of primary vaccination series, the primary series of 2 doses should be repeated." xsi:type="Literal"/>
                  <operand localId="257" locator="55:175-55:187" valueType="t:String" value="&#xa;Due Date: " xsi:type="Literal"/>
               </operand>
               <operand localId="303" locator="56:15-56:49" xsi:type="ToString">
                  <signature localId="304" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="299" locator="56:24-56:48" name="Cholera dose 1 Due Date" xsi:type="ExpressionRef"/>
               </operand>
            </then>
            <else localId="308" locator="57:8-57:9" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="312" locator="79:1-80:6" name="Cholera dose 1 Overdue" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="Cholera dose 1 Overdue"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date."/>
            <a:s r="312">
               <a:s r="313">/*
@dynamicValue: Cholera dose 1 Overdue
@pseudocode: To be determined by Member States; however, there is no recommended overdue date.
*/
define &quot;Cholera dose 1 Overdue&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="313" locator="80:3-80:6" xsi:type="Null"/>
      </def>
      <def localId="316" locator="87:1-88:6" name="Cholera dose 1 Expiration" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="Cholera dose 1 Expiration"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended expiration date and individuals are always eligible to be vaccinated."/>
            <a:s r="316">
               <a:s r="317">/*
@dynamicValue: Cholera dose 1 Expiration
@pseudocode: To be determined by Member States; however, there is no recommended expiration date and individuals are always eligible to be vaccinated.
*/
define &quot;Cholera dose 1 Expiration&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="317" locator="88:3-88:6" xsi:type="Null"/>
      </def>
      <def localId="320" locator="95:1-96:66" name="First cholera dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="complete" value="First cholera dose was administered"/>
            <a:t name="pseudocode" value="&quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 1"/>
            <a:s r="320">
               <a:s>/*
@complete: First cholera dose was administered
@pseudocode: Latest &quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 1
*/
define &quot;First cholera dose was administered&quot;:
  </a:s>
               <a:s r="322">
                  <a:s r="321">
                     <a:s>Encounter</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="322">
                     <a:s>&quot;Dose number of the latest primary series dose is one&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="322" locator="96:3-96:66" name="Dose number of the latest primary series dose is one" libraryName="Encounter" xsi:type="ExpressionRef"/>
      </def>
      <def localId="333" locator="147:1-148:51" name="Cholera dose 2 Expiration" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="Cholera dose 2 Expiration"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) + 6 weeks"/>
            <a:s r="333">
               <a:s>/*
@dynamicValue: Cholera dose 2 Expiration
@pseudocode: Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) + 6 weeks
*/
define &quot;Cholera dose 2 Expiration&quot;:
  </a:s>
               <a:s r="334">
                  <a:s r="336">
                     <a:s r="335">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="336">
                        <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s> + </a:s>
                  <a:s r="337">
                     <a:s>6 weeks</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="334" locator="148:3-148:51" xsi:type="Add">
            <signature localId="338" name="t:Date" xsi:type="NamedTypeSpecifier"/>
            <signature localId="339" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
            <operand localId="336" locator="148:3-148:41" name="Date of Latest Cholera Dose" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="337" locator="148:45-148:51" value="6" unit="weeks" xsi:type="Quantity"/>
         </expression>
      </def>
      <def localId="349" locator="155:1-156:66" name="Second cholera dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="complete" value="Second cholera dose was administered"/>
            <a:t name="pseudocode" value="&quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 2"/>
            <a:s r="349">
               <a:s>/*
@complete: Second cholera dose was administered
@pseudocode: Latest &quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 2
*/
define &quot;Second cholera dose was administered&quot;:
  </a:s>
               <a:s r="351">
                  <a:s r="350">
                     <a:s>Encounter</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="351">
                     <a:s>&quot;Dose number of the latest primary series dose is two&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="351" locator="156:3-156:66" name="Dose number of the latest primary series dose is two" libraryName="Encounter" xsi:type="ExpressionRef"/>
      </def>
      <def localId="325" locator="107:1-111:48" name="Cholera dose 2" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Cholera dose 2"/>
            <a:t name="description" value="Provision of the cholera dose 2"/>
            <a:t name="trigger" value="First cholera dose was administered"/>
            <a:t name="pseudo" value="&quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 1 AND (Today's date − &quot;Date of birth&quot; ≥ 6 years)"/>
            <a:t name="triggerDate" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;)"/>
            <a:s r="325">
               <a:s>/*
@output: Cholera dose 2
@description: Provision of the cholera dose 2
@trigger: First cholera dose was administered
@pseudo: Latest &quot;Dose number&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = 1 AND (Today's date − &quot;Date of birth&quot; ≥ 6 years)
@triggerDate: Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;)
*/
define &quot;Cholera dose 2&quot;:
  </a:s>
               <a:s r="326">
                  <a:s r="327">
                     <a:s r="328">
                        <a:s r="330">
                           <a:s r="329">
                              <a:s>Encounter</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="330">
                              <a:s>&quot;Client's age is more than 5 years&quot;</a:s>
                           </a:s>
                        </a:s>
                        <a:s>
  and </a:s>
                        <a:s r="342">
                           <a:s r="340">
                              <a:s>&quot;Cholera dose 2 Expiration&quot;</a:s>
                           </a:s>
                           <a:s r="342"> after day of </a:s>
                           <a:s r="341">
                              <a:s>Today</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                     <a:s>
  and </a:s>
                     <a:s r="345">
                        <a:s>&quot;First cholera dose was administered&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="346">
                     <a:s>not </a:s>
                     <a:s r="352">
                        <a:s>&quot;Second cholera dose was administered&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="326" locator="108:3-111:48" xsi:type="And">
            <operand localId="327" locator="108:3-110:43" xsi:type="And">
               <operand localId="328" locator="108:3-109:52" xsi:type="And">
                  <operand localId="330" locator="108:3-108:47" name="Client's age is more than 5 years" libraryName="Encounter" xsi:type="ExpressionRef"/>
                  <operand localId="342" locator="109:7-109:52" precision="Day" xsi:type="After">
                     <signature localId="343" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <signature localId="344" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="340" locator="109:7-109:33" name="Cholera dose 2 Expiration" xsi:type="ExpressionRef"/>
                     <operand localId="341" locator="109:48-109:52" name="Today" xsi:type="ParameterRef"/>
                  </operand>
               </operand>
               <operand localId="345" locator="110:7-110:43" name="First cholera dose was administered" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="346" locator="111:7-111:48" xsi:type="Not">
               <operand localId="352" locator="111:11-111:48" name="Second cholera dose was administered" xsi:type="ExpressionRef"/>
            </operand>
         </expression>
      </def>
      <def localId="371" locator="130:1-132:11" name="Cholera dose 2 Due Date" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="Cholera dose 2 Due Date"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) + 1 week"/>
            <a:s r="371">
               <a:s>/*
@dynamicValue: Cholera dose 2 Due Date
@pseudocode: Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) + 1 week
*/
define &quot;Cholera dose 2 Due Date&quot;:
  </a:s>
               <a:s r="372">
                  <a:s>if </a:s>
                  <a:s r="373">
                     <a:s>&quot;Cholera dose 2&quot;</a:s>
                  </a:s>
                  <a:s> then </a:s>
                  <a:s r="374">
                     <a:s r="376">
                        <a:s r="375">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="376">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="377">
                        <a:s>1 week</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="380">
  else null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="372" locator="131:3-132:11" xsi:type="If">
            <condition localId="373" locator="131:6-131:21" name="Cholera dose 2" xsi:type="ExpressionRef"/>
            <then localId="374" locator="131:28-131:75" xsi:type="Add">
               <signature localId="378" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <signature localId="379" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
               <operand localId="376" locator="131:28-131:66" name="Date of Latest Cholera Dose" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="377" locator="131:70-131:75" value="1" unit="week" xsi:type="Quantity"/>
            </then>
            <else localId="381" asType="t:Date" xsi:type="As">
               <operand localId="380" locator="132:8-132:11" xsi:type="Null"/>
            </else>
         </expression>
      </def>
      <def localId="355" locator="118:1-123:9" name="Cholera dose 2 Create" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Cholera dose 2 Create"/>
            <a:t name="create" value="For WC-rBS vaccine (Dukoral) 2 doses should be given to children aged ≥6 years and adults, with an interval of 1-6 weeks between doses."/>
            <a:s r="355">
               <a:s>/*
@output: Cholera dose 2 Create
@create: For WC-rBS vaccine (Dukoral) 2 doses should be given to children aged ≥6 years and adults, with an interval of 1-6 weeks between doses.
*/
define &quot;Cholera dose 2 Create&quot;:
  </a:s>
               <a:s r="356">
                  <a:s>if </a:s>
                  <a:s r="357">
                     <a:s>&quot;Cholera dose 2&quot;</a:s>
                  </a:s>
                  <a:s>
  then </a:s>
                  <a:s r="404">
                     <a:s r="395">
                        <a:s r="390">
                           <a:s r="368">
                              <a:s r="362">
                                 <a:s>'For WC-rBS vaccine (Dukoral)  2 doses should be given to children aged ≥6 years and adults, with an interval of 1-6 weeks between doses.'</a:s>
                              </a:s>
                              <a:s> + </a:s>
                              <a:s r="364">
                                 <a:s>'
Due Date: '</a:s>
                              </a:s>
                           </a:s>
                           <a:s> + </a:s>
                           <a:s r="386">
                              <a:s>ToString(</a:s>
                              <a:s r="382">
                                 <a:s>&quot;Cholera dose 2 Due Date&quot;</a:s>
                              </a:s>
                              <a:s>)</a:s>
                           </a:s>
                        </a:s>
                        <a:s> + </a:s>
                        <a:s r="391">
                           <a:s>'
Expiration: '</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="400">
                        <a:s>ToString(</a:s>
                        <a:s r="396">
                           <a:s>&quot;Cholera dose 2 Expiration&quot;</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  else </a:s>
                  <a:s r="405">
                     <a:s>''</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="356" locator="119:3-123:9" xsi:type="If">
            <condition localId="357" locator="119:6-119:21" name="Cholera dose 2" xsi:type="ExpressionRef"/>
            <then localId="404" locator="120:8-122:53" xsi:type="Concatenate">
               <operand localId="395" locator="120:8-121:67" xsi:type="Concatenate">
                  <operand localId="390" locator="120:8-121:49" xsi:type="Concatenate">
                     <operand localId="368" locator="120:8-120:161" xsi:type="Concatenate">
                        <operand localId="362" locator="120:8-120:145" valueType="t:String" value="For WC-rBS vaccine (Dukoral)  2 doses should be given to children aged ≥6 years and adults, with an interval of 1-6 weeks between doses." xsi:type="Literal"/>
                        <operand localId="364" locator="120:149-120:161" valueType="t:String" value="&#xa;Due Date: " xsi:type="Literal"/>
                     </operand>
                     <operand localId="386" locator="121:15-121:49" xsi:type="ToString">
                        <signature localId="387" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="382" locator="121:24-121:48" name="Cholera dose 2 Due Date" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="391" locator="121:53-121:67" valueType="t:String" value="&#xa;Expiration: " xsi:type="Literal"/>
               </operand>
               <operand localId="400" locator="122:17-122:53" xsi:type="ToString">
                  <signature localId="401" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="396" locator="122:26-122:52" name="Cholera dose 2 Expiration" xsi:type="ExpressionRef"/>
               </operand>
            </then>
            <else localId="405" locator="123:8-123:9" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="409" locator="139:1-140:6" name="Cholera dose 2 Overdue" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="Cholera dose 2 Overdue"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date."/>
            <a:s r="409">
               <a:s r="410">/*
@dynamicValue: Cholera dose 2 Overdue
@pseudocode: To be determined by Member States; however, there is no recommended overdue date.
*/
define &quot;Cholera dose 2 Overdue&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="410" locator="140:3-140:6" xsi:type="Null"/>
      </def>
      <def localId="413" locator="167:1-169:131" name="Cholera booster dose" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Cholera booster dose"/>
            <a:t name="description" value="Provision of the cholera booster dose"/>
            <a:t name="trigger" value="Primary series for cholera has been completed and latest cholera dose was administered approximately less than 2 years ago"/>
            <a:t name="pseudo" value="&quot;Completed the primary vaccination series&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = TRUE AND 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 AND (Today's date − &quot;Date of birth&quot; ≥ 6 years)"/>
            <a:t name="triggerDate" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;)"/>
            <a:s r="413">
               <a:s>/*
@output: Cholera booster dose
@description: Provision of the cholera booster dose
@trigger: Primary series for cholera has been completed and latest cholera dose was administered approximately less than 2 years ago
@pseudo: &quot;Completed the primary vaccination series&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) = TRUE AND 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 AND (Today's date − &quot;Date of birth&quot; ≥ 6 years)
@triggerDate: Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;)
*/
define &quot;Cholera booster dose&quot;:
  </a:s>
               <a:s r="414">
                  <a:s r="415">
                     <a:s>&quot;Second cholera dose was administered&quot;</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="416">
                     <a:s>not </a:s>
                     <a:s r="418">
                        <a:s r="417">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="418">
                           <a:s>&quot;The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}&quot;</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="414" locator="168:3-169:131" xsi:type="And">
            <operand localId="415" locator="168:3-168:40" name="Second cholera dose was administered" xsi:type="ExpressionRef"/>
            <operand localId="416" locator="169:7-169:131" xsi:type="Not">
               <operand localId="418" locator="169:11-169:131" name="The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
         </expression>
      </def>
      <def localId="437" locator="188:1-190:11" name="Cholera booster dose Due Date" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="Cholera booster dose Due Date"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ± Member States defined interval"/>
            <a:s r="437">
               <a:s>/*
@dynamicValue: Cholera booster dose Due Date
@pseudocode: Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) ± Member States defined interval
*/
define &quot;Cholera booster dose Due Date&quot;:
  </a:s>
               <a:s r="438">
                  <a:s>if </a:s>
                  <a:s r="439">
                     <a:s>&quot;Cholera booster dose&quot;</a:s>
                  </a:s>
                  <a:s> then </a:s>
                  <a:s r="440">
                     <a:s r="442">
                        <a:s r="441">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="442">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="443">
                        <a:s>22 months</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="446">
  else null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="438" locator="189:3-190:11" xsi:type="If">
            <condition localId="439" locator="189:6-189:27" name="Cholera booster dose" xsi:type="ExpressionRef"/>
            <then localId="440" locator="189:34-189:84" xsi:type="Add">
               <signature localId="444" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <signature localId="445" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
               <operand localId="442" locator="189:34-189:72" name="Date of Latest Cholera Dose" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="443" locator="189:76-189:84" value="22" unit="months" xsi:type="Quantity"/>
            </then>
            <else localId="447" asType="t:Date" xsi:type="As">
               <operand localId="446" locator="190:8-190:11" xsi:type="Null"/>
            </else>
         </expression>
      </def>
      <def localId="464" locator="205:1-207:11" name="Cholera booster dose Expiration" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="Cholera booster dose Expiration"/>
            <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:s r="464">
               <a:s>/*
@dynamicValue: Cholera booster dose Expiration
@pseudocode: Latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot;) + 2 years + Member states defined interval
*/
define &quot;Cholera booster dose Expiration&quot;:
  </a:s>
               <a:s r="465">
                  <a:s>if </a:s>
                  <a:s r="466">
                     <a:s>&quot;Cholera booster dose&quot;</a:s>
                  </a:s>
                  <a:s> then </a:s>
                  <a:s r="467">
                     <a:s r="469">
                        <a:s r="468">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="469">
                           <a:s>&quot;Date of Latest Cholera Dose&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="470">
                        <a:s>2 years</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="473">
  else null</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="465" locator="206:3-207:11" xsi:type="If">
            <condition localId="466" locator="206:6-206:27" name="Cholera booster dose" xsi:type="ExpressionRef"/>
            <then localId="467" locator="206:34-206:82" xsi:type="Add">
               <signature localId="471" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <signature localId="472" name="t:Quantity" xsi:type="NamedTypeSpecifier"/>
               <operand localId="469" locator="206:34-206:72" name="Date of Latest Cholera Dose" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="470" locator="206:76-206:82" value="2" unit="years" xsi:type="Quantity"/>
            </then>
            <else localId="474" asType="t:Date" xsi:type="As">
               <operand localId="473" locator="207:8-207:11" xsi:type="Null"/>
            </else>
         </expression>
      </def>
      <def localId="421" locator="176:1-181:9" name="Cholera booster dose Create" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Cholera booster dose Create"/>
            <a:t name="create" value="For WC-rBS vaccine, for those aged ≥ 6 years of age, if less than 2 years have passed since completion of primary vaccination series, 1 dose for revaccination."/>
            <a:s r="421">
               <a:s>/*
@output: Cholera booster dose Create
@create: For WC-rBS vaccine, for those aged ≥ 6 years of age, if less than 2 years have passed since completion of primary vaccination series, 1 dose for revaccination.
*/
define &quot;Cholera booster dose Create&quot;:
  </a:s>
               <a:s r="422">
                  <a:s>if </a:s>
                  <a:s r="423">
                     <a:s>&quot;Cholera booster dose&quot;</a:s>
                  </a:s>
                  <a:s>
  then </a:s>
                  <a:s r="483">
                     <a:s r="461">
                        <a:s r="456">
                           <a:s r="434">
                              <a:s r="428">
                                 <a:s>'For WC-rBS vaccine, for those aged ≥ 6 years of age, if less than 2 years have passed since completion of primary vaccination series, 1 dose for revaccination.'</a:s>
                              </a:s>
                              <a:s> + </a:s>
                              <a:s r="430">
                                 <a:s>'
Due Date: '</a:s>
                              </a:s>
                           </a:s>
                           <a:s> + </a:s>
                           <a:s r="452">
                              <a:s>ToString(</a:s>
                              <a:s r="448">
                                 <a:s>&quot;Cholera booster dose Due Date&quot;</a:s>
                              </a:s>
                              <a:s>)</a:s>
                           </a:s>
                        </a:s>
                        <a:s> + </a:s>
                        <a:s r="457">
                           <a:s>'
Expiration: '</a:s>
                        </a:s>
                     </a:s>
                     <a:s> + </a:s>
                     <a:s r="479">
                        <a:s>ToString(</a:s>
                        <a:s r="475">
                           <a:s>&quot;Cholera booster dose Expiration&quot;</a:s>
                        </a:s>
                        <a:s>)</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  else </a:s>
                  <a:s r="484">
                     <a:s>''</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="422" locator="177:3-181:9" xsi:type="If">
            <condition localId="423" locator="177:6-177:27" name="Cholera booster dose" xsi:type="ExpressionRef"/>
            <then localId="483" locator="178:8-180:59" xsi:type="Concatenate">
               <operand localId="461" locator="178:8-179:73" xsi:type="Concatenate">
                  <operand localId="456" locator="178:8-179:55" xsi:type="Concatenate">
                     <operand localId="434" locator="178:8-178:184" xsi:type="Concatenate">
                        <operand localId="428" locator="178:8-178:168" valueType="t:String" value="For WC-rBS vaccine, for those aged ≥ 6 years of age, if less than 2 years have passed since completion of primary vaccination series, 1 dose for revaccination." xsi:type="Literal"/>
                        <operand localId="430" locator="178:172-178:184" valueType="t:String" value="&#xa;Due Date: " xsi:type="Literal"/>
                     </operand>
                     <operand localId="452" locator="179:15-179:55" xsi:type="ToString">
                        <signature localId="453" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="448" locator="179:24-179:54" name="Cholera booster dose Due Date" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="457" locator="179:59-179:73" valueType="t:String" value="&#xa;Expiration: " xsi:type="Literal"/>
               </operand>
               <operand localId="479" locator="180:17-180:59" xsi:type="ToString">
                  <signature localId="480" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="475" locator="180:26-180:58" name="Cholera booster dose Expiration" xsi:type="ExpressionRef"/>
               </operand>
            </then>
            <else localId="484" locator="181:8-181:9" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="488" locator="197:1-198:6" name="Cholera booster dose Overdue" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="Cholera booster dose Overdue"/>
            <a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date."/>
            <a:s r="488">
               <a:s r="489">/*
@dynamicValue: Cholera booster dose Overdue
@pseudocode: To be determined by Member States; however, there is no recommended overdue date.
*/
define &quot;Cholera booster dose Overdue&quot;:
  null</a:s>
            </a:s>
         </annotation>
         <expression localId="489" locator="198:3-198:6" xsi:type="Null"/>
      </def>
      <def localId="492" locator="214:1-215:127" name="Booster dose was administered approximately less than 2 years ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="complete" value="Booster dose was administered approximately less than 2 years ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; AND &quot;Type of dose&quot; = &quot;Booster dose&quot;) ≤ 2 years ± Member States defined interval"/>
            <a:s r="492">
               <a:s>/*
@complete: Booster dose was administered approximately less than 2 years ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Cholera vaccines&quot; AND &quot;Type of dose&quot; = &quot;Booster dose&quot;) ≤ 2 years ± Member States defined interval
*/
define &quot;Booster dose was administered approximately less than 2 years ago&quot;:
  </a:s>
               <a:s r="493">
                  <a:s>not </a:s>
                  <a:s r="495">
                     <a:s r="494">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="495">
                        <a:s>&quot;The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="493" locator="215:3-215:127" xsi:type="Not">
            <operand localId="495" locator="215:7-215:127" name="The latest cholera dose was administered approximately more than 2 years ago {Member States defined interval}" libraryName="Encounter" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="498" locator="222:1-231:5" name="Test Validation" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="test" value="Test expected results based on example patients"/>
            <a:s r="498">
               <a:s>/*
@test: Test expected results based on example patients
*/
define &quot;Test Validation&quot;:
  </a:s>
               <a:s r="499">
                  <a:s>case
    </a:s>
                  <a:s r="500">
                     <a:s>when </a:s>
                     <a:s r="501">
                        <a:s r="503">
                           <a:s r="502">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="503">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="504">
                           <a:s>'Cholera44.2'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="510">
                        <a:s>&quot;Cholera dose 1&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="511">
                     <a:s>when </a:s>
                     <a:s r="512">
                        <a:s r="514">
                           <a:s r="513">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="514">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="515">
                           <a:s>'Cholera45.4'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="521">
                        <a:s>&quot;Cholera dose 2&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="522">
                     <a:s>when </a:s>
                     <a:s r="523">
                        <a:s r="525">
                           <a:s r="524">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="525">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="526">
                           <a:s>'Cholera46.4'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="532">
                        <a:s>&quot;Cholera dose 2&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="533">
                     <a:s>when </a:s>
                     <a:s r="534">
                        <a:s r="536">
                           <a:s r="535">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="536">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="537">
                           <a:s>'Cholera47.4'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="543">
                        <a:s>&quot;Cholera dose 1&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="544">
                     <a:s>when </a:s>
                     <a:s r="545">
                        <a:s r="547">
                           <a:s r="546">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="547">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="548">
                           <a:s>'Cholera48.4'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="554">
                        <a:s>&quot;Cholera booster dose&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="555">
                     <a:s>when </a:s>
                     <a:s r="556">
                        <a:s r="558">
                           <a:s r="557">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="558">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="559">
                           <a:s>'Cholera49.4'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="565">
                        <a:s>&quot;Cholera dose 1&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    else </a:s>
                  <a:s r="566">
                     <a:s>'No test case set'</a:s>
                  </a:s>
                  <a:s>
  end</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="499" locator="223:3-231:5" xsi:type="Case">
            <caseItem localId="500" locator="224:5-224:57">
               <when localId="501" locator="224:10-224:35" xsi:type="Equal">
                  <signature localId="508" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="509" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="506" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="507" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="503" locator="224:10-224:19" path="id" xsi:type="Property">
                        <source localId="502" locator="224:10-224:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="504" locator="224:23-224:35" valueType="t:String" value="Cholera44.2" xsi:type="Literal"/>
               </when>
               <then localId="568" xsi:type="As">
                  <operand localId="510" locator="224:42-224:57" name="Cholera dose 1" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="569" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="570" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="571" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="511" locator="225:5-225:57">
               <when localId="512" locator="225:10-225:35" xsi:type="Equal">
                  <signature localId="519" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="520" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="517" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="518" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="514" locator="225:10-225:19" path="id" xsi:type="Property">
                        <source localId="513" locator="225:10-225:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="515" locator="225:23-225:35" valueType="t:String" value="Cholera45.4" xsi:type="Literal"/>
               </when>
               <then localId="572" xsi:type="As">
                  <operand localId="521" locator="225:42-225:57" name="Cholera dose 2" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="573" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="574" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="575" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="522" locator="226:5-226:57">
               <when localId="523" locator="226:10-226:35" xsi:type="Equal">
                  <signature localId="530" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="531" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="528" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="529" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="525" locator="226:10-226:19" path="id" xsi:type="Property">
                        <source localId="524" locator="226:10-226:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="526" locator="226:23-226:35" valueType="t:String" value="Cholera46.4" xsi:type="Literal"/>
               </when>
               <then localId="576" xsi:type="As">
                  <operand localId="532" locator="226:42-226:57" name="Cholera dose 2" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="577" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="578" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="579" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="533" locator="227:5-227:57">
               <when localId="534" locator="227:10-227:35" xsi:type="Equal">
                  <signature localId="541" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="542" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="539" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="540" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="536" locator="227:10-227:19" path="id" xsi:type="Property">
                        <source localId="535" locator="227:10-227:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="537" locator="227:23-227:35" valueType="t:String" value="Cholera47.4" xsi:type="Literal"/>
               </when>
               <then localId="580" xsi:type="As">
                  <operand localId="543" locator="227:42-227:57" name="Cholera dose 1" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="581" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="582" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="583" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="544" locator="228:5-228:63">
               <when localId="545" locator="228:10-228:35" xsi:type="Equal">
                  <signature localId="552" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="553" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="550" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="551" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="547" locator="228:10-228:19" path="id" xsi:type="Property">
                        <source localId="546" locator="228:10-228:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="548" locator="228:23-228:35" valueType="t:String" value="Cholera48.4" xsi:type="Literal"/>
               </when>
               <then localId="584" xsi:type="As">
                  <operand localId="554" locator="228:42-228:63" name="Cholera booster dose" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="585" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="586" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="587" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="555" locator="229:5-229:57">
               <when localId="556" locator="229:10-229:35" xsi:type="Equal">
                  <signature localId="563" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="564" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="561" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="562" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="558" locator="229:10-229:19" path="id" xsi:type="Property">
                        <source localId="557" locator="229:10-229:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="559" locator="229:23-229:35" valueType="t:String" value="Cholera49.4" xsi:type="Literal"/>
               </when>
               <then localId="588" xsi:type="As">
                  <operand localId="565" locator="229:42-229:57" name="Cholera dose 1" xsi:type="ExpressionRef"/>
                  <asTypeSpecifier localId="589" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="590" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="591" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <else localId="592" xsi:type="As">
               <operand localId="566" locator="230:10-230:27" valueType="t:String" value="No test case set" xsi:type="Literal"/>
               <asTypeSpecifier localId="593" xsi:type="ChoiceTypeSpecifier">
                  <choice localId="594" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                  <choice localId="595" name="t:String" xsi:type="NamedTypeSpecifier"/>
               </asTypeSpecifier>
            </else>
         </expression>
      </def>
   </statements>
</library>
