<?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="453">
         <a:s>/*
  * Library: IMMZD2DTDTPEncounterElements
  */
library IMMZD2DTDTPEncounterElements</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD2DTDTPEncounterElements" 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:46" localIdentifier="DTPElements" path="http://smart.who.int/immunizations/IMMZD2DTDTPElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="222">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZD2DTDTPElements</a:s>
               </a:s>
               <a:s> called DTPElements</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-29:67" name="DTP Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="DTP containing Doses Administered to Patient"/>
            <a:s r="239">
               <a:s>/*
@internal: DTP containing Doses Administered to Patient
*/
define &quot;DTP Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="243">
                  <a:s r="241">
                     <a:s r="240">
                        <a:s>DTPElements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="241">
                        <a:s>&quot;DTP Doses Administered to Patient&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="243">
                     <a:s>onOrBefore(</a:s>
                     <a:s r="242">
                        <a:s>Today</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="243" locator="29:3-29:67" name="onOrBefore" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="241" locator="29:3-29:49" name="DTP Doses Administered to Patient" libraryName="DTPElements" xsi:type="ExpressionRef"/>
            <operand localId="242" locator="29:62-29:66" name="Today" xsi:type="ParameterRef"/>
         </expression>
      </def>
      <def localId="246" locator="34:1-35:82" name="DTP Primary Series Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="DTP containing Doses Administered to Patient that are in the Primary series"/>
            <a:s r="246">
               <a:s>/*
@internal: DTP containing Doses Administered to Patient that are in the Primary series
*/
define &quot;DTP Primary Series Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="250">
                  <a:s r="248">
                     <a:s r="247">
                        <a:s>DTPElements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="248">
                        <a:s>&quot;DTP Primary Series Doses Administered to Patient&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="250">
                     <a:s>onOrBefore(</a:s>
                     <a:s r="249">
                        <a:s>Today</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="250" locator="35:3-35:82" name="onOrBefore" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="248" locator="35:3-35:64" name="DTP Primary Series Doses Administered to Patient" libraryName="DTPElements" xsi:type="ExpressionRef"/>
            <operand localId="249" locator="35:77-35:81" name="Today" xsi:type="ParameterRef"/>
         </expression>
      </def>
      <def localId="253" locator="40:1-41:59" name="Number of DTP Primary Series Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of DTP Primary Series doses"/>
            <a:s r="253">
               <a:s>/*
@internal: Number of DTP Primary Series doses
*/
define &quot;Number of DTP Primary Series Doses Administered&quot;:
  </a:s>
               <a:s r="257">
                  <a:s>Count(</a:s>
                  <a:s r="254">
                     <a:s>&quot;DTP Primary Series Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="257" locator="41:3-41:59" xsi:type="Count">
            <source localId="254" locator="41:9-41:58" name="DTP Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="260" locator="49:1-50:46" name="Client's age is less than 6 weeks" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 6 weeks"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 6 weeks"/>
            <a:t name="code" value="Client's age is less than 6 weeks-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="260">
               <a:s>/*
@input: Client's age is less than 6 weeks
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 6 weeks
@code: Client's age is less than 6 weeks-40
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
*/
define &quot;Client's age is less than 6 weeks&quot;:
  </a:s>
               <a:s r="261">
                  <a:s r="263">
                     <a:s r="262">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="263">
                        <a:s>&quot;Current Patient Age In Weeks&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="264"> &lt; 6</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="261" locator="50:3-50:46" xsi:type="Less">
            <signature localId="265" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="266" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="263" locator="50:3-50:42" name="Current Patient Age In Weeks" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="264" locator="50:46" valueType="t:Integer" value="6" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="269" locator="60:1-61:55" name="No DTP primary series doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No DTP primary series doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0"/>
            <a:t name="code" value="No DTP primary series doses were administered-123"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women"/>
            <a:s r="269">
               <a:s>/*
@input: No DTP primary series doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 0
@code: No DTP primary series doses were administered-123
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women
*/
define &quot;No DTP primary series doses were administered&quot;:
  </a:s>
               <a:s r="270">
                  <a:s r="271">
                     <a:s>&quot;Number of DTP Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="272"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="270" locator="61:3-61:55" xsi:type="Equal">
            <signature localId="273" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="274" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="271" locator="61:3-61:51" name="Number of DTP Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="272" locator="61:55" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="277" locator="69:1-71:50" name="Client's age is between 6 weeks and 1 year" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is between 6 weeks and 1 year"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 1 year"/>
            <a:t name="code" value="Client's age is between 6 weeks and 1 year-49"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="277">
               <a:s>/*
@input: Client's age is between 6 weeks and 1 year
@pseudocode: 6 weeks ≤ Today's date − &quot;Date of birth&quot; &lt; 1 year
@code: Client's age is between 6 weeks and 1 year-49
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
*/
define &quot;Client's age is between 6 weeks and 1 year&quot;:
  </a:s>
               <a:s r="278">
                  <a:s r="279">
                     <a:s r="280">6 &lt;= </a:s>
                     <a:s r="282">
                        <a:s r="281">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="282">
                           <a:s>&quot;Current Patient Age In Weeks&quot;</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </a:s>
                  <a:s r="285">
                     <a:s r="287">
                        <a:s r="286">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="287">
                           <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="288"> &lt; 1</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="278" locator="70:3-71:50" xsi:type="And">
            <operand localId="279" locator="70:3-70:47" xsi:type="LessOrEqual">
               <signature localId="283" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="284" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="280" locator="70:3" valueType="t:Integer" value="6" xsi:type="Literal"/>
               <operand localId="282" locator="70:8-70:47" name="Current Patient Age In Weeks" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="285" locator="71:7-71:50" xsi:type="Less">
               <signature localId="289" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="290" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="287" locator="71:7-71:46" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="288" locator="71:50" valueType="t:Integer" value="1" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="293" locator="80:1-81:55" name="One DTP primary series dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="One DTP primary series dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1"/>
            <a:t name="code" value="One DTP primary series dose was administered-123"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="293">
               <a:s>/*
@input: One DTP primary series dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 1
@code: One DTP primary series dose was administered-123
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;One DTP primary series dose was administered&quot;:
  </a:s>
               <a:s r="294">
                  <a:s r="295">
                     <a:s>&quot;Number of DTP Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="296"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="294" locator="81:3-81:55" xsi:type="Equal">
            <signature localId="297" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="298" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="295" locator="81:3-81:51" name="Number of DTP Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="296" locator="81:55" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="305" locator="414:1-415:93" name="Date of Latest DTP Dose" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Date of Latest DTP Dose"/>
            <a:s r="305">
               <a:s>/*
@internal: Date of Latest DTP Dose
*/
define &quot;Date of Latest DTP Dose&quot;:
  </a:s>
               <a:s r="306">
                  <a:s>date from </a:s>
                  <a:s r="307">
                     <a:s>start of </a:s>
                     <a:s r="313">
                        <a:s r="312">
                           <a:s r="309">
                              <a:s r="308">
                                 <a:s>&quot;DTP Doses Administered to Patient&quot;</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="309">
                                 <a:s>mostRecent()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="312">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="313">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="306" locator="415:3-415:93" xsi:type="DateFrom">
            <operand localId="307" locator="415:13-415:93" xsi:type="Start">
               <operand localId="313" locator="415:22-415:93" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="312" locator="415:22-415:80" path="occurrence" xsi:type="Property">
                     <source localId="309" locator="415:22-415:69" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="310" xsi:type="ListTypeSpecifier">
                           <elementType localId="311" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="308" locator="415:22-415:56" name="DTP Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="301" locator="90:1-92:73" name="The latest DTP dose was administered less than 4 weeks ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest DTP dose was administered less than 4 weeks ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot;) &lt; 4 weeks"/>
            <a:t name="code" value="The latest DTP dose was administered less than 4 weeks ago-113"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="301">
               <a:s>/*
@input: The latest DTP dose was administered less than 4 weeks ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot;) &lt; 4 weeks
@code: The latest DTP dose was administered less than 4 weeks ago-113
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;The latest DTP dose was administered less than 4 weeks ago&quot;:
  </a:s>
               <a:s r="302">
                  <a:s r="316">
                     <a:s r="314">
                        <a:s>&quot;Date of Latest DTP Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
    and </a:s>
                  <a:s r="317">
                     <a:s r="318">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="319">
                           <a:s>&quot;Date of Latest DTP Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="320">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="323"> &lt; 4</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="302" locator="91:3-92:73" xsi:type="And">
            <operand localId="316" locator="91:3-91:39" xsi:type="Not">
               <operand localId="315" locator="91:3-91:39" xsi:type="IsNull">
                  <operand localId="314" locator="91:3-91:27" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="317" locator="92:9-92:73" xsi:type="Less">
               <signature localId="324" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="325" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="318" locator="92:9-92:69" precision="Week" xsi:type="DurationBetween">
                  <signature localId="321" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="322" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="319" locator="92:35-92:59" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
                  <operand localId="320" locator="92:65-92:69" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="323" locator="92:73" valueType="t:Integer" value="4" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="328" locator="101:1-102:67" name="The latest DTP dose was administered more than 4 weeks ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest DTP dose was administered more than 4 weeks ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot;) ≥ 4 weeks"/>
            <a:t name="code" value="The latest DTP dose was administered more than 4 weeks ago-113"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="328">
               <a:s>/*
@input: The latest DTP dose was administered more than 4 weeks ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot;) ≥ 4 weeks
@code: The latest DTP dose was administered more than 4 weeks ago-113
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;The latest DTP dose was administered more than 4 weeks ago&quot;:
  </a:s>
               <a:s r="329">
                  <a:s>not</a:s>
                  <a:s r="330">
                     <a:s>(</a:s>
                     <a:s r="330">
                        <a:s>&quot;The latest DTP dose was administered less than 4 weeks ago&quot;</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="329" locator="102:3-102:67" xsi:type="Not">
            <operand localId="330" locator="102:6-102:67" name="The latest DTP dose was administered less than 4 weeks ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="333" locator="111:1-112:55" name="Two DTP primary series doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Two DTP primary series doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2"/>
            <a:t name="code" value="Two DTP primary series doses were administered-123"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="333">
               <a:s>/*
@input: Two DTP primary series doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 2
@code: Two DTP primary series doses were administered-123
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;Two DTP primary series doses were administered&quot;:
  </a:s>
               <a:s r="334">
                  <a:s r="335">
                     <a:s>&quot;Number of DTP Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="336"> = 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="334" locator="112:3-112:55" xsi:type="Equal">
            <signature localId="337" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="338" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="335" locator="112:3-112:51" name="Number of DTP Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="336" locator="112:55" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="341" locator="124:1-125:55" name="Three DTP primary series doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Three DTP primary series doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 3"/>
            <a:t name="code" value="Three DTP primary series doses were administered-123"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses"/>
            <a:s r="341">
               <a:s>/*
@input: Three DTP primary series doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Primary series&quot;) = 3
@code: Three DTP primary series doses were administered-123
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses
*/
define &quot;Three DTP primary series doses were administered&quot;:
  </a:s>
               <a:s r="342">
                  <a:s r="343">
                     <a:s>&quot;Number of DTP Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="344"> = 3</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="342" locator="125:3-125:55" xsi:type="Equal">
            <signature localId="345" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="346" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="343" locator="125:3-125:51" name="Number of DTP Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="344" locator="125:55" valueType="t:Integer" value="3" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="356" locator="432:1-433:81" name="Td Booster Series Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Td Booster Series Doses Administered to Patient"/>
            <a:s r="356">
               <a:s>/*
@internal: Td Booster Series Doses Administered to Patient
*/
define &quot;Td Booster Series Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="360">
                  <a:s r="358">
                     <a:s r="357">
                        <a:s>DTPElements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="358">
                        <a:s>&quot;Td Booster Series Doses Administered to Patient&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="360">
                     <a:s>onOrBefore(</a:s>
                     <a:s r="359">
                        <a:s>Today</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="360" locator="433:3-433:81" name="onOrBefore" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="358" locator="433:3-433:63" name="Td Booster Series Doses Administered to Patient" libraryName="DTPElements" xsi:type="ExpressionRef"/>
            <operand localId="359" locator="433:76-433:80" name="Today" xsi:type="ParameterRef"/>
         </expression>
      </def>
      <def localId="353" locator="438:1-439:58" name="Number of Td Booster Series Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of Td Booster Series Doses Administered"/>
            <a:s r="353">
               <a:s>/*
@internal: Number of Td Booster Series Doses Administered
*/
define &quot;Number of Td Booster Series Doses Administered&quot;:
  </a:s>
               <a:s r="364">
                  <a:s>Count(</a:s>
                  <a:s r="361">
                     <a:s>&quot;Td Booster Series Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="364" locator="439:3-439:58" xsi:type="Count">
            <source localId="361" locator="439:9-439:57" name="Td Booster Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="349" locator="135:1-136:54" name="No tetanus and diphtheria booster doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No tetanus and diphtheria booster doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0"/>
            <a:t name="code" value="No tetanus and diphtheria booster doses were administered-140"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses"/>
            <a:s r="349">
               <a:s>/*
@input: No tetanus and diphtheria booster doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0
@code: No tetanus and diphtheria booster doses were administered-140
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses
*/
define &quot;No tetanus and diphtheria booster doses were administered&quot;:
  </a:s>
               <a:s r="350">
                  <a:s r="365">
                     <a:s>&quot;Number of Td Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="366"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="350" locator="136:3-136:54" xsi:type="Equal">
            <signature localId="367" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="368" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="365" locator="136:3-136:50" name="Number of Td Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="366" locator="136:54" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="371" locator="144:1-145:48" name="Client's age is less than 12 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 12 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 12 months"/>
            <a:t name="code" value="Client's age is less than 12 months-42"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="371">
               <a:s>/*
@input: Client's age is less than 12 months
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 12 months
@code: Client's age is less than 12 months-42
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
*/
define &quot;Client's age is less than 12 months&quot;:
  </a:s>
               <a:s r="372">
                  <a:s r="374">
                     <a:s r="373">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="374">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="375"> &lt; 12</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="372" locator="145:3-145:48" xsi:type="Less">
            <signature localId="376" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="377" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="374" locator="145:3-145:43" name="Current Patient Age In Months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="375" locator="145:47-145:48" valueType="t:Integer" value="12" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="380" locator="153:1-154:49" name="Client's age is more than or equal to 12 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 12 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 12 months"/>
            <a:t name="code" value="Client's age is more than or equal to 12 months-42"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="380">
               <a:s>/*
@input: Client's age is more than or equal to 12 months
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 12 months
@code: Client's age is more than or equal to 12 months-42
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
*/
define &quot;Client's age is more than or equal to 12 months&quot;:
  </a:s>
               <a:s r="381">
                  <a:s r="383">
                     <a:s r="382">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="383">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="384"> >= 12</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="381" locator="154:3-154:49" xsi:type="GreaterOrEqual">
            <signature localId="385" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="386" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="383" locator="154:3-154:43" name="Current Patient Age In Months" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="384" locator="154:48-154:49" valueType="t:Integer" value="12" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="389" locator="165:1-166:54" name="One tetanus and diphtheria booster dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="One tetanus and diphtheria booster dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 1"/>
            <a:t name="code" value="One tetanus and diphtheria booster dose was administered-140"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses"/>
            <a:s r="389">
               <a:s>/*
@input: One tetanus and diphtheria booster dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 1
@code: One tetanus and diphtheria booster dose was administered-140
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses
*/
define &quot;One tetanus and diphtheria booster dose was administered&quot;:
  </a:s>
               <a:s r="390">
                  <a:s r="391">
                     <a:s>&quot;Number of Td Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="392"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="390" locator="166:3-166:54" xsi:type="Equal">
            <signature localId="393" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="394" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="391" locator="166:3-166:50" name="Number of Td Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="392" locator="166:54" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="397" locator="174:1-175:46" name="Client's age is less than 4 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 4 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 4 years"/>
            <a:t name="code" value="Client's age is less than 4 years-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="397">
               <a:s>/*
@input: Client's age is less than 4 years
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 4 years
@code: Client's age is less than 4 years-40
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
*/
define &quot;Client's age is less than 4 years&quot;:
  </a:s>
               <a:s r="398">
                  <a:s r="400">
                     <a:s r="399">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="400">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="401"> &lt; 4</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="398" locator="175:3-175:46" xsi:type="Less">
            <signature localId="402" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="403" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="400" locator="175:3-175:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="401" locator="175:46" valueType="t:Integer" value="4" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="406" locator="183:1-184:47" name="Client's age is more than or equal to 4 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 4 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 4 years"/>
            <a:t name="code" value="Client's age is more than or equal to 4 years-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="406">
               <a:s>/*
@input: Client's age is more than or equal to 4 years
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 4 years
@code: Client's age is more than or equal to 4 years-40
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
*/
define &quot;Client's age is more than or equal to 4 years&quot;:
  </a:s>
               <a:s r="407">
                  <a:s r="409">
                     <a:s r="408">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="409">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="410"> >= 4</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="407" locator="184:3-184:47" xsi:type="GreaterOrEqual">
            <signature localId="411" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="412" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="409" locator="184:3-184:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="410" locator="184:47" valueType="t:Integer" value="4" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="415" locator="196:1-197:54" name="Two tetanus and diphtheria booster doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Two tetanus and diphtheria booster doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 2"/>
            <a:t name="code" value="Two tetanus and diphtheria booster doses were administered-140"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses"/>
            <a:s r="415">
               <a:s>/*
@input: Two tetanus and diphtheria booster doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 2
@code: Two tetanus and diphtheria booster doses were administered-140
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses
*/
define &quot;Two tetanus and diphtheria booster doses were administered&quot;:
  </a:s>
               <a:s r="416">
                  <a:s r="417">
                     <a:s>&quot;Number of Td Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="418"> = 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="416" locator="197:3-197:54" xsi:type="Equal">
            <signature localId="419" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="420" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="417" locator="197:3-197:50" name="Number of Td Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="418" locator="197:54" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="423" locator="205:1-206:46" name="Client's age is less than 9 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 9 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 9 years"/>
            <a:t name="code" value="Client's age is less than 9 years-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="423">
               <a:s>/*
@input: Client's age is less than 9 years
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 9 years
@code: Client's age is less than 9 years-40
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
*/
define &quot;Client's age is less than 9 years&quot;:
  </a:s>
               <a:s r="424">
                  <a:s r="426">
                     <a:s r="425">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="426">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="427"> &lt; 9</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="424" locator="206:3-206:46" xsi:type="Less">
            <signature localId="428" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="429" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="426" locator="206:3-206:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="427" locator="206:46" valueType="t:Integer" value="9" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="432" locator="214:1-215:47" name="Client's age is more than or equal to 9 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 9 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 9 years"/>
            <a:t name="code" value="Client's age is more than or equal to 9 years-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="432">
               <a:s>/*
@input: Client's age is more than or equal to 9 years
@pseudocode: Today's date − &quot;Date of birth&quot; ≥ 9 years
@code: Client's age is more than or equal to 9 years-40
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
*/
define &quot;Client's age is more than or equal to 9 years&quot;:
  </a:s>
               <a:s r="433">
                  <a:s r="435">
                     <a:s r="434">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="435">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="436"> >= 9</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="433" locator="215:3-215:47" xsi:type="GreaterOrEqual">
            <signature localId="437" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="438" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="435" locator="215:3-215:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="436" locator="215:47" valueType="t:Integer" value="9" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="441" locator="226:1-227:54" name="Three tetanus and diphtheria booster doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Three tetanus and diphtheria booster doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 3"/>
            <a:t name="code" value="Three tetanus and diphtheria booster doses were administered-140"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses"/>
            <a:s r="441">
               <a:s>/*
@input: Three tetanus and diphtheria booster doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 3
@code: Three tetanus and diphtheria booster doses were administered-140
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses
*/
define &quot;Three tetanus and diphtheria booster doses were administered&quot;:
  </a:s>
               <a:s r="442">
                  <a:s r="443">
                     <a:s>&quot;Number of Td Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="444"> = 3</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="442" locator="227:3-227:54" xsi:type="Equal">
            <signature localId="445" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="446" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="443" locator="227:3-227:50" name="Number of Td Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="444" locator="227:54" valueType="t:Integer" value="3" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="456" locator="444:1-445:88" name="Pertussis Booster Series Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Pertussis Booster Series Doses Administered to Patient"/>
            <a:s r="456">
               <a:s>/*
@internal: Pertussis Booster Series Doses Administered to Patient
*/
define &quot;Pertussis Booster Series Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="460">
                  <a:s r="458">
                     <a:s r="457">
                        <a:s>DTPElements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="458">
                        <a:s>&quot;Pertussis Booster Series Doses Administered to Patient&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="460">
                     <a:s>onOrBefore(</a:s>
                     <a:s r="459">
                        <a:s>Today</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="460" locator="445:3-445:88" name="onOrBefore" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="458" locator="445:3-445:70" name="Pertussis Booster Series Doses Administered to Patient" libraryName="DTPElements" xsi:type="ExpressionRef"/>
            <operand localId="459" locator="445:83-445:87" name="Today" xsi:type="ParameterRef"/>
         </expression>
      </def>
      <def localId="453" locator="450:1-451:65" name="Number of Pertussis Booster Series Doses Administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Number of Pertussis Booster Series Doses Administered"/>
            <a:s r="453">
               <a:s>/*
@internal: Number of Pertussis Booster Series Doses Administered
*/
define &quot;Number of Pertussis Booster Series Doses Administered&quot;:
  </a:s>
               <a:s r="464">
                  <a:s>Count(</a:s>
                  <a:s r="461">
                     <a:s>&quot;Pertussis Booster Series Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>)</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="464" locator="451:3-451:65" xsi:type="Count">
            <source localId="461" locator="451:9-451:64" name="Pertussis Booster Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="449" locator="236:1-237:61" name="No pertussis booster doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No pertussis booster doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Pertussis-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0"/>
            <a:t name="code" value="No pertussis booster doses were administered-127"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="449">
               <a:s>/*
@input: No pertussis booster doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Pertussis-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0
@code: No pertussis booster doses were administered-127
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;No pertussis booster doses were administered&quot;:
  </a:s>
               <a:s r="450">
                  <a:s r="465">
                     <a:s>&quot;Number of Pertussis Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="466"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="450" locator="237:3-237:61" xsi:type="Equal">
            <signature localId="467" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="468" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="465" locator="237:3-237:57" name="Number of Pertussis Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="466" locator="237:61" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="471" locator="245:1-246:46" name="Client's age is less than 1 year" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 1 year"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 1 year"/>
            <a:t name="code" value="Client's age is less than 1 year-39"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="471">
               <a:s>/*
@input: Client's age is less than 1 year
@pseudocode: Today's date − &quot;Date of birth&quot; &lt; 1 year
@code: Client's age is less than 1 year-39
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
*/
define &quot;Client's age is less than 1 year&quot;:
  </a:s>
               <a:s r="472">
                  <a:s r="474">
                     <a:s r="473">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="474">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="475"> &lt; 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="472" locator="246:3-246:46" xsi:type="Less">
            <signature localId="476" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="477" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="474" locator="246:3-246:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="475" locator="246:46" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="480" locator="255:1-257:51" name="Client's age is between 1 year and 6 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is between 1 year and 6 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≤ 6 years"/>
            <a:t name="code" value="Client's age is between 1 year and 6 years-49"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="480">
               <a:s>/*
@input: Client's age is between 1 year and 6 years
@pseudocode: 1 year ≤ Today's date − &quot;Date of birth&quot; ≤ 6 years
@code: Client's age is between 1 year and 6 years-49
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;Client's age is between 1 year and 6 years&quot;:
  </a:s>
               <a:s r="481">
                  <a:s r="482">
                     <a:s r="483">1 &lt;= </a:s>
                     <a:s r="485">
                        <a:s r="484">
                           <a:s>Encounter</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="485">
                           <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  and </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;= 6</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="481" locator="256:3-257:51" xsi:type="And">
            <operand localId="482" locator="256:3-256:47" xsi:type="LessOrEqual">
               <signature localId="486" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="487" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="483" locator="256:3" valueType="t:Integer" value="1" xsi:type="Literal"/>
               <operand localId="485" locator="256:8-256:47" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="488" locator="257:7-257:51" xsi:type="LessOrEqual">
               <signature localId="492" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="493" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="490" locator="257:7-257:46" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
               <operand localId="491" locator="257:51" valueType="t:Integer" value="6" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="496" locator="266:1-268:74" name="The latest DTP dose was administered less than 6 months ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest DTP dose was administered less than 6 months ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot;) &lt; 6 months"/>
            <a:t name="code" value="The latest DTP dose was administered less than 6 months ago-114"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="496">
               <a:s>/*
@input: The latest DTP dose was administered less than 6 months ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot;) &lt; 6 months
@code: The latest DTP dose was administered less than 6 months ago-114
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;The latest DTP dose was administered less than 6 months ago&quot;:
  </a:s>
               <a:s r="497">
                  <a:s r="500">
                     <a:s r="498">
                        <a:s>&quot;Date of Latest DTP Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
    and </a:s>
                  <a:s r="501">
                     <a:s r="502">
                        <a:s>duration in months between </a:s>
                        <a:s r="503">
                           <a:s>&quot;Date of Latest DTP Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="504">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="507"> &lt; 6</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="497" locator="267:3-268:74" xsi:type="And">
            <operand localId="500" locator="267:3-267:39" xsi:type="Not">
               <operand localId="499" locator="267:3-267:39" xsi:type="IsNull">
                  <operand localId="498" locator="267:3-267:27" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="501" locator="268:9-268:74" xsi:type="Less">
               <signature localId="508" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="509" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="502" locator="268:9-268:70" precision="Month" xsi:type="DurationBetween">
                  <signature localId="505" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="506" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="503" locator="268:36-268:60" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
                  <operand localId="504" locator="268:66-268:70" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="507" locator="268:74" valueType="t:Integer" value="6" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="512" locator="277:1-278:68" name="The latest DTP dose was administered more than 6 months ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest DTP dose was administered more than 6 months ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot;) ≥ 6 months"/>
            <a:t name="code" value="The latest DTP dose was administered more than 6 months ago-114"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="512">
               <a:s>/*
@input: The latest DTP dose was administered more than 6 months ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;DTP-containing vaccines&quot;) ≥ 6 months
@code: The latest DTP dose was administered more than 6 months ago-114
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;The latest DTP dose was administered more than 6 months ago&quot;:
  </a:s>
               <a:s r="513">
                  <a:s>not</a:s>
                  <a:s r="514">
                     <a:s>(</a:s>
                     <a:s r="514">
                        <a:s>&quot;The latest DTP dose was administered less than 6 months ago&quot;</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="513" locator="278:3-278:68" xsi:type="Not">
            <operand localId="514" locator="278:6-278:68" name="The latest DTP dose was administered less than 6 months ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="517" locator="287:1-288:46" name="Client's age is more than 6 years" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than 6 years"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; > 6 years"/>
            <a:t name="code" value="Client's age is more than 6 years-40"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="517">
               <a:s>/*
@input: Client's age is more than 6 years
@pseudocode: Today's date − &quot;Date of birth&quot; > 6 years
@code: Client's age is more than 6 years-40
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;Client's age is more than 6 years&quot;:
  </a:s>
               <a:s r="518">
                  <a:s r="520">
                     <a:s r="519">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="520">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="521"> > 6</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="518" locator="288:3-288:46" xsi:type="Greater">
            <signature localId="522" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="523" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="520" locator="288:3-288:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="521" locator="288:46" valueType="t:Integer" value="6" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="526" locator="297:1-298:61" name="One pertussis booster dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="One pertussis booster dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Pertussis-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 1"/>
            <a:t name="code" value="One pertussis booster dose was administered-127"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="526">
               <a:s>/*
@input: One pertussis booster dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Pertussis-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 1
@code: One pertussis booster dose was administered-127
@decision: IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;One pertussis booster dose was administered&quot;:
  </a:s>
               <a:s r="527">
                  <a:s r="528">
                     <a:s>&quot;Number of Pertussis Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="529"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="527" locator="298:3-298:61" xsi:type="Equal">
            <signature localId="530" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="531" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="528" locator="298:3-298:57" name="Number of Pertussis Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="529" locator="298:61" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="534" locator="306:1-307:47" name="Client's age is more than 1 year" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than 1 year"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; > 1 year"/>
            <a:t name="code" value="Client's age is more than 1 year-39"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="534">
               <a:s>/*
@input: Client's age is more than 1 year
@pseudocode: Today's date − &quot;Date of birth&quot; > 1 year
@code: Client's age is more than 1 year-39
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;Client's age is more than 1 year&quot;:
  </a:s>
               <a:s r="535">
                  <a:s r="537">
                     <a:s r="536">
                        <a:s>Encounter</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="537">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="538"> >= 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="535" locator="307:3-307:47" xsi:type="GreaterOrEqual">
            <signature localId="539" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="540" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="537" locator="307:3-307:42" name="Current Patient Age In Years" libraryName="Encounter" xsi:type="ExpressionRef"/>
            <operand localId="538" locator="307:47" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="543" locator="315:1-317:73" name="The latest DTP dose was administered less than 1 year ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest DTP 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;DTP-containing vaccines&quot;) &lt; 1 year"/>
            <a:t name="code" value="The latest DTP dose was administered less than 1 year ago-112"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="543">
               <a:s>/*
@input: The latest DTP 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;DTP-containing vaccines&quot;) &lt; 1 year
@code: The latest DTP dose was administered less than 1 year ago-112
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;The latest DTP dose was administered less than 1 year ago&quot;:
  </a:s>
               <a:s r="544">
                  <a:s r="547">
                     <a:s r="545">
                        <a:s>&quot;Date of Latest DTP Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
    and </a:s>
                  <a:s r="548">
                     <a:s r="549">
                        <a:s>duration in years between </a:s>
                        <a:s r="550">
                           <a:s>&quot;Date of Latest DTP Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="551">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="554"> &lt; 1</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="544" locator="316:3-317:73" xsi:type="And">
            <operand localId="547" locator="316:3-316:39" xsi:type="Not">
               <operand localId="546" locator="316:3-316:39" xsi:type="IsNull">
                  <operand localId="545" locator="316:3-316:27" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="548" locator="317:9-317:73" xsi:type="Less">
               <signature localId="555" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="556" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="549" locator="317:9-317:69" precision="Year" xsi:type="DurationBetween">
                  <signature localId="552" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="553" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="550" locator="317:35-317:59" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
                  <operand localId="551" locator="317:65-317:69" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="554" locator="317:73" valueType="t:Integer" value="1" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="559" locator="325:1-326:66" name="The latest DTP dose was administered more than 1 year ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest DTP 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;DTP-containing vaccines&quot;) ≥ 1 year"/>
            <a:t name="code" value="The latest DTP dose was administered more than 1 year ago-112"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:s r="559">
               <a:s>/*
@input: The latest DTP 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;DTP-containing vaccines&quot;) ≥ 1 year
@code: The latest DTP dose was administered more than 1 year ago-112
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
*/
define &quot;The latest DTP dose was administered more than 1 year ago&quot;:
  </a:s>
               <a:s r="560">
                  <a:s>not</a:s>
                  <a:s r="561">
                     <a:s>(</a:s>
                     <a:s r="561">
                        <a:s>&quot;The latest DTP dose was administered less than 1 year ago&quot;</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="560" locator="326:3-326:66" xsi:type="Not">
            <operand localId="561" locator="326:6-326:66" name="The latest DTP dose was administered less than 1 year ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="573" locator="402:1-403:66" name="Td Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Td Doses Administered to Patient"/>
            <a:s r="573">
               <a:s>/*
@internal: Td Doses Administered to Patient
*/
define &quot;Td Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="577">
                  <a:s r="575">
                     <a:s r="574">
                        <a:s>DTPElements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="575">
                        <a:s>&quot;Td Doses Administered to Patient&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="577">
                     <a:s>onOrBefore(</a:s>
                     <a:s r="576">
                        <a:s>Today</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="577" locator="403:3-403:66" name="onOrBefore" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="575" locator="403:3-403:48" name="Td Doses Administered to Patient" libraryName="DTPElements" xsi:type="ExpressionRef"/>
            <operand localId="576" locator="403:61-403:65" name="Today" xsi:type="ParameterRef"/>
         </expression>
      </def>
      <def localId="568" locator="420:1-421:92" name="Date of Latest Td Dose" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Date of Latest Td Dose"/>
            <a:s r="568">
               <a:s>/*
@internal: Date of Latest Td Dose
*/
define &quot;Date of Latest Td Dose&quot;:
  </a:s>
               <a:s r="569">
                  <a:s>date from </a:s>
                  <a:s r="570">
                     <a:s>start of </a:s>
                     <a:s r="583">
                        <a:s r="582">
                           <a:s r="579">
                              <a:s r="578">
                                 <a:s>&quot;Td Doses Administered to Patient&quot;</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="579">
                                 <a:s>mostRecent()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="582">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="583">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="569" locator="421:3-421:92" xsi:type="DateFrom">
            <operand localId="570" locator="421:13-421:92" xsi:type="Start">
               <operand localId="583" locator="421:22-421:92" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="582" locator="421:22-421:79" path="occurrence" xsi:type="Property">
                     <source localId="579" locator="421:22-421:68" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="580" xsi:type="ListTypeSpecifier">
                           <elementType localId="581" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="578" locator="421:22-421:55" name="Td Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="564" locator="336:1-338:72" name="The latest tetanus and diphtheria dose was administered less than 1 year ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest tetanus and diphtheria 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;Tetanus and diphtheria-containing vaccines&quot;) &lt; 1 year"/>
            <a:t name="code" value="The latest tetanus and diphtheria dose was administered less than 1 year ago-131"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses"/>
            <a:s r="564">
               <a:s>/*
@input: The latest tetanus and diphtheria 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;Tetanus and diphtheria-containing vaccines&quot;) &lt; 1 year
@code: The latest tetanus and diphtheria dose was administered less than 1 year ago-131
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses
*/
define &quot;The latest tetanus and diphtheria dose was administered less than 1 year ago&quot;:
  </a:s>
               <a:s r="565">
                  <a:s r="586">
                     <a:s r="584">
                        <a:s>&quot;Date of Latest Td Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
    and </a:s>
                  <a:s r="587">
                     <a:s r="588">
                        <a:s>duration in years between </a:s>
                        <a:s r="589">
                           <a:s>&quot;Date of Latest Td Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="590">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="593"> &lt; 1</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="565" locator="337:3-338:72" xsi:type="And">
            <operand localId="586" locator="337:3-337:38" xsi:type="Not">
               <operand localId="585" locator="337:3-337:38" xsi:type="IsNull">
                  <operand localId="584" locator="337:3-337:26" name="Date of Latest Td Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="587" locator="338:9-338:72" xsi:type="Less">
               <signature localId="594" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="595" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="588" locator="338:9-338:68" precision="Year" xsi:type="DurationBetween">
                  <signature localId="591" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="592" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="589" locator="338:35-338:58" name="Date of Latest Td Dose" xsi:type="ExpressionRef"/>
                  <operand localId="590" locator="338:64-338:68" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="593" locator="338:72" valueType="t:Integer" value="1" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="598" locator="348:1-349:85" name="The latest tetanus and diphtheria dose was administered more than 1 year ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest tetanus and diphtheria 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;Tetanus and diphtheria-containing vaccines&quot;) ≥ 1 year"/>
            <a:t name="code" value="The latest tetanus and diphtheria dose was administered more than 1 year ago-131"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses"/>
            <a:s r="598">
               <a:s>/*
@input: The latest tetanus and diphtheria 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;Tetanus and diphtheria-containing vaccines&quot;) ≥ 1 year
@code: The latest tetanus and diphtheria dose was administered more than 1 year ago-131
@decision: IMMZ.D2.DT.DTP.Delayed or interrupted series: DTP vaccination schedule for the following groups: children ≥ 1 year of age with no previous immunization, adolescents and adults with no previous immunization (including pregnant women) and supplementary immunization activities in high-risk areas, for women of reproductive age
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses
*/
define &quot;The latest tetanus and diphtheria dose was administered more than 1 year ago&quot;:
  </a:s>
               <a:s r="599">
                  <a:s>not</a:s>
                  <a:s r="600">
                     <a:s>(</a:s>
                     <a:s r="600">
                        <a:s>&quot;The latest tetanus and diphtheria dose was administered less than 1 year ago&quot;</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="599" locator="349:3-349:85" xsi:type="Not">
            <operand localId="600" locator="349:6-349:85" name="The latest tetanus and diphtheria dose was administered less than 1 year ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="603" locator="359:1-360:36" name="Client is currently pregnant" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client is currently pregnant"/>
            <a:t name="pseudocode" value="&quot;Currently pregnant&quot; = TRUE"/>
            <a:t name="code" value="Client is currently pregnant-27"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses"/>
            <a:s r="603">
               <a:s>/*
@input: Client is currently pregnant
@pseudocode: &quot;Currently pregnant&quot; = TRUE
@code: Client is currently pregnant-27
@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 4 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 4 childhood DTP doses
*/
define &quot;Client is currently pregnant&quot;:
  </a:s>
               <a:s r="605">
                  <a:s r="604">
                     <a:s>Encounter</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="605">
                     <a:s>&quot;The client is pregnant&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="605" locator="360:3-360:36" name="The client is pregnant" libraryName="Encounter" xsi:type="ExpressionRef"/>
      </def>
      <def localId="608" locator="368:1-369:61" name="No tetanus and diphtheria booster dose was administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="No tetanus and diphtheria booster dose was administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0"/>
            <a:t name="code" value="No tetanus and diphtheria booster dose was administered-140"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women"/>
            <a:s r="608">
               <a:s>/*
@input: No tetanus and diphtheria booster dose was administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 0
@code: No tetanus and diphtheria booster dose was administered-140
@decision: IMMZ.D2.DT.DTP.Pregnancy: Determine whether DTP-containing vaccines are needed for pregnant women
*/
define &quot;No tetanus and diphtheria booster dose was administered&quot;:
  </a:s>
               <a:s r="609">
                  <a:s>&quot;No tetanus and diphtheria booster doses were administered&quot;</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="609" locator="369:3-369:61" name="No tetanus and diphtheria booster doses were administered" xsi:type="ExpressionRef"/>
      </def>
      <def localId="612" locator="377:1-378:60" name="One tetanus and diphtheria booster doses were administered" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="One tetanus and diphtheria booster doses were administered"/>
            <a:t name="pseudocode" value="&quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 1"/>
            <a:t name="code" value="One tetanus and diphtheria booster doses were administered-140"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses"/>
            <a:s r="612">
               <a:s>/*
@input: One tetanus and diphtheria booster doses were administered
@pseudocode: Count of vaccines administered (where &quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot; and &quot;Type of dose&quot; = &quot;Booster dose&quot;) = 1
@code: One tetanus and diphtheria booster doses were administered-140
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses
*/
define &quot;One tetanus and diphtheria booster doses were administered&quot;:
  </a:s>
               <a:s r="613">
                  <a:s>&quot;One tetanus and diphtheria booster dose was administered&quot;</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="613" locator="378:3-378:60" name="One tetanus and diphtheria booster dose was administered" xsi:type="ExpressionRef"/>
      </def>
      <def localId="616" locator="386:1-388:72" name="The latest tetanus and diphtheria dose was administered less than 4 weeks ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest tetanus and diphtheria dose was administered less than 4 weeks ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot;) &lt; 4 weeks"/>
            <a:t name="code" value="The latest tetanus and diphtheria dose was administered less than 4 weeks ago-132"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses"/>
            <a:s r="616">
               <a:s>/*
@input: The latest tetanus and diphtheria dose was administered less than 4 weeks ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot;) &lt; 4 weeks
@code: The latest tetanus and diphtheria dose was administered less than 4 weeks ago-132
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses
*/
define &quot;The latest tetanus and diphtheria dose was administered less than 4 weeks ago&quot;:
  </a:s>
               <a:s r="617">
                  <a:s r="620">
                     <a:s r="618">
                        <a:s>&quot;Date of Latest Td Dose&quot;</a:s>
                     </a:s>
                     <a:s> is not null</a:s>
                  </a:s>
                  <a:s>
    and </a:s>
                  <a:s r="621">
                     <a:s r="622">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="623">
                           <a:s>&quot;Date of Latest Td Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="624">
                           <a:s>Today</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="627"> &lt; 4</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="617" locator="387:3-388:72" xsi:type="And">
            <operand localId="620" locator="387:3-387:38" xsi:type="Not">
               <operand localId="619" locator="387:3-387:38" xsi:type="IsNull">
                  <operand localId="618" locator="387:3-387:26" name="Date of Latest Td Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="621" locator="388:9-388:72" xsi:type="Less">
               <signature localId="628" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="629" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="622" locator="388:9-388:68" precision="Week" xsi:type="DurationBetween">
                  <signature localId="625" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="626" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="623" locator="388:35-388:58" name="Date of Latest Td Dose" xsi:type="ExpressionRef"/>
                  <operand localId="624" locator="388:64-388:68" name="Today" xsi:type="ParameterRef"/>
               </operand>
               <operand localId="627" locator="388:72" valueType="t:Integer" value="4" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="632" locator="396:1-397:86" name="The latest tetanus and diphtheria dose was administered more than 4 weeks ago" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="The latest tetanus and diphtheria dose was administered more than 4 weeks ago"/>
            <a:t name="pseudocode" value="&quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot;) > 4 weeks"/>
            <a:t name="code" value="The latest tetanus and diphtheria dose was administered more than 4 weeks ago-132"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses"/>
            <a:s r="632">
               <a:s>/*
@input: The latest tetanus and diphtheria dose was administered more than 4 weeks ago
@pseudocode: Today's date − latest &quot;Date and time of vaccination&quot; (where &quot;Vaccine type&quot; = &quot;Tetanus and diphtheria-containing vaccines&quot;) > 4 weeks
@code: The latest tetanus and diphtheria dose was administered more than 4 weeks ago-132
@decision: IMMZ.D2.DT.DTP.Pregnancy starting with 3 doses: Diphtheria and tetanus vaccination schedule in pregnant women who received 3 childhood DTP doses
*/
define &quot;The latest tetanus and diphtheria dose was administered more than 4 weeks ago&quot;:
  </a:s>
               <a:s r="633">
                  <a:s>not</a:s>
                  <a:s r="634">
                     <a:s>(</a:s>
                     <a:s r="634">
                        <a:s>&quot;The latest tetanus and diphtheria dose was administered less than 4 weeks ago&quot;</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="633" locator="397:3-397:86" xsi:type="Not">
            <operand localId="634" locator="397:6-397:86" name="The latest tetanus and diphtheria dose was administered less than 4 weeks ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="637" locator="408:1-409:73" name="Pertussis Doses Administered to Patient" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Pertussis Doses Administered to Patient"/>
            <a:s r="637">
               <a:s>/*
@internal: Pertussis Doses Administered to Patient
*/
define &quot;Pertussis Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="641">
                  <a:s r="639">
                     <a:s r="638">
                        <a:s>DTPElements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="639">
                        <a:s>&quot;Pertussis Doses Administered to Patient&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="641">
                     <a:s>onOrBefore(</a:s>
                     <a:s r="640">
                        <a:s>Today</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="641" locator="409:3-409:73" name="onOrBefore" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="639" locator="409:3-409:55" name="Pertussis Doses Administered to Patient" libraryName="DTPElements" xsi:type="ExpressionRef"/>
            <operand localId="640" locator="409:68-409:72" name="Today" xsi:type="ParameterRef"/>
         </expression>
      </def>
      <def localId="644" locator="426:1-427:99" name="Date of Latest Pertussis Dose" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="internal" value="Date of Latest Pertussis Dose"/>
            <a:s r="644">
               <a:s>/*
@internal: Date of Latest Pertussis Dose
*/
define &quot;Date of Latest Pertussis Dose&quot;:
  </a:s>
               <a:s r="645">
                  <a:s>date from </a:s>
                  <a:s r="646">
                     <a:s>start of </a:s>
                     <a:s r="652">
                        <a:s r="651">
                           <a:s r="648">
                              <a:s r="647">
                                 <a:s>&quot;Pertussis Doses Administered to Patient&quot;</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="648">
                                 <a:s>mostRecent()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="651">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="652">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="645" locator="427:3-427:99" xsi:type="DateFrom">
            <operand localId="646" locator="427:13-427:99" xsi:type="Start">
               <operand localId="652" locator="427:22-427:99" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="651" locator="427:22-427:86" path="occurrence" xsi:type="Property">
                     <source localId="648" locator="427:22-427:75" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="649" xsi:type="ListTypeSpecifier">
                           <elementType localId="650" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="647" locator="427:22-427:62" name="Pertussis Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
   </statements>
</library>
