<?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="466">
         <a:s>/*
  * Library: IMMZD2DTDTPElements
  */
library IMMZD2DTDTPElements</a:s>
      </a:s>
   </annotation>
   <identifier id="IMMZD2DTDTPElements" system="http://smart.who.int/immunizations"/>
   <schemaIdentifier id="urn:hl7-org:elm" version="r1"/>
   <usings>
      <def localId="1" localIdentifier="System" uri="urn:hl7-org:elm-types:r1" version="1.0.0"/>
      <def localId="206" locator="7:1-7:26" localIdentifier="FHIR" uri="http://hl7.org/fhir" version="4.0.1">
         <annotation xsi:type="a:Annotation">
            <a:s r="206">
               <a:s>using </a:s>
               <a:s>
                  <a:s>FHIR</a:s>
               </a:s>
               <a:s> version '4.0.1'</a:s>
            </a:s>
         </annotation>
      </def>
   </usings>
   <includes>
      <def localId="208" locator="8:1-8:35" localIdentifier="FHIRHelpers" path="http://hl7.org/fhir/FHIRHelpers" version="4.0.1">
         <annotation xsi:type="a:Annotation">
            <a:s r="208">
               <a:s>include </a:s>
               <a:s>
                  <a:s>FHIRHelpers</a:s>
               </a:s>
               <a:s> version '4.0.1'</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="210" locator="10:1-10:19" localIdentifier="WHOConcepts" path="http://smart.who.int/immunizations/WHOConcepts">
         <annotation xsi:type="a:Annotation">
            <a:s r="210">
               <a:s>include </a:s>
               <a:s>
                  <a:s>WHOConcepts</a:s>
               </a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="212" locator="11:1-11:27" localIdentifier="WC" path="http://smart.who.int/immunizations/WHOCommon">
         <annotation xsi:type="a:Annotation">
            <a:s r="212">
               <a:s>include </a:s>
               <a:s>
                  <a:s>WHOCommon</a:s>
               </a:s>
               <a:s> called WC</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="214" locator="12:1-12:29" localIdentifier="WE" path="http://smart.who.int/immunizations/WHOElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="214">
               <a:s>include </a:s>
               <a:s>
                  <a:s>WHOElements</a:s>
               </a:s>
               <a:s> called WE</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="216" locator="14:1-14:32" localIdentifier="Common" path="http://smart.who.int/immunizations/IMMZCommon">
         <annotation xsi:type="a:Annotation">
            <a:s r="216">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZCommon</a:s>
               </a:s>
               <a:s> called Common</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="218" locator="15:1-15:36" localIdentifier="Concepts" path="http://smart.who.int/immunizations/IMMZConcepts">
         <annotation xsi:type="a:Annotation">
            <a:s r="218">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZConcepts</a:s>
               </a:s>
               <a:s> called Concepts</a:s>
            </a:s>
         </annotation>
      </def>
      <def localId="220" locator="16:1-16:36" localIdentifier="Elements" path="http://smart.who.int/immunizations/IMMZElements">
         <annotation xsi:type="a:Annotation">
            <a:s r="220">
               <a:s>include </a:s>
               <a:s>
                  <a:s>IMMZElements</a:s>
               </a:s>
               <a:s> called Elements</a:s>
            </a:s>
         </annotation>
      </def>
   </includes>
   <contexts>
      <def localId="225" locator="19:1-19:15" name="Patient"/>
   </contexts>
   <statements>
      <def localId="223" locator="19:1-19:15" name="Patient" context="Patient">
         <expression localId="224" xsi:type="SingletonFrom">
            <operand localId="222" locator="19:1-19:15" dataType="fhir:Patient" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/>
         </expression>
      </def>
      <def localId="228" locator="24:1-27:55" 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="228">
               <a:s>/*
@internal: DTP containing Doses Administered to Patient
*/
define &quot;DTP Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="240">
                  <a:s>
                     <a:s r="229">
                        <a:s r="231">
                           <a:s>
                              <a:s>Elements.&quot;Doses Administered to Patient&quot;</a:s>
                           </a:s>
                        </a:s>
                        <a:s> I</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  </a:s>
                  <a:s r="237">
                     <a:s>where
    </a:s>
                     <a:s r="237">
                        <a:s r="234">
                           <a:s r="233">
                              <a:s>I</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="234">
                              <a:s>vaccineCode</a:s>
                           </a:s>
                        </a:s>
                        <a:s> in </a:s>
                        <a:s r="236">
                           <a:s r="235">
                              <a:s>Concepts</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="236">
                              <a:s>&quot;DTP-containing vaccines&quot;</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="240" locator="25:3-27:55" xsi:type="Query">
            <source localId="229" locator="25:3-25:44" alias="I">
               <expression localId="231" locator="25:3-25:42" name="Doses Administered to Patient" libraryName="Elements" xsi:type="ExpressionRef"/>
            </source>
            <where localId="237" locator="26:3-27:55" xsi:type="InValueSet">
               <signature localId="239" name="t:Concept" xsi:type="NamedTypeSpecifier"/>
               <code localId="238" name="ToConcept" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                  <operand localId="234" locator="27:5-27:17" path="vaccineCode" scope="I" xsi:type="Property"/>
               </code>
               <valueset localId="236" locator="27:22-27:55" name="DTP-containing vaccines" libraryName="Concepts" preserve="true"/>
            </where>
         </expression>
      </def>
      <def localId="243" locator="32:1-33:53" 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="243">
               <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="245">
                  <a:s r="244">
                     <a:s>&quot;DTP Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="245">
                     <a:s>seriesPrimary()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="245" locator="33:3-33:53" name="seriesPrimary" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="244" locator="33:3-33:37" name="DTP Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="248" locator="38:1-39: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="248">
               <a:s>/*
@internal: Number of DTP Primary Series doses
*/
define &quot;Number of DTP Primary Series Doses Administered&quot;:
  </a:s>
               <a:s r="252">
                  <a:s>Count(</a:s>
                  <a:s r="249">
                     <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="252" locator="39:3-39:59" xsi:type="Count">
            <source localId="249" locator="39:9-39:58" name="DTP Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="255" locator="47:1-48:45" 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="255">
               <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="256">
                  <a:s r="258">
                     <a:s r="257">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="258">
                        <a:s>&quot;Current Patient Age In Weeks&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="259"> &lt; 6</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="256" locator="48:3-48:45" xsi:type="Less">
            <signature localId="260" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="261" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="258" locator="48:3-48:41" name="Current Patient Age In Weeks" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="259" locator="48:45" valueType="t:Integer" value="6" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="264" locator="58:1-59: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="264">
               <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="265">
                  <a:s r="266">
                     <a:s>&quot;Number of DTP Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="267"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="265" locator="59:3-59:55" xsi:type="Equal">
            <signature localId="268" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="269" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="266" locator="59:3-59:51" name="Number of DTP Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="267" locator="59:55" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="272" locator="67:1-69:49" 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="272">
               <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="273">
                  <a:s r="274">
                     <a:s r="275">6 &lt;= </a:s>
                     <a:s r="277">
                        <a:s r="276">
                           <a:s>Elements</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="277">
                           <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="280">
                     <a:s r="282">
                        <a:s r="281">
                           <a:s>Elements</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="282">
                           <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="283"> &lt; 1</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="273" locator="68:3-69:49" xsi:type="And">
            <operand localId="274" locator="68:3-68:46" xsi:type="LessOrEqual">
               <signature localId="278" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="279" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="275" locator="68:3" valueType="t:Integer" value="6" xsi:type="Literal"/>
               <operand localId="277" locator="68:8-68:46" name="Current Patient Age In Weeks" libraryName="Elements" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="280" locator="69:7-69:49" xsi:type="Less">
               <signature localId="284" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="285" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="282" locator="69:7-69:45" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
               <operand localId="283" locator="69:49" valueType="t:Integer" value="1" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="288" locator="78:1-79: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="288">
               <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="289">
                  <a:s r="290">
                     <a:s>&quot;Number of DTP Primary Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="291"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="289" locator="79:3-79:55" xsi:type="Equal">
            <signature localId="292" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="293" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="290" locator="79:3-79:51" name="Number of DTP Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="291" locator="79:55" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="300" locator="416:1-417: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="300">
               <a:s>/*
@internal: Date of Latest DTP Dose
*/
define &quot;Date of Latest DTP Dose&quot;:
  </a:s>
               <a:s r="301">
                  <a:s>date from </a:s>
                  <a:s r="302">
                     <a:s>start of </a:s>
                     <a:s r="308">
                        <a:s r="307">
                           <a:s r="304">
                              <a:s r="303">
                                 <a:s>&quot;DTP Doses Administered to Patient&quot;</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="304">
                                 <a:s>mostRecent()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="307">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="308">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="301" locator="417:3-417:93" xsi:type="DateFrom">
            <operand localId="302" locator="417:13-417:93" xsi:type="Start">
               <operand localId="308" locator="417:22-417:93" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="307" locator="417:22-417:80" path="occurrence" xsi:type="Property">
                     <source localId="304" locator="417:22-417:69" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="305" xsi:type="ListTypeSpecifier">
                           <elementType localId="306" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="303" locator="417:22-417:56" name="DTP Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="296" locator="88:1-90: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="296">
               <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="297">
                  <a:s r="311">
                     <a:s r="309">
                        <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="312">
                     <a:s r="313">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="314">
                           <a:s>&quot;Date of Latest DTP Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="317">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="323"> &lt; 4</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="297" locator="89:3-90:73" xsi:type="And">
            <operand localId="311" locator="89:3-89:39" xsi:type="Not">
               <operand localId="310" locator="89:3-89:39" xsi:type="IsNull">
                  <operand localId="309" locator="89:3-89:27" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="312" locator="90:9-90:73" xsi:type="Less">
               <signature localId="324" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="325" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="313" locator="90:9-90:69" precision="Week" xsi:type="DurationBetween">
                  <signature localId="321" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="322" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="319" xsi:type="ToDateTime">
                     <signature localId="320" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="314" locator="90:35-90:59" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="317" locator="90:65-90:69" xsi:type="Now"/>
               </operand>
               <operand localId="323" locator="90:73" valueType="t:Integer" value="4" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="328" locator="99:1-100: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="100:3-100:67" xsi:type="Not">
            <operand localId="330" locator="100:6-100:67" name="The latest DTP dose was administered less than 4 weeks ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="333" locator="109:1-110: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="110:3-110: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="110:3-110:51" name="Number of DTP Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="336" locator="110:55" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="341" locator="122:1-123: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="123:3-123: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="123:3-123:51" name="Number of DTP Primary Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="344" locator="123:55" valueType="t:Integer" value="3" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="359" locator="400:1-403:74" 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="359">
               <a:s>/*
@internal: Td Doses Administered to Patient
*/
define &quot;Td Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="371">
                  <a:s>
                     <a:s r="360">
                        <a:s r="362">
                           <a:s>
                              <a:s>Elements.&quot;Doses Administered to Patient&quot;</a:s>
                           </a:s>
                        </a:s>
                        <a:s> I</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  </a:s>
                  <a:s r="368">
                     <a:s>where
    </a:s>
                     <a:s r="368">
                        <a:s r="365">
                           <a:s r="364">
                              <a:s>I</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="365">
                              <a:s>vaccineCode</a:s>
                           </a:s>
                        </a:s>
                        <a:s> in </a:s>
                        <a:s r="367">
                           <a:s r="366">
                              <a:s>Concepts</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="367">
                              <a:s>&quot;Tetanus and diphtheria-containing vaccines&quot;</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="371" locator="401:3-403:74" xsi:type="Query">
            <source localId="360" locator="401:3-401:44" alias="I">
               <expression localId="362" locator="401:3-401:42" name="Doses Administered to Patient" libraryName="Elements" xsi:type="ExpressionRef"/>
            </source>
            <where localId="368" locator="402:3-403:74" xsi:type="InValueSet">
               <signature localId="370" name="t:Concept" xsi:type="NamedTypeSpecifier"/>
               <code localId="369" name="ToConcept" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                  <operand localId="365" locator="403:5-403:17" path="vaccineCode" scope="I" xsi:type="Property"/>
               </code>
               <valueset localId="367" locator="403:22-403:74" name="Tetanus and diphtheria-containing vaccines" libraryName="Concepts" preserve="true"/>
            </where>
         </expression>
      </def>
      <def localId="356" locator="428:1-429:52" 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="373">
                  <a:s r="372">
                     <a:s>&quot;Td Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="373">
                     <a:s>seriesBooster()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="373" locator="429:3-429:52" name="seriesBooster" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="372" locator="429:3-429:36" name="Td Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="353" locator="434:1-435: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="377">
                  <a:s>Count(</a:s>
                  <a:s r="374">
                     <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="377" locator="435:3-435:58" xsi:type="Count">
            <source localId="374" locator="435:9-435:57" name="Td Booster Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="349" locator="133:1-134: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="378">
                     <a:s>&quot;Number of Td Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="379"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="350" locator="134:3-134:54" xsi:type="Equal">
            <signature localId="380" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="381" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="378" locator="134:3-134:50" name="Number of Td Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="379" locator="134:54" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="384" locator="142:1-143:47" name="Client's age is less than 12 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is less than 12 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; &lt; 12 months"/>
            <a:t name="code" value="Client's age is less than 12 months-42"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="384">
               <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="385">
                  <a:s r="387">
                     <a:s r="386">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="387">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="388"> &lt; 12</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="385" locator="143:3-143:47" xsi:type="Less">
            <signature localId="389" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="390" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="387" locator="143:3-143:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="388" locator="143:46-143:47" valueType="t:Integer" value="12" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="393" locator="151:1-152:48" name="Client's age is more than or equal to 12 months" context="Patient" accessLevel="Public">
         <annotation xsi:type="a:Annotation">
            <a:t name="input" value="Client's age is more than or equal to 12 months"/>
            <a:t name="pseudocode" value="&quot;Date of birth&quot; ≥ 12 months"/>
            <a:t name="code" value="Client's age is more than or equal to 12 months-42"/>
            <a:t name="decision" value="IMMZ.D2.DT.DTP.On-time start: DTP vaccination schedule, on-time start (at ≤ 12 months of age)"/>
            <a:s r="393">
               <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="394">
                  <a:s r="396">
                     <a:s r="395">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="396">
                        <a:s>&quot;Current Patient Age In Months&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="397"> >= 12</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="394" locator="152:3-152:48" xsi:type="GreaterOrEqual">
            <signature localId="398" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="399" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="396" locator="152:3-152:42" name="Current Patient Age In Months" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="397" locator="152:47-152:48" valueType="t:Integer" value="12" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="402" locator="163:1-164: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="402">
               <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="403">
                  <a:s r="404">
                     <a:s>&quot;Number of Td Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="405"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="403" locator="164:3-164:54" xsi:type="Equal">
            <signature localId="406" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="407" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="404" locator="164:3-164:50" name="Number of Td Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="405" locator="164:54" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="410" locator="172:1-173:45" 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="410">
               <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="411">
                  <a:s r="413">
                     <a:s r="412">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="413">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="414"> &lt; 4</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="411" locator="173:3-173:45" xsi:type="Less">
            <signature localId="415" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="416" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="413" locator="173:3-173:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="414" locator="173:45" valueType="t:Integer" value="4" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="419" locator="181:1-182:46" 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="419">
               <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="420">
                  <a:s r="422">
                     <a:s r="421">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="422">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="423"> >= 4</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="420" locator="182:3-182:46" xsi:type="GreaterOrEqual">
            <signature localId="424" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="425" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="422" locator="182:3-182:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="423" locator="182:46" valueType="t:Integer" value="4" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="428" locator="194:1-195: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="428">
               <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="429">
                  <a:s r="430">
                     <a:s>&quot;Number of Td Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="431"> = 2</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="429" locator="195:3-195:54" xsi:type="Equal">
            <signature localId="432" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="433" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="430" locator="195:3-195:50" name="Number of Td Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="431" locator="195:54" valueType="t:Integer" value="2" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="436" locator="203:1-204:45" 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="436">
               <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="437">
                  <a:s r="439">
                     <a:s r="438">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="439">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="440"> &lt; 9</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="437" locator="204:3-204:45" xsi:type="Less">
            <signature localId="441" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="442" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="439" locator="204:3-204:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="440" locator="204:45" valueType="t:Integer" value="9" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="445" locator="212:1-213:46" 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="445">
               <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="446">
                  <a:s r="448">
                     <a:s r="447">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="448">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="449"> >= 9</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="446" locator="213:3-213:46" xsi:type="GreaterOrEqual">
            <signature localId="450" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="451" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="448" locator="213:3-213:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="449" locator="213:46" valueType="t:Integer" value="9" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="454" locator="224:1-225: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="454">
               <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="455">
                  <a:s r="456">
                     <a:s>&quot;Number of Td Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="457"> = 3</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="455" locator="225:3-225:54" xsi:type="Equal">
            <signature localId="458" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="459" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="456" locator="225:3-225:50" name="Number of Td Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="457" locator="225:54" valueType="t:Integer" value="3" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="472" locator="408:1-411:61" 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="472">
               <a:s>/*
@internal: Pertussis Doses Administered to Patient
*/
define &quot;Pertussis Doses Administered to Patient&quot;:
  </a:s>
               <a:s r="484">
                  <a:s>
                     <a:s r="473">
                        <a:s r="475">
                           <a:s>
                              <a:s>Elements.&quot;Doses Administered to Patient&quot;</a:s>
                           </a:s>
                        </a:s>
                        <a:s> I</a:s>
                     </a:s>
                  </a:s>
                  <a:s>
  </a:s>
                  <a:s r="481">
                     <a:s>where
    </a:s>
                     <a:s r="481">
                        <a:s r="478">
                           <a:s r="477">
                              <a:s>I</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="478">
                              <a:s>vaccineCode</a:s>
                           </a:s>
                        </a:s>
                        <a:s> in </a:s>
                        <a:s r="480">
                           <a:s r="479">
                              <a:s>Concepts</a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="480">
                              <a:s>&quot;Pertussis-containing vaccines&quot;</a:s>
                           </a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="484" locator="409:3-411:61" xsi:type="Query">
            <source localId="473" locator="409:3-409:44" alias="I">
               <expression localId="475" locator="409:3-409:42" name="Doses Administered to Patient" libraryName="Elements" xsi:type="ExpressionRef"/>
            </source>
            <where localId="481" locator="410:3-411:61" xsi:type="InValueSet">
               <signature localId="483" name="t:Concept" xsi:type="NamedTypeSpecifier"/>
               <code localId="482" name="ToConcept" libraryName="FHIRHelpers" xsi:type="FunctionRef">
                  <operand localId="478" locator="411:5-411:17" path="vaccineCode" scope="I" xsi:type="Property"/>
               </code>
               <valueset localId="480" locator="411:22-411:61" name="Pertussis-containing vaccines" libraryName="Concepts" preserve="true"/>
            </where>
         </expression>
      </def>
      <def localId="469" locator="440:1-441:59" 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="469">
               <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="486">
                  <a:s r="485">
                     <a:s>&quot;Pertussis Doses Administered to Patient&quot;</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="486">
                     <a:s>seriesBooster()</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="486" locator="441:3-441:59" name="seriesBooster" libraryName="Common" xsi:type="FunctionRef">
            <operand localId="485" locator="441:3-441:43" name="Pertussis Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="466" locator="446:1-447: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="466">
               <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="490">
                  <a:s>Count(</a:s>
                  <a:s r="487">
                     <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="490" locator="447:3-447:65" xsi:type="Count">
            <source localId="487" locator="447:9-447:64" name="Pertussis Booster Series Doses Administered to Patient" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="462" locator="234:1-235: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="462">
               <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="463">
                  <a:s r="491">
                     <a:s>&quot;Number of Pertussis Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="492"> = 0</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="463" locator="235:3-235:61" xsi:type="Equal">
            <signature localId="493" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="494" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="491" locator="235:3-235:57" name="Number of Pertussis Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="492" locator="235:61" valueType="t:Integer" value="0" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="497" locator="243:1-244:45" 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="497">
               <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="498">
                  <a:s r="500">
                     <a:s r="499">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="500">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="501"> &lt; 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="498" locator="244:3-244:45" xsi:type="Less">
            <signature localId="502" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="503" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="500" locator="244:3-244:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="501" locator="244:45" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="506" locator="253:1-255:50" 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="506">
               <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="507">
                  <a:s r="508">
                     <a:s r="509">1 &lt;= </a:s>
                     <a:s r="511">
                        <a:s r="510">
                           <a:s>Elements</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="511">
                           <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="514">
                     <a:s r="516">
                        <a:s r="515">
                           <a:s>Elements</a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="516">
                           <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="517"> &lt;= 6</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="507" locator="254:3-255:50" xsi:type="And">
            <operand localId="508" locator="254:3-254:46" xsi:type="LessOrEqual">
               <signature localId="512" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="513" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="509" locator="254:3" valueType="t:Integer" value="1" xsi:type="Literal"/>
               <operand localId="511" locator="254:8-254:46" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            </operand>
            <operand localId="514" locator="255:7-255:50" xsi:type="LessOrEqual">
               <signature localId="518" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="519" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="516" locator="255:7-255:45" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
               <operand localId="517" locator="255:50" valueType="t:Integer" value="6" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="522" locator="264:1-266: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="522">
               <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="523">
                  <a:s r="526">
                     <a:s r="524">
                        <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="527">
                     <a:s r="528">
                        <a:s>duration in months between </a:s>
                        <a:s r="529">
                           <a:s>&quot;Date of Latest DTP Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="532">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="538"> &lt; 6</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="523" locator="265:3-266:74" xsi:type="And">
            <operand localId="526" locator="265:3-265:39" xsi:type="Not">
               <operand localId="525" locator="265:3-265:39" xsi:type="IsNull">
                  <operand localId="524" locator="265:3-265:27" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="527" locator="266:9-266:74" xsi:type="Less">
               <signature localId="539" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="540" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="528" locator="266:9-266:70" precision="Month" xsi:type="DurationBetween">
                  <signature localId="536" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="537" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="534" xsi:type="ToDateTime">
                     <signature localId="535" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="529" locator="266:36-266:60" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="532" locator="266:66-266:70" xsi:type="Now"/>
               </operand>
               <operand localId="538" locator="266:74" valueType="t:Integer" value="6" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="543" locator="275:1-276: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="543">
               <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="544">
                  <a:s>not</a:s>
                  <a:s r="545">
                     <a:s>(</a:s>
                     <a:s r="545">
                        <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="544" locator="276:3-276:68" xsi:type="Not">
            <operand localId="545" locator="276:6-276:68" name="The latest DTP dose was administered less than 6 months ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="548" locator="285:1-286:45" 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="548">
               <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="549">
                  <a:s r="551">
                     <a:s r="550">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="551">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="552"> > 6</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="549" locator="286:3-286:45" xsi:type="Greater">
            <signature localId="553" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="554" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="551" locator="286:3-286:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="552" locator="286:45" valueType="t:Integer" value="6" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="557" locator="295:1-296: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="557">
               <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="558">
                  <a:s r="559">
                     <a:s>&quot;Number of Pertussis Booster Series Doses Administered&quot;</a:s>
                  </a:s>
                  <a:s r="560"> = 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="558" locator="296:3-296:61" xsi:type="Equal">
            <signature localId="561" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="562" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="559" locator="296:3-296:57" name="Number of Pertussis Booster Series Doses Administered" xsi:type="ExpressionRef"/>
            <operand localId="560" locator="296:61" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="565" locator="304:1-305:46" 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="565">
               <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="566">
                  <a:s r="568">
                     <a:s r="567">
                        <a:s>Elements</a:s>
                     </a:s>
                     <a:s>.</a:s>
                     <a:s r="568">
                        <a:s>&quot;Current Patient Age In Years&quot;</a:s>
                     </a:s>
                  </a:s>
                  <a:s r="569"> >= 1</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="566" locator="305:3-305:46" xsi:type="GreaterOrEqual">
            <signature localId="570" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <signature localId="571" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
            <operand localId="568" locator="305:3-305:41" name="Current Patient Age In Years" libraryName="Elements" xsi:type="ExpressionRef"/>
            <operand localId="569" locator="305:46" valueType="t:Integer" value="1" xsi:type="Literal"/>
         </expression>
      </def>
      <def localId="574" locator="313:1-315: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="574">
               <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="575">
                  <a:s r="578">
                     <a:s r="576">
                        <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="579">
                     <a:s r="580">
                        <a:s>duration in years between </a:s>
                        <a:s r="581">
                           <a:s>&quot;Date of Latest DTP Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="584">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="590"> &lt; 1</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="575" locator="314:3-315:73" xsi:type="And">
            <operand localId="578" locator="314:3-314:39" xsi:type="Not">
               <operand localId="577" locator="314:3-314:39" xsi:type="IsNull">
                  <operand localId="576" locator="314:3-314:27" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="579" locator="315:9-315:73" xsi:type="Less">
               <signature localId="591" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="592" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="580" locator="315:9-315:69" precision="Year" xsi:type="DurationBetween">
                  <signature localId="588" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="589" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="586" xsi:type="ToDateTime">
                     <signature localId="587" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="581" locator="315:35-315:59" name="Date of Latest DTP Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="584" locator="315:65-315:69" xsi:type="Now"/>
               </operand>
               <operand localId="590" locator="315:73" valueType="t:Integer" value="1" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="595" locator="323:1-324: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="595">
               <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="596">
                  <a:s>not</a:s>
                  <a:s r="597">
                     <a:s>(</a:s>
                     <a:s r="597">
                        <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="596" locator="324:3-324:66" xsi:type="Not">
            <operand localId="597" locator="324:6-324:66" name="The latest DTP dose was administered less than 1 year ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="604" locator="422:1-423: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="604">
               <a:s>/*
@internal: Date of Latest Td Dose
*/
define &quot;Date of Latest Td Dose&quot;:
  </a:s>
               <a:s r="605">
                  <a:s>date from </a:s>
                  <a:s r="606">
                     <a:s>start of </a:s>
                     <a:s r="612">
                        <a:s r="611">
                           <a:s r="608">
                              <a:s r="607">
                                 <a:s>&quot;Td Doses Administered to Patient&quot;</a:s>
                              </a:s>
                              <a:s>.</a:s>
                              <a:s r="608">
                                 <a:s>mostRecent()</a:s>
                              </a:s>
                           </a:s>
                           <a:s>.</a:s>
                           <a:s r="611">
                              <a:s>occurrence</a:s>
                           </a:s>
                        </a:s>
                        <a:s>.</a:s>
                        <a:s r="612">
                           <a:s>toInterval()</a:s>
                        </a:s>
                     </a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="605" locator="423:3-423:92" xsi:type="DateFrom">
            <operand localId="606" locator="423:13-423:92" xsi:type="Start">
               <operand localId="612" locator="423:22-423:92" name="toInterval" libraryName="WC" xsi:type="FunctionRef">
                  <operand localId="611" locator="423:22-423:79" path="occurrence" xsi:type="Property">
                     <source localId="608" locator="423:22-423:68" name="mostRecent" libraryName="WC" xsi:type="FunctionRef">
                        <signature localId="609" xsi:type="ListTypeSpecifier">
                           <elementType localId="610" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/>
                        </signature>
                        <operand localId="607" locator="423:22-423:55" name="Td Doses Administered to Patient" xsi:type="ExpressionRef"/>
                     </source>
                  </operand>
               </operand>
            </operand>
         </expression>
      </def>
      <def localId="600" locator="334:1-336: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="600">
               <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="601">
                  <a:s r="615">
                     <a:s r="613">
                        <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="616">
                     <a:s r="617">
                        <a:s>duration in years between </a:s>
                        <a:s r="618">
                           <a:s>&quot;Date of Latest Td Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="621">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="627"> &lt; 1</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="601" locator="335:3-336:72" xsi:type="And">
            <operand localId="615" locator="335:3-335:38" xsi:type="Not">
               <operand localId="614" locator="335:3-335:38" xsi:type="IsNull">
                  <operand localId="613" locator="335:3-335:26" name="Date of Latest Td Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="616" locator="336:9-336:72" xsi:type="Less">
               <signature localId="628" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="629" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="617" locator="336:9-336:68" precision="Year" xsi:type="DurationBetween">
                  <signature localId="625" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="626" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="623" xsi:type="ToDateTime">
                     <signature localId="624" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="618" locator="336:35-336:58" name="Date of Latest Td Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="621" locator="336:64-336:68" xsi:type="Now"/>
               </operand>
               <operand localId="627" locator="336:72" valueType="t:Integer" value="1" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="632" locator="346:1-347: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="632">
               <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="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 1 year ago&quot;</a:s>
                     </a:s>
                     <a:s>)</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="633" locator="347:3-347:85" xsi:type="Not">
            <operand localId="634" locator="347:6-347:85" name="The latest tetanus and diphtheria dose was administered less than 1 year ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
      <def localId="637" locator="357:1-358:35" 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="637">
               <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="639">
                  <a:s r="638">
                     <a:s>Elements</a:s>
                  </a:s>
                  <a:s>.</a:s>
                  <a:s r="639">
                     <a:s>&quot;The client is pregnant&quot;</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="639" locator="358:3-358:35" name="The client is pregnant" libraryName="Elements" xsi:type="ExpressionRef"/>
      </def>
      <def localId="642" locator="366:1-367: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="642">
               <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="643">
                  <a:s>&quot;No tetanus and diphtheria booster doses were administered&quot;</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="643" locator="367:3-367:61" name="No tetanus and diphtheria booster doses were administered" xsi:type="ExpressionRef"/>
      </def>
      <def localId="646" locator="375:1-376: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="646">
               <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="647">
                  <a:s>&quot;One tetanus and diphtheria booster dose was administered&quot;</a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="647" locator="376:3-376:60" name="One tetanus and diphtheria booster dose was administered" xsi:type="ExpressionRef"/>
      </def>
      <def localId="650" locator="384:1-386: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="650">
               <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="651">
                  <a:s r="654">
                     <a:s r="652">
                        <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="655">
                     <a:s r="656">
                        <a:s>duration in weeks between </a:s>
                        <a:s r="657">
                           <a:s>&quot;Date of Latest Td Dose&quot;</a:s>
                        </a:s>
                        <a:s> and </a:s>
                        <a:s r="660">
                           <a:s>Now()</a:s>
                        </a:s>
                     </a:s>
                     <a:s r="666"> &lt; 4</a:s>
                  </a:s>
               </a:s>
            </a:s>
         </annotation>
         <expression localId="651" locator="385:3-386:72" xsi:type="And">
            <operand localId="654" locator="385:3-385:38" xsi:type="Not">
               <operand localId="653" locator="385:3-385:38" xsi:type="IsNull">
                  <operand localId="652" locator="385:3-385:26" name="Date of Latest Td Dose" xsi:type="ExpressionRef"/>
               </operand>
            </operand>
            <operand localId="655" locator="386:9-386:72" xsi:type="Less">
               <signature localId="667" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <signature localId="668" name="t:Integer" xsi:type="NamedTypeSpecifier"/>
               <operand localId="656" locator="386:9-386:68" precision="Week" xsi:type="DurationBetween">
                  <signature localId="664" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <signature localId="665" name="t:DateTime" xsi:type="NamedTypeSpecifier"/>
                  <operand localId="662" xsi:type="ToDateTime">
                     <signature localId="663" name="t:Date" xsi:type="NamedTypeSpecifier"/>
                     <operand localId="657" locator="386:35-386:58" name="Date of Latest Td Dose" xsi:type="ExpressionRef"/>
                  </operand>
                  <operand localId="660" locator="386:64-386:68" xsi:type="Now"/>
               </operand>
               <operand localId="666" locator="386:72" valueType="t:Integer" value="4" xsi:type="Literal"/>
            </operand>
         </expression>
      </def>
      <def localId="671" locator="394:1-395: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="671">
               <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="672">
                  <a:s>not</a:s>
                  <a:s r="673">
                     <a:s>(</a:s>
                     <a:s r="673">
                        <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="672" locator="395:3-395:86" xsi:type="Not">
            <operand localId="673" locator="395:6-395:86" name="The latest tetanus and diphtheria dose was administered less than 4 weeks ago" xsi:type="ExpressionRef"/>
         </expression>
      </def>
   </statements>
</library>
