<?xml version="1.0" encoding="UTF-8"?><library xmlns="urn:hl7-org:elm:r1" xmlns:a="urn:hl7-org:cql-annotations:r1" xmlns:fhir="http://hl7.org/fhir" xmlns:t="urn:hl7-org:elm-types:r1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" localId="0"><annotation signatureLevel="Overloads" translatorOptions="EnableAnnotations,EnableLocators,DisableListDemotion,DisableListPromotion" translatorVersion="4.9.0" xsi:type="a:CqlToElmInfo"/><annotation errorSeverity="warning" errorType="semantic" message="An operand identifier reference is hiding another identifier of the same name." xsi:type="a:CqlToElmError"/><annotation errorSeverity="warning" errorType="semantic" message="An operand identifier reference is hiding another identifier of the same name." xsi:type="a:CqlToElmError"/><annotation errorSeverity="warning" errorType="semantic" message="An operand identifier reference is hiding another identifier of the same name." xsi:type="a:CqlToElmError"/><annotation xsi:type="a:Annotation"><a:s r="498"><a:s>/*
 * Library: IMMZD18SHib3DosesLogic (IMMZ.D18.S.Hib.3 doses schedule)
 * Schedule Table: 3 primary doses without a booster dose (3p) schedule
 */
library IMMZD18SHib3DosesLogic</a:s></a:s></annotation><identifier id="IMMZD18SHib3DosesLogic" 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" localIdentifier="FHIR" locator="7:1-7:26" 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" localIdentifier="FHIRHelpers" locator="8:1-8:35" 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" localIdentifier="WC" locator="10:1-10:27" path="http://smart.who.int/immunizations/WHOCommon"><annotation xsi:type="a:Annotation"><a:s r="210"><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="212" localIdentifier="Common" locator="12:1-12:32" path="http://smart.who.int/immunizations/IMMZCommon"><annotation xsi:type="a:Annotation"><a:s r="212"><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="214" localIdentifier="Concepts" locator="13:1-13:36" path="http://smart.who.int/immunizations/IMMZConcepts"><annotation xsi:type="a:Annotation"><a:s r="214"><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="216" localIdentifier="IE" locator="15:1-15:39" path="http://smart.who.int/immunizations/IMMZEncounterElements"><annotation xsi:type="a:Annotation"><a:s r="216"><a:s>include </a:s><a:s><a:s>IMMZEncounterElements</a:s></a:s><a:s> called IE</a:s></a:s></annotation></def><def localId="218" localIdentifier="Encounter" locator="16:1-16:53" path="http://smart.who.int/immunizations/IMMZD2DTHibEncounterElements"><annotation xsi:type="a:Annotation"><a:s r="218"><a:s>include </a:s><a:s><a:s>IMMZD2DTHibEncounterElements</a:s></a:s><a:s> called Encounter</a:s></a:s></annotation></def></includes><parameters><def accessLevel="Public" localId="220" locator="18:1-18:36" name="Today"><annotation xsi:type="a:Annotation"><a:s r="220"><a:s>parameter Today </a:s><a:s r="224"><a:s>Date</a:s></a:s><a:s> default </a:s><a:s r="223"><a:s>Today()</a:s></a:s></a:s></annotation><default localId="223" locator="18:30-18:36" xsi:type="Today"/><parameterTypeSpecifier localId="224" locator="18:17-18:20" name="t:Date" xsi:type="NamedTypeSpecifier"/></def></parameters><contexts><def localId="229" locator="21:1-21:15" name="Patient"/></contexts><statements><def context="Patient" localId="227" locator="21:1-21:15" name="Patient"><expression localId="228" xsi:type="SingletonFrom"><operand dataType="fhir:Patient" localId="226" locator="21:1-21:15" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/></expression></def><def accessLevel="Public" context="Patient" localId="238" locator="71:1-72:29" name="Haemophilus influenzae type b (Hib) dose 1 Expiration"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Haemophilus influenzae type b (Hib) dose 1 Expiration"/><a:t name="pseudocode" value="&#34;Date of birth&#34; + 6 years"/><a:s r="238"><a:s>/*
@dynamicValue: Haemophilus influenzae type b (Hib) dose 1 Expiration
@pseudocode: "Date of birth" + 6 years
*/
define "Haemophilus influenzae type b (Hib) dose 1 Expiration":
  </a:s><a:s r="239"><a:s r="241"><a:s r="240"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="241"><a:s>birthDate</a:s></a:s></a:s><a:s> + </a:s><a:s r="242"><a:s>6 years</a:s></a:s></a:s></a:s></annotation><expression localId="239" locator="72:3-72:29" xsi:type="Add"><signature localId="244" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="245" name="t:Quantity" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="243" name="ToDate" xsi:type="FunctionRef"><operand localId="241" locator="72:3-72:19" path="birthDate" xsi:type="Property"><source localId="240" locator="72:3-72:9" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="242" locator="72:23-72:29" unit="years" value="6" xsi:type="Quantity"/></expression></def><def accessLevel="Public" context="Patient" localId="232" locator="31:1-33:80" name="Haemophilus influenzae type b (Hib) dose 1"><annotation xsi:type="a:Annotation"><a:t name="output" value="Haemophilus influenzae type b (Hib) dose 1"/><a:t name="description" value="Provision of the Hib dose 1"/><a:t name="trigger" value="Child's birth"/><a:t name="pseudo"/><a:t name="triggerDate" value="&#34;Date of birth&#34;"/><a:s r="232"><a:s>/*
@output: Haemophilus influenzae type b (Hib) dose 1
@description: Provision of the Hib dose 1
@trigger: Child's birth
@pseudo: 
@triggerDate: "Date of birth"
*/
define "Haemophilus influenzae type b (Hib) dose 1":
  </a:s><a:s r="233"><a:s r="235"><a:s r="234"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="235"><a:s>"No Hib primary series doses were administered"</a:s></a:s></a:s><a:s>
  and </a:s><a:s r="248"><a:s r="246"><a:s>"Haemophilus influenzae type b (Hib) dose 1 Expiration"</a:s></a:s><a:s r="248"> after day of </a:s><a:s r="247"><a:s>Today</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="233" locator="32:3-33:80" xsi:type="And"><operand libraryName="Encounter" localId="235" locator="32:3-32:59" name="No Hib primary series doses were administered" xsi:type="ExpressionRef"/><operand localId="248" locator="33:7-33:80" precision="Day" xsi:type="After"><signature localId="249" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="250" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="246" locator="33:7-33:61" name="Haemophilus influenzae type b (Hib) dose 1 Expiration" xsi:type="ExpressionRef"/><operand localId="247" locator="33:76-33:80" name="Today" xsi:type="ParameterRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="269" locator="54:1-56:11" name="Haemophilus influenzae type b (Hib) dose 1 Due Date"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Haemophilus influenzae type b (Hib) dose 1 Due Date"/><a:t name="pseudocode" value="&#34;Date of birth&#34; + 6 weeks"/><a:s r="269"><a:s>/*
@dynamicValue: Haemophilus influenzae type b (Hib) dose 1 Due Date
@pseudocode: "Date of birth" + 6 weeks
*/
define "Haemophilus influenzae type b (Hib) dose 1 Due Date":
  </a:s><a:s r="270"><a:s>if </a:s><a:s r="271"><a:s>"Haemophilus influenzae type b (Hib) dose 1"</a:s></a:s><a:s> then </a:s><a:s r="272"><a:s r="274"><a:s r="273"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="274"><a:s>birthDate</a:s></a:s></a:s><a:s> + </a:s><a:s r="275"><a:s>6 weeks</a:s></a:s></a:s><a:s r="279">
  else null</a:s></a:s></a:s></annotation><expression localId="270" locator="55:3-56:11" xsi:type="If"><condition localId="271" locator="55:6-55:49" name="Haemophilus influenzae type b (Hib) dose 1" xsi:type="ExpressionRef"/><then localId="272" locator="55:56-55:82" xsi:type="Add"><signature localId="277" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="278" name="t:Quantity" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="276" name="ToDate" xsi:type="FunctionRef"><operand localId="274" locator="55:56-55:72" path="birthDate" xsi:type="Property"><source localId="273" locator="55:56-55:62" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="275" locator="55:76-55:82" unit="weeks" value="6" xsi:type="Quantity"/></then><else asType="t:Date" localId="280" xsi:type="As"><operand localId="279" locator="56:8-56:11" xsi:type="Null"/></else></expression></def><def accessLevel="Public" context="Patient" localId="253" locator="41:1-47:9" name="Haemophilus influenzae type b (Hib) dose 1 Create"><annotation xsi:type="a:Annotation"><a:t name="output" value="Haemophilus influenzae type b (Hib) dose 1 Create"/><a:t name="create" value="Immunization should start from 6 weeks of age, or as early as possible thereafter.&#xA;Hib-containing vaccine is not required for healthy children aged over 5 years."/><a:s r="253"><a:s>/*
@output: Haemophilus influenzae type b (Hib) dose 1 Create
@create: Immunization should start from 6 weeks of age, or as early as possible thereafter.
Hib-containing vaccine is not required for healthy children aged over 5 years.
*/
define "Haemophilus influenzae type b (Hib) dose 1 Create":
  </a:s><a:s r="254"><a:s>if </a:s><a:s r="255"><a:s>"Haemophilus influenzae type b (Hib) dose 1"</a:s></a:s><a:s>
  then </a:s><a:s r="303"><a:s r="294"><a:s r="289"><a:s r="266"><a:s r="260"><a:s>'Immunization should start from 6 weeks of age, or as early as possible thereafter.
