<?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: IMMZD2DTRubellaLowIncidenceLogic (IMMZ.D2.DT.Rubella.Low incidence)
 * Rule: Determine if the client is due for a rubella vaccination according to the national immunization schedule
 * Decision Table: Countries with low incidence of rubella
 * Trigger: IMMZ.D2 Determine required vaccination(s) if any
 */
library IMMZD2DTRubellaLowIncidenceLogic</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD2DTRubellaLowIncidenceLogic" 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="9:1-9: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="10:1-10: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="12:1-12:57" localIdentifier="Encounter" path="http://smart.who.int/immunizations/IMMZD2DTRubellaEncounterElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="210">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZD2DTRubellaEncounterElements</a:s>
               </a:s>
               <a:s> called Encounter</a:s>
            </a:s>
         </annotation>
      </def>
   </includes>
   <parameters>
      <def localId="212" locator="14:1-14: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="14:30-14:36" xsi:type="Today"/>
         <parameterTypeSpecifier localId="216" locator="14:17-14:20" name="t:Date" xsi:type="NamedTypeSpecifier"/>
      </def>
   </parameters>
   <contexts>
      <def localId="221" locator="16:1-16:15" name="Patient"/>
   </contexts>
   <statements>
      <def localId="219" locator="16:1-16:15" name="Patient" context="Patient">
         <expression localId="220" xsi:type="SingletonFrom">
            <operand localId="218" locator="16:1-16:15" dataType="fhir:Patient" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/>
         </expression>
      </def>
      <def localId="233" locator="37:1-38:49" name="Client is not due for rubella vaccination Case 1" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is not due for rubella 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 rubella vaccination Case 1
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;
*/
define &quot;Client is not due for rubella 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="38:3-38:49" name="Client's age is less than 12 months" libraryName="Encounter" xsi:type="ExpressionRef"/>
      </def>
      <def localId="239" locator="44:1-47:73" name="Client is not due for rubella vaccination Case 2" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is not due for rubella 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 rubella vaccination Case 2
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;
*/
define &quot;Client is not due for rubella 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 rubella 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;Client'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 last the 4 weeks&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="240" locator="45:3-47:73" xsi:type="And">
            <operand localId="241" locator="45:3-46:67" xsi:type="And">
               <operand localId="243" locator="45:3-45:61" name="No rubella primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="245" locator="46:9-46:67" name="Client's age is more than or equal to 12 months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="247" locator="47:9-47:73" name="Live vaccine was administered in the last the 4 weeks" libraryName="Encounter" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="229" locator="53:1-55:57" name="Client is not due for rubella vaccination" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is not due for rubella 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 rubella vaccination
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;
*/
define &quot;Client is not due for rubella vaccination&quot;:
  </a:s>
               <a:s r="230">
                  <a:s r="236">
                     <a:s>&quot;Client is not due for rubella 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 rubella vaccination Case 2&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="230" locator="54:3-55:57" xsi:type="Or">
            <operand localId="236" locator="54:3-54:52" name="Client is not due for rubella vaccination Case 1" xsi:type="ExpressionRef"/>
            <operand localId="248" locator="55:8-55:57" name="Client is not due for rubella vaccination Case 2" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="252" locator="64:1-71:5" name="Client is not due for rubella vaccination Guidance" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is not due for rubella vaccination Guidance"/>
            <a:s r="252">
               <a:s>/*
@output: Client is not due for rubella vaccination Guidance
@guidance = Should not vaccinate client with rubella dose. 
Check for any vaccines due and inform the caregiver of when to come back for the first dose.
@guidance = Should not vaccinate client with rubella dose as live vaccine was administered in the last 4 weeks. 
Check for any other vaccines due.
*/
define &quot;Client is not due for rubella 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 rubella vaccination Case 1&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="256">
                        <a:s>'Should not vaccinate client with rubella dose. 
Check for any vaccines due and inform the caregiver of when to come back for the first 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 rubella vaccination Case 2&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="260">
                        <a:s>'Should not vaccinate client with rubella dose as live vaccine was administered in the last 4 weeks. 
