<?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="458">
         <a:s>/*
  * Library: IMMZD2DTMeningococcalEncounterElements
  */
library IMMZD2DTMeningococcalEncounterElements</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD2DTMeningococcalEncounterElements" 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:46" localIdentifier="Encounter" path="http://smart.who.int/immunizations/IMMZEncounterElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="220">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZEncounterElements</a:s>
               </a:s>
               <a:s> called Encounter</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="222" locator="18:1-18:66" localIdentifier="MeningococcalElements" path="http://smart.who.int/immunizations/IMMZD2DTMeningococcalElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="222">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZD2DTMeningococcalElements</a:s>
               </a:s>
               <a:s> called MeningococcalElements</a:s>
            </a:s>
         </annotation>
      </def>
   </includes>
   <parameters>
      <def localId="224" locator="20:1-20:36" name="Today" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="224">
               <a:s>parameter Today </a:s>
               <a:s r="228">
                  <a:s>Date</a:s>
               </a:s>
               <a:s> default </a:s>
               <a:s r="227">
                  <a:s>Today()</a:s>
               </a:s>
            </a:s>
         </annotation>
         <default localId="227" locator="20:30-20:36" xsi:type="Today"/>
         <parameterTypeSpecifier localId="228" locator="20:17-20:20" name="t:Date" xsi:type="NamedTypeSpecifier"/>
      </def>
      <def localId="230" locator="21:1-21:28" name="EncounterId" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:s r="230">
               <a:s>parameter EncounterId </a:s>
               <a:s r="231">
                  <a:s>String</a:s>
               </a:s>
            </a:s>
         </annotation>
         <parameterTypeSpecifier localId="231" locator="21:23-21:28" name="t:String" xsi:type="NamedTypeSpecifier"/>
      </def>
   </parameters>
   <contexts>
      <def localId="236" locator="23:1-23:15" name="Patient"/>
   </contexts>
   <statements>
      <def localId="234" locator="23:1-23:15" name="Patient" context="Patient">
         <expression localId="235" xsi:type="SingletonFrom">
            <operand localId="233" locator="23:1-23:15" dataType="fhir:Patient" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/>
         </expression>
      </def>
      <def localId="239" locator="28:1-31:54" name="Meningococcal Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Meningococcal containing Doses Administered to Patient"/>
            <a:s r="239">
               <a:s>/*
@internal: Meningococcal containing Doses Administered to Patient
*/
define &quot;Meningococcal Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="251">
                  <a:s>
                     <a:s r="240">
                        <a:s r="242">
                           <a:s>
                              <a:s>Encounter.&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="248">
                     <a:s>where
    </a:s>
                     <a:s r="248">
                        <a:s r="245">
                           <a:s r="244">
                              <a:s>I</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="245">
                              <a:s>vaccineCode</a:s>
                           </a:s>
                        </a:s>
                        <a:s> in </a:s>
                        <a:s r="247">
                           <a:s r="246">
                              <a:s>Concepts</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="247">
                              <a:s>&quot;Meningococcal vaccines&quot;</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="251" locator="29:3-31:54" xsi:type="Query">
            <source localId="240" locator="29:3-29:45" alias="I">
               <expression localId="242" locator="29:3-29:43" name="Doses Administered to Patient" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </source>
            <where localId="248" locator="30:3-31:54" xsi:type="InValueSet">
               <signature localId="250" name="t:Concept" xsi:type="NamedTypeSpecifier"/>
               <code localId="249" name="ToConcept" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                  <operand localId="245" locator="31:5-31:17" path="vaccineCode" scope="I" xsi:type="Property"/>
               </code>
               <valueset localId="247" locator="31:22-31:54" name="Meningococcal vaccines" libraryName="Concepts" preserve="true"/>
            </where>
         </expression>
      </def>
      <def localId="254" locator="36:1-37:63" name="Meningococcal Primary Series Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Meningococcal containing Doses Administered to Patient that are in the Primary series"/>
            <a:s r="254">
               <a:s>/*
@internal: Meningococcal containing Doses Administered to Patient that are in the Primary series
*/
define &quot;Meningococcal Primary Series Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="256">
                  <a:s r="255">
                     <a:s>&quot;Meningococcal Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="256">
                     <a:s>seriesPrimary()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="256" locator="37:3-37:63" name="seriesPrimary" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="255" locator="37:3-37:47" name="Meningococcal Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="259" locator="42:1-43:69" name="Number of Meningococcal Primary Series Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of Meningococcal Primary Series doses"/>
            <a:s r="259">
               <a:s>/*
@internal: Number of Meningococcal Primary Series doses
*/
define &quot;Number of Meningococcal Primary Series Doses Administered&quot;:
  </a:s>
               <a:s r="263">
                  <a:s>Count(</a:s>
                  <a:s r="260">
                     <a:s>&quot;Meningococcal Primary Series Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="263" locator="43:3-43:69" xsi:type="Count">
            <source localId="260" locator="43:9-43:68" name="Meningococcal Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="266" locator="52:1-53:47" 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.Meningococcal.MenA conjugate vaccine 1 dose: MenA conjugate vaccine, 1-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule"/>
            <a:s r="266">
               <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.Meningococcal.MenA conjugate vaccine 1 dose: MenA conjugate vaccine, 1-dose schedule
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule
*/
define &quot;Client's age is less than 9 months&quot;:
  </a:s>
               <a:s r="267">
                  <a:s r="269">
                     <a:s r="268">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="269">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="270"> &lt; 9</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="267" locator="53:3-53:47" xsi:type="Less">
            <signature localId="271" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="272" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="269" locator="53:3-53:43" name="Current Patient Age In Months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="270" locator="53:47" valueType="t:Integer" value="9" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="275" locator="67:1-68:65" name="No meningococcal primary series dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No meningococcal primary series dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0"/>
            <a:t name="code" value="No meningococcal primary series dose was administered-122"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 1 dose: MenA conjugate vaccine, 1-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 1 dose: Quadrivalent conjugate vaccines (A,C,W135,Y-CRM), 1-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule&#xa;(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)"/>
            <a:s r="275">
               <a:s>/*
@input: No meningococcal primary series dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0
@code: No meningococcal primary series dose was administered-122
@decision: IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 1 dose: MenA conjugate vaccine, 1-dose schedule
@decision: IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 1 dose: Quadrivalent conjugate vaccines (A,C,W135,Y-CRM), 1-dose schedule
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule
@decision: IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule
(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)
*/
define &quot;No meningococcal primary series dose was administered&quot;:
  </a:s>
               <a:s r="276">
                  <a:s r="277">
                     <a:s>&quot;Number of Meningococcal Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="278"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="276" locator="68:3-68:65" xsi:type="Equal">
            <signature localId="279" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="280" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="277" locator="68:3-68:61" name="Number of Meningococcal Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="278" locator="68:65" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="283" locator="76:1-77:48" name="Client's age is more than 9 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than 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 9 months-41"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 1 dose: MenA conjugate vaccine, 1-dose schedule"/>
            <a:s r="283">
               <a:s>/*
@input: Client's age is more than 9 months
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 9 months
@code: Client's age is more than 9 months-41
@decision: IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 1 dose: MenA conjugate vaccine, 1-dose schedule
*/
define &quot;Client's age is more than 9 months&quot;:
  </a:s>
               <a:s r="284">
                  <a:s r="286">
                     <a:s r="285">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="286">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="287"> >= 9</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="284" locator="77:3-77:48" xsi:type="GreaterOrEqual">
            <signature localId="288" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="289" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="286" locator="77:3-77:43" name="Current Patient Age In Months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="287" locator="77:48" valueType="t:Integer" value="9" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="292" locator="91:1-92:65" name="One meningococcal primary series dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="One meningococcal primary series dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1"/>
            <a:t name="code" value="One meningococcal primary series dose was administered-122"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 1 dose: MenA conjugate vaccine, 1-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 1 dose: Quadrivalent conjugate vaccines (A,C,W135,Y-CRM), 1-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule&#xa;(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)"/>
            <a:s r="292">
               <a:s>/*
@input: One meningococcal primary series dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1
@code: One meningococcal primary series dose was administered-122
@decision: IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 1 dose: MenA conjugate vaccine, 1-dose schedule
@decision: IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 1 dose: Quadrivalent conjugate vaccines (A,C,W135,Y-CRM), 1-dose schedule
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule
@decision: IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule
(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)
*/
define &quot;One meningococcal primary series dose was administered&quot;:
  </a:s>
               <a:s r="293">
                  <a:s r="294">
                     <a:s>&quot;Number of Meningococcal Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="295"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="293" locator="92:3-92:65" xsi:type="Equal">
            <signature localId="296" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="297" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="294" locator="92:3-92:61" name="Number of Meningococcal Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="295" locator="92:65" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="300" locator="100:1-101:47" name="Client's age is less than 3 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 3 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 3 months"/>
            <a:t name="code" value="Client's age is less than 3 months-41"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)"/>
            <a:s r="300">
               <a:s>/*
@input: Client's age is less than 3 months
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 3 months
@code: Client's age is less than 3 months-41
@decision: IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)
*/
define &quot;Client's age is less than 3 months&quot;:
  </a:s>
               <a:s r="301">
                  <a:s r="303">
                     <a:s r="302">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="303">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="304"> &lt; 3</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="301" locator="101:3-101:47" xsi:type="Less">
            <signature localId="305" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="306" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="303" locator="101:3-101:43" name="Current Patient Age In Months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="304" locator="101:47" valueType="t:Integer" value="3" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="309" locator="109:1-110:48" name="Client's age is more than or equal to 3 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 3 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 3 months"/>
            <a:t name="code" value="Client's age is more than or equal to 3 months-41"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)"/>
            <a:s r="309">
               <a:s>/*
@input: Client's age is more than or equal to 3 months
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 3 months
@code: Client's age is more than or equal to 3 months-41
@decision: IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)
*/
define &quot;Client's age is more than or equal to 3 months&quot;:
  </a:s>
               <a:s r="310">
                  <a:s r="312">
                     <a:s r="311">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="312">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="313"> >= 3</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="310" locator="110:3-110:48" xsi:type="GreaterOrEqual">
            <signature localId="314" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="315" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="312" locator="110:3-110:43" name="Current Patient Age In Months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="313" locator="110:48" valueType="t:Integer" value="3" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="322" locator="338:1-339:118" name="Date of Latest Primary Meningococcal Dose" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Date of Latest Primary Meningococcal Dose"/>
            <a:s r="322">
               <a:s>/*
@internal: Date of Latest Primary Meningococcal Dose
*/
define &quot;Date of Latest Primary Meningococcal Dose&quot;:
  </a:s>
               <a:s r="323">
                  <a:s>date from </a:s>
                  <a:s r="324">
                     <a:s>start of </a:s>
                     <a:s r="330">
                        <a:s r="329">
                           <a:s r="326">
                              <a:s r="325">
                                 <a:s>&quot;Meningococcal Primary Series Doses Administered to Patient&quot;</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="326">
                                 <a:s>mostRecent()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="329">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="330">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="323" locator="339:3-339:118" xsi:type="DateFrom">
            <operand localId="324" locator="339:13-339:118" xsi:type="Start">
               <operand localId="330" locator="339:22-339:118" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="329" locator="339:22-339:105" path="occurrence" xsi:type="Property">
                     <source localId="326" locator="339:22-339:94" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="327" xsi:type="ListTypeSpecifier">
                           <elementType localId="328" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="325" locator="339:22-339:81" name="Meningococcal Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="318" locator="118:1-120:89" name="The latest meningococcal dose was administered less than 8 weeks ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest meningococcal dose was administered less than 8 weeks ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) &lt; 8 weeks"/>
            <a:t name="code" value="The latest meningococcal dose was administered less than 8 weeks ago-105"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)"/>
            <a:s r="318">
               <a:s>/*
@input: The latest meningococcal dose was administered less than 8 weeks ago
@pseudocode: Today's date − &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) &lt; 8 weeks
@code: The latest meningococcal dose was administered less than 8 weeks ago-105
@decision: IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)
*/
define &quot;The latest meningococcal dose was administered less than 8 weeks ago&quot;:
  </a:s>
               <a:s r="319">
                  <a:s r="333">
                     <a:s r="331">
                        <a:s>&quot;Date of Latest Primary Meningococcal Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="334">
                     <a:s r="335">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="336">
                           <a:s>&quot;Date of Latest Primary Meningococcal Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="337">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="340"> &lt; 8</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="319" locator="119:3-120:89" xsi:type="And">
            <operand localId="333" locator="119:3-119:57" xsi:type="Not">
               <operand localId="332" locator="119:3-119:57" xsi:type="IsNull">
                  <operand localId="331" locator="119:3-119:45" name="Date of Latest Primary Meningococcal Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="334" locator="120:7-120:89" xsi:type="Less">
               <signature localId="341" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="342" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="335" locator="120:7-120:85" precision="Week" xsi:type="DurationBetween">
                  <signature localId="338" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="339" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="336" locator="120:33-120:75" name="Date of Latest Primary Meningococcal Dose" xsi:type="ExpressionRef"/>
                  <operand localId="337" locator="120:81-120:85" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="340" locator="120:89" valueType="t:Integer" value="8" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="345" locator="128:1-129:76" name="The latest meningococcal dose was administered more than 8 weeks ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest meningococcal dose was administered more than 8 weeks ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) ≥ 8 weeks"/>
            <a:t name="code" value="The latest meningococcal dose was administered more than 8 weeks ago-105"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)"/>
            <a:s r="345">
               <a:s>/*
@input: The latest meningococcal dose was administered more than 8 weeks ago
@pseudocode: Today's date − &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) ≥ 8 weeks
@code: The latest meningococcal dose was administered more than 8 weeks ago-105
@decision: IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)
*/
define &quot;The latest meningococcal dose was administered more than 8 weeks ago&quot;:
  </a:s>
               <a:s r="346">
                  <a:s>not </a:s>
                  <a:s r="347">
                     <a:s>&quot;The latest meningococcal dose was administered less than 8 weeks ago&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="346" locator="129:3-129:76" xsi:type="Not">
            <operand localId="347" locator="129:7-129:76" name="The latest meningococcal dose was administered less than 8 weeks ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="350" locator="139:1-140:65" name="Two meningococcal primary series doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Two meningococcal primary series doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2"/>
            <a:t name="code" value="Two meningococcal primary series doses were administered-122"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule"/>
            <a:s r="350">
               <a:s>/*
@input: Two meningococcal primary series doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2
@code: Two meningococcal primary series doses were administered-122
@decision: IMMZ.D2.DT.Meningococcal.MenA conjugate vaccine 2 doses: MenA conjugate vaccine, 2-dose schedule (specific context where there is a compelling reason to vaccinate infants aged under 9 months)
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule
*/
define &quot;Two meningococcal primary series doses were administered&quot;:
  </a:s>
               <a:s r="351">
                  <a:s r="352">
                     <a:s>&quot;Number of Meningococcal Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="353"> = 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="351" locator="140:3-140:65" xsi:type="Equal">
            <signature localId="354" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="355" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="352" locator="140:3-140:61" name="Number of Meningococcal Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="353" locator="140:65" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="358" locator="148:1-149:47" name="Client's age is less than 2 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 2 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 2 months"/>
            <a:t name="code" value="Client's age is less than 2 months-41"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:s r="358">
               <a:s>/*
@input: Client's age is less than 2 months
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 2 months
@code: Client's age is less than 2 months-41
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
*/
define &quot;Client's age is less than 2 months&quot;:
  </a:s>
               <a:s r="359">
                  <a:s r="361">
                     <a:s r="360">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="361">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="362"> &lt; 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="359" locator="149:3-149:47" xsi:type="Less">
            <signature localId="363" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="364" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="361" locator="149:3-149:43" name="Current Patient Age In Months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="362" locator="149:47" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="367" locator="157:1-158:48" name="Client's age is more than or equal to 2 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 2 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 2 months"/>
            <a:t name="code" value="Client's age is more than or equal to 2 months-41"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:s r="367">
               <a:s>/*
@input: Client's age is more than or equal to 2 months
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 2 months
@code: Client's age is more than or equal to 2 months-41
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
*/
define &quot;Client's age is more than or equal to 2 months&quot;:
  </a:s>
               <a:s r="368">
                  <a:s r="370">
                     <a:s r="369">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="370">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="371"> >= 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="368" locator="158:3-158:48" xsi:type="GreaterOrEqual">
            <signature localId="372" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="373" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="370" locator="158:3-158:43" name="Current Patient Age In Months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="371" locator="158:48" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="380" locator="344:1-345:116" name="Date of First Primary Series Meningococcal Dose" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Date of First Primary Series Meningococcal Dose"/>
            <a:s r="380">
               <a:s>/*
@internal: Date of First Primary Series Meningococcal Dose
*/
define &quot;Date of First Primary Series Meningococcal Dose&quot;:
  </a:s>
               <a:s r="381">
                  <a:s>date from </a:s>
                  <a:s r="382">
                     <a:s>start of </a:s>
                     <a:s r="388">
                        <a:s r="387">
                           <a:s r="384">
                              <a:s r="383">
                                 <a:s>&quot;Meningococcal Primary Series Doses Administered to Patient&quot;</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="384">
                                 <a:s>earliest()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="387">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="388">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="381" locator="345:3-345:116" xsi:type="DateFrom">
            <operand localId="382" locator="345:13-345:116" xsi:type="Start">
               <operand localId="388" locator="345:22-345:116" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="387" locator="345:22-345:103" path="occurrence" xsi:type="Property">
                     <source localId="384" locator="345:22-345:92" name="earliest" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="385" xsi:type="ListTypeSpecifier">
                           <elementType localId="386" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="383" locator="345:22-345:81" name="Meningococcal Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="376" locator="166:1-167:72" name="Client's age was less than or equal to 11 months when the primary series was started" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age was less than or equal to 11 months when the primary series was started"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) - &quot;Date of birth&quot; ≤ 11 months"/>
            <a:t name="code" value="Client's age was less than or equal to 11 months when the primary series was started-110"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:s r="376">
               <a:s>/*
@input: Client's age was less than or equal to 11 months when the primary series was started
@pseudocode: &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) - &quot;Date of birth&quot; ≤ 11 months
@code: Client's age was less than or equal to 11 months when the primary series was started-110
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
*/
define &quot;Client's age was less than or equal to 11 months when the primary series was started&quot;:
  </a:s>
               <a:s r="377">
                  <a:s r="394">
                     <a:s>AgeInMonthsAt(</a:s>
                     <a:s r="389">
                        <a:s>&quot;Date of First Primary Series Meningococcal Dose&quot;</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
                  <a:s r="397"> &lt;= 11</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="377" locator="167:3-167:72" xsi:type="LessOrEqual">
            <signature localId="398" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="399" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="394" locator="167:3-167:66" precision="Month" xsi:type="CalculateAgeAt">
               <signature localId="395" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <signature localId="396" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <operand localId="393" path="birthDate.value" xsi:type="Property">
                  <source localId="392" name="Patient" xsi:type="ExpressionRef"/>
               </operand>
               <operand localId="389" locator="167:17-167:65" name="Date of First Primary Series Meningococcal Dose" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="397" locator="167:71-167:72" valueType="t:Integer" value="11" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="402" locator="175:1-177:90" name="The latest meningococcal dose was administered less than 2 months ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest meningococcal dose was administered less than 2 months ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) &lt; 2 months"/>
            <a:t name="code" value="The latest meningococcal dose was administered less than 2 months ago-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:s r="402">
               <a:s>/*
@input: The latest meningococcal dose was administered less than 2 months ago
@pseudocode: Today's date − &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) &lt; 2 months
@code: The latest meningococcal dose was administered less than 2 months ago-106
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
*/
define &quot;The latest meningococcal dose was administered less than 2 months ago&quot;:
  </a:s>
               <a:s r="403">
                  <a:s r="406">
                     <a:s r="404">
                        <a:s>&quot;Date of Latest Primary Meningococcal Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="407">
                     <a:s r="408">
                        <a:s>duration in months between </a:s>
                        <a:s r="409">
                           <a:s>&quot;Date of Latest Primary Meningococcal Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="410">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="413"> &lt; 2</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="403" locator="176:3-177:90" xsi:type="And">
            <operand localId="406" locator="176:3-176:57" xsi:type="Not">
               <operand localId="405" locator="176:3-176:57" xsi:type="IsNull">
                  <operand localId="404" locator="176:3-176:45" name="Date of Latest Primary Meningococcal Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="407" locator="177:7-177:90" xsi:type="Less">
               <signature localId="414" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="415" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="408" locator="177:7-177:86" precision="Month" xsi:type="DurationBetween">
                  <signature localId="411" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="412" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="409" locator="177:34-177:76" name="Date of Latest Primary Meningococcal Dose" xsi:type="ExpressionRef"/>
                  <operand localId="410" locator="177:82-177:86" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="413" locator="177:90" valueType="t:Integer" value="2" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="418" locator="185:1-186:77" name="The latest meningococcal dose was administered more than 2 months ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest meningococcal dose was administered more than 2 months ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) ≥ 2 months"/>
            <a:t name="code" value="The latest meningococcal dose was administered more than 2 months ago-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:s r="418">
               <a:s>/*
@input: The latest meningococcal dose was administered more than 2 months ago
@pseudocode: Today's date − &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) ≥ 2 months
@code: The latest meningococcal dose was administered more than 2 months ago-106
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
*/
define &quot;The latest meningococcal dose was administered more than 2 months ago&quot;:
  </a:s>
               <a:s r="419">
                  <a:s>not </a:s>
                  <a:s r="420">
                     <a:s>&quot;The latest meningococcal dose was administered less than 2 months ago&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="419" locator="186:3-186:77" xsi:type="Not">
            <operand localId="420" locator="186:7-186:77" name="The latest meningococcal dose was administered less than 2 months ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="423" locator="194:1-195:71" name="Client's age was more than 11 months when the primary series was started" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age was more than 11 months when the primary series was started"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) - &quot;Date of birth&quot; > 11 months"/>
            <a:t name="code" value="Client's age was more than 11 months when the primary series was started-110"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:s r="423">
               <a:s>/*
@input: Client's age was more than 11 months when the primary series was started
@pseudocode: &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) - &quot;Date of birth&quot; > 11 months
@code: Client's age was more than 11 months when the primary series was started-110
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
*/
define &quot;Client's age was more than 11 months when the primary series was started&quot;:
  </a:s>
               <a:s r="424">
                  <a:s r="430">
                     <a:s>AgeInMonthsAt(</a:s>
                     <a:s r="425">
                        <a:s>&quot;Date of First Primary Series Meningococcal Dose&quot;</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
                  <a:s r="433"> > 11</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="424" locator="195:3-195:71" xsi:type="Greater">
            <signature localId="434" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="435" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="430" locator="195:3-195:66" precision="Month" xsi:type="CalculateAgeAt">
               <signature localId="431" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <signature localId="432" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <operand localId="429" path="birthDate.value" xsi:type="Property">
                  <source localId="428" name="Patient" xsi:type="ExpressionRef"/>
               </operand>
               <operand localId="425" locator="195:17-195:65" name="Date of First Primary Series Meningococcal Dose" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="433" locator="195:70-195:71" valueType="t:Integer" value="11" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="438" locator="203:1-205:89" name="The latest meningococcal dose was administered less than 1 year ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest meningococcal dose was administered less than 1 year ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) &lt; 1 year"/>
            <a:t name="code" value="The latest meningococcal dose was administered less than 1 year ago-111"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:s r="438">
               <a:s>/*
@input: The latest meningococcal dose was administered less than 1 year ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) &lt; 1 year
@code: The latest meningococcal dose was administered less than 1 year ago-111
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
*/
define &quot;The latest meningococcal dose was administered less than 1 year ago&quot;:
  </a:s>
               <a:s r="439">
                  <a:s r="442">
                     <a:s r="440">
                        <a:s>&quot;Date of Latest Primary Meningococcal Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="443">
                     <a:s r="444">
                        <a:s>duration in years between </a:s>
                        <a:s r="445">
                           <a:s>&quot;Date of Latest Primary Meningococcal Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="446">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="449"> &lt; 1</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="439" locator="204:3-205:89" xsi:type="And">
            <operand localId="442" locator="204:3-204:57" xsi:type="Not">
               <operand localId="441" locator="204:3-204:57" xsi:type="IsNull">
                  <operand localId="440" locator="204:3-204:45" name="Date of Latest Primary Meningococcal Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="443" locator="205:7-205:89" xsi:type="Less">
               <signature localId="450" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="451" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="444" locator="205:7-205:85" precision="Year" xsi:type="DurationBetween">
                  <signature localId="447" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="448" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="445" locator="205:33-205:75" name="Date of Latest Primary Meningococcal Dose" xsi:type="ExpressionRef"/>
                  <operand localId="446" locator="205:81-205:85" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="449" locator="205:89" valueType="t:Integer" value="1" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="461" locator="350:1-351:63" name="Meningococcal Booster Series Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Meningococcal Booster Series Doses Administered to Patient"/>
            <a:s r="461">
               <a:s>/*
@internal: Meningococcal Booster Series Doses Administered to Patient
*/
define &quot;Meningococcal Booster Series Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="463">
                  <a:s r="462">
                     <a:s>&quot;Meningococcal Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="463">
                     <a:s>seriesBooster()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="463" locator="351:3-351:63" name="seriesBooster" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="462" locator="351:3-351:47" name="Meningococcal Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="458" locator="356:1-357:69" name="Number of Meningococcal Booster Series Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of Meningococcal Booster Series Doses Administered"/>
            <a:s r="458">
               <a:s>/*
@internal: Number of Meningococcal Booster Series Doses Administered
*/
define &quot;Number of Meningococcal Booster Series Doses Administered&quot;:
  </a:s>
               <a:s r="467">
                  <a:s>Count(</a:s>
                  <a:s r="464">
                     <a:s>&quot;Meningococcal Booster Series Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="467" locator="357:3-357:69" xsi:type="Count">
            <source localId="464" locator="357:9-357:68" name="Meningococcal Booster Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="454" locator="215:1-216:65" name="No meningococcal booster dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No meningococcal booster dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0"/>
            <a:t name="code" value="No meningococcal booster dose was administered-120"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule&#xa;(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)"/>
            <a:s r="454">
               <a:s>/*
@input: No meningococcal booster dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0
@code: No meningococcal booster dose was administered-120
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
@decision: IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule
(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)
*/
define &quot;No meningococcal booster dose was administered&quot;:
  </a:s>
               <a:s r="455">
                  <a:s r="468">
                     <a:s>&quot;Number of Meningococcal Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="469"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="455" locator="216:3-216:65" xsi:type="Equal">
            <signature localId="470" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="471" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="468" locator="216:3-216:61" name="Number of Meningococcal Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="469" locator="216:65" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="474" locator="224:1-225:75" name="The latest meningococcal dose was administered more than 1 year ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest meningococcal dose was administered more than 1 year ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) ≥ 1 year"/>
            <a:t name="code" value="The latest meningococcal dose was administered more than 1 year ago-111"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:s r="474">
               <a:s>/*
@input: The latest meningococcal dose was administered more than 1 year ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) ≥ 1 year
@code: The latest meningococcal dose was administered more than 1 year ago-111
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
*/
define &quot;The latest meningococcal dose was administered more than 1 year ago&quot;:
  </a:s>
               <a:s r="475">
                  <a:s>not </a:s>
                  <a:s r="476">
                     <a:s>&quot;The latest meningococcal dose was administered less than 1 year ago&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="475" locator="225:3-225:75" xsi:type="Not">
            <operand localId="476" locator="225:7-225:75" name="The latest meningococcal dose was administered less than 1 year ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="479" locator="235:1-236:65" name="Meningococcal booster dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Meningococcal booster dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 1"/>
            <a:t name="code" value="Meningococcal booster dose was administered-120"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule&#xa;(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)"/>
            <a:s r="479">
               <a:s>/*
@input: Meningococcal booster dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 1
@code: Meningococcal booster dose was administered-120
@decision: IMMZ.D2.DT.Meningococcal.Monovalent MenC conjugate vaccine: Monovalent MenC conjugate vaccine schedule
@decision: IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule
(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)
*/
define &quot;Meningococcal booster dose was administered&quot;:
  </a:s>
               <a:s r="480">
                  <a:s r="481">
                     <a:s>&quot;Number of Meningococcal Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="482"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="480" locator="236:3-236:65" xsi:type="Equal">
            <signature localId="483" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="484" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="481" locator="236:3-236:61" name="Number of Meningococcal Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="482" locator="236:65" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="487" locator="246:1-247:46" name="Client's age is less than 2 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 2 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 2 years"/>
            <a:t name="code" value="Client's age is less than 2 years-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 1 dose: Quadrivalent conjugate vaccines (A,C,W135,Y-CRM), 1-dose schedule"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule&#xa;(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)"/>
            <a:s r="487">
               <a:s>/*
@input: Client's age is less than 2 years
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 2 years
@code: Client's age is less than 2 years-40
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 1 dose: Quadrivalent conjugate vaccines (A,C,W135,Y-CRM), 1-dose schedule
@decision: IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule
(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)
*/
define &quot;Client's age is less than 2 years&quot;:
  </a:s>
               <a:s r="488">
                  <a:s r="490">
                     <a:s r="489">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="490">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="491"> &lt; 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="488" locator="247:3-247:46" xsi:type="Less">
            <signature localId="492" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="493" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="490" locator="247:3-247:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="491" locator="247:46" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="496" locator="255:1-256:47" name="Client's age is more than or equal to 2 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 2 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 2 years"/>
            <a:t name="code" value="Client's age is more than or equal to 2 years-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 1 dose: Quadrivalent conjugate vaccines (A,C,W135,Y-CRM), 1-dose schedule"/>
            <a:s r="496">
               <a:s>/*
@input: Client's age is more than or equal to 2 years
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 2 years
@code: Client's age is more than or equal to 2 years-40
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 1 dose: Quadrivalent conjugate vaccines (A,C,W135,Y-CRM), 1-dose schedule
*/
define &quot;Client's age is more than or equal to 2 years&quot;:
  </a:s>
               <a:s r="497">
                  <a:s r="499">
                     <a:s r="498">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="499">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="500"> >= 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="497" locator="256:3-256:47" xsi:type="GreaterOrEqual">
            <signature localId="501" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="502" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="499" locator="256:3-256:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="500" locator="256:47" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="505" locator="264:1-265:38" 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.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule"/>
            <a:s r="505">
               <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.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule
*/
define &quot;Client's age is more than or equal to 9 months&quot;:
  </a:s>
               <a:s r="506">
                  <a:s>&quot;Client's age is more than 9 months&quot;</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="506" locator="265:3-265:38" name="Client's age is more than 9 months" xsi:type="ExpressionRef"/>
      </def>
      <def localId="509" locator="273:1-274:72" name="Client's age was less than or equal to 23 months when the primary series was started" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age was less than or equal to 23 months when the primary series was started"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) - &quot;Date of birth&quot; ≤ 23 months"/>
            <a:t name="code" value="Client's age was less than or equal to 23 months when the primary series was started-110"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule"/>
            <a:s r="509">
               <a:s>/*
@input: Client's age was less than or equal to 23 months when the primary series was started
@pseudocode: &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) - &quot;Date of birth&quot; ≤ 23 months
@code: Client's age was less than or equal to 23 months when the primary series was started-110
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule
*/
define &quot;Client's age was less than or equal to 23 months when the primary series was started&quot;:
  </a:s>
               <a:s r="510">
                  <a:s r="516">
                     <a:s>AgeInMonthsAt(</a:s>
                     <a:s r="511">
                        <a:s>&quot;Date of First Primary Series Meningococcal Dose&quot;</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
                  <a:s r="519"> &lt;= 23</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="510" locator="274:3-274:72" xsi:type="LessOrEqual">
            <signature localId="520" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="521" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="516" locator="274:3-274:66" precision="Month" xsi:type="CalculateAgeAt">
               <signature localId="517" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <signature localId="518" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <operand localId="515" path="birthDate.value" xsi:type="Property">
                  <source localId="514" name="Patient" xsi:type="ExpressionRef"/>
               </operand>
               <operand localId="511" locator="274:17-274:65" name="Date of First Primary Series Meningococcal Dose" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="519" locator="274:71-274:72" valueType="t:Integer" value="23" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="524" locator="282:1-284:90" name="The latest meningococcal dose was administered less than 3 months ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest meningococcal dose was administered less than 3 months ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) &lt; 3 months"/>
            <a:t name="code" value="The latest meningococcal dose was administered less than 3 months ago-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule"/>
            <a:s r="524">
               <a:s>/*
@input: The latest meningococcal dose was administered less than 3 months ago
@pseudocode: Today's date − &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) &lt; 3 months
@code: The latest meningococcal dose was administered less than 3 months ago-106
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule
*/
define &quot;The latest meningococcal dose was administered less than 3 months ago&quot;:
  </a:s>
               <a:s r="525">
                  <a:s r="528">
                     <a:s r="526">
                        <a:s>&quot;Date of Latest Primary Meningococcal Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="529">
                     <a:s r="530">
                        <a:s>duration in months between </a:s>
                        <a:s r="531">
                           <a:s>&quot;Date of Latest Primary Meningococcal Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="532">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="535"> &lt; 3</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="525" locator="283:3-284:90" xsi:type="And">
            <operand localId="528" locator="283:3-283:57" xsi:type="Not">
               <operand localId="527" locator="283:3-283:57" xsi:type="IsNull">
                  <operand localId="526" locator="283:3-283:45" name="Date of Latest Primary Meningococcal Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="529" locator="284:7-284:90" xsi:type="Less">
               <signature localId="536" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="537" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="530" locator="284:7-284:86" precision="Month" xsi:type="DurationBetween">
                  <signature localId="533" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="534" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="531" locator="284:34-284:76" name="Date of Latest Primary Meningococcal Dose" xsi:type="ExpressionRef"/>
                  <operand localId="532" locator="284:82-284:86" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="535" locator="284:90" valueType="t:Integer" value="3" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="540" locator="292:1-293:77" name="The latest meningococcal dose was administered more than 3 months ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest meningococcal dose was administered more than 3 months ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) ≥ 3 months"/>
            <a:t name="code" value="The latest meningococcal dose was administered more than 3 months ago-106"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule"/>
            <a:s r="540">
               <a:s>/*
@input: The latest meningococcal dose was administered more than 3 months ago
@pseudocode: Today's date − &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) ≥ 3 months
@code: The latest meningococcal dose was administered more than 3 months ago-106
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule
*/
define &quot;The latest meningococcal dose was administered more than 3 months ago&quot;:
  </a:s>
               <a:s r="541">
                  <a:s>not </a:s>
                  <a:s r="542">
                     <a:s>&quot;The latest meningococcal dose was administered less than 3 months ago&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="541" locator="293:3-293:77" xsi:type="Not">
            <operand localId="542" locator="293:7-293:77" name="The latest meningococcal dose was administered less than 3 months ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="545" locator="301:1-302:71" name="Client's age was more than 23 months when the primary series was started" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age was more than 23 months when the primary series was started"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) - &quot;Date of birth&quot; > 23 months"/>
            <a:t name="code" value="Client's age was more than 23 months when the primary series was started-110"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule"/>
            <a:s r="545">
               <a:s>/*
@input: Client's age was more than 23 months when the primary series was started
@pseudocode: &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) - &quot;Date of birth&quot; > 23 months
@code: Client's age was more than 23 months when the primary series was started-110
@decision: IMMZ.D2.DT.Meningococcal.Quadrivalent conjugate vaccines 2 doses: Quadrivalent conjugate vaccines (A,C,W135,Y-D), 2-dose schedule
*/
define &quot;Client's age was more than 23 months when the primary series was started&quot;:
  </a:s>
               <a:s r="546">
                  <a:s r="552">
                     <a:s>AgeInMonthsAt(</a:s>
                     <a:s r="547">
                        <a:s>&quot;Date of First Primary Series Meningococcal Dose&quot;</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
                  <a:s r="555"> > 23</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="546" locator="302:3-302:71" xsi:type="Greater">
            <signature localId="556" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="557" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="552" locator="302:3-302:66" precision="Month" xsi:type="CalculateAgeAt">
               <signature localId="553" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <signature localId="554" name="t:Date" xsi:type="NamedTypeSpecifier"/>
               <operand localId="551" path="birthDate.value" xsi:type="Property">
                  <source localId="550" name="Patient" xsi:type="ExpressionRef"/>
               </operand>
               <operand localId="547" locator="302:17-302:65" name="Date of First Primary Series Meningococcal Dose" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="555" locator="302:70-302:71" valueType="t:Integer" value="23" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="560" locator="311:1-312:49" name="Client's age is more than 2 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than 2 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 2 years"/>
            <a:t name="code" value="Client's age is more than 2 years-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule&#xa;(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)"/>
            <a:s r="560">
               <a:s>/*
@input: Client's age is more than 2 years
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 2 years
@code: Client's age is more than 2 years-40
@decision: IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule
(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)
*/
define &quot;Client's age is more than 2 years&quot;:
  </a:s>
               <a:s r="561">
                  <a:s>&quot;Client's age is more than or equal to 2 years&quot;</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="561" locator="312:3-312:49" name="Client's age is more than or equal to 2 years" xsi:type="ExpressionRef"/>
      </def>
      <def localId="564" locator="321:1-323:89" name="The latest meningococcal dose was administered less than 3 years ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest meningococcal dose was administered less than 3 years ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) &lt; 3 years"/>
            <a:t name="code" value="The latest meningococcal dose was administered less than 3 years ago-105"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule&#xa;(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)"/>
            <a:s r="564">
               <a:s>/*
@input: The latest meningococcal dose was administered less than 3 years ago
@pseudocode: Today's date − &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) &lt; 3 years
@code: The latest meningococcal dose was administered less than 3 years ago-105
@decision: IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule
(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)
*/
define &quot;The latest meningococcal dose was administered less than 3 years ago&quot;:
  </a:s>
               <a:s r="565">
                  <a:s r="568">
                     <a:s r="566">
                        <a:s>&quot;Date of Latest Primary Meningococcal Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="569">
                     <a:s r="570">
                        <a:s>duration in years between </a:s>
                        <a:s r="571">
                           <a:s>&quot;Date of Latest Primary Meningococcal Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="572">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="575"> &lt; 3</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="565" locator="322:3-323:89" xsi:type="And">
            <operand localId="568" locator="322:3-322:57" xsi:type="Not">
               <operand localId="567" locator="322:3-322:57" xsi:type="IsNull">
                  <operand localId="566" locator="322:3-322:45" name="Date of Latest Primary Meningococcal Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="569" locator="323:7-323:89" xsi:type="Less">
               <signature localId="576" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="577" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="570" locator="323:7-323:85" precision="Year" xsi:type="DurationBetween">
                  <signature localId="573" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="574" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="571" locator="323:33-323:75" name="Date of Latest Primary Meningococcal Dose" xsi:type="ExpressionRef"/>
                  <operand localId="572" locator="323:81-323:85" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="575" locator="323:89" valueType="t:Integer" value="3" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="580" locator="332:1-333:76" name="The latest meningococcal dose was administered more than 3 years ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest meningococcal dose was administered more than 3 years ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) ≥ 3 years"/>
            <a:t name="code" value="The latest meningococcal dose was administered more than 3 years ago-105"/>
            <a:t name="decision" value="IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule&#xa;(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)"/>
            <a:s r="580">
               <a:s>/*
@input: The latest meningococcal dose was administered more than 3 years ago
@pseudocode: Today's date − &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Meningococcal vaccines&quot;) ≥ 3 years
@code: The latest meningococcal dose was administered more than 3 years ago-105
@decision: IMMZ.D2.DT.Meningococcal.Polysaccharide vaccines: Polysaccharide vaccines schedule
(Polysaccharide vaccines can be used to control outbreaks in countries where limited economic resources or insufficient supply restrict the use of meningococcal conjugate vaccines)
*/
define &quot;The latest meningococcal dose was administered more than 3 years ago&quot;:
  </a:s>
               <a:s r="581">
                  <a:s>not </a:s>
                  <a:s r="582">
                     <a:s>&quot;The latest meningococcal dose was administered less than 3 years ago&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="581" locator="333:3-333:76" xsi:type="Not">
            <operand localId="582" locator="333:7-333:76" name="The latest meningococcal dose was administered less than 3 years ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
   </statements>
</library>