Hib-containing vaccine is not required for healthy children aged over 5 years.'</a:s></a:s><a:s> + </a:s><a:s r="262"><a:s>'
Due Date: '</a:s></a:s></a:s><a:s> + </a:s><a:s r="285"><a:s>ToString(</a:s><a:s r="281"><a:s>"Haemophilus influenzae type b (Hib) dose 1 Due Date"</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s> + </a:s><a:s r="290"><a:s>'
Expiration: '</a:s></a:s></a:s><a:s> + </a:s><a:s r="299"><a:s>ToString(</a:s><a:s r="295"><a:s>"Haemophilus influenzae type b (Hib) dose 1 Expiration"</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s>
  else </a:s><a:s r="304"><a:s>''</a:s></a:s></a:s></a:s></annotation><expression localId="254" locator="42:3-47:9" xsi:type="If"><condition localId="255" locator="42:6-42:49" name="Haemophilus influenzae type b (Hib) dose 1" xsi:type="ExpressionRef"/><then localId="303" locator="43:8-46:81" xsi:type="Concatenate"><operand localId="294" locator="43:8-45:95" xsi:type="Concatenate"><operand localId="289" locator="43:8-45:77" xsi:type="Concatenate"><operand localId="266" locator="43:8-44:95" xsi:type="Concatenate"><operand localId="260" locator="43:8-43:170" value="Immunization should start from 6 weeks of age, or as early as possible thereafter.&#xA;Hib-containing vaccine is not required for healthy children aged over 5 years." valueType="t:String" xsi:type="Literal"/><operand localId="262" locator="44:83-44:95" value="&#xA;Due Date: " valueType="t:String" xsi:type="Literal"/></operand><operand localId="285" locator="45:15-45:77" xsi:type="ToString"><signature localId="286" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="281" locator="45:24-45:76" name="Haemophilus influenzae type b (Hib) dose 1 Due Date" xsi:type="ExpressionRef"/></operand></operand><operand localId="290" locator="45:81-45:95" value="&#xA;Expiration: " valueType="t:String" xsi:type="Literal"/></operand><operand localId="299" locator="46:17-46:81" xsi:type="ToString"><signature localId="300" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="295" locator="46:26-46:80" name="Haemophilus influenzae type b (Hib) dose 1 Expiration" xsi:type="ExpressionRef"/></operand></then><else localId="304" locator="47:8-47:9" value="" valueType="t:String" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="308" locator="63:1-64:6" name="Haemophilus influenzae type b (Hib) dose 1 Overdue"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Haemophilus influenzae type b (Hib) dose 1 Overdue"/><a:t name="pseudocode" value="To be determined by Member States"/><a:s r="308"><a:s r="309">/*