Check for any other vaccines due.'</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="65:3-71:5" xsi:type="Case">
            <caseItem localId="254" locator="66:5-66:207">
               <when localId="255" locator="66:10-66:59" name="Client is not due for rubella vaccination Case 1" xsi:type="ExpressionRef"/>
               <then localId="256" locator="66:66-66:207" valueType="t:String" value="Should not vaccinate client with rubella dose. &#xa;Check for any vaccines due and inform the caregiver of when to come back for the first dose." xsi:type="Literal"/>
            </caseItem>
            <caseItem localId="258" locator="68:5-68:201">
               <when localId="259" locator="68:10-68:59" name="Client is not due for rubella vaccination Case 2" xsi:type="ExpressionRef"/>
               <then localId="260" locator="68:66-68:201" valueType="t:String" value="Should not vaccinate client with rubella dose as live vaccine was administered in the last 4 weeks. &#xa;Check for any other vaccines due." xsi:type="Literal"/>
            </caseItem>
            <else localId="262" locator="70:10-70:11" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="268" locator="77:1-80:72" name="Client is due for rubella vaccination" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is due for rubella 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 rubella vaccination
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Due&quot;
*/
define &quot;Client is due for rubella 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 rubella 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;Client'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 last 4 weeks&quot;</a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="269" locator="78:3-80:72" xsi:type="And">
            <operand localId="270" locator="78:3-79:67" xsi:type="And">
               <operand localId="272" locator="78:3-78:61" name="No rubella primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="274" locator="79:9-79:67" name="Client's age is more than or equal to 12 months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="276" locator="80:9-80:72" name="No live vaccine was administered in the last 4 weeks" libraryName="Encounter" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="280" locator="87:1-88:211" name="Client is due for rubella vaccination Guidance" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Client is due for rubella vaccination Guidance"/>
            <a:t name="guidance" value="Should vaccinate client with rubella dose as no rubella doses were administered, client is within appropriate age range and no live vaccine was administered in the last 4 weeks. &#xa;Check for contraindications."/>
            <a:s r="280">
               <a:s>/*
@output: Client is due for rubella vaccination Guidance
@guidance: Should vaccinate client with rubella dose as no rubella doses were administered, client is within appropriate age range and no live vaccine was administered in the last 4 weeks. 
Check for contraindications.
*/
define &quot;Client is due for rubella vaccination Guidance&quot;:
  </a:s>
               <a:s r="281">
                  <a:s>'Should vaccinate client with rubella dose as no rubella doses were administered, client is within appropriate age range and no live vaccine was administered in the last 4 weeks. 
Check for contraindications.'</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="281" locator="88:3-88:211" valueType="t:String" value="Should vaccinate client with rubella dose as no rubella doses were administered, client is within appropriate age range and no live vaccine was administered in the last 4 weeks. &#xa;Check for contraindications." xsi:type="Literal"/>
      </def>
      <def localId="287" locator="97:1-98:62" name="Rubella immunization schedule is complete" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Rubella immunization schedule is complete"/>
            <a:t name="pseudocode" value="&quot;Immunization recommendation status&quot; = &quot;Complete&quot;"/>
            <a:s r="287">
               <a:s>/*
@output: Rubella immunization schedule is complete
@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Complete&quot;

&quot;Completed the primary vaccination series&quot; = TRUE (where &quot;Vaccine type&quot; = &quot;Rubella-containing vaccines&quot;)
*/
define &quot;Rubella 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 rubella primary series dose was administered&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="289" locator="98:3-98:62" name="One rubella primary series dose was administered" libraryName="Encounter" xsi:type="ExpressionRef"/>
      </def>
      <def localId="293" locator="105:1-106:131" name="Rubella immunization schedule is complete Guidance" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="output" value="Rubella immunization schedule is complete Guidance"/>
            <a:t name="guidance" value="Rubella immunization schedule is complete. One rubella primary series dose was administered. &#xa;Check for any other vaccines due."/>
            <a:s r="293">
               <a:s>/*
@output: Rubella immunization schedule is complete Guidance
@guidance: Rubella immunization schedule is complete. One rubella primary series dose was administered. 
Check for any other vaccines due.
*/
define &quot;Rubella immunization schedule is complete Guidance&quot;:
  </a:s>
               <a:s r="294">
                  <a:s>'Rubella immunization schedule is complete. One rubella primary series dose was administered. 
Check for any other vaccines due.'</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="294" locator="106:3-106:131" valueType="t:String" value="Rubella immunization schedule is complete. One rubella primary series dose was administered. &#xa;Check for any other vaccines due." xsi:type="Literal"/>
      </def>
      <def localId="224" locator="22:1-28: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 rubella vaccination&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="264">
                        <a:s>&quot;Client is not due for rubella 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 rubella vaccination&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="283">
                        <a:s>&quot;Client is due for rubella 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;Rubella immunization schedule is complete&quot;</a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="296">
                        <a:s>&quot;Rubella 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="23:3-28:5" xsi:type="Case">
            <caseItem localId="226" locator="24:5-24:110">
               <when localId="249" locator="24:10-24:52" name="Client is not due for rubella vaccination" xsi:type="ExpressionRef"/>
               <then localId="264" locator="24:59-24:110" name="Client is not due for rubella vaccination Guidance" xsi:type="ExpressionRef"/>
            </caseItem>
            <caseItem localId="265" locator="25:5-25:102">
               <when localId="277" locator="25:10-25:48" name="Client is due for rubella vaccination" xsi:type="ExpressionRef"/>
               <then localId="283" locator="25:55-25:102" name="Client is due for rubella vaccination Guidance" xsi:type="ExpressionRef"/>
            </caseItem>
            <caseItem localId="284" locator="26:5-26:110">
               <when localId="290" locator="26:10-26:52" name="Rubella immunization schedule is complete" xsi:type="ExpressionRef"/>
               <then localId="296" locator="26:59-26:110" name="Rubella immunization schedule is complete Guidance" xsi:type="ExpressionRef"/>
            </caseItem>
            <else localId="297" locator="27:10-27:11" valueType="t:String" value="" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="301" locator="30:1-31: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="31:3-31:45" xsi:type="And">
            <operand localId="305" locator="31:3-31:24" xsi:type="Not">
               <operand localId="304" locator="31:3-31:24" xsi:type="IsNull">
                  <operand localId="303" locator="31:3-31:12" name="Guidance" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="312" locator="31:30-31:45" xsi:type="Not">
               <operand localId="306" locator="31:30-31: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="31:30-31:39" name="Guidance" xsi:type="ExpressionRef"/>
                  <operand localId="308" locator="31:44-31:45" valueType="t:String" value="" xsi:type="Literal"/>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="315" locator="113:1-124: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>'Rubella19.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 rubella 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 rubella dose. 
