<?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="293">
         <a:s>/*
  * Library: IMMZD2DTHepatitisAElements
  */
library IMMZD2DTHepatitisAElements</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD2DTHepatitisAElements" system="http://smart.who.int/immunizations"/>
   <schemaIdentifier id="urn:hl7-org:elm" version="r1"/>
   <usings>
      <def localId="1" localIdentifier="System" uri="urn:hl7-org:elm-types:r1" version="1.0.0"/>
      <def localId="206" locator="7:1-7:26" localIdentifier="FHIR" uri="http://hl7.org/fhir" version="4.0.1">
         <annotation xsi:type="a:Annotation">
            <a:s r="206">
               <a:s>using </a:s>
               <a:s>
                  <a:s>FHIR</a:s>
               </a:s>
               <a:s> version '4.0.1'</a:s>
            </a:s>
         </annotation>
      </def>
   </usings>
   <includes>
      <def localId="208" locator="8:1-8:35" localIdentifier="FHIRHelpers" path="http://hl7.org/fhir/FHIRHelpers" version="4.0.1">
         <annotation xsi:type="a:Annotation">
            <a:s r="208">
               <a:s>include </a:s>
               <a:s>
                  <a:s>FHIRHelpers</a:s>
               </a:s>
               <a:s> version '4.0.1'</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="210" locator="10:1-10:19" localIdentifier="WHOConcepts" path="http://smart.who.int/immunizations/WHOConcepts">
         <annotation xsi:type="a:Annotation">
            <a:s r="210">
               <a:s>include </a:s>
               <a:s>
                  <a:s>WHOConcepts</a:s>
               </a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="212" locator="11:1-11:27" localIdentifier="WC" path="http://smart.who.int/immunizations/WHOCommon">
         <annotation xsi:type="a:Annotation">
            <a:s r="212">
               <a:s>include </a:s>
               <a:s>
                  <a:s>WHOCommon</a:s>
               </a:s>
               <a:s> called WC</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="214" locator="12:1-12:29" localIdentifier="WE" path="http://smart.who.int/immunizations/WHOElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="214">
               <a:s>include </a:s>
               <a:s>
                  <a:s>WHOElements</a:s>
               </a:s>
               <a:s> called WE</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="216" locator="14:1-14:32" localIdentifier="Common" path="http://smart.who.int/immunizations/IMMZCommon">
         <annotation xsi:type="a:Annotation">
            <a:s r="216">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZCommon</a:s>
               </a:s>
               <a:s> called Common</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="218" locator="15:1-15:36" localIdentifier="Concepts" path="http://smart.who.int/immunizations/IMMZConcepts">
         <annotation xsi:type="a:Annotation">
            <a:s r="218">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZConcepts</a:s>
               </a:s>
               <a:s> called Concepts</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="220" locator="16:1-16:36" localIdentifier="Elements" path="http://smart.who.int/immunizations/IMMZElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="220">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZElements</a:s>
               </a:s>
               <a:s> called Elements</a:s>
            </a:s>
         </annotation>
      </def>
   </includes>
   <contexts>
      <def localId="225" locator="19:1-19:15" name="Patient"/>
   </contexts>
   <statements>
      <def localId="223" locator="19:1-19:15" name="Patient" context="Patient">
         <expression localId="224" xsi:type="SingletonFrom">
            <operand localId="222" locator="19:1-19:15" dataType="fhir:Patient" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/>
         </expression>
      </def>
      <def localId="228" locator="24:1-27:63" name="Hepatitis A Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Hepatitis A containing Doses Administered to Patient"/>
            <a:s r="228">
               <a:s>/*
@internal: Hepatitis A containing Doses Administered to Patient
*/
define &quot;Hepatitis A Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="240">
                  <a:s>
                     <a:s r="229">
                        <a:s r="231">
                           <a:s>
                              <a:s>Elements.&quot;Doses Administered to Patient&quot;</a:s>
                           </a:s>
                        </a:s>
                        <a:s> I</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  </a:s>
                  <a:s r="237">
                     <a:s>where
    </a:s>
                     <a:s r="237">
                        <a:s r="234">
                           <a:s r="233">
                              <a:s>I</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="234">
                              <a:s>vaccineCode</a:s>
                           </a:s>
                        </a:s>
                        <a:s> in </a:s>
                        <a:s r="236">
                           <a:s r="235">
                              <a:s>Concepts</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="236">
                              <a:s>&quot;Hepatitis A-containing vaccines&quot;</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="240" locator="25:3-27:63" xsi:type="Query">
            <source localId="229" locator="25:3-25:44" alias="I">
               <expression localId="231" locator="25:3-25:42" name="Doses Administered to Patient" libraryName="Elements" xsi:type="ExpressionRef"/>
            </source>
            <where localId="237" locator="26:3-27:63" xsi:type="InValueSet">
               <signature localId="239" name="t:Concept" xsi:type="NamedTypeSpecifier"/>
               <code localId="238" name="ToConcept" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                  <operand localId="234" locator="27:5-27:17" path="vaccineCode" scope="I" xsi:type="Property"/>
               </code>
               <valueset localId="236" locator="27:22-27:63" name="Hepatitis A-containing vaccines" libraryName="Concepts" preserve="true"/>
            </where>
         </expression>
      </def>
      <def localId="243" locator="32:1-33:61" name="Hepatitis A Primary Series Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Hepatitis A containing Doses Administered to Patient that are in the Primary series"/>
            <a:s r="243">
               <a:s>/*
@internal: Hepatitis A containing Doses Administered to Patient that are in the Primary series
*/
define &quot;Hepatitis A Primary Series Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="245">
                  <a:s r="244">
                     <a:s>&quot;Hepatitis A Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="245">
                     <a:s>seriesPrimary()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="245" locator="33:3-33:61" name="seriesPrimary" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="244" locator="33:3-33:45" name="Hepatitis A Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="248" locator="38:1-39:67" name="Number of Hepatitis A Primary Series Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of Hepatitis A Primary Series doses"/>
            <a:s r="248">
               <a:s>/*
@internal: Number of Hepatitis A Primary Series doses
*/
define &quot;Number of Hepatitis A Primary Series Doses Administered&quot;:
  </a:s>
               <a:s r="252">
                  <a:s>Count(</a:s>
                  <a:s r="249">
                     <a:s>&quot;Hepatitis A Primary Series Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="252" locator="39:3-39:67" xsi:type="Count">
            <source localId="249" locator="39:9-39:66" name="Hepatitis A Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="255" locator="48:1-49:47" name="Client's age is less than 12 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 12 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 12 months"/>
            <a:t name="code" value="Client's age is less than 12 months-42"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule"/>
            <a:s r="255">
               <a:s>/*
@input: Client's age is less than 12 months
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 12 months
@code: Client's age is less than 12 months-42
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule
*/
define &quot;Client's age is less than 12 months&quot;:
  </a:s>
               <a:s r="256">
                  <a:s r="258">
                     <a:s r="257">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="258">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="259"> &lt; 12</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="256" locator="49:3-49:47" xsi:type="Less">
            <signature localId="260" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="261" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="258" locator="49:3-49:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="259" locator="49:46-49:47" valueType="t:Integer" value="12" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="264" locator="57:1-58:63" name="No hepatitis A primary series doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No hepatitis A primary series doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0"/>
            <a:t name="code" value="No hepatitis A primary series doses were administered-131"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule"/>
            <a:s r="264">
               <a:s>/*
@input: No hepatitis A primary series doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0
@code: No hepatitis A primary series doses were administered-131
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule
*/
define &quot;No hepatitis A primary series doses were administered&quot;:
  </a:s>
               <a:s r="265">
                  <a:s r="266">
                     <a:s>&quot;Number of Hepatitis A Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="267"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="265" locator="58:3-58:63" xsi:type="Equal">
            <signature localId="268" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="269" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="266" locator="58:3-58:59" name="Number of Hepatitis A Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="267" locator="58:63" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="272" locator="67:1-68:48" name="Client's age is more than or equal to 12 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 12 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 12 months"/>
            <a:t name="code" value="Client's age is more than or equal to 12 months-42"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule"/>
            <a:s r="272">
               <a:s>/*
@input: Client's age is more than or equal to 12 months
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 12 months
@code: Client's age is more than or equal to 12 months-42
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule
*/
define &quot;Client's age is more than or equal to 12 months&quot;:
  </a:s>
               <a:s r="273">
                  <a:s r="275">
                     <a:s r="274">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="275">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="276"> >= 12</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="273" locator="68:3-68:48" xsi:type="GreaterOrEqual">
            <signature localId="277" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="278" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="275" locator="68:3-68:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="276" locator="68:47-68:48" valueType="t:Integer" value="12" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="281" locator="78:1-79:63" name="One hepatitis A primary series dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="One hepatitis A primary series dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1"/>
            <a:t name="code" value="One hepatitis A primary series dose was administered-131"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule"/>
            <a:s r="281">
               <a:s>/*
@input: One hepatitis A primary series dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1
@code: One hepatitis A primary series dose was administered-131
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule
@decision: IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule
*/
define &quot;One hepatitis A primary series dose was administered&quot;:
  </a:s>
               <a:s r="282">
                  <a:s r="283">
                     <a:s>&quot;Number of Hepatitis A Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="284"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="282" locator="79:3-79:63" xsi:type="Equal">
            <signature localId="285" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="286" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="283" locator="79:3-79:59" name="Number of Hepatitis A Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="284" locator="79:63" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="293" locator="158:1-159:101" name="Date of Latest Hepatitis A Dose" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Date of Latest Hepatitis A Dose"/>
            <a:s r="293">
               <a:s>/*
@internal: Date of Latest Hepatitis A Dose
*/
define &quot;Date of Latest Hepatitis A Dose&quot;:
  </a:s>
               <a:s r="294">
                  <a:s>date from </a:s>
                  <a:s r="295">
                     <a:s>start of </a:s>
                     <a:s r="301">
                        <a:s r="300">
                           <a:s r="297">
                              <a:s r="296">
                                 <a:s>&quot;Hepatitis A Doses Administered to Patient&quot;</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="297">
                                 <a:s>mostRecent()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="300">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="301">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="294" locator="159:3-159:101" xsi:type="DateFrom">
            <operand localId="295" locator="159:13-159:101" xsi:type="Start">
               <operand localId="301" locator="159:22-159:101" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="300" locator="159:22-159:88" path="occurrence" xsi:type="Property">
                     <source localId="297" locator="159:22-159:77" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="298" xsi:type="ListTypeSpecifier">
                           <elementType localId="299" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="296" locator="159:22-159:64" name="Hepatitis A Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="289" locator="87:1-89:82" name="The latest Hepatitis A dose was administered less than 6 months ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest Hepatitis A dose was administered less than 6 months ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot;) &lt; 6 months"/>
            <a:t name="code" value="The latest Hepatitis A dose was administered less than 6 months ago-115"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule"/>
            <a:s r="289">
               <a:s>/*
@input: The latest Hepatitis A dose was administered less than 6 months ago
@pseudocode: Today's date − &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot;) &lt; 6 months
@code: The latest Hepatitis A dose was administered less than 6 months ago-115
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule
*/
define &quot;The latest Hepatitis A dose was administered less than 6 months ago&quot;:
  </a:s>
               <a:s r="290">
                  <a:s r="304">
                     <a:s r="302">
                        <a:s>&quot;Date of Latest Hepatitis A Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
    and </a:s>
                  <a:s r="305">
                     <a:s r="306">
                        <a:s>duration in months between </a:s>
                        <a:s r="307">
                           <a:s>&quot;Date of Latest Hepatitis A Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="310">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="316"> &lt; 6</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="290" locator="88:3-89:82" xsi:type="And">
            <operand localId="304" locator="88:3-88:47" xsi:type="Not">
               <operand localId="303" locator="88:3-88:47" xsi:type="IsNull">
                  <operand localId="302" locator="88:3-88:35" name="Date of Latest Hepatitis A Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="305" locator="89:9-89:82" xsi:type="Less">
               <signature localId="317" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="318" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="306" locator="89:9-89:78" precision="Month" xsi:type="DurationBetween">
                  <signature localId="314" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="315" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="312" xsi:type="ToDateTime">
                     <signature localId="313" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="307" locator="89:36-89:68" name="Date of Latest Hepatitis A Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="310" locator="89:74-89:78" xsi:type="Now"/>
               </operand>
               <operand localId="316" locator="89:82" valueType="t:Integer" value="6" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="321" locator="97:1-98:75" name="The latest Hepatitis A dose was administered more than 6 months ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest Hepatitis A dose was administered more than 6 months ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot;) ≥ 6 months"/>
            <a:t name="code" value="The latest Hepatitis A dose was administered more than 6 months ago-115"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule"/>
            <a:s r="321">
               <a:s>/*
@input: The latest Hepatitis A dose was administered more than 6 months ago
@pseudocode: Today's date − &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot;) ≥ 6 months
@code: The latest Hepatitis A dose was administered more than 6 months ago-115
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule
*/
define &quot;The latest Hepatitis A dose was administered more than 6 months ago&quot;:
  </a:s>
               <a:s r="322">
                  <a:s>not </a:s>
                  <a:s r="323">
                     <a:s>&quot;The latest Hepatitis A dose was administered less than 6 months ago&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="322" locator="98:3-98:75" xsi:type="Not">
            <operand localId="323" locator="98:7-98:75" name="The latest Hepatitis A dose was administered less than 6 months ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="326" locator="106:1-107:63" name="Two hepatitis A primary series doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Two hepatitis A primary series doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2"/>
            <a:t name="code" value="Two hepatitis A primary series doses were administered-131"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule"/>
            <a:s r="326">
               <a:s>/*
@input: Two hepatitis A primary series doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2
@code: Two hepatitis A primary series doses were administered-131
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses: Inactivated hepatitis A virus (HAV), 2-dose schedule
*/
define &quot;Two hepatitis A primary series doses were administered&quot;:
  </a:s>
               <a:s r="327">
                  <a:s r="328">
                     <a:s>&quot;Number of Hepatitis A Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="329"> = 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="327" locator="107:3-107:63" xsi:type="Equal">
            <signature localId="330" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="331" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="328" locator="107:3-107:59" name="Number of Hepatitis A Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="329" locator="107:63" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="334" locator="116:1-117:57" name="No hepatitis A primary series dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No hepatitis A primary series dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0"/>
            <a:t name="code" value="No hepatitis A primary series dose was administered-131"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule"/>
            <a:s r="334">
               <a:s>/*
@input: No hepatitis A primary series dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0
@code: No hepatitis A primary series dose was administered-131
@decision: IMMZ.D2.DT.Hepatitis A.Inactivated HAV 1 dose: Inactivated hepatitis A virus (HAV), 1-dose schedule
@decision: IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule
*/
define &quot;No hepatitis A primary series dose was administered&quot;:
  </a:s>
               <a:s r="335">
                  <a:s>&quot;No hepatitis A primary series doses were administered&quot;</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="335" locator="117:3-117:57" name="No hepatitis A primary series doses were administered" xsi:type="ExpressionRef"/>
      </def>
      <def localId="338" locator="125:1-126:47" name="Client's age is less than 18 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 18 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 18 months"/>
            <a:t name="code" value="Client's age is less than 18 months-42"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule"/>
            <a:s r="338">
               <a:s>/*
@input: Client's age is less than 18 months
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 18 months
@code: Client's age is less than 18 months-42
@decision: IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule
*/
define &quot;Client's age is less than 18 months&quot;:
  </a:s>
               <a:s r="339">
                  <a:s r="341">
                     <a:s r="340">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="341">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="342"> &lt; 18</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="339" locator="126:3-126:47" xsi:type="Less">
            <signature localId="343" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="344" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="341" locator="126:3-126:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="342" locator="126:46-126:47" valueType="t:Integer" value="18" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="347" locator="134:1-135:48" name="Client's age is more than or equal to 18 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 18 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 18 months"/>
            <a:t name="code" value="Client's age is more than or equal to 18 months-42"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule"/>
            <a:s r="347">
               <a:s>/*
@input: Client's age is more than or equal to 18 months
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 18 months
@code: Client's age is more than or equal to 18 months-42
@decision: IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule
*/
define &quot;Client's age is more than or equal to 18 months&quot;:
  </a:s>
               <a:s r="348">
                  <a:s r="350">
                     <a:s r="349">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="350">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="351"> >= 18</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="348" locator="135:3-135:48" xsi:type="GreaterOrEqual">
            <signature localId="352" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="353" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="350" locator="135:3-135:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="351" locator="135:47-135:48" valueType="t:Integer" value="18" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="356" locator="143:1-144:62" name="Live vaccine was administered in the last 4 weeks" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Live vaccine was administered in the last 4 weeks"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Live vaccine&quot; = TRUE) &lt; 4 weekS"/>
            <a:t name="code" value="Live vaccine was administered in the last 4 weeks-92"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule"/>
            <a:s r="356">
               <a:s>/*
@input: Live vaccine was administered in the last 4 weeks
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Live vaccine&quot; = TRUE) &lt; 4 weekS
@code: Live vaccine was administered in the last 4 weeks-92
@decision: IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule
*/
define &quot;Live vaccine was administered in the last 4 weeks&quot;:
  </a:s>
               <a:s r="358">
                  <a:s r="357">
                     <a:s>Elements</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="358">
                     <a:s>&quot;Live vaccine was administered in the last 4 weeks&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="358" locator="144:3-144:62" name="Live vaccine was administered in the last 4 weeks" libraryName="Elements" xsi:type="ExpressionRef"/>
      </def>
      <def localId="361" locator="152:1-153:65" name="No live vaccine was administered in the last 4 weeks" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No live vaccine was administered in the last 4 weeks"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Live vaccine&quot; = TRUE) ≥ 4 weeks"/>
            <a:t name="code" value="No live vaccine was administered in the last 4 weeks-92"/>
            <a:t name="decision" value="IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule"/>
            <a:s r="361">
               <a:s>/*
@input: No live vaccine was administered in the last 4 weeks
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Live vaccine&quot; = TRUE) ≥ 4 weeks
@code: No live vaccine was administered in the last 4 weeks-92
@decision: IMMZ.D2.DT.Hepatitis A.Live attenuated HAV 1 dose: Live attenuated hepatitis A virus (HAV), 1 dose schedule
*/
define &quot;No live vaccine was administered in the last 4 weeks&quot;:
  </a:s>
               <a:s r="363">
                  <a:s r="362">
                     <a:s>Elements</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="363">
                     <a:s>&quot;No live vaccine was administered in the last 4 weeks&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="363" locator="153:3-153:65" name="No live vaccine was administered in the last 4 weeks" libraryName="Elements" xsi:type="ExpressionRef"/>
      </def>
   </statements>
</library>