@dynamicValue: Haemophilus influenzae type b (Hib) dose 1 Overdue
@pseudocode: To be determined by Member States
*/
define "Haemophilus influenzae type b (Hib) dose 1 Overdue":
  null</a:s></a:s></annotation><expression localId="309" locator="64:3-64:6" xsi:type="Null"/></def><def accessLevel="Public" context="Patient" localId="312" locator="81:1-82:58" name="First Hib dose from the primary series was administered"><annotation xsi:type="a:Annotation"><a:t name="complete" value="First Hib dose from the primary series was administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Hib-containing vaccines&#34; and &#34;Type of dose&#34;= &#34;Primary series&#34;) = 1"/><a:s r="312"><a:s>/*
@complete: First Hib dose from the primary series was administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose"= "Primary series") = 1
The primary series has been completed for delayed start
"Completed the primary vaccination series" = TRUE (where "Vaccine type" = "Hib-containing vaccines")
*/
define "First Hib dose from the primary series was administered":
  </a:s><a:s r="314"><a:s r="313"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="314"><a:s>"One Hib primary series dose was administered"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="314" locator="82:3-82:58" name="One Hib primary series dose was administered" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="330" locator="142:1-143:60" name="Second Hib dose from the primary series was administered"><annotation xsi:type="a:Annotation"><a:t name="complete" value="Second Hib dose from the primary series was administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Hib-containing vaccines&#34; and &#34;Type of dose&#34;= &#34;Primary series&#34;) = 2"/><a:s r="330"><a:s>/*
@complete: Second Hib dose from the primary series was administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose"= "Primary series") = 2
*/
define "Second Hib dose from the primary series was administered":
  </a:s><a:s r="332"><a:s r="331"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="332"><a:s>"Two Hib primary series doses were administered"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="332" locator="143:3-143:60" name="Two Hib primary series doses were administered" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="336" locator="134:1-135:29" name="Hib dose 2 Expiration"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Hib dose 2 Expiration"/><a:t name="pseudocode" value="&#34;Date of birth&#34; + 6 years"/><a:s r="336"><a:s>/*
@dynamicValue: Hib dose 2 Expiration
@pseudocode: "Date of birth" + 6 years
*/
define "Hib dose 2 Expiration":
  </a:s><a:s r="337"><a:s r="339"><a:s r="338"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="339"><a:s>birthDate</a:s></a:s></a:s><a:s> + </a:s><a:s r="340"><a:s>6 years</a:s></a:s></a:s></a:s></annotation><expression localId="337" locator="135:3-135:29" xsi:type="Add"><signature localId="342" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="343" name="t:Quantity" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="341" name="ToDate" xsi:type="FunctionRef"><operand localId="339" locator="135:3-135:19" path="birthDate" xsi:type="Property"><source localId="338" locator="135:3-135:9" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="340" locator="135:23-135:29" unit="years" value="6" xsi:type="Quantity"/></expression></def><def accessLevel="Public" context="Patient" localId="317" locator="93:1-98:48" name="Hib dose 2"><annotation xsi:type="a:Annotation"><a:t name="output" value="Hib dose 2"/><a:t name="description" value="Provision of the Hib dose 2"/><a:t name="trigger" value="First Hib dose from the primary series was administered to the client within 1 year of age. Client's age is less than 5 years"/><a:t name="pseudo" value="&#34;Vaccine type&#34; = &#34;Hib-containing vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 1 AND &#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34;= &#34;Hib-containing vaccines&#34; and &#34;Dose number&#34; = 1) − &#34;Date of birth&#34; &lt; 1 year AND Today's date − &#34;Date of birth&#34; ≤ 5 years"/><a:t name="triggerDate" value="&#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34; = &#34;Hib-containing vaccines&#34;)"/><a:s r="317"><a:s>/*
@output: Hib dose 2
@description: Provision of the Hib dose 2
@trigger: First Hib dose from the primary series was administered to the client within 1 year of age. Client's age is less than 5 years
@pseudo: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose" = "Primary series") = 1 AND "Date and time of vaccination" (where "Vaccine type"= "Hib-containing vaccines" and "Dose number" = 1) − "Date of birth" &lt; 1 year AND Today's date − "Date of birth" ≤ 5 years
@triggerDate: "Date and time of vaccination" (where "Vaccine type" = "Hib-containing vaccines")
*/
define "Hib dose 2":
  </a:s><a:s r="318"><a:s r="319"><a:s r="320"><a:s r="321"><a:s r="322"><a:s>"First Hib dose from the primary series was administered"</a:s></a:s><a:s>
  and </a:s><a:s r="324"><a:s r="323"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="324"><a:s>"Client's age was less than 1 year when first Hib dose was administered"</a:s></a:s></a:s></a:s><a:s>
  and </a:s><a:s r="326"><a:s r="325"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="326"><a:s>"Client's age is between 6 weeks and 5 years"</a:s></a:s></a:s></a:s><a:s>
  and </a:s><a:s r="327"><a:s>not </a:s><a:s r="333"><a:s>"Second Hib dose from the primary series was administered"</a:s></a:s></a:s></a:s><a:s>
  and </a:s><a:s r="346"><a:s r="344"><a:s>"Hib dose 2 Expiration"</a:s></a:s><a:s r="346"> after day of </a:s><a:s r="345"><a:s>Today</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="318" locator="94:3-98:48" xsi:type="And"><operand localId="319" locator="94:3-97:68" xsi:type="And"><operand localId="320" locator="94:3-96:61" xsi:type="And"><operand localId="321" locator="94:3-95:88" xsi:type="And"><operand localId="322" locator="94:3-94:59" name="First Hib dose from the primary series was administered" xsi:type="ExpressionRef"/><operand libraryName="Encounter" localId="324" locator="95:7-95:88" name="Client's age was less than 1 year when first Hib dose was administered" xsi:type="ExpressionRef"/></operand><operand libraryName="Encounter" localId="326" locator="96:7-96:61" name="Client's age is between 6 weeks and 5 years" xsi:type="ExpressionRef"/></operand><operand localId="327" locator="97:7-97:68" xsi:type="Not"><operand localId="333" locator="97:11-97:68" name="Second Hib dose from the primary series was administered" xsi:type="ExpressionRef"/></operand></operand><operand localId="346" locator="98:7-98:48" precision="Day" xsi:type="After"><signature localId="347" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="348" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="344" locator="98:7-98:29" name="Hib dose 2 Expiration" xsi:type="ExpressionRef"/><operand localId="345" locator="98:44-98:48" name="Today" xsi:type="ParameterRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="367" locator="117:1-119:11" name="Hib dose 2 Due Date"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Hib dose 2 Due Date"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34; = &#34;Hib-containing vaccines&#34;) + 4 weeks"/><a:s r="367"><a:s>/*
