<?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="315">
         <a:s>/*
 * Library: IMMZD2DTVaricella1DoseLogic (IMMZ.D2.DT.Varicella.1 dose)
 * 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 IMMZD2DTVaricella1DoseLogic</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD2DTVaricella1DoseLogic" 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="233" 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="233">
               <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="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 less than 12 months&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="235" locator="39:3-39:49" name="Client's age is less than 12 months" libraryName="Encounter" xsi:type="ExpressionRef"/>
      </def>
      <def localId="239" 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="239">
               <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="240">
                  <a:s r="241">
                     <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;No varicella primary series dose was administered&quot;</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;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="247">
                     <a:s r="246">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="247">
                        <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="240" locator="46:3-48:69" xsi:type="And">
            <operand localId="241" locator="46:3-47:66" xsi:type="And">
               <operand localId="243" locator="46:3-46:63" name="No varicella primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="245" 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="247" locator="48:9-48:69" name="Live vaccine was administered in the past 4 weeks" libraryName="Encounter" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="229" locator="54:1-56: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="236">
                     <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="248">
                     <a:s>&quot;Client is not due for varicella vaccination Case 2&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="230" locator="55:3-56:59" xsi:type="Or">
            <operand localId="236" locator="55:3-55:54" name="Client is not due for varicella vaccination Case 1" xsi:type="ExpressionRef"/>
            <operand localId="248" locator="56:8-56:59" name="Client is not due for varicella vaccination Case 2" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="252" locator="65:1-72: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="252">
               <a:s>/*
@output: Client is not due for varicella vaccination Guidance
@guidance = Should not vaccinate client with varicella dose as client's age is less than 12 months.
Check for any vaccines due and inform the caregiver of when to come back for the first varicella dose.
@guidance = Should not vaccinate client with 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 first varicella dose.
*/
define &quot;Client is not due for varicella vaccination Guidance&quot;:
  </a:s>
               <a:s r="253">
                  <a:s>case
    </a:s>
                  <a:s r="254">
                     <a:s>when </a:s>
                     <a:s r="255">
                        <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="256">
                        <a:s>'Should not vaccinate client with varicella dose as client\'s age is less than 12 months.
Check for any 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="258">
                     <a:s>when </a:s>
                     <a:s r="259">
                        <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="260">
                        <a:s>'Should not vaccinate client with 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 first varicella dose.'</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    else </a:s>
                  <a:s r="262">
                     <a:s>''</a:s>
                  </a:s>
                  <a:s>
  end</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="253" locator="66:3-72:5" xsi:type="Case">
            <caseItem localId="254" locator="67:5-67:260">
               <when localId="255" locator="67:10-67:61" name="Client is not due for varicella vaccination Case 1" xsi:type="ExpressionRef"/>
               <then localId="256" locator="67:68-67:260" valueType="t:String" value="Should not vaccinate client with varicella dose as client's age is less than 12 months.&#xa;Check for any vaccines due and inform the caregiver of when to come back for the first varicella dose." xsi:type="Literal"/>
            </caseItem>
            <caseItem localId="258" locator="69:5-69:273">
               <when localId="259" locator="69:10-69:61" name="Client is not due for varicella vaccination Case 2" xsi:type="ExpressionRef"/>
               <then localId="260" locator="69:68-69:273" valueType="t:String" value="Should not vaccinate client with varicella dose as live vaccine was administered in the past 4 weeks.&#xa;Check for any vaccines due and inform the caregiver of when to come back for the first varicella dose." xsi:type="Literal"/>
            </caseItem>
            <else localId="262" locator="71:10-71:11" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="268" locator="78:1-81:72" 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="268">
               <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="269">
                  <a:s r="270">
                     <a:s r="272">
                        <a:s r="271">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="272">
                           <a:s>&quot;No varicella primary series dose was administered&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s>
    and </a:s>
                     <a:s r="274">
                        <a:s r="273">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="274">
                           <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="276">
                     <a:s r="275">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="276">
                        <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="269" locator="79:3-81:72" xsi:type="And">
            <operand localId="270" locator="79:3-80:66" xsi:type="And">
               <operand localId="272" locator="79:3-79:63" name="No varicella primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="274" locator="80:9-80:66" name="Cient's age is more than or equal to 12 months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="276" locator="81:9-81:72" name="No live vaccine was administered in the past 4 weeks" libraryName="Encounter" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="280" locator="88:1-89:212" 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:t name="guidance" value="Should vaccinate client with varicella dose as no varicella dose was administered, client is within the appropriate age range and no live vaccine was administered in past 4 weeks.&#xa;Check for contraindications."/>
            <a:s r="280">
               <a:s>/*
@output: Client is due for varicella vaccination Guidance
@guidance: Should vaccinate client with varicella dose as no varicella dose was administered, client is within the appropriate age range 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="281">
                  <a:s>'Should vaccinate client with varicella dose as no varicella dose was administered, client is within the appropriate age range and no live vaccine was administered in past 4 weeks.
Check for contraindications.'</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="281" locator="89:3-89:212" valueType="t:String" value="Should vaccinate client with varicella dose as no varicella dose was administered, client is within the appropriate age range and no live vaccine was administered in past 4 weeks.&#xa;Check for contraindications." xsi:type="Literal"/>
      </def>
      <def localId="287" locator="96:1-97:64" 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="287">
               <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="289">
                  <a:s r="288">
                     <a:s>Encounter</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="289">
                     <a:s>&quot;One varicella primary series dose was administered&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="289" locator="97:3-97:64" name="One varicella primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
      </def>
      <def localId="293" locator="104:1-105:128" 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. One varicella primary series dose was administered.&#xa;Check for any vaccines due."/>
            <a:s r="293">
               <a:s>/*
@output: Varicella immunization schedule is complete Guidance
@guidance: Varicella immunization schedule is complete. One varicella primary series dose was administered.
Check for any vaccines due.
*/
define &quot;Varicella immunization schedule is complete Guidance&quot;:
  </a:s>
               <a:s r="294">
                  <a:s>'Varicella immunization schedule is complete. One varicella primary series dose was administered.
