<?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="495">
         <a:s>/*
  * Library: IMMZD2DTMeaslesElements
  */
library IMMZD2DTMeaslesElements</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD2DTMeaslesElements" 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-28:59" name="Measles Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Measles containing Doses Administered to Patient"/>
            <a:s r="228">
               <a:s>/*
@internal: Measles containing Doses Administered to Patient
*/
define &quot;Measles 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;Measles-containing vaccines&quot;</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="240" locator="26:3-28:59" xsi:type="Query">
            <source localId="229" locator="26:3-26:44" alias="I">
               <expression localId="231" locator="26:3-26:42" name="Doses Administered to Patient" libraryName="Elements" xsi:type="ExpressionRef"/>
            </source>
            <where localId="237" locator="27:3-28:59" 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="28:5-28:17" path="vaccineCode" scope="I" xsi:type="Property"/>
               </code>
               <valueset localId="236" locator="28:22-28:59" name="Measles-containing vaccines" libraryName="Concepts" preserve="true"/>
            </where>
         </expression>
      </def>
      <def localId="243" locator="33:1-35:57" name="Measles Primary Series Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Measles containing Doses Administered to Patient that are in the Primary series"/>
            <a:s r="243">
               <a:s>/*
@internal: Measles containing Doses Administered to Patient that are in the Primary series
*/
define &quot;Measles Primary Series Doses Administered to Patient&quot;:

  </a:s>
               <a:s r="245">
                  <a:s r="244">
                     <a:s>&quot;Measles 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="35:3-35:57" name="seriesPrimary" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="244" locator="35:3-35:41" name="Measles Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="248" locator="40:1-42:63" name="Number of Measles Primary Series Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of Measles Primary Series doses"/>
            <a:s r="248">
               <a:s>/*
@internal: Number of Measles Primary Series doses
*/
define &quot;Number of Measles Primary Series Doses Administered&quot;:

  </a:s>
               <a:s r="252">
                  <a:s>Count(</a:s>
                  <a:s r="249">
                     <a:s>&quot;Measles Primary Series Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="252" locator="42:3-42:63" xsi:type="Count">
            <source localId="249" locator="42:9-42:62" name="Measles Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="255" locator="50:1-51:46" name="Client's age is less than 9 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 9 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 9 months"/>
            <a:t name="code" value="Client's age is less than 9 months-41"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)"/>
            <a:s r="255">
               <a:s>/*
@input: Client's age is less than 9 months
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 9 months
@code: Client's age is less than 9 months-41
@decision: IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)
*/
define &quot;Client's age is less than 9 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; 9</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="256" locator="51:3-51:46" 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="51:3-51:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="259" locator="51:46" valueType="t:Integer" value="9" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="274" locator="243:1-246:59" name="MCV Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="MCV Doses Administered to Patient"/>
            <a:s r="274">
               <a:s>/*
@internal: MCV Doses Administered to Patient
*/
define &quot;MCV Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="286">
                  <a:s>
                     <a:s r="275">
                        <a:s r="277">
                           <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="283">
                     <a:s>where
    </a:s>
                     <a:s r="283">
                        <a:s r="280">
                           <a:s r="279">
                              <a:s>I</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="280">
                              <a:s>vaccineCode</a:s>
                           </a:s>
                        </a:s>
                        <a:s> in </a:s>
                        <a:s r="282">
                           <a:s r="281">
                              <a:s>Concepts</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="282">
                              <a:s>&quot;Measles-containing vaccines&quot;</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="286" locator="244:3-246:59" xsi:type="Query">
            <source localId="275" locator="244:3-244:44" alias="I">
               <expression localId="277" locator="244:3-244:42" name="Doses Administered to Patient" libraryName="Elements" xsi:type="ExpressionRef"/>
            </source>
            <where localId="283" locator="245:3-246:59" xsi:type="InValueSet">
               <signature localId="285" name="t:Concept" xsi:type="NamedTypeSpecifier"/>
               <code localId="284" name="ToConcept" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                  <operand localId="280" locator="246:5-246:17" path="vaccineCode" scope="I" xsi:type="Property"/>
               </code>
               <valueset localId="282" locator="246:22-246:59" name="Measles-containing vaccines" libraryName="Concepts" preserve="true"/>
            </where>
         </expression>
      </def>
      <def localId="271" locator="251:1-252:53" name="MCV Primary Series Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="MCV Primary Series Doses Administered to Patient"/>
            <a:s r="271">
               <a:s>/*
@internal: MCV Primary Series Doses Administered to Patient
*/
define &quot;MCV Primary Series Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="288">
                  <a:s r="287">
                     <a:s>&quot;MCV Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="288">
                     <a:s>seriesPrimary()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="288" locator="252:3-252:53" name="seriesPrimary" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="287" locator="252:3-252:37" name="MCV Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="268" locator="269:1-270:59" name="Number of MCV Primary Series Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of MCV Primary Series Doses Administered"/>
            <a:s r="268">
               <a:s>/*
@internal: Number of MCV Primary Series Doses Administered
*/
define &quot;Number of MCV Primary Series Doses Administered&quot;:
  </a:s>
               <a:s r="292">
                  <a:s>Count(</a:s>
                  <a:s r="289">
                     <a:s>&quot;MCV Primary Series Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="292" locator="270:3-270:59" xsi:type="Count">
            <source localId="289" locator="270:9-270:58" name="MCV Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="264" locator="60:1-61:55" name="No measles primary series doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No measles primary series doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0"/>
            <a:t name="code" value="No measles primary series doses were administered-127"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)"/>
            <a:s r="264">
               <a:s>/*
@input: No measles primary series doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0
@code: No measles primary series doses were administered-127
@decision: IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)
@decision: IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)
*/
define &quot;No measles primary series doses were administered&quot;:
  </a:s>
               <a:s r="265">
                  <a:s r="293">
                     <a:s>&quot;Number of MCV Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="294"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="265" locator="61:3-61:55" xsi:type="Equal">
            <signature localId="295" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="296" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="293" locator="61:3-61:51" name="Number of MCV Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="294" locator="61:55" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="299" locator="70:1-71:47" name="Client's age is more than or equal to 9 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 9 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 9 months"/>
            <a:t name="code" value="Client's age is more than or equal to 9 months-41"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration"/>
            <a:s r="299">
               <a:s>/*
@input: Client's age is more than or equal to 9 months
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 9 months
@code: Client's age is more than or equal to 9 months-41
@decision: IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)
@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration
*/
define &quot;Client's age is more than or equal to 9 months&quot;:
  </a:s>
               <a:s r="300">
                  <a:s r="302">
                     <a:s r="301">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="302">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="303"> >= 9</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="300" locator="71:3-71:47" xsi:type="GreaterOrEqual">
            <signature localId="304" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="305" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="302" locator="71:3-71:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="303" locator="71:47" valueType="t:Integer" value="9" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="308" locator="81:1-82: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.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration"/>
            <a:s r="308">
               <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.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)
