<?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="352"><a:s>/*
  * Library: IMMZD2DTRotavirusEncounterElements
  */
library IMMZD2DTRotavirusEncounterElements</a:s></a:s></annotation><identifier id="IMMZD2DTRotavirusEncounterElements" 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="WHOConcepts" locator="10:1-10:19" 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" localIdentifier="WC" locator="11:1-11:27" 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" localIdentifier="WE" locator="12:1-12:29" 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" localIdentifier="Common" locator="14:1-14:32" 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" localIdentifier="Concepts" locator="15:1-15:36" 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" localIdentifier="Encounter" locator="16:1-16:46" path="http://smart.who.int/immunizations/IMMZEncounterElements"><annotation xsi:type="a:Annotation"><a:s r="220"><a:s>include </a:s><a:s><a:s>IMMZEncounterElements</a:s></a:s><a:s> called Encounter</a:s></a:s></annotation></def><def localId="222" localIdentifier="RotavirusElements" locator="18:1-18:58" path="http://smart.who.int/immunizations/IMMZD2DTRotavirusElements"><annotation xsi:type="a:Annotation"><a:s r="222"><a:s>include </a:s><a:s><a:s>IMMZD2DTRotavirusElements</a:s></a:s><a:s> called RotavirusElements</a:s></a:s></annotation></def></includes><parameters><def accessLevel="Public" localId="224" locator="20:1-20:36" name="Today"><annotation xsi:type="a:Annotation"><a:s r="224"><a:s>parameter Today </a:s><a:s r="228"><a:s>Date</a:s></a:s><a:s> default </a:s><a:s r="227"><a:s>Today()</a:s></a:s></a:s></annotation><default localId="227" locator="20:30-20:36" xsi:type="Today"/><parameterTypeSpecifier localId="228" locator="20:17-20:20" name="t:Date" xsi:type="NamedTypeSpecifier"/></def><def accessLevel="Public" localId="230" locator="21:1-21:28" name="EncounterId"><annotation xsi:type="a:Annotation"><a:s r="230"><a:s>parameter EncounterId </a:s><a:s r="231"><a:s>String</a:s></a:s></a:s></annotation><parameterTypeSpecifier localId="231" locator="21:23-21:28" name="t:String" xsi:type="NamedTypeSpecifier"/></def></parameters><contexts><def localId="236" locator="23:1-23:15" name="Patient"/></contexts><statements><def context="Patient" localId="234" locator="23:1-23:15" name="Patient"><expression localId="235" xsi:type="SingletonFrom"><operand dataType="fhir:Patient" localId="233" locator="23:1-23:15" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/></expression></def><def accessLevel="Public" context="Patient" localId="239" locator="28:1-31:50" name="Rotavirus Doses Administered to Patient"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Rotavirus containing Doses Administered to Patient"/><a:s r="239"><a:s>/*
@internal: Rotavirus containing Doses Administered to Patient
*/
define "Rotavirus Doses Administered to Patient":
  </a:s><a:s r="251"><a:s><a:s r="240"><a:s r="242"><a:s><a:s>Encounter."Doses Administered to Patient"</a:s></a:s></a:s><a:s> I</a:s></a:s></a:s><a:s>
  </a:s><a:s r="248"><a:s>where
    </a:s><a:s r="248"><a:s r="245"><a:s r="244"><a:s>I</a:s></a:s><a:s>.</a:s><a:s r="245"><a:s>vaccineCode</a:s></a:s></a:s><a:s> in </a:s><a:s r="247"><a:s r="246"><a:s>Concepts</a:s></a:s><a:s>.</a:s><a:s r="247"><a:s>"Rotavirus vaccines"</a:s></a:s></a:s></a:s></a:s></a:s></a:s></annotation><expression localId="251" locator="29:3-31:50" xsi:type="Query"><source alias="I" localId="240" locator="29:3-29:45"><expression libraryName="Encounter" localId="242" locator="29:3-29:43" name="Doses Administered to Patient" xsi:type="ExpressionRef"/></source><where localId="248" locator="30:3-31:50" xsi:type="InValueSet"><signature localId="250" name="t:Concept" xsi:type="NamedTypeSpecifier"/><code libraryName="FHIRHelpers" localId="249" name="ToConcept" xsi:type="FunctionRef"><operand localId="245" locator="31:5-31:17" path="vaccineCode" scope="I" xsi:type="Property"/></code><valueset libraryName="Concepts" localId="247" locator="31:22-31:50" name="Rotavirus vaccines" preserve="true"/></where></expression></def><def accessLevel="Public" context="Patient" localId="254" locator="36:1-37:59" name="Rotavirus Primary Series Doses Administered to Patient"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Rotavirus containing Doses Administered to Patient that are in the Primary series"/><a:s r="254"><a:s>/*
