<?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="288"><a:s>/*
  * Library: IMMZD2DTDengueEncounterElements
  */
library IMMZD2DTDengueEncounterElements</a:s></a:s></annotation><identifier id="IMMZD2DTDengueEncounterElements" 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="DengueElements" locator="18:1-18:52" path="http://smart.who.int/immunizations/IMMZD2DTDengueElements"><annotation xsi:type="a:Annotation"><a:s r="222"><a:s>include </a:s><a:s><a:s>IMMZD2DTDengueElements</a:s></a:s><a:s> called DengueElements</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:47" name="Dengue Doses Administered to Patient"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Dengue containing Doses Administered to Patient"/><a:s r="239"><a:s>/*
@internal: Dengue containing Doses Administered to Patient
*/
define "Dengue 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>"Dengue vaccines"</a:s></a:s></a:s></a:s></a:s></a:s></a:s></annotation><expression localId="251" locator="29:3-31:47" 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:47" 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:47" name="Dengue vaccines" preserve="true"/></where></expression></def><def accessLevel="Public" context="Patient" localId="254" locator="36:1-37:56" name="Dengue Primary Series Doses Administered to Patient"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Dengue containing Doses Administered to Patient that are in the Primary series"/><a:s r="254"><a:s>/*
@internal: Dengue containing Doses Administered to Patient that are in the Primary series
*/
define "Dengue Primary Series Doses Administered to Patient":
  </a:s><a:s r="256"><a:s r="255"><a:s>"Dengue 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:56" name="seriesPrimary" xsi:type="FunctionRef"><operand localId="255" locator="37:3-37:40" name="Dengue Doses Administered to Patient" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Patient" localId="259" locator="42:1-43:62" name="Number of Dengue Primary Series Doses Administered"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Number of Dengue Primary Series doses"/><a:s r="259"><a:s>/*
@internal: Number of Dengue Primary Series doses
*/
define "Number of Dengue Primary Series Doses Administered":
  </a:s><a:s r="263"><a:s>Count(</a:s><a:s r="260"><a:s>"Dengue 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:62" xsi:type="Count"><source localId="260" locator="43:9-43:61" name="Dengue Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Patient" localId="266" locator="52:1-53:46" name="Client's age is less than 9 years"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's age is less than 9 years"/><a:t name="pseudocode" value="&#34;Date of birth&#34; &lt; 9 years"/><a:t name="code" value="Client's age is less than 9 years-40"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]"/><a:s r="266"><a:s>/*
@input: Client's age is less than 9 years
@pseudocode: Today's date − "Date of birth" &lt; 9 years
@code: Client's age is less than 9 years-40
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
@decision: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]
*/
define "Client's age is less than 9 years":
  </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 Years"</a:s></a:s></a:s><a:s r="270"> &lt; 9</a:s></a:s></a:s></annotation><expression localId="267" locator="53:3-53: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="53:3-53:42" name="Current Patient Age In Years" xsi:type="ExpressionRef"/><operand localId="270" locator="53:46" value="9" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="275" locator="62:1-63:47" name="Client's age is more than 45 years"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's age is more than 45 years"/><a:t name="pseudocode" value="&#34;Date of birth&#34; &gt; 45 years"/><a:t name="code" value="Client's age is more than 45 years-41"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]"/><a:s r="275"><a:s>/*
@input: Client's age is more than 45 years
@pseudocode: Today's date − "Date of birth" &gt; 45 years
@code: Client's age is more than 45 years-41
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
@decision: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]
*/
define "Client's age is more than 45 years":
  </a:s><a:s r="276"><a:s r="278"><a:s r="277"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="278"><a:s>"Current Patient Age In Years"</a:s></a:s></a:s><a:s r="279"> &gt; 45</a:s></a:s></a:s></annotation><expression localId="276" locator="63:3-63:47" xsi:type="Greater"><signature localId="280" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="281" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Encounter" localId="278" locator="63:3-63:42" name="Current Patient Age In Years" xsi:type="ExpressionRef"/><operand localId="279" locator="63:46-63:47" value="45" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="288" locator="165:1-166:88" name="Dengue serostatus Observation"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Dengue serostatus Observation"/><a:s r="288"><a:s>/*
@internal: Dengue serostatus Observation
*/
define "Dengue serostatus Observation":
  </a:s><a:s r="293"><a:s r="290"><a:s r="289"><a:s>DengueElements</a:s></a:s><a:s>.</a:s><a:s r="290"><a:s>"Dengue serostatus Observation"</a:s></a:s></a:s><a:s>.</a:s><a:s r="293"><a:s>encounterOrOnBefore(</a:s><a:s r="291"><a:s>EncounterId</a:s></a:s><a:s>, </a:s><a:s r="292"><a:s>Today</a:s></a:s><a:s>)</a:s></a:s></a:s></a:s></annotation><expression libraryName="Common" localId="293" locator="166:3-166:88" name="encounterOrOnBefore" xsi:type="FunctionRef"><operand libraryName="DengueElements" localId="290" locator="166:3-166:48" name="Dengue serostatus Observation" xsi:type="ExpressionRef"/><operand localId="291" locator="166:70-166:80" name="EncounterId" xsi:type="ParameterRef"/><operand localId="292" locator="166:83-166:87" name="Today" xsi:type="ParameterRef"/></expression></def><def accessLevel="Public" context="Patient" localId="284" locator="71:1-72:77" name="Client's dengue serostatus is negative"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's dengue serostatus is negative"/><a:t name="pseudocode" value="&#34;Dengue serostatus&#34; = &#34;Negative&#34;"/><a:t name="code" value="Client's dengue serostatus is negative-32"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:s r="284"><a:s>/*
@input: Client's dengue serostatus is negative
@pseudocode: "Dengue serostatus" = "Negative"
@code: Client's dengue serostatus is negative-32
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
*/
define "Client's dengue serostatus is negative":
  </a:s><a:s r="285"><a:s r="298"><a:s r="297"><a:s>First( </a:s><a:s r="294"><a:s>"Dengue serostatus Observation"</a:s></a:s><a:s> )</a:s></a:s><a:s>.</a:s><a:s r="298"><a:s>value</a:s></a:s></a:s><a:s> ~ </a:s><a:s r="300"><a:s r="299"><a:s>Concepts</a:s></a:s><a:s>.</a:s><a:s r="300"><a:s>"Dengue-Negative"</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="285" locator="72:3-72:77" xsi:type="Equivalent"><signature localId="306" name="t:Concept" xsi:type="NamedTypeSpecifier"/><signature localId="307" name="t:Concept" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="302" name="ToConcept" xsi:type="FunctionRef"><operand asType="fhir:CodeableConcept" localId="301" xsi:type="As"><operand localId="298" locator="72:3-72:48" path="value" xsi:type="Property"><source localId="297" locator="72:3-72:42" xsi:type="First"><source localId="294" locator="72:10-72:40" name="Dengue serostatus Observation" xsi:type="ExpressionRef"/></source></operand></operand></operand><operand localId="304" xsi:type="ToConcept"><signature localId="305" name="t:Code" xsi:type="NamedTypeSpecifier"/><operand libraryName="Concepts" localId="300" locator="72:52-72:77" name="Dengue-Negative" xsi:type="CodeRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="310" locator="81:1-82:58" name="No dengue primary series doses were administered"><annotation xsi:type="a:Annotation"><a:t name="input" value="No dengue primary series doses were administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Dengue vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 0"/><a:t name="code" value="No dengue primary series doses were administered-115"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]"/><a:s r="310"><a:s>/*
@input: No dengue primary series doses were administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Dengue vaccines" and "Type of dose" = "Primary series") = 0
@code: No dengue primary series doses were administered-115
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
@decision: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]
*/
define "No dengue primary series doses were administered":
  </a:s><a:s r="311"><a:s r="312"><a:s>"Number of Dengue Primary Series Doses Administered"</a:s></a:s><a:s r="313"> = 0</a:s></a:s></a:s></annotation><expression localId="311" locator="82:3-82:58" xsi:type="Equal"><signature localId="314" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="315" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="312" locator="82:3-82:54" name="Number of Dengue Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="313" locator="82:58" value="0" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="318" locator="91:1-93:52" name="Client's age is between 9 years and 45 years"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's age is between 9 years and 45 years"/><a:t name="pseudocode" value="&#34;Date of birth&#34; ≤ 45 years"/><a:t name="code" value="Client's age is between 9 years and 45 years-51"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]"/><a:s r="318"><a:s>/*
@input: Client's age is between 9 years and 45 years
@pseudocode: 9 years ≤ Today's date − "Date of birth" ≤ 45 years
@code: Client's age is between 9 years and 45 years-51
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
@decision: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]
*/
define "Client's age is between 9 years and 45 years":
  </a:s><a:s r="319"><a:s r="320"><a:s r="322"><a:s r="321"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="322"><a:s>"Current Patient Age In Years"</a:s></a:s></a:s><a:s r="323"> &gt;= 9</a:s></a:s><a:s>
  and </a:s><a:s r="326"><a:s r="328"><a:s r="327"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="328"><a:s>"Current Patient Age In Years"</a:s></a:s></a:s><a:s r="329"> &lt;= 45</a:s></a:s></a:s></a:s></annotation><expression localId="319" locator="92:3-93:52" xsi:type="And"><operand localId="320" locator="92:3-92:47" xsi:type="GreaterOrEqual"><signature localId="324" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="325" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Encounter" localId="322" locator="92:3-92:42" name="Current Patient Age In Years" xsi:type="ExpressionRef"/><operand localId="323" locator="92:47" value="9" valueType="t:Integer" xsi:type="Literal"/></operand><operand localId="326" locator="93:7-93:52" xsi:type="LessOrEqual"><signature localId="330" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="331" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Encounter" localId="328" locator="93:7-93:46" name="Current Patient Age In Years" xsi:type="ExpressionRef"/><operand localId="329" locator="93:51-93:52" value="45" valueType="t:Integer" xsi:type="Literal"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="334" locator="101:1-102:77" name="Client's dengue serostatus is positive"><annotation xsi:type="a:Annotation"><a:t name="input" value="Client's dengue serostatus is positive"/><a:t name="pseudocode" value="&#34;Dengue serostatus&#34; = &#34;Positive&#34;"/><a:t name="code" value="Client's dengue serostatus is positive-32"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:s r="334"><a:s>/*
@input: Client's dengue serostatus is positive
@pseudocode: "Dengue serostatus" = "Positive"
@code: Client's dengue serostatus is positive-32
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
*/
define "Client's dengue serostatus is positive":
  </a:s><a:s r="335"><a:s r="340"><a:s r="339"><a:s>First( </a:s><a:s r="336"><a:s>"Dengue serostatus Observation"</a:s></a:s><a:s> )</a:s></a:s><a:s>.</a:s><a:s r="340"><a:s>value</a:s></a:s></a:s><a:s> ~ </a:s><a:s r="342"><a:s r="341"><a:s>Concepts</a:s></a:s><a:s>.</a:s><a:s r="342"><a:s>"Dengue-Positive"</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="335" locator="102:3-102:77" xsi:type="Equivalent"><signature localId="348" name="t:Concept" xsi:type="NamedTypeSpecifier"/><signature localId="349" name="t:Concept" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="344" name="ToConcept" xsi:type="FunctionRef"><operand asType="fhir:CodeableConcept" localId="343" xsi:type="As"><operand localId="340" locator="102:3-102:48" path="value" xsi:type="Property"><source localId="339" locator="102:3-102:42" xsi:type="First"><source localId="336" locator="102:10-102:40" name="Dengue serostatus Observation" xsi:type="ExpressionRef"/></source></operand></operand></operand><operand localId="346" xsi:type="ToConcept"><signature localId="347" name="t:Code" xsi:type="NamedTypeSpecifier"/><operand libraryName="Concepts" localId="342" locator="102:52-102:77" name="Dengue-Positive" xsi:type="CodeRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="352" locator="111:1-112:58" name="One dengue primary series dose was administered"><annotation xsi:type="a:Annotation"><a:t name="input" value="One dengue primary series dose was administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Dengue vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 1"/><a:t name="code" value="One dengue primary series dose was administered-115"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]"/><a:s r="352"><a:s>/*
@input: One dengue primary series dose was administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Dengue vaccines" and "Type of dose" = "Primary series") = 1
@code: One dengue primary series dose was administered-115
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
@decision: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]
*/
define "One dengue primary series dose was administered":
  </a:s><a:s r="353"><a:s r="354"><a:s>"Number of Dengue Primary Series Doses Administered"</a:s></a:s><a:s r="355"> = 1</a:s></a:s></a:s></annotation><expression localId="353" locator="112:3-112:58" xsi:type="Equal"><signature localId="356" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="357" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="354" locator="112:3-112:54" name="Number of Dengue Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="355" locator="112:58" value="1" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="364" locator="159:1-160:96" name="Date of Latest Dengue Dose"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Date of Latest Dengue Dose"/><a:s r="364"><a:s>/*
@internal: Date of Latest Dengue Dose
*/
define "Date of Latest Dengue Dose":
  </a:s><a:s r="365"><a:s>date from </a:s><a:s r="366"><a:s>start of </a:s><a:s r="372"><a:s r="371"><a:s r="368"><a:s r="367"><a:s>"Dengue Doses Administered to Patient"</a:s></a:s><a:s>.</a:s><a:s r="368"><a:s>mostRecent()</a:s></a:s></a:s><a:s>.</a:s><a:s r="371"><a:s>occurrence</a:s></a:s></a:s><a:s>.</a:s><a:s r="372"><a:s>toInterval()</a:s></a:s></a:s></a:s></a:s></a:s></annotation><expression localId="365" locator="160:3-160:96" xsi:type="DateFrom"><operand localId="366" locator="160:13-160:96" xsi:type="Start"><operand libraryName="WC" localId="372" locator="160:22-160:96" name="toInterval" xsi:type="FunctionRef"><operand localId="371" locator="160:22-160:83" path="occurrence" xsi:type="Property"><source libraryName="WC" localId="368" locator="160:22-160:72" name="mostRecent" xsi:type="FunctionRef"><signature localId="369" xsi:type="ListTypeSpecifier"><elementType localId="370" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/></signature><operand localId="367" locator="160:22-160:59" name="Dengue Doses Administered to Patient" xsi:type="ExpressionRef"/></source></operand></operand></operand></expression></def><def accessLevel="Public" context="Patient" localId="360" locator="121:1-123:75" name="The latest dengue dose was administered less than 6 months ago"><annotation xsi:type="a:Annotation"><a:t name="input" value="The latest dengue dose was administered less than 6 months ago"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34; = &#34;Dengue vaccines&#34;) &lt; 6 months"/><a:t name="code" value="The latest dengue dose was administered less than 6 months ago-106"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]"/><a:s r="360"><a:s>/*