@decision: IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)
@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration
*/
define &quot;No live vaccine was administered in the last 4 weeks&quot;:
  </a:s>
               <a:s r="310">
                  <a:s r="309">
                     <a:s>Elements</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="310">
                     <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="310" locator="82:3-82:65" name="No live vaccine was administered in the last 4 weeks" libraryName="Elements" xsi:type="ExpressionRef"/>
      </def>
      <def localId="313" locator="92:1-93: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.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration"/>
            <a:s r="313">
               <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.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)
@decision: IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)
@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration
*/
define &quot;Live vaccine was administered in the last 4 weeks&quot;:
  </a:s>
               <a:s r="315">
                  <a:s r="314">
                     <a:s>Elements</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="315">
                     <a:s>&quot;Live vaccine was administered in the last 4 weeks&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="315" locator="93:3-93:62" name="Live vaccine was administered in the last 4 weeks" libraryName="Elements" xsi:type="ExpressionRef"/>
      </def>
      <def localId="318" locator="102:1-103:55" name="MCV1 was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="MCV1 was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1"/>
            <a:t name="code" value="MCV1 was administered-127"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)"/>
            <a:s r="318">
               <a:s>/*
@input: MCV1 was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1
@code: MCV1 was administered-127
@decision: IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)
@decision: IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)
*/
define &quot;MCV1 was administered&quot;:
  </a:s>
               <a:s r="319">
                  <a:s r="320">
                     <a:s>&quot;Number of MCV Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="321"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="319" locator="103:3-103:55" xsi:type="Equal">
            <signature localId="322" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="323" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="320" locator="103:3-103:51" name="Number of MCV Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="321" locator="103:55" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="326" locator="112:1-113:47" name="Client's age is less than 15 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 15 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 15 months"/>
            <a:t name="code" value="Client's age is less than 15 months-42"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)"/>
            <a:s r="326">
               <a:s>/*
@input: Client's age is less than 15 months
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 15 months
@code: Client's age is less than 15 months-42
@decision: IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)
@decision: IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)
*/
define &quot;Client's age is less than 15 months&quot;:
  </a:s>
               <a:s r="327">
                  <a:s r="329">
                     <a:s r="328">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="329">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="330"> &lt; 15</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="327" locator="113:3-113:47" xsi:type="Less">
            <signature localId="331" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="332" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="329" locator="113:3-113:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="330" locator="113:46-113:47" valueType="t:Integer" value="15" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="335" locator="122:1-123:48" name="Client's age is more than or equal to 15 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 15 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 15 months"/>
            <a:t name="code" value="Client's age is more than or equal to 15 months-42"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)"/>
            <a:s r="335">
               <a:s>/*
@input: Client's age is more than or equal to 15 months
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 15 months
@code: Client's age is more than or equal to 15 months-42
@decision: IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)
@decision: IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)
*/
define &quot;Client's age is more than or equal to 15 months&quot;:
  </a:s>
               <a:s r="336">
                  <a:s r="338">
                     <a:s r="337">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="338">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="339"> >= 15</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="336" locator="123:3-123:48" xsi:type="GreaterOrEqual">
            <signature localId="340" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="341" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="338" locator="123:3-123:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="339" locator="123:47-123:48" valueType="t:Integer" value="15" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="344" locator="132:1-133:55" name="MCV2 was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="MCV2 was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2"/>
            <a:t name="code" value="MCV2 was administered-127"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)"/>
            <a:s r="344">
               <a:s>/*
@input: MCV2 was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2
@code: MCV2 was administered-127
@decision: IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)
@decision: IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)
*/
define &quot;MCV2 was administered&quot;:
  </a:s>
               <a:s r="345">
                  <a:s r="346">
                     <a:s>&quot;Number of MCV Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="347"> = 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="345" locator="133:3-133:55" xsi:type="Equal">
            <signature localId="348" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="349" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="346" locator="133:3-133:51" name="Number of MCV Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="347" locator="133:55" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="352" locator="141:1-142: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.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)"/>
            <a:s r="352">
               <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.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)