@internal: Rotavirus containing Doses Administered to Patient that are in the Primary series
*/
define "Rotavirus Primary Series Doses Administered to Patient":
  </a:s><a:s r="256"><a:s r="255"><a:s>"Rotavirus Doses Administered to Patient"</a:s></a:s><a:s>.</a:s><a:s r="256"><a:s>seriesPrimary()</a:s></a:s></a:s></a:s></annotation><expression libraryName="Common" localId="256" locator="37:3-37:59" name="seriesPrimary" xsi:type="FunctionRef"><operand localId="255" locator="37:3-37:43" name="Rotavirus Doses Administered to Patient" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Patient" localId="259" locator="42:1-43:65" name="Number of Rotavirus Primary Series Doses Administered"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Number of Rotavirus Primary Series doses"/><a:s r="259"><a:s>/*
@internal: Number of Rotavirus Primary Series doses
*/
define "Number of Rotavirus Primary Series Doses Administered":
  </a:s><a:s r="263"><a:s>Count(</a:s><a:s r="260"><a:s>"Rotavirus Primary Series Doses Administered to Patient"</a:s></a:s><a:s>)</a:s></a:s></a:s></annotation><expression localId="263" locator="43:3-43:65" xsi:type="Count"><source localId="260" locator="43:9-43:64" name="Rotavirus Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Patient" localId="266" locator="51:1-52:46" name="Client's age is less than 6 weeks"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's age is less than 6 weeks"/><a:t name="pseudocode" value="&#34;Date of birth&#34; &lt; 6 weeks"/><a:t name="code" value="Client's age is less than 6 weeks-41"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="266"><a:s>/*
@input: Client's age is less than 6 weeks
@pseudocode: 'Today's date – "Date of birth" &lt; 6 weeks
@code: Client's age is less than 6 weeks-41
@decision: IMMZ.D2.DT.Rotavirus
*/
define "Client's age is less than 6 weeks":
  </a:s><a:s r="267"><a:s r="269"><a:s r="268"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="269"><a:s>"Current Patient Age In Weeks"</a:s></a:s></a:s><a:s r="270"> &lt; 6</a:s></a:s></a:s></annotation><expression localId="267" locator="52:3-52:46" xsi:type="Less"><signature localId="271" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="272" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Encounter" localId="269" locator="52:3-52:42" name="Current Patient Age In Weeks" xsi:type="ExpressionRef"/><operand localId="270" locator="52:46" value="6" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="275" locator="60:1-61:61" name="No rotavirus primary series doses were administered"><annotation xsi:type="a:Annotation"><a:t name="input" value="No rotavirus primary series doses were administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Rotavirus vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 0"/><a:t name="code" value="No rotavirus primary series doses were administered-118"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="275"><a:s>/*
