<?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="290"><a:s>/*
  * Library: IMMZD5DTRubellaEncounterElements
  */
library IMMZD5DTRubellaEncounterElements</a:s></a:s></annotation><identifier id="IMMZD5DTRubellaEncounterElements" 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="RubellaElements" locator="18:1-18:54" path="http://smart.who.int/immunizations/IMMZD5DTRubellaElements"><annotation xsi:type="a:Annotation"><a:s r="222"><a:s>include </a:s><a:s><a:s>IMMZD5DTRubellaElements</a:s></a:s><a:s> called RubellaElements</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-30:65" name="Draft Medication Request for Rubella dose"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Draft Medication Request for Rubella dose"/><a:s r="239"><a:s>/*
@internal: Draft Medication Request for Rubella dose
*/
define "Draft Medication Request for Rubella dose":
  </a:s><a:s r="252"><a:s><a:s r="240"><a:s r="242"><a:s><a:s>Encounter."Draft Medication Request for Patient"</a:s></a:s></a:s><a:s> MR</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>MR</a:s></a:s><a:s>.</a:s><a:s r="245"><a:s>medication</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>"Rubella-containing vaccines"</a:s></a:s></a:s></a:s></a:s></a:s></a:s></annotation><expression localId="252" locator="29:3-30:65" xsi:type="Query"><source alias="MR" localId="240" locator="29:3-29:53"><expression libraryName="Encounter" localId="242" locator="29:3-29:50" name="Draft Medication Request for Patient" xsi:type="ExpressionRef"/></source><where localId="248" locator="30:5-30:65" xsi:type="InValueSet"><signature localId="251" name="t:Concept" xsi:type="NamedTypeSpecifier"/><code libraryName="FHIRHelpers" localId="250" name="ToConcept" xsi:type="FunctionRef"><operand asType="fhir:CodeableConcept" localId="249" xsi:type="As"><operand localId="245" locator="30:11-30:23" path="medication" scope="MR" xsi:type="Property"/></operand></code><valueset libraryName="Concepts" localId="247" locator="30:28-30:65" name="Rubella-containing vaccines" preserve="true"/></where></expression></def><def accessLevel="Public" context="Patient" localId="255" locator="38:1-39:36" name="The client is currently pregnant"><annotation xsi:type="a:Annotation"><a:t name="input" value="The client is currently pregnant"/><a:t name="pseudocode" value="&#34;Potential contraindications&#34; = &#34;Currently pregnant&#34;"/><a:t name="code" value="The client is currently pregnant-52"/><a:t name="decision" value="IMMZ.D5.DT.Rubella contraindications"/><a:s r="255"><a:s>/*
@input: The client is currently pregnant
@pseudocode: "Potential contraindications" = "Currently pregnant"
@code: The client is currently pregnant-52
@decision: IMMZ.D5.DT.Rubella contraindications
*/
define "The client is currently pregnant":
  </a:s><a:s r="257"><a:s r="256"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="257"><a:s>"The client is pregnant"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="257" locator="39:3-39:36" name="The client is pregnant" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="260" locator="47:1-48:66" name="The client is planning to get pregnant in next month"><annotation xsi:type="a:Annotation"><a:t name="input" value="The client is planning to get pregnant in next month"/><a:t name="pseudocode" value="&#34;Potential contraindications&#34; = &#34;Planning to get pregnant in the next month&#34;"/><a:t name="code" value="The client is planning to get pregnant in next month-76"/><a:t name="decision" value="IMMZ.D5.DT.Rubella contraindications"/><a:s r="260"><a:s>/*
@input: The client is planning to get pregnant in next month
@pseudocode: "Potential contraindications" = "Planning to get pregnant in the next month"
@code: The client is planning to get pregnant in next month-76
@decision: IMMZ.D5.DT.Rubella contraindications
*/
define "The client is planning to get pregnant in next month":
  </a:s><a:s r="262"><a:s r="261"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="262"><a:s>"The client is planning to get pregnant in next month"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="262" locator="48:3-48:66" name="The client is planning to get pregnant in next month" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="265" locator="56:1-57:52" name="The client is receiving blood products"><annotation xsi:type="a:Annotation"><a:t name="input" value="The client is receiving blood products"/><a:t name="pseudocode" value="&#34;Potential contraindications&#34; = &#34;Receiving blood products&#34;"/><a:t name="code" value="The client is receiving blood products-58"/><a:t name="decision" value="IMMZ.D5.DT.Rubella contraindications"/><a:s r="265"><a:s>/*
@input: The client is receiving blood products
@pseudocode: "Potential contraindications" = "Receiving blood products"
@code: The client is receiving blood products-58
@decision: IMMZ.D5.DT.Rubella contraindications
*/
define "The client is receiving blood products":
  </a:s><a:s r="267"><a:s r="266"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="267"><a:s>"The client is receiving blood products"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="267" locator="57:3-57:52" name="The client is receiving blood products" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="270" locator="65:1-66:65" name="The client has history of severe allergic reactions"><annotation xsi:type="a:Annotation"><a:t name="input" value="The client has history of severe allergic reactions"/><a:t name="pseudocode" value="&#34;Potential contraindications&#34; = &#34;Severe allergic reactions&#34;"/><a:t name="code" value="The client has history of severe allergic reactions-59"/><a:t name="decision" value="IMMZ.D5.DT.Rubella contraindications"/><a:s r="270"><a:s>/*
@input: The client has history of severe allergic reactions
@pseudocode: "Potential contraindications" = "Severe allergic reactions"
@code: The client has history of severe allergic reactions-59
@decision: IMMZ.D5.DT.Rubella contraindications
*/
define "The client has history of severe allergic reactions":
  </a:s><a:s r="272"><a:s r="271"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="272"><a:s>"The client has history of severe allergic reactions"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="272" locator="66:3-66:65" name="The client has history of severe allergic reactions" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="275" locator="74:1-75:56" name="The client has symptomatic HIV infection"><annotation xsi:type="a:Annotation"><a:t name="input" value="The client has symptomatic HIV infection"/><a:t name="pseudocode" value="&#34;Potential contraindications&#34; = &#34;Symptomatic HIV infection&#34;"/><a:t name="code" value="The client has symptomatic HIV infection-59"/><a:t name="decision" value="IMMZ.D5.DT.Rubella contraindications"/><a:s r="275"><a:s>/*
@input: The client has symptomatic HIV infection
@pseudocode: "Potential contraindications" = "Symptomatic HIV infection"
@code: The client has symptomatic HIV infection-59
@decision: IMMZ.D5.DT.Rubella contraindications
*/
define "The client has symptomatic HIV infection":
  </a:s><a:s r="277"><a:s r="276"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="277"><a:s>"The client has a symptomatic HIV infection"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="277" locator="75:3-75:56" name="The client has a symptomatic HIV infection" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="280" locator="83:1-84:39" name="The client has TB disease"><annotation xsi:type="a:Annotation"><a:t name="input" value="The client has TB disease"/><a:t name="pseudocode" value="&#34;Potential contraindications&#34; = &#34;TB disease&#34;"/><a:t name="code" value="The client has TB disease-44"/><a:t name="decision" value="IMMZ.D5.DT.Rubella contraindications"/><a:s r="280"><a:s>/*
@input: The client has TB disease
@pseudocode: "Potential contraindications" = "TB disease"
@code: The client has TB disease-44
@decision: IMMZ.D5.DT.Rubella contraindications
*/
define "The client has TB disease":
  </a:s><a:s r="282"><a:s r="281"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="282"><a:s>"The client has TB disease"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="282" locator="84:3-84:39" name="The client has TB disease" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="285" locator="92:1-93:55" name="The client has immunodeficiency syndromes"><annotation xsi:type="a:Annotation"><a:t name="input" value="The client has immunodeficiency syndromes"/><a:t name="pseudocode" value="&#34;Potential contraindications&#34; = &#34;Immunodeficiency syndromes&#34;"/><a:t name="code" value="The client has immunodeficiency syndromes-60"/><a:t name="decision" value="IMMZ.D5.DT.Rubella contraindications"/><a:s r="285"><a:s>/*
@input: The client has immunodeficiency syndromes
@pseudocode: "Potential contraindications" = "Immunodeficiency syndromes"
@code: The client has immunodeficiency syndromes-60
@decision: IMMZ.D5.DT.Rubella contraindications
*/
define "The client has immunodeficiency syndromes":
  </a:s><a:s r="287"><a:s r="286"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="287"><a:s>"The client has immunodeficiency syndromes"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="287" locator="93:3-93:55" name="The client has immunodeficiency syndromes" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="290" locator="101:1-102:66" name="The client is exposed to immunosuppressive treatment"><annotation xsi:type="a:Annotation"><a:t name="input" value="The client is exposed to immunosuppressive treatment"/><a:t name="pseudocode" value="&#34;Potential contraindications&#34; = &#34;Exposed to immunosuppressive treatment&#34;"/><a:t name="code" value="The client is exposed to immunosuppressive treatment-72"/><a:t name="decision" value="IMMZ.D5.DT.Rubella contraindications"/><a:s r="290"><a:s>/*
@input: The client is exposed to immunosuppressive treatment
@pseudocode: "Potential contraindications" = "Exposed to immunosuppressive treatment"
@code: The client is exposed to immunosuppressive treatment-72
@decision: IMMZ.D5.DT.Rubella contraindications
*/
define "The client is exposed to immunosuppressive treatment":
  </a:s><a:s r="292"><a:s r="291"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="292"><a:s>"The client is exposed to immunosuppressive treatment"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="292" locator="102:3-102:66" name="The client is exposed to immunosuppressive treatment" xsi:type="ExpressionRef"/></def></statements></library>