@dynamicValue: Hib dose 2 Due Date
@pseudocode: "Date and time of vaccination" (where "Vaccine type" = "Hib-containing vaccines") + 4 weeks
*/
define "Hib dose 2 Due Date":
  </a:s><a:s r="368"><a:s>if </a:s><a:s r="369"><a:s>"Hib dose 2"</a:s></a:s><a:s> then </a:s><a:s r="370"><a:s r="372"><a:s r="371"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="372"><a:s>"Date of Latest Hib Dose"</a:s></a:s></a:s><a:s> + </a:s><a:s r="373"><a:s>4 weeks</a:s></a:s></a:s><a:s r="376">
  else null</a:s></a:s></a:s></annotation><expression localId="368" locator="118:3-119:11" xsi:type="If"><condition localId="369" locator="118:6-118:17" name="Hib dose 2" xsi:type="ExpressionRef"/><then localId="370" locator="118:24-118:68" xsi:type="Add"><signature localId="374" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="375" name="t:Quantity" xsi:type="NamedTypeSpecifier"/><operand libraryName="Encounter" localId="372" locator="118:24-118:58" name="Date of Latest Hib Dose" xsi:type="ExpressionRef"/><operand localId="373" locator="118:62-118:68" unit="weeks" value="4" xsi:type="Quantity"/></then><else asType="t:Date" localId="377" xsi:type="As"><operand localId="376" locator="119:8-119:11" xsi:type="Null"/></else></expression></def><def accessLevel="Public" context="Patient" localId="351" locator="105:1-110:9" name="Hib dose 2 Create"><annotation xsi:type="a:Annotation"><a:t name="output" value="Hib dose 2 Create"/><a:t name="create" value="Hib dose 2 should be provided if the client was given the previous dose more than 4 weeks ago and the first Hib dose was received by the time the child turned 1 year old"/><a:s r="351"><a:s>/*
@output: Hib dose 2 Create
@create: Hib dose 2 should be provided if the client was given the previous dose more than 4 weeks ago and the first Hib dose was received by the time the child turned 1 year old
*/
define "Hib dose 2 Create":
  </a:s><a:s r="352"><a:s>if </a:s><a:s r="353"><a:s>"Hib dose 2"</a:s></a:s><a:s>
  then </a:s><a:s r="400"><a:s r="391"><a:s r="386"><a:s r="364"><a:s r="358"><a:s>'Hib dose 2 should be provided if the client was given the previous dose more than 4 weeks ago and the first Hib dose was received by the time the child turned 1 year old'</a:s></a:s><a:s> + </a:s><a:s r="360"><a:s>'
