<?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="317"><a:s>/*
  * Library: IMMZD2DTRubellaElements
  */
library IMMZD2DTRubellaElements</a:s></a:s></annotation><identifier id="IMMZD2DTRubellaElements" 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="Elements" locator="16:1-16:36" 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 context="Patient" localId="223" locator="19:1-19:15" name="Patient"><expression localId="224" xsi:type="SingletonFrom"><operand dataType="fhir:Patient" localId="222" locator="19:1-19:15" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/></expression></def><def accessLevel="Public" context="Patient" localId="228" locator="24:1-27:59" name="Rubella Doses Administered to Patient"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Rubella containing Doses Administered to Patient"/><a:s r="228"><a:s>/*
@internal: Rubella containing Doses Administered to Patient
*/
define "Rubella Doses Administered to Patient":
  </a:s><a:s r="240"><a:s><a:s r="229"><a:s r="231"><a:s><a:s>Elements."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="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>"Rubella-containing vaccines"</a:s></a:s></a:s></a:s></a:s></a:s></a:s></annotation><expression localId="240" locator="25:3-27:59" xsi:type="Query"><source alias="I" localId="229" locator="25:3-25:44"><expression libraryName="Elements" localId="231" locator="25:3-25:42" name="Doses Administered to Patient" xsi:type="ExpressionRef"/></source><where localId="237" locator="26:3-27:59" xsi:type="InValueSet"><signature localId="239" name="t:Concept" xsi:type="NamedTypeSpecifier"/><code libraryName="FHIRHelpers" localId="238" name="ToConcept" xsi:type="FunctionRef"><operand localId="234" locator="27:5-27:17" path="vaccineCode" scope="I" xsi:type="Property"/></code><valueset libraryName="Concepts" localId="236" locator="27:22-27:59" name="Rubella-containing vaccines" preserve="true"/></where></expression></def><def accessLevel="Public" context="Patient" localId="243" locator="32:1-33:57" name="Rubella Primary Series Doses Administered to Patient"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Rubella containing Doses Administered to Patient that are in the Primary series"/><a:s r="243"><a:s>/*
@internal: Rubella containing Doses Administered to Patient that are in the Primary series
*/
define "Rubella Primary Series Doses Administered to Patient":
  </a:s><a:s r="245"><a:s r="244"><a:s>"Rubella Doses Administered to Patient"</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 libraryName="Common" localId="245" locator="33:3-33:57" name="seriesPrimary" xsi:type="FunctionRef"><operand localId="244" locator="33:3-33:41" name="Rubella Doses Administered to Patient" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Patient" localId="248" locator="38:1-39:63" name="Number of Rubella Primary Series Doses Administered"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Number of Rubella Primary Series doses"/><a:s r="248"><a:s>/*
@internal: Number of Rubella Primary Series doses
*/
define "Number of Rubella Primary Series Doses Administered":
  </a:s><a:s r="252"><a:s>Count(</a:s><a:s r="249"><a:s>"Rubella Primary Series Doses Administered to Patient"</a:s></a:s><a:s>)</a:s></a:s></a:s></annotation><expression localId="252" locator="39:3-39:63" xsi:type="Count"><source localId="249" locator="39:9-39:62" name="Rubella Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Patient" localId="255" locator="47:1-48:46" name="Client's age is less than 9 months"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's age is less than 9 months"/><a:t name="pseudocode" value="&#34;Date of birth&#34; &lt; 9 months"/><a:t name="code" value="Client's age is less than 9 months-41"/><a:t name="decision" value="IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella"/><a:s r="255"><a:s>/*
@input: Client's age is less than 9 months
@pseudocode: Today's date − "Date of birth" &lt; 9 months
@code: Client's age is less than 9 months-41
@decision: IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella
*/
define "Client's age is less than 9 months":
  </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>"Current Patient Age In Months"</a:s></a:s></a:s><a:s r="259"> &lt; 9</a:s></a:s></a:s></annotation><expression localId="256" locator="48:3-48:46" xsi:type="Less"><signature localId="260" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="261" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Elements" localId="258" locator="48:3-48:42" name="Current Patient Age In Months" xsi:type="ExpressionRef"/><operand localId="259" locator="48:46" value="9" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="264" locator="57:1-58:59" name="No rubella primary series dose was administered"><annotation xsi:type="a:Annotation"><a:t name="input" value="No rubella primary series dose was administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Rubella-containing vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 0"/><a:t name="code" value="No rubella primary series dose was administered-127"/><a:t name="decision" value="IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella"/><a:t name="decision" value="IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella"/><a:s r="264"><a:s>/*
@input: No rubella primary series dose was administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Rubella-containing vaccines" and "Type of dose" = "Primary series") = 0
@code: No rubella primary series dose was administered-127
@decision: IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella
@decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella
*/
define "No rubella primary series dose was administered":
  </a:s><a:s r="265"><a:s r="266"><a:s>"Number of Rubella Primary Series Doses Administered"</a:s></a:s><a:s r="267"> = 0</a:s></a:s></a:s></annotation><expression localId="265" locator="58:3-58:59" 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="58:3-58:55" name="Number of Rubella Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="267" locator="58:59" value="0" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="272" locator="66:1-67:47" name="Client's age is more than or equal to 9 months"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's age is more than or equal to 9 months"/><a:t name="pseudocode" value="&#34;Date of birth&#34; ≥ 9 months"/><a:t name="code" value="Client's age is more than or equal to 9 months-41"/><a:t name="decision" value="IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella"/><a:s r="272"><a:s>/*