Check for any vaccines due and inform the caregiver of when to come back for the first 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>'Rubella20.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 due for rubella vaccination&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 vaccinate client with rubella dose as no rubella doses were administered, client is within appropriate age range and no live vaccine was administered in the last 4 weeks. 
Check for contraindications.'</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>'Rubella21.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 not due for rubella vaccination Case 2&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 not vaccinate client with rubella dose as live vaccine was administered in the last 4 weeks. 
Check for any other vaccines due.'</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>'Rubella22.1'</a:s>
                        </a:s>
                     </a:s>
                     <a:s> then </a:s>
                     <a:s r="381">
                        <a:s r="382">
                           <a:s>&quot;Rubella 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>'Rubella immunization schedule is complete. One rubella primary series dose was 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="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="114:3-124:5" xsi:type="Case">
            <caseItem localId="317" locator="115:5-115:251">
               <when localId="318" locator="115:10-115:35" 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="115:10-115:19" path="id" xsi:type="Property">
                        <source localId="319" locator="115:10-115:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="321" locator="115:23-115:35" valueType="t:String" value="Rubella19.1" xsi:type="Literal"/>
               </when>
               <then localId="391" xsi:type="As">
                  <operand localId="327" locator="115:42-115:251" xsi:type="And">
                     <operand localId="328" locator="115:42-115:91" name="Client is not due for rubella vaccination Case 1" xsi:type="ExpressionRef"/>
                     <operand localId="329" locator="115:97-115:251" 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="115:97-115:106" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="331" locator="115:110-115:251" valueType="t:String" value="Should not vaccinate client with rubella dose. &#xa;Check for any vaccines due and inform the caregiver of when to come back for the first 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="117:5-117:307">
               <when localId="336" locator="117:10-117:35" 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="117:10-117:19" path="id" xsi:type="Property">
                        <source localId="337" locator="117:10-117:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="339" locator="117:23-117:35" valueType="t:String" value="Rubella20.3" xsi:type="Literal"/>
               </when>
               <then localId="395" xsi:type="As">
                  <operand localId="345" locator="117:42-117:307" xsi:type="And">
                     <operand localId="346" locator="117:42-117:80" name="Client is due for rubella vaccination" xsi:type="ExpressionRef"/>
                     <operand localId="347" locator="117:86-117:307" 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="117:86-117:95" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="349" locator="117:99-117:307" valueType="t:String" value="Should vaccinate client with rubella dose as no rubella doses were administered, client is within appropriate age range and no live vaccine was administered in the last 4 weeks. &#xa;Check for contraindications." 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="119:5-119:245">
               <when localId="354" locator="119:10-119:35" 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="119:10-119:19" path="id" xsi:type="Property">
                        <source localId="355" locator="119:10-119:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="357" locator="119:23-119:35" valueType="t:String" value="Rubella21.3" xsi:type="Literal"/>
               </when>
               <then localId="399" xsi:type="As">
                  <operand localId="363" locator="119:42-119:245" xsi:type="And">
                     <operand localId="364" locator="119:42-119:91" name="Client is not due for rubella vaccination Case 2" xsi:type="ExpressionRef"/>
                     <operand localId="365" locator="119:97-119:245" 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="119:97-119:106" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="367" locator="119:110-119:245" valueType="t:String" value="Should not vaccinate client with rubella dose as live vaccine was administered in the last 4 weeks. &#xa;Check for any other vaccines due." 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="121:5-121:231">
               <when localId="372" locator="121:10-121:35" 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="121:10-121:19" path="id" xsi:type="Property">
                        <source localId="373" locator="121:10-121:16" name="Patient" xsi:type="ExpressionRef"/>
                     </operand>
                  </operand>
                  <operand localId="375" locator="121:23-121:35" valueType="t:String" value="Rubella22.1" xsi:type="Literal"/>
               </when>
               <then localId="403" xsi:type="As">
                  <operand localId="381" locator="121:42-121:231" xsi:type="And">
                     <operand localId="382" locator="121:42-121:84" name="Rubella immunization schedule is complete" xsi:type="ExpressionRef"/>
                     <operand localId="383" locator="121:90-121:231" 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="121:90-121:99" name="Guidance" xsi:type="ExpressionRef"/>
                        <operand localId="385" locator="121:103-121:231" valueType="t:String" value="Rubella immunization schedule is complete. One rubella primary series dose was administered. &#xa;Check for any other 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="123:10-123: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>