Check for any vaccines due.'</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="294" locator="105:3-105:128" valueType="t:String" value="Varicella immunization schedule is complete. One varicella primary series dose was administered.&#xa;Check for any 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="249">
                        <a:s>&quot;Client is not due for varicella vaccination&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="264">
                        <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="265">
                     <a:s>when </a:s>
                     <a:s r="277">
                        <a:s>&quot;Client is due for varicella vaccination&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="283">
                        <a:s>&quot;Client is due for varicella vaccination Guidance&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="284">
                     <a:s>when </a:s>
                     <a:s r="290">
                        <a:s>&quot;Varicella immunization schedule is complete&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="296">
                        <a:s>&quot;Varicella immunization schedule is complete Guidance&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s> 
    else </a:s>
                  <a:s r="297">
                     <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="249" locator="25:10-25:54" name="Client is not due for varicella vaccination" xsi:type="ExpressionRef"/>
               <then localId="264" locator="25:61-25:114" name="Client is not due for varicella vaccination Guidance" xsi:type="ExpressionRef"/>
            </caseItem>
            <caseItem localId="265" locator="26:5-26:106">
               <when localId="277" locator="26:10-26:50" name="Client is due for varicella vaccination" xsi:type="ExpressionRef"/>
               <then localId="283" locator="26:57-26:106" name="Client is due for varicella vaccination Guidance" xsi:type="ExpressionRef"/>
            </caseItem>
            <caseItem localId="284" locator="27:5-27:114">
               <when localId="290" locator="27:10-27:54" name="Varicella immunization schedule is complete" xsi:type="ExpressionRef"/>
               <then localId="296" locator="27:61-27:114" name="Varicella immunization schedule is complete Guidance" xsi:type="ExpressionRef"/>
            </caseItem>
            <else localId="297" locator="28:10-28:11" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="301" locator="31:1-32:45" name="Has Guidance" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="301">
               <a:s>define &quot;Has Guidance&quot;:
  </a:s>
               <a:s r="302">
                  <a:s r="305">
                     <a:s r="303">
                        <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="312">
                     <a:s r="307">
                        <a:s>&quot;Guidance&quot;</a:s>
                     </a:s>
                     <a:s> != </a:s>
                     <a:s r="308">
                        <a:s>''</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="302" locator="32:3-32:45" xsi:type="And">
            <operand localId="305" locator="32:3-32:24" xsi:type="Not">
               <operand localId="304" locator="32:3-32:24" xsi:type="IsNull">
                  <operand localId="303" locator="32:3-32:12" name="Guidance" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="312" locator="32:30-32:45" xsi:type="Not">
               <operand localId="306" locator="32:30-32:45" xsi:type="Equal">
                  <signature localId="310" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="311" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="307" locator="32:30-32:39" name="Guidance" xsi:type="ExpressionRef"/>
                  <operand localId="308" locator="32:44-32:45" valueType="t:String" value="" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="315" locator="112:1-123: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="315">
               <a:s>/*
@test: Test expected results based on example patients
*/
define &quot;Test Validation&quot;:
  </a:s>
               <a:s r="316">
                  <a:s>case
    </a:s>
                  <a:s r="317">
                     <a:s>when </a:s>
                     <a:s r="318">
                        <a:s r="320">
                           <a:s r="319">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="320">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="321">
                           <a:s>'Varicella09.1'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="327">
                        <a:s r="328">
                           <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="329">
                           <a:s r="330">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="331">
                              <a:s>'Should not vaccinate client with varicella dose as client\'s age is less than 12 months.
