<?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="372">
         <a:s>/*
 * Library: IMMZD2DTVaricella2DosesLogic (IMMZ.D2.DT.Varicella.2 doses)
 * Rule: Determine if the client is due for a varicella vaccination according to the national immunization schedule
 * Decision Table: Countries where varicella is an important public health burden could consider introducing varicella vaccination in the routine childhood immunization programme. However, resources should be sufficient to ensure reaching and sustaining vaccine coverage ≥ 80%. Decision-making on childhood varicella vaccination should also include consideration of the possible impact on herpes zoster.
The number of doses recommended is dependent on the goal of the vaccination programme. One dose is sufficient to reduce mortality and severe morbidity from varicella but not to prevent limited virus circulation and outbreaks. Two doses have higher effectiveness and should therefore be recommended in countries where the programmatic goal is, in addition to decreasing mortality and severe morbidity, to further reduce the number of cases and outbreaks.
 * Trigger: IMMZ.D2 Determine required vaccination(s) if any
 */
library IMMZD2DTVaricella2DosesLogic</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD2DTVaricella2DosesLogic" 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="10:1-10: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="11:1-11: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="13:1-13:59" localIdentifier="Encounter" path="http://smart.who.int/immunizations/IMMZD2DTVaricellaEncounterElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="210">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZD2DTVaricellaEncounterElements</a:s>
               </a:s>
               <a:s> called Encounter</a:s>
            </a:s>
         </annotation>
      </def>
   </includes>
   <parameters>
      <def localId="212" locator="15:1-15:36" name="Today" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="212">
               <a:s>parameter Today </a:s>
               <a:s r="216">
                  <a:s>Date</a:s>
               </a:s>
               <a:s> default </a:s>
               <a:s r="215">
                  <a:s>Today()</a:s>
               </a:s>
            </a:s>
         </annotation>
         <default localId="215" locator="15:30-15:36" xsi:type="Today"/>
         <parameterTypeSpecifier localId="216" locator="15:17-15:20" name="t:Date" xsi:type="NamedTypeSpecifier"/>
      </def>
   </parameters>
   <contexts>
      <def localId="221" locator="17:1-17:15" name="Patient"/>
   </contexts>
   <statements>
      <def localId="219" locator="17:1-17:15" name="Patient" context="Patient">
         <expression localId="220" xsi:type="SingletonFrom">
            <operand localId="218" locator="17:1-17:15" dataType="fhir:Patient" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/>
         </expression>
      </def>
      <def localId="235" locator="38:1-39:49" name="Client is not due for varicella vaccination Case 1" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is not due for varicella vaccination Case 1"/>
            <a:t name="pseudocode" value="&quot;Immunization recommendation status&quot; = &quot;Not due&quot;"/>
            <a:s r="235">
               <a:s>/*
@output: Client is not due for varicella vaccination Case 1
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;
*/
define &quot;Client is not due for varicella vaccination Case 1&quot;:
  </a:s>
               <a:s r="237">
                  <a:s r="236">
                     <a:s>Encounter</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="237">
                     <a:s>&quot;Client's age is less than 12 months&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="237" locator="39:3-39:49" name="Client's age is less than 12 months" libraryName="Encounter" xsi:type="ExpressionRef"/>
      </def>
      <def localId="241" locator="45:1-48:69" name="Client is not due for varicella vaccination Case 2" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is not due for varicella vaccination Case 2"/>
            <a:t name="pseudocode" value="&quot;Immunization recommendation status&quot; = &quot;Not due&quot;"/>
            <a:s r="241">
               <a:s>/*
@output: Client is not due for varicella vaccination Case 2
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;
*/
define &quot;Client is not due for varicella vaccination Case 2&quot;:
  </a:s>
               <a:s r="242">
                  <a:s r="243">
                     <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;No varicella primary series doses were administered&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s>
    and </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;Cient's age is more than or equal to 12 months&quot;</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    and </a:s>
                  <a:s r="249">
                     <a:s r="248">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="249">
                        <a:s>&quot;Live vaccine was administered in the past 4 weeks&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="242" locator="46:3-48:69" xsi:type="And">
            <operand localId="243" locator="46:3-47:66" xsi:type="And">
               <operand localId="245" locator="46:3-46:65" name="No varicella primary series doses were administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="247" locator="47:9-47:66" name="Cient's age is more than or equal to 12 months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="249" locator="48:9-48:69" name="Live vaccine was administered in the past 4 weeks" libraryName="Encounter" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="253" locator="54:1-56:80" name="Client is not due for varicella vaccination Case 3" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is not due for varicella vaccination Case 3"/>
            <a:t name="pseudocode" value="&quot;Immunization recommendation status&quot; = &quot;Not due&quot;"/>
            <a:s r="253">
               <a:s>/*
@output: Client is not due for varicella vaccination Case 3
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;
*/
define &quot;Client is not due for varicella vaccination Case 3&quot;:
  </a:s>
               <a:s r="254">
                  <a:s r="256">
                     <a:s r="255">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="256">
                        <a:s>&quot;One varicella primary series dose was administered&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    and </a:s>
                  <a:s r="258">
                     <a:s r="257">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="258">
                        <a:s>&quot;The latest varicella dose administered less than 4 weeks ago&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="254" locator="55:3-56:80" xsi:type="And">
            <operand localId="256" locator="55:3-55:64" name="One varicella primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="258" locator="56:9-56:80" name="The latest varicella dose administered less than 4 weeks ago" libraryName="Encounter" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="262" locator="62:1-65:69" name="Client is not due for varicella vaccination Case 4" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is not due for varicella vaccination Case 4"/>
            <a:t name="pseudocode" value="&quot;Immunization recommendation status&quot; = &quot;Not due&quot;"/>
            <a:s r="262">
               <a:s>/*
@output: Client is not due for varicella vaccination Case 4
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;
*/
define &quot;Client is not due for varicella vaccination Case 4&quot;:
  </a:s>
               <a:s r="263">
                  <a:s r="264">
                     <a:s r="266">
                        <a:s r="265">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="266">
                           <a:s>&quot;One varicella primary series dose was administered&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s>
    and </a:s>
                     <a:s r="268">
                        <a:s r="267">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="268">
                           <a:s>&quot;The latest varicella dose administered more than 4 weeks ago&quot;</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    and </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;Live vaccine was administered in the past 4 weeks&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="263" locator="63:3-65:69" xsi:type="And">
            <operand localId="264" locator="63:3-64:80" xsi:type="And">
               <operand localId="266" locator="63:3-63:64" name="One varicella primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="268" locator="64:9-64:80" name="The latest varicella dose administered more than 4 weeks ago" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="270" locator="65:9-65:69" name="Live vaccine was administered in the past 4 weeks" libraryName="Encounter" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="229" locator="71:1-75:59" name="Client is not due for varicella vaccination" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is not due for varicella vaccination"/>
            <a:t name="pseudocode" value="&quot;Immunization recommendation status&quot; = &quot;Not due&quot;"/>
            <a:s r="229">
               <a:s>/*
@output: Client is not due for varicella vaccination
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;
*/
define &quot;Client is not due for varicella vaccination&quot;:
  </a:s>
               <a:s r="230">
                  <a:s r="231">
                     <a:s r="232">
                        <a:s r="238">
                           <a:s>&quot;Client is not due for varicella vaccination Case 1&quot;</a:s>
                        </a:s>
                        <a:s>
    or </a:s>
                        <a:s r="250">
                           <a:s>&quot;Client is not due for varicella vaccination Case 2&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s>
    or </a:s>
                     <a:s r="259">
                        <a:s>&quot;Client is not due for varicella vaccination Case 3&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    or </a:s>
                  <a:s r="271">
                     <a:s>&quot;Client is not due for varicella vaccination Case 4&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="230" locator="72:3-75:59" xsi:type="Or">
            <operand localId="231" locator="72:3-74:59" xsi:type="Or">
               <operand localId="232" locator="72:3-73:59" xsi:type="Or">
                  <operand localId="238" locator="72:3-72:54" name="Client is not due for varicella vaccination Case 1" xsi:type="ExpressionRef"/>
                  <operand localId="250" locator="73:8-73:59" name="Client is not due for varicella vaccination Case 2" xsi:type="ExpressionRef"/>
               </operand>
               <operand localId="259" locator="74:8-74:59" name="Client is not due for varicella vaccination Case 3" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="271" locator="75:8-75:59" name="Client is not due for varicella vaccination Case 4" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="275" locator="84:1-91:5" name="Client is not due for varicella vaccination Guidance" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is not due for varicella vaccination Guidance"/>
            <a:s r="275">
               <a:s>/*
@output: Client is not due for varicella vaccination Guidance
@guidance = Should not vaccinate client with first varicella dose as client's age is less than 12 months. Check for any other vaccines due and inform the caregiver of when to come back for the first varicella dose.
@guidance = Should not vaccinate client with first varicella dose as live vaccine was administered in the past 4 weeks. Check for any other vaccines due and inform the caregiver of when to come back for the first varicella dose.
@guidance = Should not vaccinate client with second varicella dose as the latest varicella dose was administered less than 4 weeks ago. Check for any other vaccines due and inform the caregiver when to come back for the second dose.
@guidance = Should not vaccinate client with second varicella dose as live vaccine was administered in the past 4 weeks. Check for any vaccines due and inform the caregiver of when to come back for the second dose.
*/
define &quot;Client is not due for varicella vaccination Guidance&quot;:
  </a:s>
               <a:s r="276">
                  <a:s>case
    </a:s>
                  <a:s r="277">
                     <a:s>when </a:s>
                     <a:s r="278">
                        <a:s>&quot;Client is not due for varicella vaccination Case 1&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="279">
                        <a:s>'Should not vaccinate client with first varicella dose as client\'s age is less than 12 months. Check for any other vaccines due and inform the caregiver of when to come back for the first varicella dose.'</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="281">
                     <a:s>when </a:s>
                     <a:s r="282">
                        <a:s>&quot;Client is not due for varicella vaccination Case 2&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="283">
                        <a:s>'Should not vaccinate client with first varicella dose as live vaccine was administered in the past 4 weeks. Check for any other vaccines due and inform the caregiver of when to come back for the first varicella dose.'</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="285">
                     <a:s>when </a:s>
                     <a:s r="286">
                        <a:s>&quot;Client is not due for varicella vaccination Case 3&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="287">
                        <a:s>'Should not vaccinate client with second varicella dose as the latest varicella dose was administered less than 4 weeks ago. Check for any other vaccines due and inform the caregiver when to come back for the second dose.'</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="289">
                     <a:s>when </a:s>
                     <a:s r="290">
                        <a:s>&quot;Client is not due for varicella vaccination Case 4&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="291">
                        <a:s>'Should not vaccinate client with second varicella dose as live vaccine was administered in the past 4 weeks. Check for any vaccines due and inform the caregiver of when to come back for the second dose.'</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    else </a:s>
                  <a:s r="293">
                     <a:s>''</a:s>
                  </a:s>
                  <a:s>
  end</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="276" locator="85:3-91:5" xsi:type="Case">
            <caseItem localId="277" locator="86:5-86:272">
               <when localId="278" locator="86:10-86:61" name="Client is not due for varicella vaccination Case 1" xsi:type="ExpressionRef"/>
               <then localId="279" locator="86:68-86:272" valueType="t:String" value="Should not vaccinate client with first varicella dose as client's age is less than 12 months. Check for any other vaccines due and inform the caregiver of when to come back for the first varicella dose." xsi:type="Literal"/>
            </caseItem>
            <caseItem localId="281" locator="87:5-87:285">
               <when localId="282" locator="87:10-87:61" name="Client is not due for varicella vaccination Case 2" xsi:type="ExpressionRef"/>
               <then localId="283" locator="87:68-87:285" valueType="t:String" value="Should not vaccinate client with first varicella dose as live vaccine was administered in the past 4 weeks. Check for any other vaccines due and inform the caregiver of when to come back for the first varicella dose." xsi:type="Literal"/>
            </caseItem>
            <caseItem localId="285" locator="88:5-88:289">
               <when localId="286" locator="88:10-88:61" name="Client is not due for varicella vaccination Case 3" xsi:type="ExpressionRef"/>
               <then localId="287" locator="88:68-88:289" valueType="t:String" value="Should not vaccinate client with second varicella dose as the latest varicella dose was administered less than 4 weeks ago. Check for any other vaccines due and inform the caregiver when to come back for the second dose." xsi:type="Literal"/>
            </caseItem>
            <caseItem localId="289" locator="89:5-89:271">
               <when localId="290" locator="89:10-89:61" name="Client is not due for varicella vaccination Case 4" xsi:type="ExpressionRef"/>
               <then localId="291" locator="89:68-89:271" valueType="t:String" value="Should not vaccinate client with second varicella dose as live vaccine was administered in the past 4 weeks. Check for any vaccines due and inform the caregiver of when to come back for the second dose." xsi:type="Literal"/>
            </caseItem>
            <else localId="293" locator="90:10-90:11" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="303" locator="97:1-100:72" name="Client is due for varicella vaccination Case 1" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is due for varicella vaccination Case 1"/>
            <a:t name="pseudocode" value="&quot;Immunization recommendation status&quot; = &quot;Due&quot;"/>
            <a:s r="303">
               <a:s>/*
@output: Client is due for varicella vaccination Case 1
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Due&quot;
*/
define &quot;Client is due for varicella vaccination Case 1&quot;:
  </a:s>
               <a:s r="304">
                  <a:s r="305">
                     <a:s r="307">
                        <a:s r="306">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="307">
                           <a:s>&quot;No varicella primary series doses were administered&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s>
    and </a:s>
                     <a:s r="309">
                        <a:s r="308">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="309">
                           <a:s>&quot;Cient's age is more than or equal to 12 months&quot;</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    and </a:s>
                  <a:s r="311">
                     <a:s r="310">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="311">
                        <a:s>&quot;No live vaccine was administered in the past 4 weeks&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="304" locator="98:3-100:72" xsi:type="And">
            <operand localId="305" locator="98:3-99:66" xsi:type="And">
               <operand localId="307" locator="98:3-98:65" name="No varicella primary series doses were administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="309" locator="99:9-99:66" name="Cient's age is more than or equal to 12 months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="311" locator="100:9-100:72" name="No live vaccine was administered in the past 4 weeks" libraryName="Encounter" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="315" locator="106:1-109:72" name="Client is due for varicella vaccination Case 2" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is due for varicella vaccination Case 2"/>
            <a:t name="pseudocode" value="&quot;Immunization recommendation status&quot; = &quot;Due&quot;"/>
            <a:s r="315">
               <a:s>/*
@output: Client is due for varicella vaccination Case 2
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Due&quot;
*/
define &quot;Client is due for varicella vaccination Case 2&quot;:
  </a:s>
               <a:s r="316">
                  <a:s r="317">
                     <a:s r="319">
                        <a:s r="318">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="319">
                           <a:s>&quot;One varicella primary series dose was administered&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s>
    and </a:s>
                     <a:s r="321">
                        <a:s r="320">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="321">
                           <a:s>&quot;The latest varicella dose administered more than 4 weeks ago&quot;</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    and </a:s>
                  <a:s r="323">
                     <a:s r="322">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="323">
                        <a:s>&quot;No live vaccine was administered in the past 4 weeks&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="316" locator="107:3-109:72" xsi:type="And">
            <operand localId="317" locator="107:3-108:80" xsi:type="And">
               <operand localId="319" locator="107:3-107:64" name="One varicella primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="321" locator="108:9-108:80" name="The latest varicella dose administered more than 4 weeks ago" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="323" locator="109:9-109:72" name="No live vaccine was administered in the past 4 weeks" libraryName="Encounter" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="299" locator="115:1-117:55" name="Client is due for varicella vaccination" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is due for varicella vaccination"/>
            <a:t name="pseudocode" value="&quot;Immunization recommendation status&quot; = &quot;Due&quot;"/>
            <a:s r="299">
               <a:s>/*
@output: Client is due for varicella vaccination
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Due&quot;
*/
define &quot;Client is due for varicella vaccination&quot;:
  </a:s>
               <a:s r="300">
                  <a:s r="312">
                     <a:s>&quot;Client is due for varicella vaccination Case 1&quot;</a:s>
                  </a:s>
                  <a:s>
    or </a:s>
                  <a:s r="324">
                     <a:s>&quot;Client is due for varicella vaccination Case 2&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="300" locator="116:3-117:55" xsi:type="Or">
            <operand localId="312" locator="116:3-116:50" name="Client is due for varicella vaccination Case 1" xsi:type="ExpressionRef"/>
            <operand localId="324" locator="117:8-117:55" name="Client is due for varicella vaccination Case 2" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="328" locator="124:1-129:5" name="Client is due for varicella vaccination Guidance" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is due for varicella vaccination Guidance"/>
            <a:s r="328">
               <a:s>/*
@output: Client is due for varicella vaccination Guidance
@guidance = Should vaccinate client with first varicella dose as no varicella dose was administered, client is within appropriate age range and no live vaccine was administered in past 4 weeks. Check for contraindications.
@guidance = Should vaccinate client with second varicella dose as the latest varicella dose was administered more than 4 weeks ago and no live vaccine was administered in past 4 weeks. Check for contraindications.
*/
define &quot;Client is due for varicella vaccination Guidance&quot;:
  </a:s>
               <a:s r="329">
                  <a:s>case
    </a:s>
                  <a:s r="330">
                     <a:s>when </a:s>
                     <a:s r="331">
                        <a:s>&quot;Client is due for varicella vaccination Case 1&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="332">
                        <a:s>'Should vaccinate client with first varicella dose as no varicella dose was administered, client is within appropriate age range and no live vaccine was administered in past 4 weeks. Check for contraindications.'</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="334">
                     <a:s>when </a:s>
                     <a:s r="335">
                        <a:s>&quot;Client is due for varicella vaccination Case 2&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="336">
                        <a:s>'Should vaccinate client with second varicella dose as the latest varicella dose was administered more than 4 weeks ago and no live vaccine was administered in past 4 weeks. Check for contraindications.'</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    else </a:s>
                  <a:s r="338">
                     <a:s>''</a:s>
                  </a:s>
                  <a:s>
  end</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="329" locator="125:3-129:5" xsi:type="Case">
            <caseItem localId="330" locator="126:5-126:275">
               <when localId="331" locator="126:10-126:57" name="Client is due for varicella vaccination Case 1" xsi:type="ExpressionRef"/>
               <then localId="332" locator="126:64-126:275" valueType="t:String" value="Should vaccinate client with first varicella dose as no varicella dose was administered, client is within appropriate age range and no live vaccine was administered in past 4 weeks. Check for contraindications." xsi:type="Literal"/>
            </caseItem>
            <caseItem localId="334" locator="127:5-127:266">
               <when localId="335" locator="127:10-127:57" name="Client is due for varicella vaccination Case 2" xsi:type="ExpressionRef"/>
               <then localId="336" locator="127:64-127:266" valueType="t:String" value="Should vaccinate client with second varicella dose as the latest varicella dose was administered more than 4 weeks ago and no live vaccine was administered in past 4 weeks. Check for contraindications." xsi:type="Literal"/>
            </caseItem>
            <else localId="338" locator="128:10-128:11" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="344" locator="135:1-136:66" name="Varicella immunization schedule is complete" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Varicella immunization schedule is complete"/>
            <a:t name="pseudocode" value="&quot;Immunization recommendation status&quot; = &quot;Complete&quot;"/>
            <a:s r="344">
               <a:s>/*
@output: Varicella immunization schedule is complete
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Complete&quot;
*/
define &quot;Varicella immunization schedule is complete&quot;:
  </a:s>
               <a:s r="346">
                  <a:s r="345">
                     <a:s>Encounter</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="346">
                     <a:s>&quot;Two varicella primary series doses were administered&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="346" locator="136:3-136:66" name="Two varicella primary series doses were administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
      </def>
      <def localId="350" locator="142:1-143:136" name="Varicella immunization schedule is complete Guidance" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Varicella immunization schedule is complete Guidance"/>
            <a:t name="guidance" value="Varicella immunization schedule is complete. Two varicella primary series doses were administered. Check for any other vaccines due."/>
            <a:s r="350">
               <a:s>/*
@output: Varicella immunization schedule is complete Guidance
@guidance: Varicella immunization schedule is complete. Two varicella primary series doses were administered. Check for any other vaccines due.
*/
define &quot;Varicella immunization schedule is complete Guidance&quot;:
  </a:s>
               <a:s r="351">
                  <a:s>'Varicella immunization schedule is complete. Two varicella primary series doses were administered. Check for any other vaccines due.'</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="351" locator="143:3-143:136" valueType="t:String" value="Varicella immunization schedule is complete. Two varicella primary series doses were administered. Check for any other vaccines due." xsi:type="Literal"/>
      </def>
      <def localId="224" locator="23:1-29:5" name="Guidance" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="dynamicValue" value="Guidance"/>
            <a:s r="224">
               <a:s>/*
@dynamicValue: Guidance
*/
define &quot;Guidance&quot;:
  </a:s>
               <a:s r="225">
                  <a:s>case 
    </a:s>
                  <a:s r="226">
                     <a:s>when </a:s>
                     <a:s r="272">
                        <a:s>&quot;Client is not due for varicella vaccination&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="295">
                        <a:s>&quot;Client is not due for varicella vaccination Guidance&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="296">
                     <a:s>when </a:s>
                     <a:s r="325">
                        <a:s>&quot;Client is due for varicella vaccination&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="340">
                        <a:s>&quot;Client is due for varicella vaccination Guidance&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="341">
                     <a:s>when </a:s>
                     <a:s r="347">
                        <a:s>&quot;Varicella immunization schedule is complete&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="353">
                        <a:s>&quot;Varicella immunization schedule is complete Guidance&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s> 
    else </a:s>
                  <a:s r="354">
                     <a:s>''</a:s>
                  </a:s>
                  <a:s>
  end</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="225" locator="24:3-29:5" xsi:type="Case">
            <caseItem localId="226" locator="25:5-25:114">
               <when localId="272" locator="25:10-25:54" name="Client is not due for varicella vaccination" xsi:type="ExpressionRef"/>
               <then localId="295" locator="25:61-25:114" name="Client is not due for varicella vaccination Guidance" xsi:type="ExpressionRef"/>
            </caseItem>
            <caseItem localId="296" locator="26:5-26:106">
               <when localId="325" locator="26:10-26:50" name="Client is due for varicella vaccination" xsi:type="ExpressionRef"/>
               <then localId="340" locator="26:57-26:106" name="Client is due for varicella vaccination Guidance" xsi:type="ExpressionRef"/>
            </caseItem>
            <caseItem localId="341" locator="27:5-27:114">
               <when localId="347" locator="27:10-27:54" name="Varicella immunization schedule is complete" xsi:type="ExpressionRef"/>
               <then localId="353" locator="27:61-27:114" name="Varicella immunization schedule is complete Guidance" xsi:type="ExpressionRef"/>
            </caseItem>
            <else localId="354" locator="28:10-28:11" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="358" locator="31:1-32:45" name="Has Guidance" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="358">
               <a:s>define &quot;Has Guidance&quot;:
  </a:s>
               <a:s r="359">
                  <a:s r="362">
                     <a:s r="360">
                        <a:s>&quot;Guidance&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s> and </a:s>
                  <a:s r="369">
                     <a:s r="364">
                        <a:s>&quot;Guidance&quot;</a:s>
                     </a:s>
                     <a:s> != </a:s>
                     <a:s r="365">
                        <a:s>''</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="359" locator="32:3-32:45" xsi:type="And">
            <operand localId="362" locator="32:3-32:24" xsi:type="Not">
               <operand localId="361" locator="32:3-32:24" xsi:type="IsNull">
                  <operand localId="360" locator="32:3-32:12" name="Guidance" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="369" locator="32:30-32:45" xsi:type="Not">
               <operand localId="363" locator="32:30-32:45" xsi:type="Equal">
                  <signature localId="367" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="368" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="364" locator="32:30-32:39" name="Guidance" xsi:type="ExpressionRef"/>
                  <operand localId="365" locator="32:44-32:45" valueType="t:String" value="" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="372" locator="149:1-159: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="372">
               <a:s>/*
@test: Test expected results based on example patients
*/
define &quot;Test Validation&quot;:
  </a:s>
               <a:s r="373">
                  <a:s>case
    </a:s>
                  <a:s r="374">
                     <a:s>when </a:s>
                     <a:s r="375">
                        <a:s r="377">
                           <a:s r="376">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="377">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="378">
                           <a:s>'Varicella21.1'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="384">
                        <a:s r="385">
                           <a:s>&quot;Client is not due for varicella vaccination Case 1&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="386">
                           <a:s r="387">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="388">
                              <a:s>'Should not vaccinate client with first varicella dose as client\'s age is less than 12 months. Check for any other vaccines due and inform the caregiver of when to come back for the first varicella dose.'</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="392">
                     <a:s>when </a:s>
                     <a:s r="393">
                        <a:s r="395">
                           <a:s r="394">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="395">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="396">
                           <a:s>'Varicella22.3'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="402">
                        <a:s r="403">
                           <a:s>&quot;Client is not due for varicella vaccination Case 2&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="404">
                           <a:s r="405">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="406">
                              <a:s>'Should not vaccinate client with first varicella dose as live vaccine was administered in the past 4 weeks. Check for any other vaccines due and inform the caregiver of when to come back for the first varicella dose.'</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="410">
                     <a:s>when </a:s>
                     <a:s r="411">
                        <a:s r="413">
                           <a:s r="412">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="413">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="414">
                           <a:s>'Varicella23.3'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="420">
                        <a:s r="421">
                           <a:s>&quot;Client is due for varicella vaccination Case 1&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="422">
                           <a:s r="423">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="424">
                              <a:s>'Should vaccinate client with first varicella dose as no varicella dose was administered, client is within appropriate age range and no live vaccine was administered in past 4 weeks. Check for contraindications.'</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="428">
                     <a:s>when </a:s>
                     <a:s r="429">
                        <a:s r="431">
                           <a:s r="430">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="431">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="432">
                           <a:s>'Varicella24.2'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="438">
                        <a:s r="439">
                           <a:s>&quot;Client is not due for varicella vaccination Case 3&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="440">
                           <a:s r="441">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="442">
                              <a:s>'Should not vaccinate client with second varicella dose as the latest varicella dose was administered less than 4 weeks ago. Check for any other vaccines due and inform the caregiver when to come back for the second dose.'</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="446">
                     <a:s>when </a:s>
                     <a:s r="447">
                        <a:s r="449">
                           <a:s r="448">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="449">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="450">
                           <a:s>'Varicella25.3'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="456">
                        <a:s r="457">
                           <a:s>&quot;Client is not due for varicella vaccination Case 4&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="458">
                           <a:s r="459">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="460">
                              <a:s>'Should not vaccinate client with second varicella dose as live vaccine was administered in the past 4 weeks. Check for any vaccines due and inform the caregiver of when to come back for the second dose.'</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="464">
                     <a:s>when </a:s>
                     <a:s r="465">
                        <a:s r="467">
                           <a:s r="466">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="467">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="468">
                           <a:s>'Varicella26.3'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="474">
                        <a:s r="475">
                           <a:s>&quot;Client is due for varicella vaccination Case 2&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="476">
                           <a:s r="477">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="478">
                              <a:s>'Should vaccinate client with second varicella dose as the latest varicella dose was administered more than 4 weeks ago and no live vaccine was administered in past 4 weeks. Check for contraindications.'</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="482">
                     <a:s>when </a:s>
                     <a:s r="483">
                        <a:s r="485">
                           <a:s r="484">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="485">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="486">
                           <a:s>'Varicella27.1'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="492">
                        <a:s r="493">
                           <a:s>&quot;Varicella immunization schedule is complete&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="494">
                           <a:s r="495">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="496">
                              <a:s>'Varicella immunization schedule is complete. Two varicella primary series doses were administered. Check for any other vaccines due.'</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    else </a:s>
                  <a:s r="500">
                     <a:s>'No test case set'</a:s>
                  </a:s>
                  <a:s>
  end</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="373" locator="150:3-159:5" xsi:type="Case">
            <caseItem localId="374" locator="151:5-151:318">
               <when localId="375" locator="151:10-151:37" xsi:type="Equal">
                  <signature localId="382" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="383" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="380" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="381" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="377" locator="151:10-151:19" path="id" xsi:type="Property">
                        <source localId="376" locator="151:10-151:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="378" locator="151:23-151:37" valueType="t:String" value="Varicella21.1" xsi:type="Literal"/>
               </when>
               <then localId="502" xsi:type="As">
                  <operand localId="384" locator="151:44-151:318" xsi:type="And">
                     <operand localId="385" locator="151:44-151:95" name="Client is not due for varicella vaccination Case 1" xsi:type="ExpressionRef"/>
                     <operand localId="386" locator="151:101-151:318" xsi:type="Equal">
                        <signature localId="390" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="391" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="387" locator="151:101-151:110" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="388" locator="151:114-151:318" valueType="t:String" value="Should not vaccinate client with first varicella dose as client's age is less than 12 months. Check for any other vaccines due and inform the caregiver of when to come back for the first varicella dose." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="503" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="504" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="505" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="392" locator="152:5-152:331">
               <when localId="393" locator="152:10-152:37" xsi:type="Equal">
                  <signature localId="400" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="401" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="398" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="399" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="395" locator="152:10-152:19" path="id" xsi:type="Property">
                        <source localId="394" locator="152:10-152:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="396" locator="152:23-152:37" valueType="t:String" value="Varicella22.3" xsi:type="Literal"/>
               </when>
               <then localId="506" xsi:type="As">
                  <operand localId="402" locator="152:44-152:331" xsi:type="And">
                     <operand localId="403" locator="152:44-152:95" name="Client is not due for varicella vaccination Case 2" xsi:type="ExpressionRef"/>
                     <operand localId="404" locator="152:101-152:331" xsi:type="Equal">
                        <signature localId="408" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="409" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="405" locator="152:101-152:110" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="406" locator="152:114-152:331" valueType="t:String" value="Should not vaccinate client with first varicella dose as live vaccine was administered in the past 4 weeks. Check for any other vaccines due and inform the caregiver of when to come back for the first varicella dose." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="507" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="508" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="509" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="410" locator="153:5-153:321">
               <when localId="411" locator="153:10-153:37" xsi:type="Equal">
                  <signature localId="418" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="419" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="416" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="417" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="413" locator="153:10-153:19" path="id" xsi:type="Property">
                        <source localId="412" locator="153:10-153:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="414" locator="153:23-153:37" valueType="t:String" value="Varicella23.3" xsi:type="Literal"/>
               </when>
               <then localId="510" xsi:type="As">
                  <operand localId="420" locator="153:44-153:321" xsi:type="And">
                     <operand localId="421" locator="153:44-153:91" name="Client is due for varicella vaccination Case 1" xsi:type="ExpressionRef"/>
                     <operand localId="422" locator="153:97-153:321" xsi:type="Equal">
                        <signature localId="426" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="427" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="423" locator="153:97-153:106" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="424" locator="153:110-153:321" valueType="t:String" value="Should vaccinate client with first varicella dose as no varicella dose was administered, client is within appropriate age range and no live vaccine was administered in past 4 weeks. Check for contraindications." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="511" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="512" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="513" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="428" locator="154:5-154:335">
               <when localId="429" locator="154:10-154:37" xsi:type="Equal">
                  <signature localId="436" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="437" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="434" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="435" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="431" locator="154:10-154:19" path="id" xsi:type="Property">
                        <source localId="430" locator="154:10-154:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="432" locator="154:23-154:37" valueType="t:String" value="Varicella24.2" xsi:type="Literal"/>
               </when>
               <then localId="514" xsi:type="As">
                  <operand localId="438" locator="154:44-154:335" xsi:type="And">
                     <operand localId="439" locator="154:44-154:95" name="Client is not due for varicella vaccination Case 3" xsi:type="ExpressionRef"/>
                     <operand localId="440" locator="154:101-154:335" xsi:type="Equal">
                        <signature localId="444" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="445" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="441" locator="154:101-154:110" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="442" locator="154:114-154:335" valueType="t:String" value="Should not vaccinate client with second varicella dose as the latest varicella dose was administered less than 4 weeks ago. Check for any other vaccines due and inform the caregiver when to come back for the second dose." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="515" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="516" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="517" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="446" locator="155:5-155:317">
               <when localId="447" locator="155:10-155:37" xsi:type="Equal">
                  <signature localId="454" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="455" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="452" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="453" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="449" locator="155:10-155:19" path="id" xsi:type="Property">
                        <source localId="448" locator="155:10-155:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="450" locator="155:23-155:37" valueType="t:String" value="Varicella25.3" xsi:type="Literal"/>
               </when>
               <then localId="518" xsi:type="As">
                  <operand localId="456" locator="155:44-155:317" xsi:type="And">
                     <operand localId="457" locator="155:44-155:95" name="Client is not due for varicella vaccination Case 4" xsi:type="ExpressionRef"/>
                     <operand localId="458" locator="155:101-155:317" xsi:type="Equal">
                        <signature localId="462" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="463" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="459" locator="155:101-155:110" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="460" locator="155:114-155:317" valueType="t:String" value="Should not vaccinate client with second varicella dose as live vaccine was administered in the past 4 weeks. Check for any vaccines due and inform the caregiver of when to come back for the second dose." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="519" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="520" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="521" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="464" locator="156:5-156:312">
               <when localId="465" locator="156:10-156:37" xsi:type="Equal">
                  <signature localId="472" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="473" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="470" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="471" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="467" locator="156:10-156:19" path="id" xsi:type="Property">
                        <source localId="466" locator="156:10-156:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="468" locator="156:23-156:37" valueType="t:String" value="Varicella26.3" xsi:type="Literal"/>
               </when>
               <then localId="522" xsi:type="As">
                  <operand localId="474" locator="156:44-156:312" xsi:type="And">
                     <operand localId="475" locator="156:44-156:91" name="Client is due for varicella vaccination Case 2" xsi:type="ExpressionRef"/>
                     <operand localId="476" locator="156:97-156:312" xsi:type="Equal">
                        <signature localId="480" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="481" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="477" locator="156:97-156:106" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="478" locator="156:110-156:312" valueType="t:String" value="Should vaccinate client with second varicella dose as the latest varicella dose was administered more than 4 weeks ago and no live vaccine was administered in past 4 weeks. Check for contraindications." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="523" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="524" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="525" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="482" locator="157:5-157:240">
               <when localId="483" locator="157:10-157:37" xsi:type="Equal">
                  <signature localId="490" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="491" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="488" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="489" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="485" locator="157:10-157:19" path="id" xsi:type="Property">
                        <source localId="484" locator="157:10-157:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="486" locator="157:23-157:37" valueType="t:String" value="Varicella27.1" xsi:type="Literal"/>
               </when>
               <then localId="526" xsi:type="As">
                  <operand localId="492" locator="157:44-157:240" xsi:type="And">
                     <operand localId="493" locator="157:44-157:88" name="Varicella immunization schedule is complete" xsi:type="ExpressionRef"/>
                     <operand localId="494" locator="157:94-157:240" xsi:type="Equal">
                        <signature localId="498" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="499" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="495" locator="157:94-157:103" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="496" locator="157:107-157:240" valueType="t:String" value="Varicella immunization schedule is complete. Two varicella primary series doses were administered. Check for any other vaccines due." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="527" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="528" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="529" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <else localId="530" xsi:type="As">
               <operand localId="500" locator="158:10-158:27" valueType="t:String" value="No test case set" xsi:type="Literal"/>
               <asTypeSpecifier localId="531" xsi:type="ChoiceTypeSpecifier">
                  <choice localId="532" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                  <choice localId="533" name="t:String" xsi:type="NamedTypeSpecifier"/>
               </asTypeSpecifier>
            </else>
         </expression>
      </def>
   </statements>
</library>