@input: No rotavirus primary series doses were administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Rotavirus vaccines" and "Type of dose" = "Primary series") = 0
@code: No rotavirus primary series doses were administered-118
@decision: IMMZ.D2.DT.Rotavirus
*/
define "No rotavirus primary series doses were administered":
  </a:s><a:s r="276"><a:s r="277"><a:s>"Number of Rotavirus Primary Series Doses Administered"</a:s></a:s><a:s r="278"> = 0</a:s></a:s></a:s></annotation><expression localId="276" locator="61:3-61:61" xsi:type="Equal"><signature localId="279" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="280" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="277" locator="61:3-61:57" name="Number of Rotavirus Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="278" locator="61:61" value="0" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="283" locator="69:1-71:52" name="Client's age is between 6 weeks and 24 months"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's age is between 6 weeks and 24 months"/><a:t name="pseudocode" value="&#34;Date of birth&#34; &lt; 24 months"/><a:t name="code" value="Client's age is between 6 weeks and 24 months-52"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="283"><a:s>/*
@input: Client's age is between 6 weeks and 24 months
@pseudocode: 6 weeks ≤ Today's date – "Date of birth" &lt; 24 months
@code: Client's age is between 6 weeks and 24 months-52
@decision: IMMZ.D2.DT.Rotavirus
*/
define "Client's age is between 6 weeks and 24 months":
  </a:s><a:s r="284"><a:s r="285"><a:s r="286">6 &lt;= </a:s><a:s r="288"><a:s r="287"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="288"><a:s>"Current Patient Age In Weeks"</a:s></a:s></a:s></a:s><a:s>
  and </a:s><a:s r="291"><a:s r="293"><a:s r="292"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="293"><a:s>"Current Patient Age In Months"</a:s></a:s></a:s><a:s r="294"> &lt; 24</a:s></a:s></a:s></a:s></annotation><expression localId="284" locator="70:3-71:52" xsi:type="And"><operand localId="285" locator="70:3-70:47" xsi:type="LessOrEqual"><signature localId="289" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="290" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="286" locator="70:3" value="6" valueType="t:Integer" xsi:type="Literal"/><operand libraryName="Encounter" localId="288" locator="70:8-70:47" name="Current Patient Age In Weeks" xsi:type="ExpressionRef"/></operand><operand localId="291" locator="71:7-71:52" xsi:type="Less"><signature localId="295" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="296" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Encounter" localId="293" locator="71:7-71:47" name="Current Patient Age In Months" xsi:type="ExpressionRef"/><operand localId="294" locator="71:51-71:52" value="24" valueType="t:Integer" xsi:type="Literal"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="299" locator="79:1-80:66" name="No live vaccine was administered in the last 4 weeks"><annotation xsi:type="a:Annotation"><a:t name="input" value="No live vaccine was administered in the last 4 weeks"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Live vaccine&#34; = TRUE) ≥ 4 weeks"/><a:t name="code" value="No live vaccine was administered in the last 4 weeks-92"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="299"><a:s>/*
@input: No live vaccine was administered in the last 4 weeks
@pseudocode: Today's date - latest "Date and time of vaccination" (where "Live vaccine" = TRUE) ≥ 4 weeks
@code: No live vaccine was administered in the last 4 weeks-92
@decision: IMMZ.D2.DT.Rotavirus
*/
define "No live vaccine was administered in the last 4 weeks":
  </a:s><a:s r="301"><a:s r="300"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="301"><a:s>"No live vaccine was administered in the last 4 weeks"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="301" locator="80:3-80:66" name="No live vaccine was administered in the last 4 weeks" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="304" locator="88:1-89:63" name="Live vaccine was administered in the last 4 weeks"><annotation xsi:type="a:Annotation"><a:t name="input" value="Live vaccine was administered in the last 4 weeks"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Live vaccine&#34; = TRUE) &lt; 4 weeks"/><a:t name="code" value="Live vaccine was administered in the last 4 weeks-92"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="304"><a:s>/*