*/
define &quot;Client's age is less than 12 months&quot;:
  </a:s>
               <a:s r="353">
                  <a:s r="355">
                     <a:s r="354">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="355">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="356"> &lt; 12</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="353" locator="142:3-142:47" xsi:type="Less">
            <signature localId="357" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="358" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="355" locator="142:3-142:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="356" locator="142:46-142:47" valueType="t:Integer" value="12" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="361" locator="150:1-151: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.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)"/>
            <a:s r="361">
               <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.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)
*/
define &quot;Client's age is more than or equal to 12 months&quot;:
  </a:s>
               <a:s r="362">
                  <a:s r="364">
                     <a:s r="363">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="364">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="365"> >= 12</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="362" locator="151:3-151:48" xsi:type="GreaterOrEqual">
            <signature localId="366" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="367" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="364" locator="151:3-151:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="365" locator="151:47-151:48" valueType="t:Integer" value="12" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="370" locator="159:1-160:46" name="Client's age is less than 6 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 6 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 6 months"/>
            <a:t name="code" value="Client's age is less than 6 months-41"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration"/>
            <a:s r="370">
               <a:s>/*
@input: Client's age is less than 6 months
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 6 months
@code: Client's age is less than 6 months-41
@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration
*/
define &quot;Client's age is less than 6 months&quot;:
  </a:s>
               <a:s r="371">
                  <a:s r="373">
                     <a:s r="372">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="373">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="374"> &lt; 6</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="371" locator="160:3-160:46" xsi:type="Less">
            <signature localId="375" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="376" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="373" locator="160:3-160:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="374" locator="160:46" valueType="t:Integer" value="6" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="386" locator="257:1-258:51" name="MCV Dose 0 Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="MCV Dose 0 Doses Administered to Patient"/>
            <a:s r="386">
               <a:s>/*
@internal: MCV Dose 0 Doses Administered to Patient
*/
define &quot;MCV Dose 0 Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="388">
                  <a:s r="387">
                     <a:s>&quot;MCV Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="388">
                     <a:s>seriesDose0()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="388" locator="258:3-258:51" name="seriesDose0" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="387" locator="258:3-258:37" name="MCV Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="383" locator="275:1-276:51" name="Number of MCV Dose 0 Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of MCV Dose 0 Doses Administered"/>
            <a:s r="383">
               <a:s>/*
@internal: Number of MCV Dose 0 Doses Administered
*/
define &quot;Number of MCV Dose 0 Doses Administered&quot;:
  </a:s>
               <a:s r="392">
                  <a:s>Count(</a:s>
                  <a:s r="389">
                     <a:s>&quot;MCV Dose 0 Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="392" locator="276:3-276:51" xsi:type="Count">
            <source localId="389" locator="276:9-276:50" name="MCV Dose 0 Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="379" locator="168:1-169:47" name="MCV0 was not administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="MCV0 was not administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Dose 0&quot;) = 0"/>
            <a:t name="code" value="MCV0 was not administered-119"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration"/>
            <a:s r="379">
               <a:s>/*
@input: MCV0 was not administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Dose 0&quot;) = 0
@code: MCV0 was not administered-119
@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration
*/
define &quot;MCV0 was not administered&quot;:
  </a:s>
               <a:s r="380">
                  <a:s r="393">
                     <a:s>&quot;Number of MCV Dose 0 Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="394"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="380" locator="169:3-169:47" xsi:type="Equal">
            <signature localId="395" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="396" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="393" locator="169:3-169:43" name="Number of MCV Dose 0 Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="394" locator="169:47" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="399" locator="177:1-179:50" name="Client's age is between 6 months and 9 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is between 6 months and 9 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 9 months"/>
            <a:t name="code" value="Client's age is between 6 months and 9 months-52"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration"/>
            <a:s r="399">
               <a:s>/*
@input: Client's age is between 6 months and 9 months
@pseudocode: 6 months ≤ Today's date − &quot;Date of birth&quot; &lt; 9 months
@code: Client's age is between 6 months and 9 months-52
@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration
*/
define &quot;Client's age is between 6 months and 9 months&quot;:
  </a:s>
               <a:s r="400">
                  <a:s r="401">
                     <a:s r="402">6 &lt;= </a:s>
                     <a:s r="404">
                        <a:s r="403">
                           <a:s>Elements</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="404">
                           <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="407">
                     <a:s r="409">
                        <a:s r="408">
                           <a:s>Elements</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="409">
                           <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="410"> &lt; 9</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="400" locator="178:3-179:50" xsi:type="And">
            <operand localId="401" locator="178:3-178:47" xsi:type="LessOrEqual">
               <signature localId="405" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="406" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="402" locator="178:3" valueType="t:Integer" value="6" xsi:type="Literal"/>
               <operand localId="404" locator="178:8-178:47" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="407" locator="179:7-179:50" xsi:type="Less">
               <signature localId="411" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="412" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="409" locator="179:7-179:46" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
               <operand localId="410" locator="179:50" valueType="t:Integer" value="9" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="415" locator="187:1-188:47" name="MCV0 was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="MCV0 was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Dose 0&quot;) = 1"/>
            <a:t name="code" value="MCV0 was administered-119"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration"/>
            <a:s r="415">
               <a:s>/*
@input: MCV0 was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Dose 0&quot;) = 1
@code: MCV0 was administered-119
@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration
*/
define &quot;MCV0 was administered&quot;:
  </a:s>
               <a:s r="416">
                  <a:s r="417">
                     <a:s>&quot;Number of MCV Dose 0 Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="418"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="416" locator="188:3-188:47" xsi:type="Equal">
            <signature localId="419" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="420" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="417" locator="188:3-188:43" name="Number of MCV Dose 0 Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="418" locator="188:47" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="430" locator="263:1-264:59" name="MCV Supplementary Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="MCV Supplementary Doses Administered to Patient"/>
            <a:s r="430">
               <a:s>/*
@internal: MCV Supplementary Doses Administered to Patient
*/
define &quot;MCV Supplementary Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="432">
                  <a:s r="431">
                     <a:s>&quot;MCV Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="432">
                     <a:s>seriesSupplementary()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="432" locator="264:3-264:59" name="seriesSupplementary" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="431" locator="264:3-264:37" name="MCV Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="427" locator="281:1-282:58" name="Number of MCV Supplementary Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of MCV Supplementary Doses Administered"/>
            <a:s r="427">
               <a:s>/*
@internal: Number of MCV Supplementary Doses Administered
*/
define &quot;Number of MCV Supplementary Doses Administered&quot;:
  </a:s>
               <a:s r="436">
                  <a:s>Count(</a:s>
                  <a:s r="433">
                     <a:s>&quot;MCV Supplementary Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="436" locator="282:3-282:58" xsi:type="Count">
            <source localId="433" locator="282:9-282:57" name="MCV Supplementary Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="423" locator="196:1-197:54" name="Measles supplementary dose was not administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Measles supplementary dose was not administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Supplementary dose&quot;) = 0"/>
            <a:t name="code" value="Measles supplementary dose was not administered-131"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Supplementary dose: Measles-containing vaccine (MCV) supplementary dose administration"/>
            <a:s r="423">
               <a:s>/*
@input: Measles supplementary dose was not administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Supplementary dose&quot;) = 0
@code: Measles supplementary dose was not administered-131
@decision: IMMZ.D2.DT.Measles.Supplementary dose: Measles-containing vaccine (MCV) supplementary dose administration
*/
define &quot;Measles supplementary dose was not administered&quot;:
  </a:s>
               <a:s r="424">
                  <a:s r="437">
                     <a:s>&quot;Number of MCV Supplementary Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="438"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="424" locator="197:3-197:54" xsi:type="Equal">
            <signature localId="439" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="440" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="437" locator="197:3-197:50" name="Number of MCV Supplementary Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="438" locator="197:54" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="443" locator="205:1-211:11" name="Measles routine immunization schedule is complete" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Measles routine immunization schedule is complete"/>
            <a:t name="pseudocode" value="&quot;Completed the primary vaccination series&quot; = TRUE (where &quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot;)"/>
            <a:t name="code" value="Measles routine immunization schedule is complete-104"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Supplementary dose: Measles-containing vaccine (MCV) supplementary dose administration"/>
            <a:s r="443">
               <a:s>/*
@input: Measles routine immunization schedule is complete
@pseudocode: &quot;Completed the primary vaccination series&quot; = TRUE (where &quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot;)
@code: Measles routine immunization schedule is complete-104
@decision: IMMZ.D2.DT.Measles.Supplementary dose: Measles-containing vaccine (MCV) supplementary dose administration
*/
define &quot;Measles routine immunization schedule is complete&quot;:
  </a:s>
               <a:s r="444">
                  <a:s r="445">
                     <a:s>&quot;MCV2 was administered&quot;</a:s>
                  </a:s>
                  <a:s>
  or
  </a:s>
                  <a:s r="476">
                     <a:s>Coalesce(
    </a:s>
                     <a:s r="472">
                        <a:s>
                           <a:s r="446">
                              <a:s r="447">
                                 <a:s>
                                    <a:s>&quot;MCV Doses Administered to Patient&quot;</a:s>
                                 </a:s>
                              </a:s>
                              <a:s> Dose</a:s>
                           </a:s>
                        </a:s>
                        <a:s>
    </a:s>
                        <a:s r="449">
                           <a:s>aggregate Result: </a:s>
                           <a:s r="452">
                              <a:s r="466">
                                 <a:s r="464">
                                    <a:s r="454">
                                       <a:s r="453">
                                          <a:s>Elements</a:s>
                                       </a:s>
                                       <a:s>.</a:s>
                                       <a:s r="454">
                                          <a:s>&quot;Completed the primary vaccination series Observation&quot;</a:s>
                                       </a:s>
                                    </a:s>
                                    <a:s>.</a:s>
                                    <a:s r="464">
                                       <a:s>partOf</a:s>
                                    </a:s>
                                 </a:s>
                                 <a:s>.</a:s>
                                 <a:s r="466">
                                    <a:s>references(</a:s>
                                    <a:s r="465">
                                       <a:s>Dose</a:s>
                                    </a:s>
                                    <a:s>)</a:s>
                                 </a:s>
                              </a:s>
                              <a:s> or </a:s>
                              <a:s r="470">
                                 <a:s>Result</a:s>
                              </a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                     <a:s r="473">,
    false )</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="444" locator="206:3-211:11" xsi:type="Or">
            <operand localId="445" locator="206:3-206:25" name="MCV2 was administered" xsi:type="ExpressionRef"/>
            <operand localId="476" locator="208:3-211:11" xsi:type="Coalesce">
               <operand localId="472" locator="209:5-210:119" xsi:type="Query">
                  <source localId="446" locator="209:5-209:44" alias="Dose">
                     <expression localId="447" locator="209:5-209:39" name="MCV Doses Administered to Patient" xsi:type="ExpressionRef"/>
                  </source>
                  <aggregate localId="449" locator="210:5-210:119" identifier="Result">
                     <expression localId="452" locator="210:23-210:119" xsi:type="Or">
                        <operand localId="466" locator="210:23-210:109" name="references" libraryName="WC" xsi:type="FunctionRef">
                           <signature localId="467" xsi:type="ListTypeSpecifier">
                              <elementType localId="468" name="fhir:Reference" xsi:type="NamedTypeSpecifier"/>
                           </signature>
                           <signature localId="469" name="fhir:Resource" xsi:type="NamedTypeSpecifier"/>
                           <operand localId="464" locator="210:23-210:92" xsi:type="Flatten">
                              <operand localId="462" xsi:type="Query">
                                 <source localId="461" alias="$this">
                                    <expression localId="454" locator="210:23-210:85" name="Completed the primary vaccination series Observation" libraryName="Elements" xsi:type="ExpressionRef"/>
                                 </source>
                                 <where localId="458" xsi:type="Not">
                                    <operand localId="457" xsi:type="IsNull">
                                       <operand localId="456" path="partOf" xsi:type="Property">
                                          <source localId="455" name="$this" xsi:type="AliasRef"/>
                                       </operand>
                                    </operand>
                                 </where>
                                 <return localId="463" distinct="false">
                                    <expression localId="460" path="partOf" xsi:type="Property">
                                       <source localId="459" name="$this" xsi:type="AliasRef"/>
                                    </expression>
                                 </return>
                              </operand>
                           </operand>
                           <operand localId="465" locator="210:105-210:108" name="Dose" xsi:type="AliasRef"/>
                        </operand>
                        <operand localId="471" asType="t:Boolean" xsi:type="As">
                           <operand localId="470" locator="210:114-210:119" name="Result" xsi:type="QueryLetRef"/>
                        </operand>
                     </expression>
                     <starting localId="450" xsi:type="Null"/>
                  </aggregate>
               </operand>
               <operand localId="473" locator="211:5-211:9" valueType="t:Boolean" value="false" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="479" locator="219:1-220:53" name="Live vaccine was administered in the past 4 weeks" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Live vaccine was administered in the past 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 past 4 weeks-92"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Supplementary dose: Measles-containing vaccine (MCV) supplementary dose administration"/>
            <a:s r="479">
               <a:s>/*
@input: Live vaccine was administered in the past 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 past 4 weeks-92
@decision: IMMZ.D2.DT.Measles.Supplementary dose: Measles-containing vaccine (MCV) supplementary dose administration
*/
define &quot;Live vaccine was administered in the past 4 weeks&quot;:
  </a:s>
               <a:s r="480">
                  <a:s>&quot;Live vaccine was administered in the last 4 weeks&quot;</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="480" locator="220:3-220:53" name="Live vaccine was administered in the last 4 weeks" xsi:type="ExpressionRef"/>
      </def>
      <def localId="483" locator="228:1-229:56" name="No live vaccine was administered in the past 4 weeks" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No live vaccine was administered in the past 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 past 4 weeks-92"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Supplementary dose: Measles-containing vaccine (MCV) supplementary dose administration"/>
            <a:s r="483">
               <a:s>/*
@input: No live vaccine was administered in the past 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 past 4 weeks-92
@decision: IMMZ.D2.DT.Measles.Supplementary dose: Measles-containing vaccine (MCV) supplementary dose administration
*/
define &quot;No live vaccine was administered in the past 4 weeks&quot;:
  </a:s>
               <a:s r="484">
                  <a:s>&quot;No live vaccine was administered in the last 4 weeks&quot;</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="484" locator="229:3-229:56" name="No live vaccine was administered in the last 4 weeks" xsi:type="ExpressionRef"/>
      </def>
      <def localId="487" locator="237:1-238:54" name="Measles supplementary dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Measles supplementary dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Supplementary dose&quot;) = 1"/>
            <a:t name="code" value="Measles supplementary dose was administered-131"/>
            <a:t name="decision" value="IMMZ.D2.DT.Measles.Supplementary dose: Measles-containing vaccine (MCV) supplementary dose administration"/>
            <a:s r="487">
               <a:s>/*
@input: Measles supplementary dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Measles-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Supplementary dose&quot;) = 1
@code: Measles supplementary dose was administered-131
@decision: IMMZ.D2.DT.Measles.Supplementary dose: Measles-containing vaccine (MCV) supplementary dose administration
*/
define &quot;Measles supplementary dose was administered&quot;:
  </a:s>
               <a:s r="488">
                  <a:s r="489">
                     <a:s>&quot;Number of MCV Supplementary Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="490"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="488" locator="238:3-238:54" xsi:type="Equal">
            <signature localId="491" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="492" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="489" locator="238:3-238:50" name="Number of MCV Supplementary Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="490" locator="238:54" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="495" locator="287:1-288:93" name="Date of Latest Live Attenuated Vaccine" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Date of Latest Live Attenuated Vaccine"/>
            <a:s r="495">
               <a:s>/*
@internal: Date of Latest Live Attenuated Vaccine
*/
define &quot;Date of Latest Live Attenuated Vaccine&quot;:
  </a:s>
               <a:s r="496">
                  <a:s>date from </a:s>
                  <a:s r="497">
                     <a:s>start of </a:s>
                     <a:s r="504">
                        <a:s r="503">
                           <a:s r="500">
                              <a:s r="499">
                                 <a:s r="498">
                                    <a:s>Elements</a:s>
                                 </a:s>
                                 <a:s>.</a:s>
                                 <a:s r="499">
                                    <a:s>&quot;Live Attenuated Vaccines&quot;</a:s>
                                 </a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="500">
                                 <a:s>mostRecent()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="503">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="504">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="496" locator="288:3-288:93" xsi:type="DateFrom">
            <operand localId="497" locator="288:13-288:93" xsi:type="Start">
               <operand localId="504" locator="288:22-288:93" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="503" locator="288:22-288:80" path="occurrence" xsi:type="Property">
                     <source localId="500" locator="288:22-288:69" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="501" xsi:type="ListTypeSpecifier">
                           <elementType localId="502" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="499" locator="288:22-288:56" name="Live Attenuated Vaccines" libraryName="Elements" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
   </statements>
</library>