@input: The latest dengue dose was administered less than 6 months ago
@pseudocode: Today's date - Latest "Date and time of vaccination" (where "Vaccine type" = "Dengue vaccines") &lt; 6 months
@code: The latest dengue dose was administered less than 6 months ago-106
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
@decision: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]
*/
define "The latest dengue dose was administered less than 6 months ago":
  </a:s><a:s r="361"><a:s r="375"><a:s r="373"><a:s>"Date of Latest Dengue Dose"</a:s></a:s><a:s> is not null</a:s></a:s><a:s>
  and </a:s><a:s r="376"><a:s r="377"><a:s>duration in months between </a:s><a:s r="378"><a:s>"Date of Latest Dengue Dose"</a:s></a:s><a:s> and </a:s><a:s r="379"><a:s>Today</a:s></a:s></a:s><a:s r="382"> &lt; 6</a:s></a:s></a:s></a:s></annotation><expression localId="361" locator="122:3-123:75" xsi:type="And"><operand localId="375" locator="122:3-122:42" xsi:type="Not"><operand localId="374" locator="122:3-122:42" xsi:type="IsNull"><operand localId="373" locator="122:3-122:30" name="Date of Latest Dengue Dose" xsi:type="ExpressionRef"/></operand></operand><operand localId="376" locator="123:7-123:75" xsi:type="Less"><signature localId="383" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="384" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="377" locator="123:7-123:71" precision="Month" xsi:type="DurationBetween"><signature localId="380" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="381" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="378" locator="123:34-123:61" name="Date of Latest Dengue Dose" xsi:type="ExpressionRef"/><operand localId="379" locator="123:67-123:71" name="Today" xsi:type="ParameterRef"/></operand><operand localId="382" locator="123:75" value="6" valueType="t:Integer" xsi:type="Literal"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="387" locator="132:1-134:76" name="The latest dengue dose was administered more than 6 months ago"><annotation xsi:type="a:Annotation"><a:t name="input" value="The latest dengue dose was administered more than 6 months ago"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34; = &#34;Dengue vaccines&#34;) ≥ 6 months"/><a:t name="code" value="The latest dengue dose was administered more than 6 months ago-106"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]"/><a:s r="387"><a:s>/*