Check for any 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="335">
                     <a:s>when </a:s>
                     <a:s r="336">
                        <a:s r="338">
                           <a:s r="337">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="338">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="339">
                           <a:s>'Varicella10.3'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="345">
                        <a:s r="346">
                           <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="347">
                           <a:s r="348">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="349">
                              <a:s>'Should not vaccinate client with 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 first varicella dose.'</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    </a:s>
                  <a:s r="353">
                     <a:s>when </a:s>
                     <a:s r="354">
                        <a:s r="356">
                           <a:s r="355">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="356">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="357">
                           <a:s>'Varicella11.3'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="363">
                        <a:s r="364">
                           <a:s>&quot;Client is due for varicella vaccination&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="365">
                           <a:s r="366">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="367">
                              <a:s>'Should vaccinate client with varicella dose as no varicella dose was administered, client is within the 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="371">
                     <a:s>when </a:s>
                     <a:s r="372">
                        <a:s r="374">
                           <a:s r="373">
                              <a:s>Patient</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="374">
                              <a:s>id</a:s>
                           </a:s>
                        </a:s>
                        <a:s> = </a:s>
                        <a:s r="375">
                           <a:s>'Varicella12.1'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="381">
                        <a:s r="382">
                           <a:s>&quot;Varicella immunization schedule is complete&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="383">
                           <a:s r="384">
                              <a:s>&quot;Guidance&quot;</a:s>
                           </a:s>
                           <a:s> = </a:s>
                           <a:s r="385">
                              <a:s>'Varicella immunization schedule is complete. One varicella primary series dose was administered.