Due Date: '</a:s></a:s></a:s><a:s> + </a:s><a:s r="382"><a:s>ToString(</a:s><a:s r="378"><a:s>"Hib dose 2 Due Date"</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s> + </a:s><a:s r="387"><a:s>'
Expiration: '</a:s></a:s></a:s><a:s> + </a:s><a:s r="396"><a:s>ToString(</a:s><a:s r="392"><a:s>"Hib dose 2 Expiration"</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s>
  else </a:s><a:s r="401"><a:s>''</a:s></a:s></a:s></a:s></annotation><expression localId="352" locator="106:3-110:9" xsi:type="If"><condition localId="353" locator="106:6-106:17" name="Hib dose 2" xsi:type="ExpressionRef"/><then localId="400" locator="107:8-109:49" xsi:type="Concatenate"><operand localId="391" locator="107:8-108:63" xsi:type="Concatenate"><operand localId="386" locator="107:8-108:45" xsi:type="Concatenate"><operand localId="364" locator="107:8-107:194" xsi:type="Concatenate"><operand localId="358" locator="107:8-107:178" value="Hib dose 2 should be provided if the client was given the previous dose more than 4 weeks ago and the first Hib dose was received by the time the child turned 1 year old" valueType="t:String" xsi:type="Literal"/><operand localId="360" locator="107:182-107:194" value="&#xA;Due Date: " valueType="t:String" xsi:type="Literal"/></operand><operand localId="382" locator="108:15-108:45" xsi:type="ToString"><signature localId="383" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="378" locator="108:24-108:44" name="Hib dose 2 Due Date" xsi:type="ExpressionRef"/></operand></operand><operand localId="387" locator="108:49-108:63" value="&#xA;Expiration: " valueType="t:String" xsi:type="Literal"/></operand><operand localId="396" locator="109:17-109:49" xsi:type="ToString"><signature localId="397" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="392" locator="109:26-109:48" name="Hib dose 2 Expiration" xsi:type="ExpressionRef"/></operand></then><else localId="401" locator="110:8-110:9" value="" valueType="t:String" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="405" locator="126:1-127:6" name="Hib dose 2 Overdue"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Hib dose 2 Overdue"/><a:t name="pseudocode" value="To be determined by Member States"/><a:s r="405"><a:s r="406">/*
@dynamicValue: Hib dose 2 Overdue
@pseudocode: To be determined by Member States
*/
define "Hib dose 2 Overdue":
  null</a:s></a:s></annotation><expression localId="406" locator="127:3-127:6" xsi:type="Null"/></def><def accessLevel="Public" context="Patient" localId="419" locator="202:1-203:62" name="Third Hib dose from the primary series was administered. The primary series has been completed"><annotation xsi:type="a:Annotation"><a:t name="complete" value="Third Hib dose from the primary series was administered. The primary series has been completed"/><a:t name="pseudocode" value="&#34;Completed the primary vaccination series&#34; = TRUE (where &#34;Vaccine type&#34; = &#34;Hib-containing vaccines&#34;)"/><a:s r="419"><a:s>/*
@complete: Third Hib dose from the primary series was administered. The primary series has been completed
@pseudocode: "Completed the primary vaccination series" = TRUE (where "Vaccine type" = "Hib-containing vaccines")
*/
define "Third Hib dose from the primary series was administered. The primary series has been completed":
  </a:s><a:s r="421"><a:s r="420"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="421"><a:s>"Three Hib primary series doses were administered"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="421" locator="203:3-203:62" name="Three Hib primary series doses were administered" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="425" locator="194:1-195:29" name="Hib dose 3 Expiration"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Hib dose 3 Expiration"/><a:t name="pseudocode" value="&#34;Date of birth&#34; + 6 years"/><a:s r="425"><a:s>/*
@dynamicValue: Hib dose 3 Expiration
@pseudocode: "Date of birth" + 6 years
*/
define "Hib dose 3 Expiration":
  </a:s><a:s r="426"><a:s r="428"><a:s r="427"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="428"><a:s>birthDate</a:s></a:s></a:s><a:s> + </a:s><a:s r="429"><a:s>6 years</a:s></a:s></a:s></a:s></annotation><expression localId="426" locator="195:3-195:29" xsi:type="Add"><signature localId="431" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="432" name="t:Quantity" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="430" name="ToDate" xsi:type="FunctionRef"><operand localId="428" locator="195:3-195:19" path="birthDate" xsi:type="Property"><source localId="427" locator="195:3-195:9" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="429" locator="195:23-195:29" unit="years" value="6" xsi:type="Quantity"/></expression></def><def accessLevel="Public" context="Patient" localId="409" locator="154:1-158:48" name="Hib dose 3"><annotation xsi:type="a:Annotation"><a:t name="output" value="Hib dose 3"/><a:t name="description" value="Provision of the Hib dose 3"/><a:t name="trigger" value="Second Hib dose from the primary series was administered. Client's age is less than 5 years"/><a:t name="pseudo" value="&#34;Vaccine type&#34; = &#34;Hib-containing vaccines&#34; and &#34;Type of dose&#34;= &#34;Primary series&#34;) = 2 AND Today's date − &#34;Date of birth&#34; ≤ 5 years"/><a:t name="triggerDate" value="&#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34; = &#34;Hib-containing vaccines&#34;)"/><a:s r="409"><a:s>/*
@output: Hib dose 3
@description: Provision of the Hib dose 3
@trigger: Second Hib dose from the primary series was administered. Client's age is less than 5 years
@pseudo: Count of vaccines administered (where "Vaccine type" = "Hib-containing vaccines" and "Type of dose"= "Primary series") = 2 AND Today's date − "Date of birth" ≤ 5 years
@triggerDate: Latest "Date and time of vaccination" (where "Vaccine type" = "Hib-containing vaccines")
*/
define "Hib dose 3":
  </a:s><a:s r="410"><a:s r="411"><a:s r="412"><a:s r="413"><a:s>"Second Hib dose from the primary series was administered"</a:s></a:s><a:s>
  and </a:s><a:s r="415"><a:s r="414"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="415"><a:s>"Client's age is between 6 weeks and 5 years"</a:s></a:s></a:s></a:s><a:s>
  and </a:s><a:s r="416"><a:s>not </a:s><a:s r="422"><a:s>"Third Hib dose from the primary series was administered. The primary series has been completed"</a:s></a:s></a:s></a:s><a:s>
  and </a:s><a:s r="435"><a:s r="433"><a:s>"Hib dose 3 Expiration"</a:s></a:s><a:s r="435"> after day of </a:s><a:s r="434"><a:s>Today</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="410" locator="155:3-158:48" xsi:type="And"><operand localId="411" locator="155:3-157:106" xsi:type="And"><operand localId="412" locator="155:3-156:61" xsi:type="And"><operand localId="413" locator="155:3-155:60" name="Second Hib dose from the primary series was administered" xsi:type="ExpressionRef"/><operand libraryName="Encounter" localId="415" locator="156:7-156:61" name="Client's age is between 6 weeks and 5 years" xsi:type="ExpressionRef"/></operand><operand localId="416" locator="157:7-157:106" xsi:type="Not"><operand localId="422" locator="157:11-157:106" name="Third Hib dose from the primary series was administered. The primary series has been completed" xsi:type="ExpressionRef"/></operand></operand><operand localId="435" locator="158:7-158:48" precision="Day" xsi:type="After"><signature localId="436" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="437" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="433" locator="158:7-158:29" name="Hib dose 3 Expiration" xsi:type="ExpressionRef"/><operand localId="434" locator="158:44-158:48" name="Today" xsi:type="ParameterRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="456" locator="177:1-179:11" name="Hib dose 3 Due Date"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Hib dose 3 Due Date"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34; = &#34;Hib-containing vaccines&#34;) + 4 weeks"/><a:s r="456"><a:s>/*