@input: The latest dengue dose was administered more than 6 months ago
@pseudocode: Today's date - Latest "Date and time of vaccination" (where "Vaccine type" = "Dengue vaccines") ≥ 6 months
@code: The latest dengue dose was administered more than 6 months ago-106
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
@decision: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]
*/
define "The latest dengue dose was administered more than 6 months ago":
  </a:s><a:s r="388"><a:s r="391"><a:s r="389"><a:s>"Date of Latest Dengue Dose"</a:s></a:s><a:s> is not null</a:s></a:s><a:s>
  and </a:s><a:s r="392"><a:s r="393"><a:s>duration in months between </a:s><a:s r="394"><a:s>"Date of Latest Dengue Dose"</a:s></a:s><a:s> and </a:s><a:s r="395"><a:s>Today</a:s></a:s></a:s><a:s r="398"> &gt;= 6</a:s></a:s></a:s></a:s></annotation><expression localId="388" locator="133:3-134:76" xsi:type="And"><operand localId="391" locator="133:3-133:42" xsi:type="Not"><operand localId="390" locator="133:3-133:42" xsi:type="IsNull"><operand localId="389" locator="133:3-133:30" name="Date of Latest Dengue Dose" xsi:type="ExpressionRef"/></operand></operand><operand localId="392" locator="134:7-134:76" xsi:type="GreaterOrEqual"><signature localId="399" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="400" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="393" locator="134:7-134:71" precision="Month" xsi:type="DurationBetween"><signature localId="396" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="397" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="394" locator="134:34-134:61" name="Date of Latest Dengue Dose" xsi:type="ExpressionRef"/><operand localId="395" locator="134:67-134:71" name="Today" xsi:type="ParameterRef"/></operand><operand localId="398" locator="134:76" value="6" valueType="t:Integer" xsi:type="Literal"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="403" locator="143:1-144:58" name="Two dengue primary series doses were administered"><annotation xsi:type="a:Annotation"><a:t name="input" value="Two dengue primary series doses were administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Dengue vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 2"/><a:t name="code" value="Two dengue primary series doses were administered-115"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]"/><a:s r="403"><a:s>/*