@input: Live vaccine was administered in the last 4 weeks
@pseudocode: Today's date - latest "Date and time of vaccination" (where "Live vaccine" = TRUE) &lt; 4 weeks
@code: Live vaccine was administered in the last 4 weeks-92
@decision: IMMZ.D2.DT.Rotavirus
*/
define "Live vaccine was administered in the last 4 weeks":
  </a:s><a:s r="306"><a:s r="305"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="306"><a:s>"Live vaccine was administered in the last 4 weeks"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="306" locator="89:3-89:63" name="Live vaccine was administered in the last 4 weeks" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="309" locator="97:1-98:61" name="One rotavirus primary series dose was administered"><annotation xsi:type="a:Annotation"><a:t name="input" value="One rotavirus primary series dose was administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Rotavirus vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 1"/><a:t name="code" value="One rotavirus primary series dose was administered-118"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="309"><a:s>/*
@input: One rotavirus primary series dose was administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Rotavirus vaccines" and "Type of dose" = "Primary series") = 1
@code: One rotavirus primary series dose was administered-118
@decision: IMMZ.D2.DT.Rotavirus
*/
define "One rotavirus primary series dose was administered":
  </a:s><a:s r="310"><a:s r="311"><a:s>"Number of Rotavirus Primary Series Doses Administered"</a:s></a:s><a:s r="312"> = 1</a:s></a:s></a:s></annotation><expression localId="310" locator="98:3-98:61" xsi:type="Equal"><signature localId="313" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="314" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="311" locator="98:3-98:57" name="Number of Rotavirus Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="312" locator="98:61" value="1" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="317" locator="106:1-107:61" name="Two rotavirus primary series doses were administered"><annotation xsi:type="a:Annotation"><a:t name="input" value="Two rotavirus primary series doses were administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Rotavirus vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 2"/><a:t name="code" value="Two rotavirus primary series doses were administered-118"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="317"><a:s>/*