@input: Client's age is more than or equal to 9 months
@pseudocode: Today's date − "Date of birth" ≥ 9 months
@code: Client's age is more than or equal to 9 months-41
@decision: IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella
*/
define "Client's age is more than or equal to 9 months":
  </a:s><a:s r="273"><a:s r="275"><a:s r="274"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="275"><a:s>"Current Patient Age In Months"</a:s></a:s></a:s><a:s r="276"> &gt;= 9</a:s></a:s></a:s></annotation><expression localId="273" locator="67:3-67:47" xsi:type="GreaterOrEqual"><signature localId="277" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="278" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Elements" localId="275" locator="67:3-67:42" name="Current Patient Age In Months" xsi:type="ExpressionRef"/><operand localId="276" locator="67:47" value="9" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="281" locator="76:1-77:65" 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.Rubella.High incidence: Countries with high incidence and mortality from rubella"/><a:t name="decision" value="IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella"/><a:s r="281"><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.Rubella.High incidence: Countries with high incidence and mortality from rubella
@decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella
*/
define "No live vaccine was administered in the last 4 weeks":
  </a:s><a:s r="283"><a:s r="282"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="283"><a:s>"No live vaccine was administered in the last 4 weeks"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Elements" localId="283" locator="77:3-77:65" name="No live vaccine was administered in the last 4 weeks" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="286" locator="85:1-86:62" 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.Rubella.High incidence: Countries with high incidence and mortality from rubella"/><a:s r="286"><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.Rubella.High incidence: Countries with high incidence and mortality from rubella
*/
define "Live vaccine was administered in the last 4 weeks":
  </a:s><a:s r="288"><a:s r="287"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="288"><a:s>"Live vaccine was administered in the last 4 weeks"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Elements" localId="288" locator="86:3-86:62" name="Live vaccine was administered in the last 4 weeks" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="291" locator="95:1-96:59" name="One rubella primary series dose was administered"><annotation xsi:type="a:Annotation"><a:t name="input" value="One rubella primary series dose was administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Rubella-containing vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 1"/><a:t name="code" value="One rubella primary series dose was administered-127"/><a:t name="decision" value="IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella"/><a:t name="decision" value="IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella"/><a:s r="291"><a:s>/*
@input: One rubella primary series dose was administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Rubella-containing vaccines" and "Type of dose" = "Primary series") = 1
@code: One rubella primary series dose was administered-127
@decision: IMMZ.D2.DT.Rubella.High incidence: Countries with high incidence and mortality from rubella
@decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella
*/
define "One rubella primary series dose was administered":
  </a:s><a:s r="292"><a:s r="293"><a:s>"Number of Rubella Primary Series Doses Administered"</a:s></a:s><a:s r="294"> = 1</a:s></a:s></a:s></annotation><expression localId="292" locator="96:3-96:59" xsi:type="Equal"><signature localId="295" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="296" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="293" locator="96:3-96:55" name="Number of Rubella Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="294" locator="96:59" value="1" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="299" locator="104:1-105:47" name="Client's age is less than 12 months"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's age is less than 12 months"/><a:t name="pseudocode" value="&#34;Date of birth&#34; &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.Rubella.Low incidence: Countries with low incidence of rubella"/><a:s r="299"><a:s>/*
@input: Client's age is less than 12 months
@pseudocode: Today's date − "Date of birth" &lt; 12 months
@code: Client's age is less than 12 months-42
@decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella
*/
define "Client's age is less than 12 months":
  </a:s><a:s r="300"><a:s r="302"><a:s r="301"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="302"><a:s>"Current Patient Age In Months"</a:s></a:s></a:s><a:s r="303"> &lt; 12</a:s></a:s></a:s></annotation><expression localId="300" locator="105:3-105:47" xsi:type="Less"><signature localId="304" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="305" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Elements" localId="302" locator="105:3-105:42" name="Current Patient Age In Months" xsi:type="ExpressionRef"/><operand localId="303" locator="105:46-105:47" value="12" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="308" locator="113:1-114:48" name="Client's age is more than or equal to 12 months"><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="&#34;Date of birth&#34; ≥ 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.Rubella.Low incidence: Countries with low incidence of rubella"/><a:s r="308"><a:s>/*
@input: Client's age is more than or equal to 12 months
@pseudocode: Today's date − "Date of birth" ≥ 12 months
@code: Client's age is more than or equal to 12 months-42
@decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella
*/
define "Client's age is more than or equal to 12 months":
  </a:s><a:s r="309"><a:s r="311"><a:s r="310"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="311"><a:s>"Current Patient Age In Months"</a:s></a:s></a:s><a:s r="312"> &gt;= 12</a:s></a:s></a:s></annotation><expression localId="309" locator="114:3-114:48" xsi:type="GreaterOrEqual"><signature localId="313" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="314" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Elements" localId="311" locator="114:3-114:42" name="Current Patient Age In Months" xsi:type="ExpressionRef"/><operand localId="312" locator="114:47-114:48" value="12" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="317" locator="122:1-123:62" name="Live vaccine was administered in the last the 4 weeks"><annotation xsi:type="a:Annotation"><a:t name="input" value="Live vaccine was administered in the last the 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 the 4 weeks-92"/><a:t name="decision" value="IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella"/><a:s r="317"><a:s>/*
@input: Live vaccine was administered in the last the 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 the 4 weeks-92
@decision: IMMZ.D2.DT.Rubella.Low incidence: Countries with low incidence of rubella
*/
define "Live vaccine was administered in the last the 4 weeks":
  </a:s><a:s r="319"><a:s r="318"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="319"><a:s>"Live vaccine was administered in the last 4 weeks"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Elements" localId="319" locator="123:3-123:62" name="Live vaccine was administered in the last 4 weeks" xsi:type="ExpressionRef"/></def></statements></library>