@input: Two dengue primary series doses were administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Dengue vaccines" and "Type of dose" = "Primary series") = 2
@code: Two dengue primary series doses were administered-115
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
@decision: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]
*/
define "Two dengue primary series doses were administered":
  </a:s><a:s r="404"><a:s r="405"><a:s>"Number of Dengue Primary Series Doses Administered"</a:s></a:s><a:s r="406"> = 2</a:s></a:s></a:s></annotation><expression localId="404" locator="144:3-144:58" xsi:type="Equal"><signature localId="407" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="408" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="405" locator="144:3-144:54" name="Number of Dengue Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="406" locator="144:58" value="2" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="411" locator="153:1-154:58" name="Three dengue primary series doses were administered"><annotation xsi:type="a:Annotation"><a:t name="input" value="Three dengue primary series doses were administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;Dengue vaccines&#34; and &#34;Type of dose&#34; = &#34;Primary series&#34;) = 3"/><a:t name="code" value="Three dengue primary series doses were administered-115"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)"/><a:t name="decision" value="IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]"/><a:s r="411"><a:s>/*
@input: Three dengue primary series doses were administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "Dengue vaccines" and "Type of dose" = "Primary series") = 3
@code: Three dengue primary series doses were administered-115
@decision: IMMZ.D2.DT.Dengue.3 doses with pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule with pre-vaccination screening, the recommended strategy where feasible (pre-vaccination screening whereby only those tested seropositive would be vaccinated)
@decision: IMMZ.D2.DT.Dengue.3 doses without pre-vaccination screening: CYD-TDV (Dengvaxia), 3-dose schedule without pre-vaccination screening [when pre-vaccination screening is not feasible and in areas with recent documentation of seroprevalence rates of at least 80% by age 9 years]
*/
define "Three dengue primary series doses were administered":
  </a:s><a:s r="412"><a:s r="413"><a:s>"Number of Dengue Primary Series Doses Administered"</a:s></a:s><a:s r="414"> = 3</a:s></a:s></a:s></annotation><expression localId="412" locator="154:3-154:58" xsi:type="Equal"><signature localId="415" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="416" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="413" locator="154:3-154:54" name="Number of Dengue Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="414" locator="154:58" value="3" valueType="t:Integer" xsi:type="Literal"/></expression></def></statements></library>