@dynamicValue: Hib dose 3 Due Date
@pseudocode: Latest "Date and time of vaccination" (where "Vaccine type" = "Hib-containing vaccines") + 4 weeks
*/
define "Hib dose 3 Due Date":
  </a:s><a:s r="457"><a:s>if </a:s><a:s r="458"><a:s>"Hib dose 3"</a:s></a:s><a:s> then </a:s><a:s r="459"><a:s r="461"><a:s r="460"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="461"><a:s>"Date of Latest Hib Dose"</a:s></a:s></a:s><a:s> + </a:s><a:s r="462"><a:s>4 weeks</a:s></a:s></a:s><a:s r="465">
  else null</a:s></a:s></a:s></annotation><expression localId="457" locator="178:3-179:11" xsi:type="If"><condition localId="458" locator="178:6-178:17" name="Hib dose 3" xsi:type="ExpressionRef"/><then localId="459" locator="178:24-178:68" xsi:type="Add"><signature localId="463" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="464" name="t:Quantity" xsi:type="NamedTypeSpecifier"/><operand libraryName="Encounter" localId="461" locator="178:24-178:58" name="Date of Latest Hib Dose" xsi:type="ExpressionRef"/><operand localId="462" locator="178:62-178:68" unit="weeks" value="4" xsi:type="Quantity"/></then><else asType="t:Date" localId="466" xsi:type="As"><operand localId="465" locator="179:8-179:11" xsi:type="Null"/></else></expression></def><def accessLevel="Public" context="Patient" localId="440" locator="165:1-170:9" name="Hib dose 3 Create"><annotation xsi:type="a:Annotation"><a:t name="output" value="Hib dose 3 Create"/><a:t name="create" value="Hib dose 3 should be provided if the client was given the previous dose more than 4 weeks before and the first Hib dose was received by the time the child turned 1 year old"/><a:s r="440"><a:s>/*
@output: Hib dose 3 Create
@create: Hib dose 3 should be provided if the client was given the previous dose more than 4 weeks before and the first Hib dose was received by the time the child turned 1 year old
*/
define "Hib dose 3 Create":
  </a:s><a:s r="441"><a:s>if </a:s><a:s r="442"><a:s>"Hib dose 3"</a:s></a:s><a:s>
  then </a:s><a:s r="489"><a:s r="480"><a:s r="475"><a:s r="453"><a:s r="447"><a:s>'Hib dose 3 should be provided if the client was given the previous dose more than 4 weeks before and the first Hib dose was received by the time the child turned 1 year old'</a:s></a:s><a:s> + </a:s><a:s r="449"><a:s>'
Due Date: '</a:s></a:s></a:s><a:s> + </a:s><a:s r="471"><a:s>ToString(</a:s><a:s r="467"><a:s>"Hib dose 3 Due Date"</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s> + </a:s><a:s r="476"><a:s>'
Expiration: '</a:s></a:s></a:s><a:s> + </a:s><a:s r="485"><a:s>ToString(</a:s><a:s r="481"><a:s>"Hib dose 3 Expiration"</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s>
  else </a:s><a:s r="490"><a:s>''</a:s></a:s></a:s></a:s></annotation><expression localId="441" locator="166:3-170:9" xsi:type="If"><condition localId="442" locator="166:6-166:17" name="Hib dose 3" xsi:type="ExpressionRef"/><then localId="489" locator="167:8-169:49" xsi:type="Concatenate"><operand localId="480" locator="167:8-168:63" xsi:type="Concatenate"><operand localId="475" locator="167:8-168:45" xsi:type="Concatenate"><operand localId="453" locator="167:8-167:197" xsi:type="Concatenate"><operand localId="447" locator="167:8-167:181" value="Hib dose 3 should be provided if the client was given the previous dose more than 4 weeks before and the first Hib dose was received by the time the child turned 1 year old" valueType="t:String" xsi:type="Literal"/><operand localId="449" locator="167:185-167:197" value="&#xA;Due Date: " valueType="t:String" xsi:type="Literal"/></operand><operand localId="471" locator="168:15-168:45" xsi:type="ToString"><signature localId="472" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="467" locator="168:24-168:44" name="Hib dose 3 Due Date" xsi:type="ExpressionRef"/></operand></operand><operand localId="476" locator="168:49-168:63" value="&#xA;Expiration: " valueType="t:String" xsi:type="Literal"/></operand><operand localId="485" locator="169:17-169:49" xsi:type="ToString"><signature localId="486" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="481" locator="169:26-169:48" name="Hib dose 3 Expiration" xsi:type="ExpressionRef"/></operand></then><else localId="490" locator="170:8-170:9" value="" valueType="t:String" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="494" locator="186:1-187:6" name="Hib dose 3 Overdue"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Hib dose 3 Overdue"/><a:t name="pseudocode" value="To be determined by Member States"/><a:s r="494"><a:s r="495">/*