Check for any vaccines due.'</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
    else </a:s>
                  <a:s r="389">
                     <a:s>'No test case set'</a:s>
                  </a:s>
                  <a:s>
  end</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="316" locator="113:3-123:5" xsi:type="Case">
            <caseItem localId="317" locator="114:5-114:306">
               <when localId="318" locator="114:10-114:37" xsi:type="Equal">
                  <signature localId="325" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="326" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="323" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="324" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="320" locator="114:10-114:19" path="id" xsi:type="Property">
                        <source localId="319" locator="114:10-114:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="321" locator="114:23-114:37" valueType="t:String" value="Varicella09.1" xsi:type="Literal"/>
               </when>
               <then localId="391" xsi:type="As">
                  <operand localId="327" locator="114:44-114:306" xsi:type="And">
                     <operand localId="328" locator="114:44-114:95" name="Client is not due for varicella vaccination Case 1" xsi:type="ExpressionRef"/>
                     <operand localId="329" locator="114:101-114:306" xsi:type="Equal">
                        <signature localId="333" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="334" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="330" locator="114:101-114:110" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="331" locator="114:114-114:306" valueType="t:String" value="Should not vaccinate client with varicella dose as client's age is less than 12 months.&#xa;Check for any vaccines due and inform the caregiver of when to come back for the first varicella dose." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="392" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="393" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="394" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="335" locator="116:5-116:319">
               <when localId="336" locator="116:10-116:37" xsi:type="Equal">
                  <signature localId="343" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="344" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="341" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="342" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="338" locator="116:10-116:19" path="id" xsi:type="Property">
                        <source localId="337" locator="116:10-116:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="339" locator="116:23-116:37" valueType="t:String" value="Varicella10.3" xsi:type="Literal"/>
               </when>
               <then localId="395" xsi:type="As">
                  <operand localId="345" locator="116:44-116:319" xsi:type="And">
                     <operand localId="346" locator="116:44-116:95" name="Client is not due for varicella vaccination Case 2" xsi:type="ExpressionRef"/>
                     <operand localId="347" locator="116:101-116:319" xsi:type="Equal">
                        <signature localId="351" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="352" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="348" locator="116:101-116:110" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="349" locator="116:114-116:319" valueType="t:String" value="Should not vaccinate client with varicella dose as live vaccine was administered in the past 4 weeks.&#xa;Check for any vaccines due and inform the caregiver of when to come back for the first varicella dose." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="396" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="397" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="398" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="353" locator="118:5-118:312">
               <when localId="354" locator="118:10-118:37" xsi:type="Equal">
                  <signature localId="361" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="362" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="359" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="360" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="356" locator="118:10-118:19" path="id" xsi:type="Property">
                        <source localId="355" locator="118:10-118:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="357" locator="118:23-118:37" valueType="t:String" value="Varicella11.3" xsi:type="Literal"/>
               </when>
               <then localId="399" xsi:type="As">
                  <operand localId="363" locator="118:44-118:312" xsi:type="And">
                     <operand localId="364" locator="118:44-118:84" name="Client is due for varicella vaccination" xsi:type="ExpressionRef"/>
                     <operand localId="365" locator="118:90-118:312" xsi:type="Equal">
                        <signature localId="369" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="370" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="366" locator="118:90-118:99" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="367" locator="118:103-118:312" valueType="t:String" value="Should vaccinate client with varicella dose as no varicella dose was administered, client is within the appropriate age range and no live vaccine was administered in past 4 weeks.&#xa;Check for contraindications." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="400" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="401" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="402" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <caseItem localId="371" locator="120:5-120:232">
               <when localId="372" locator="120:10-120:37" xsi:type="Equal">
                  <signature localId="379" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="380" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="377" name="ToString" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                     <signature localId="378" name="fhir:string" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="374" locator="120:10-120:19" path="id" xsi:type="Property">
                        <source localId="373" locator="120:10-120:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="375" locator="120:23-120:37" valueType="t:String" value="Varicella12.1" xsi:type="Literal"/>
               </when>
               <then localId="403" xsi:type="As">
                  <operand localId="381" locator="120:44-120:232" xsi:type="And">
                     <operand localId="382" locator="120:44-120:88" name="Varicella immunization schedule is complete" xsi:type="ExpressionRef"/>
                     <operand localId="383" locator="120:94-120:232" xsi:type="Equal">
                        <signature localId="387" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <signature localId="388" name="t:String" xsi:type="NamedTypeSpecifier"/>
                        <operand localId="384" locator="120:94-120:103" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="385" locator="120:107-120:232" valueType="t:String" value="Varicella immunization schedule is complete. One varicella primary series dose was administered.&#xa;Check for any vaccines due." xsi:type="Literal"/>
                     </operand>
                  </operand>
                  <asTypeSpecifier localId="404" xsi:type="ChoiceTypeSpecifier">
                     <choice localId="405" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                     <choice localId="406" name="t:String" xsi:type="NamedTypeSpecifier"/>
                  </asTypeSpecifier>
               </then>
            </caseItem>
            <else localId="407" xsi:type="As">
               <operand localId="389" locator="122:10-122:27" valueType="t:String" value="No test case set" xsi:type="Literal"/>
               <asTypeSpecifier localId="408" xsi:type="ChoiceTypeSpecifier">
                  <choice localId="409" name="t:Boolean" xsi:type="NamedTypeSpecifier"/>
                  <choice localId="410" name="t:String" xsi:type="NamedTypeSpecifier"/>
               </asTypeSpecifier>
            </else>
         </expression>
      </def>
   </statements>
</library>