@input: Two rotavirus primary series doses were administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Rotavirus vaccines" and "Type of dose" = "Primary series") = 2
@code: Two rotavirus primary series doses were administered-118
@decision: IMMZ.D2.DT.Rotavirus
*/
define "Two rotavirus primary series doses were administered":
  </a:s><a:s r="318"><a:s r="319"><a:s>"Number of Rotavirus Primary Series Doses Administered"</a:s></a:s><a:s r="320"> = 2</a:s></a:s></a:s></annotation><expression localId="318" locator="107:3-107:61" xsi:type="Equal"><signature localId="321" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="322" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="319" locator="107:3-107:57" name="Number of Rotavirus Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="320" locator="107:61" value="2" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="333" locator="200:1-201:71" name="Brand of First Dose"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Brand of First Dose"/><a:s r="333"><a:s>/*
@internal: Brand of First Dose
*/
define "Brand of First Dose":
  </a:s><a:s r="344"><a:s r="343"><a:s>First(</a:s><a:s r="337"><a:s r="334"><a:s>"Rotavirus Doses Administered to Patient"</a:s></a:s><a:s>.</a:s><a:s r="337"><a:s>getDose(</a:s><a:s r="335"><a:s>'1'</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s>)</a:s></a:s><a:s>.</a:s><a:s r="344"><a:s>brand()</a:s></a:s></a:s></a:s></annotation><expression libraryName="Common" localId="344" locator="201:3-201:71" name="brand" xsi:type="FunctionRef"><operand localId="343" locator="201:3-201:63" xsi:type="First"><source libraryName="Common" localId="337" locator="201:9-201:62" name="getDose" xsi:type="FunctionRef"><signature localId="338" xsi:type="ListTypeSpecifier"><elementType localId="339" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/></signature><signature localId="340" name="t:String" xsi:type="NamedTypeSpecifier"/><operand localId="334" locator="201:9-201:49" name="Rotavirus Doses Administered to Patient" xsi:type="ExpressionRef"/><operand localId="335" locator="201:59-201:61" value="1" valueType="t:String" xsi:type="Literal"/></source></operand></expression></def><def accessLevel="Public" context="Patient" localId="352" locator="206:1-207:71" name="Brand of Second Dose"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Brand of Second Dose"/><a:s r="352"><a:s>/*
@internal: Brand of Second Dose
*/
define "Brand of Second Dose":
  </a:s><a:s r="363"><a:s r="362"><a:s>First(</a:s><a:s r="356"><a:s r="353"><a:s>"Rotavirus Doses Administered to Patient"</a:s></a:s><a:s>.</a:s><a:s r="356"><a:s>getDose(</a:s><a:s r="354"><a:s>'2'</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s>)</a:s></a:s><a:s>.</a:s><a:s r="363"><a:s>brand()</a:s></a:s></a:s></a:s></annotation><expression libraryName="Common" localId="363" locator="207:3-207:71" name="brand" xsi:type="FunctionRef"><operand localId="362" locator="207:3-207:63" xsi:type="First"><source libraryName="Common" localId="356" locator="207:9-207:62" name="getDose" xsi:type="FunctionRef"><signature localId="357" xsi:type="ListTypeSpecifier"><elementType localId="358" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/></signature><signature localId="359" name="t:String" xsi:type="NamedTypeSpecifier"/><operand localId="353" locator="207:9-207:49" name="Rotavirus Doses Administered to Patient" xsi:type="ExpressionRef"/><operand localId="354" locator="207:59-207:61" value="2" valueType="t:String" xsi:type="Literal"/></source></operand></expression></def><def accessLevel="Public" context="Patient" localId="329" locator="142:1-144:48" name="The series administered to the client contains the same product"><annotation xsi:type="a:Annotation"><a:t name="input" value="The series administered to the client contains the same product"/><a:t name="pseudocode" value="&#34;Vaccine brand&#34; (where &#34;Vaccine type&#34; = &#34;Rotavirus vaccines&#34; AND &#34;Dose number&#34; = 1) = &#34;Vaccine brand&#34; (where &#34;Vaccine type&#34; = &#34;Rotavirus vaccines&#34; AND &#34;Dose number&#34; = 2)"/><a:t name="code" value="The series administered to the client contains the same product-169"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="329"><a:s>/*
@input: The series administered to the client contains the same product
@pseudocode: "Vaccine brand" (where "Vaccine type" = "Rotavirus vaccines" AND "Dose number" = 1) = "Vaccine brand" (where "Vaccine type" = "Rotavirus vaccines" AND "Dose number" = 2)
@code: The series administered to the client contains the same product-169
@decision: IMMZ.D2.DT.Rotavirus
*/
define "The series administered to the client contains the same product":
  </a:s><a:s r="330"><a:s r="347"><a:s r="345"><a:s>"Brand of First Dose"</a:s></a:s><a:s> is not null</a:s></a:s><a:s> and
  </a:s><a:s r="348"><a:s r="349"><a:s>"Brand of First Dose"</a:s></a:s><a:s> ~ </a:s><a:s r="364"><a:s>"Brand of Second Dose"</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="330" locator="143:3-144:48" xsi:type="And"><operand localId="347" locator="143:3-143:35" xsi:type="Not"><operand localId="346" locator="143:3-143:35" xsi:type="IsNull"><operand localId="345" locator="143:3-143:23" name="Brand of First Dose" xsi:type="ExpressionRef"/></operand></operand><operand localId="348" locator="144:3-144:48" xsi:type="Equivalent"><signature localId="365" name="fhir:CodeableConcept" xsi:type="NamedTypeSpecifier"/><signature localId="366" name="fhir:CodeableConcept" xsi:type="NamedTypeSpecifier"/><operand localId="349" locator="144:3-144:23" name="Brand of First Dose" xsi:type="ExpressionRef"/><operand localId="364" locator="144:27-144:48" name="Brand of Second Dose" xsi:type="ExpressionRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="325" locator="115:1-116:71" name="The series administered to the client is a mixed series or a series with unknown vaccine products"><annotation xsi:type="a:Annotation"><a:t name="input" value="The series administered to the client is a mixed series or a series with unknown vaccine products"/><a:t name="pseudocode" value="&#34;Vaccine brand&#34; (where &#34;Vaccine type&#34; = &#34;Rotavirus vaccines&#34; AND &#34;Dose number&#34; = 1) ≠ &#34;Vaccine brand&#34; (where &#34;Vaccine type&#34; = &#34;Rotavirus vaccines&#34; AND &#34;Dose number&#34; = 2)"/><a:t name="code" value="The series administered to the client is a mixed series or a series with unknown vaccine products-169"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="325"><a:s>/*
@input: The series administered to the client is a mixed series or a series with unknown vaccine products
@pseudocode: "Vaccine brand" (where "Vaccine type" = "Rotavirus vaccines" AND "Dose number" = 1) ≠ "Vaccine brand" (where "Vaccine type" = "Rotavirus vaccines" AND "Dose number" = 2)
@code: The series administered to the client is a mixed series or a series with unknown vaccine products-169
@decision: IMMZ.D2.DT.Rotavirus
*/
define "The series administered to the client is a mixed series or a series with unknown vaccine products":
  </a:s><a:s r="326"><a:s>not </a:s><a:s r="367"><a:s>"The series administered to the client contains the same product"</a:s></a:s></a:s></a:s></annotation><expression localId="326" locator="116:3-116:71" xsi:type="Not"><operand localId="367" locator="116:7-116:71" name="The series administered to the client contains the same product" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Patient" localId="370" locator="124:1-125:63" name="Live vaccines was administered in the last 4 weeks"><annotation xsi:type="a:Annotation"><a:t name="input" value="Live vaccines was administered in the last 4 weeks"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Live vaccine&#34; = TRUE) &lt; 4 weeks"/><a:t name="code" value="Live vaccines was administered in the last 4 weeks-92"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="370"><a:s>/*
@input: Live vaccines was administered in the last 4 weeks
@pseudocode: Today's date - latest "Date and time of vaccination" (where "Live vaccine" = TRUE) &lt; 4 weeks
@code: Live vaccines was administered in the last 4 weeks-92
@decision: IMMZ.D2.DT.Rotavirus
*/
define "Live vaccines was administered in the last 4 weeks":
  </a:s><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>"Live vaccine was administered in the last 4 weeks"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="372" locator="125:3-125:63" name="Live vaccine was administered in the last 4 weeks" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="375" locator="133:1-134:66" name="No live vaccine was administered in last 4 weeks"><annotation xsi:type="a:Annotation"><a:t name="input" value="No live vaccine was administered in last 4 weeks"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Live vaccine&#34; = TRUE) ≥ 4 weeks"/><a:t name="code" value="No live vaccine was administered in last 4 weeks-92"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="375"><a:s>/*
@input: No live vaccine was administered in last 4 weeks
@pseudocode: Today's date - latest "Date and time of vaccination" (where "Live vaccine" = TRUE) ≥ 4 weeks
@code: No live vaccine was administered in last 4 weeks-92
@decision: IMMZ.D2.DT.Rotavirus
*/
define "No live vaccine was administered in last 4 weeks":
  </a:s><a:s r="377"><a:s r="376"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="377"><a:s>"No live vaccine was administered in the last 4 weeks"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="377" locator="134:3-134:66" name="No live vaccine was administered in the last 4 weeks" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="380" locator="152:1-153:85" name="The series contain more than two doses"><annotation xsi:type="a:Annotation"><a:t name="input" value="The series contain more than two doses"/><a:t name="pseudocode" value="&#34;Total doses in series&#34; &gt; 2"/><a:t name="code" value="The series contain more than two doses-27"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="380"><a:s>/*
@input: The series contain more than two doses
@pseudocode: "Total doses in series" &gt; 2
@code: The series contain more than two doses-27
@decision: IMMZ.D2.DT.Rotavirus
*/
define "The series contain more than two doses":
  </a:s><a:s r="381"><a:s r="393"><a:s>ToInteger(</a:s><a:s r="386"><a:s r="383"><a:s r="382"><a:s>"Rotavirus Doses Administered to Patient"</a:s></a:s><a:s>.</a:s><a:s r="383"><a:s>mostRecent()</a:s></a:s></a:s><a:s>.</a:s><a:s r="386"><a:s>seriesDoses()</a:s></a:s></a:s><a:s>)</a:s></a:s><a:s r="398"> &gt; 2</a:s></a:s></a:s></annotation><expression localId="381" locator="153:3-153:85" xsi:type="Greater"><signature localId="399" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="400" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="393" locator="153:3-153:81" xsi:type="ToInteger"><signature localId="397" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="395" name="ToString" xsi:type="FunctionRef"><signature localId="396" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand asType="fhir:string" localId="394" xsi:type="As"><operand libraryName="Common" localId="386" locator="153:13-153:80" name="seriesDoses" xsi:type="FunctionRef"><operand libraryName="WC" localId="383" locator="153:13-153:66" name="mostRecent" xsi:type="FunctionRef"><signature localId="384" xsi:type="ListTypeSpecifier"><elementType localId="385" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/></signature><operand localId="382" locator="153:13-153:53" name="Rotavirus Doses Administered to Patient" xsi:type="ExpressionRef"/></operand></operand></operand></operand></operand><operand localId="398" locator="153:85" value="2" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="403" locator="161:1-162:63" name="Live vaccine was administered in last 4 weeks"><annotation xsi:type="a:Annotation"><a:t name="input" value="Live vaccine was administered in last 4 weeks"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Live vaccine&#34; = TRUE) &lt; 4 weeks"/><a:t name="code" value="Live vaccine was administered in last 4 weeks-92"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="403"><a:s>/*
@input: Live vaccine was administered in last 4 weeks
@pseudocode: Today's date - latest "Date and time of vaccination" (where "Live vaccine" = TRUE) &lt; 4 weeks
@code: Live vaccine was administered in last 4 weeks-92
@decision: IMMZ.D2.DT.Rotavirus
*/
define "Live vaccine was administered in last 4 weeks":
  </a:s><a:s r="405"><a:s r="404"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="405"><a:s>"Live vaccine was administered in the last 4 weeks"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="405" locator="162:3-162:63" name="Live vaccine was administered in the last 4 weeks" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="408" locator="170:1-171:86" name="The series contain less than or equal to two doses"><annotation xsi:type="a:Annotation"><a:t name="input" value="The series contain less than or equal to two doses"/><a:t name="pseudocode" value="&#34;Total doses in series&#34; ≤ 2"/><a:t name="code" value="The series contain less than or equal to two doses-27"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="408"><a:s>/*
@input: The series contain less than or equal to two doses
@pseudocode: "Total doses in series" ≤ 2
@code: The series contain less than or equal to two doses-27
@decision: IMMZ.D2.DT.Rotavirus
*/
define "The series contain less than or equal to two doses":
  </a:s><a:s r="409"><a:s r="421"><a:s>ToInteger(</a:s><a:s r="414"><a:s r="411"><a:s r="410"><a:s>"Rotavirus Doses Administered to Patient"</a:s></a:s><a:s>.</a:s><a:s r="411"><a:s>mostRecent()</a:s></a:s></a:s><a:s>.</a:s><a:s r="414"><a:s>seriesDoses()</a:s></a:s></a:s><a:s>)</a:s></a:s><a:s r="426"> &lt;= 2</a:s></a:s></a:s></annotation><expression localId="409" locator="171:3-171:86" xsi:type="LessOrEqual"><signature localId="427" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="428" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="421" locator="171:3-171:81" xsi:type="ToInteger"><signature localId="425" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="423" name="ToString" xsi:type="FunctionRef"><signature localId="424" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand asType="fhir:string" localId="422" xsi:type="As"><operand libraryName="Common" localId="414" locator="171:13-171:80" name="seriesDoses" xsi:type="FunctionRef"><operand libraryName="WC" localId="411" locator="171:13-171:66" name="mostRecent" xsi:type="FunctionRef"><signature localId="412" xsi:type="ListTypeSpecifier"><elementType localId="413" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/></signature><operand localId="410" locator="171:13-171:53" name="Rotavirus Doses Administered to Patient" xsi:type="ExpressionRef"/></operand></operand></operand></operand></operand><operand localId="426" locator="171:86" value="2" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="431" locator="179:1-180:61" name="Three rotavirus primary series doses were administered"><annotation xsi:type="a:Annotation"><a:t name="input" value="Three rotavirus primary series doses were administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Rotavirus vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 3"/><a:t name="code" value="Three rotavirus primary series doses were administered-118"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="431"><a:s>/*
@input: Three rotavirus primary series doses were administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Rotavirus vaccines" and "Type of dose" = "Primary series") = 3
@code: Three rotavirus primary series doses were administered-118
@decision: IMMZ.D2.DT.Rotavirus
*/
define "Three rotavirus primary series doses were administered":
  </a:s><a:s r="432"><a:s r="433"><a:s>"Number of Rotavirus Primary Series Doses Administered"</a:s></a:s><a:s r="434"> = 3</a:s></a:s></a:s></annotation><expression localId="432" locator="180:3-180:61" xsi:type="Equal"><signature localId="435" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="436" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="433" locator="180:3-180:57" name="Number of Rotavirus Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="434" locator="180:61" value="3" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="439" locator="188:1-189:49" name="Client's age is more than 24 months"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's age is more than 24 months"/><a:t name="pseudocode" value="&#34;Date of birth&#34; &gt; 24 months"/><a:t name="code" value="Client's age is more than 24 months-27"/><a:t name="decision" value="IMMZ.D2.DT.Rotavirus"/><a:s r="439"><a:s>/*
@input: Client's age is more than 24 months
@pseudocode: "Date of birth" &gt; 24 months
@code: Client's age is more than 24 months-27
@decision: IMMZ.D2.DT.Rotavirus
*/
define "Client's age is more than 24 months":
  </a:s><a:s r="440"><a:s r="442"><a:s r="441"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="442"><a:s>"Current Patient Age In Months"</a:s></a:s></a:s><a:s r="443"> &gt;= 24</a:s></a:s></a:s></annotation><expression localId="440" locator="189:3-189:49" xsi:type="GreaterOrEqual"><signature localId="444" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="445" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Encounter" localId="442" locator="189:3-189:43" name="Current Patient Age In Months" xsi:type="ExpressionRef"/><operand localId="443" locator="189:48-189:49" value="24" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="448" locator="194:1-195:99" name="Date of Latest Rotavirus Dose"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Date of Latest Rotavirus Dose"/><a:s r="448"><a:s>/*
@internal: Date of Latest Rotavirus Dose
*/
define "Date of Latest Rotavirus Dose":
  </a:s><a:s r="449"><a:s>date from </a:s><a:s r="450"><a:s>start of </a:s><a:s r="456"><a:s r="455"><a:s r="452"><a:s r="451"><a:s>"Rotavirus Doses Administered to Patient"</a:s></a:s><a:s>.</a:s><a:s r="452"><a:s>mostRecent()</a:s></a:s></a:s><a:s>.</a:s><a:s r="455"><a:s>occurrence</a:s></a:s></a:s><a:s>.</a:s><a:s r="456"><a:s>toInterval()</a:s></a:s></a:s></a:s></a:s></a:s></annotation><expression localId="449" locator="195:3-195:99" xsi:type="DateFrom"><operand localId="450" locator="195:13-195:99" xsi:type="Start"><operand libraryName="WC" localId="456" locator="195:22-195:99" name="toInterval" xsi:type="FunctionRef"><operand localId="455" locator="195:22-195:86" path="occurrence" xsi:type="Property"><source libraryName="WC" localId="452" locator="195:22-195:75" name="mostRecent" xsi:type="FunctionRef"><signature localId="453" xsi:type="ListTypeSpecifier"><elementType localId="454" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/></signature><operand localId="451" locator="195:22-195:62" name="Rotavirus Doses Administered to Patient" xsi:type="ExpressionRef"/></source></operand></operand></operand></expression></def></statements></library>