@dynamicValue: Hib dose 3 Overdue
@pseudocode: To be determined by Member States
*/
define "Hib dose 3 Overdue":
  null</a:s></a:s></annotation><expression localId="495" locator="187:3-187:6" xsi:type="Null"/></def><def accessLevel="Public" context="Patient" localId="498" locator="210:1-222:5" name="Test Validation"><annotation xsi:type="a:Annotation"><a:t name="test" value="Test expected results based on example patients"/><a:s r="498"><a:s>/*
@test: Test expected results based on example patients
*/
define "Test Validation":
  </a:s><a:s r="499"><a:s>case
    </a:s><a:s r="500"><a:s>when </a:s><a:s r="501"><a:s r="503"><a:s r="502"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="503"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="504"><a:s>'Hib08.1'</a:s></a:s></a:s><a:s> then </a:s><a:s r="510"><a:s>"Haemophilus influenzae type b (Hib) dose 1"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="511"><a:s>when </a:s><a:s r="512"><a:s r="514"><a:s r="513"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="514"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="515"><a:s>'Hib09.2'</a:s></a:s></a:s><a:s> then </a:s><a:s r="521"><a:s>"Haemophilus influenzae type b (Hib) dose 1"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="522"><a:s>when </a:s><a:s r="523"><a:s r="525"><a:s r="524"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="525"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="526"><a:s>'Hib10.4'</a:s></a:s></a:s><a:s> then </a:s><a:s r="532"><a:s>"Hib dose 2"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="533"><a:s>when </a:s><a:s r="534"><a:s r="536"><a:s r="535"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="536"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="537"><a:s>'Hib11.4'</a:s></a:s></a:s><a:s> then </a:s><a:s r="543"><a:s>"Hib dose 2"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="544"><a:s>when </a:s><a:s r="545"><a:s r="547"><a:s r="546"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="547"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="548"><a:s>'Hib12.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="554"><a:s r="555"><a:s>"First Hib dose from the primary series was administered"</a:s></a:s><a:s> and </a:s><a:s r="556"><a:s>not </a:s><a:s r="557"><a:s>"Hib dose 2"</a:s></a:s></a:s></a:s></a:s><a:s>
    </a:s><a:s r="558"><a:s>when </a:s><a:s r="559"><a:s r="561"><a:s r="560"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="561"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="562"><a:s>'Hib13.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="568"><a:s>"Hib dose 3"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="569"><a:s>when </a:s><a:s r="570"><a:s r="572"><a:s r="571"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="572"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="573"><a:s>'Hib14.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="579"><a:s>"Hib dose 3"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="580"><a:s>when </a:s><a:s r="581"><a:s r="583"><a:s r="582"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="583"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="584"><a:s>'Hib15.1'</a:s></a:s></a:s><a:s> then </a:s><a:s r="590"><a:s r="591"><a:s>not </a:s><a:s r="592"><a:s>"Hib dose 3"</a:s></a:s></a:s><a:s> and </a:s><a:s r="593"><a:s>"Third Hib dose from the primary series was administered. The primary series has been completed"</a:s></a:s></a:s></a:s><a:s>
    </a:s><a:s r="594"><a:s>when </a:s><a:s r="595"><a:s r="597"><a:s r="596"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="597"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="598"><a:s>'Hib16.1'</a:s></a:s></a:s><a:s> then </a:s><a:s r="604"><a:s>not </a:s><a:s r="605"><a:s>"Haemophilus influenzae type b (Hib) dose 1"</a:s></a:s></a:s></a:s><a:s>
    else </a:s><a:s r="606"><a:s>'No test case set'</a:s></a:s><a:s>
  end</a:s></a:s></a:s></annotation><expression localId="499" locator="211:3-222:5" xsi:type="Case"><caseItem localId="500" locator="212:5-212:81"><when localId="501" locator="212:10-212:31" xsi:type="Equal"><signature localId="508" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="509" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="506" name="ToString" xsi:type="FunctionRef"><signature localId="507" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="503" locator="212:10-212:19" path="id" xsi:type="Property"><source localId="502" locator="212:10-212:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="504" locator="212:23-212:31" value="Hib08.1" valueType="t:String" xsi:type="Literal"/></when><then localId="608" xsi:type="As"><operand localId="510" locator="212:38-212:81" name="Haemophilus influenzae type b (Hib) dose 1" xsi:type="ExpressionRef"/><asTypeSpecifier localId="609" xsi:type="ChoiceTypeSpecifier"><choice localId="610" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="611" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="511" locator="213:5-213:81"><when localId="512" locator="213:10-213:31" xsi:type="Equal"><signature localId="519" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="520" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="517" name="ToString" xsi:type="FunctionRef"><signature localId="518" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="514" locator="213:10-213:19" path="id" xsi:type="Property"><source localId="513" locator="213:10-213:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="515" locator="213:23-213:31" value="Hib09.2" valueType="t:String" xsi:type="Literal"/></when><then localId="612" xsi:type="As"><operand localId="521" locator="213:38-213:81" name="Haemophilus influenzae type b (Hib) dose 1" xsi:type="ExpressionRef"/><asTypeSpecifier localId="613" xsi:type="ChoiceTypeSpecifier"><choice localId="614" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="615" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="522" locator="214:5-214:49"><when localId="523" locator="214:10-214:31" xsi:type="Equal"><signature localId="530" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="531" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="528" name="ToString" xsi:type="FunctionRef"><signature localId="529" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="525" locator="214:10-214:19" path="id" xsi:type="Property"><source localId="524" locator="214:10-214:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="526" locator="214:23-214:31" value="Hib10.4" valueType="t:String" xsi:type="Literal"/></when><then localId="616" xsi:type="As"><operand localId="532" locator="214:38-214:49" name="Hib dose 2" xsi:type="ExpressionRef"/><asTypeSpecifier localId="617" xsi:type="ChoiceTypeSpecifier"><choice localId="618" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="619" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="533" locator="215:5-215:49"><when localId="534" locator="215:10-215:31" xsi:type="Equal"><signature localId="541" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="542" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="539" name="ToString" xsi:type="FunctionRef"><signature localId="540" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="536" locator="215:10-215:19" path="id" xsi:type="Property"><source localId="535" locator="215:10-215:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="537" locator="215:23-215:31" value="Hib11.4" valueType="t:String" xsi:type="Literal"/></when><then localId="620" xsi:type="As"><operand localId="543" locator="215:38-215:49" name="Hib dose 2" xsi:type="ExpressionRef"/><asTypeSpecifier localId="621" xsi:type="ChoiceTypeSpecifier"><choice localId="622" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="623" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="544" locator="216:5-216:115"><when localId="545" locator="216:10-216:31" xsi:type="Equal"><signature localId="552" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="553" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="550" name="ToString" xsi:type="FunctionRef"><signature localId="551" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="547" locator="216:10-216:19" path="id" xsi:type="Property"><source localId="546" locator="216:10-216:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="548" locator="216:23-216:31" value="Hib12.3" valueType="t:String" xsi:type="Literal"/></when><then localId="624" xsi:type="As"><operand localId="554" locator="216:38-216:115" xsi:type="And"><operand localId="555" locator="216:38-216:94" name="First Hib dose from the primary series was administered" xsi:type="ExpressionRef"/><operand localId="556" locator="216:100-216:115" xsi:type="Not"><operand localId="557" locator="216:104-216:115" name="Hib dose 2" xsi:type="ExpressionRef"/></operand></operand><asTypeSpecifier localId="625" xsi:type="ChoiceTypeSpecifier"><choice localId="626" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="627" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="558" locator="217:5-217:49"><when localId="559" locator="217:10-217:31" xsi:type="Equal"><signature localId="566" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="567" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="564" name="ToString" xsi:type="FunctionRef"><signature localId="565" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="561" locator="217:10-217:19" path="id" xsi:type="Property"><source localId="560" locator="217:10-217:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="562" locator="217:23-217:31" value="Hib13.3" valueType="t:String" xsi:type="Literal"/></when><then localId="628" xsi:type="As"><operand localId="568" locator="217:38-217:49" name="Hib dose 3" xsi:type="ExpressionRef"/><asTypeSpecifier localId="629" xsi:type="ChoiceTypeSpecifier"><choice localId="630" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="631" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="569" locator="218:5-218:49"><when localId="570" locator="218:10-218:31" xsi:type="Equal"><signature localId="577" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="578" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="575" name="ToString" xsi:type="FunctionRef"><signature localId="576" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="572" locator="218:10-218:19" path="id" xsi:type="Property"><source localId="571" locator="218:10-218:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="573" locator="218:23-218:31" value="Hib14.3" valueType="t:String" xsi:type="Literal"/></when><then localId="632" xsi:type="As"><operand localId="579" locator="218:38-218:49" name="Hib dose 3" xsi:type="ExpressionRef"/><asTypeSpecifier localId="633" xsi:type="ChoiceTypeSpecifier"><choice localId="634" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="635" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="580" locator="219:5-219:154"><when localId="581" locator="219:10-219:31" xsi:type="Equal"><signature localId="588" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="589" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="586" name="ToString" xsi:type="FunctionRef"><signature localId="587" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="583" locator="219:10-219:19" path="id" xsi:type="Property"><source localId="582" locator="219:10-219:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="584" locator="219:23-219:31" value="Hib15.1" valueType="t:String" xsi:type="Literal"/></when><then localId="636" xsi:type="As"><operand localId="590" locator="219:38-219:154" xsi:type="And"><operand localId="591" locator="219:38-219:53" xsi:type="Not"><operand localId="592" locator="219:42-219:53" name="Hib dose 3" xsi:type="ExpressionRef"/></operand><operand localId="593" locator="219:59-219:154" name="Third Hib dose from the primary series was administered. The primary series has been completed" xsi:type="ExpressionRef"/></operand><asTypeSpecifier localId="637" xsi:type="ChoiceTypeSpecifier"><choice localId="638" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="639" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="594" locator="220:5-220:85"><when localId="595" locator="220:10-220:31" xsi:type="Equal"><signature localId="602" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="603" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="600" name="ToString" xsi:type="FunctionRef"><signature localId="601" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="597" locator="220:10-220:19" path="id" xsi:type="Property"><source localId="596" locator="220:10-220:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="598" locator="220:23-220:31" value="Hib16.1" valueType="t:String" xsi:type="Literal"/></when><then localId="640" xsi:type="As"><operand localId="604" locator="220:38-220:85" xsi:type="Not"><operand localId="605" locator="220:42-220:85" name="Haemophilus influenzae type b (Hib) dose 1" xsi:type="ExpressionRef"/></operand><asTypeSpecifier localId="641" xsi:type="ChoiceTypeSpecifier"><choice localId="642" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="643" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><else localId="644" xsi:type="As"><operand localId="606" locator="221:10-221:27" value="No test case set" valueType="t:String" xsi:type="Literal"/><asTypeSpecifier localId="645" xsi:type="ChoiceTypeSpecifier"><choice localId="646" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="647" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></else></expression></def></statements></library>