<?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="277"><a:s>/*
  * Library: IMMZD2DTDengueElements
  */
library IMMZD2DTDengueElements</a:s></a:s></annotation><identifier id="IMMZD2DTDengueElements" 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: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="228"><a:s>/*
@internal: Dengue containing Doses Administered to Patient
*/
define "Dengue 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>"Dengue vaccines"</a:s></a:s></a:s></a:s></a:s></a:s></a:s></annotation><expression localId="240" locator="25:3-27:47" 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:47" 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:47" name="Dengue vaccines" preserve="true"/></where></expression></def><def accessLevel="Public" context="Patient" localId="243" locator="32:1-33: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="243"><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="245"><a:s r="244"><a:s>"Dengue 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:56" name="seriesPrimary" xsi:type="FunctionRef"><operand localId="244" locator="33:3-33:40" name="Dengue Doses Administered to Patient" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Patient" localId="248" locator="38:1-39: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="248"><a:s>/*
@internal: Number of Dengue Primary Series doses
*/
define "Number of Dengue Primary Series Doses Administered":
  </a:s><a:s r="252"><a:s>Count(</a:s><a:s r="249"><a:s>"Dengue 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:62" xsi:type="Count"><source localId="249" locator="39:9-39:61" name="Dengue Primary Series Doses Administered to Patient" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Patient" localId="255" locator="48:1-49:45" 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="255"><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="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 Years"</a:s></a:s></a:s><a:s r="259"> &lt; 9</a:s></a:s></a:s></annotation><expression localId="256" locator="49:3-49:45" 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="49:3-49:41" name="Current Patient Age In Years" xsi:type="ExpressionRef"/><operand localId="259" locator="49:45" value="9" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="264" locator="58:1-59:46" 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="264"><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="265"><a:s r="267"><a:s r="266"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="267"><a:s>"Current Patient Age In Years"</a:s></a:s></a:s><a:s r="268"> &gt; 45</a:s></a:s></a:s></annotation><expression localId="265" locator="59:3-59:46" xsi:type="Greater"><signature localId="269" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="270" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Elements" localId="267" locator="59:3-59:41" name="Current Patient Age In Years" xsi:type="ExpressionRef"/><operand localId="268" locator="59:45-59:46" value="45" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="277" locator="161:1-163:58" name="Dengue serostatus Observation"><annotation xsi:type="a:Annotation"><a:t name="internal" value="Dengue serostatus Observation"/><a:s r="277"><a:s>/*
@internal: Dengue serostatus Observation
*/
define "Dengue serostatus Observation":
  </a:s><a:s r="303"><a:s r="302"><a:s>(</a:s><a:s r="302"><a:s><a:s r="278"><a:s r="282"><a:s r="282"><a:s>[Observation: </a:s><a:s><a:s>Concepts."Dengue serostatus"</a:s></a:s><a:s>]</a:s></a:s></a:s><a:s> O</a:s></a:s></a:s><a:s>
    </a:s><a:s r="296"><a:s>sort by </a:s><a:s r="295"><a:s r="292"><a:s>end of </a:s><a:s r="294"><a:s r="293"><a:s>effective</a:s></a:s><a:s>.</a:s><a:s r="294"><a:s>toInterval()</a:s></a:s></a:s></a:s><a:s> desc</a:s></a:s></a:s></a:s><a:s>)</a:s></a:s><a:s>.</a:s><a:s r="303"><a:s>complete()</a:s></a:s></a:s></a:s></annotation><expression libraryName="WC" localId="303" locator="162:3-163:58" name="complete" xsi:type="FunctionRef"><operand localId="302" locator="162:3-163:47" xsi:type="Query"><source alias="O" localId="278" locator="162:4-162:48"><expression codeComparator="~" codeProperty="code" dataType="fhir:Observation" localId="282" locator="162:4-162:46" templateId="http://hl7.org/fhir/StructureDefinition/Observation" xsi:type="Retrieve"><codes localId="290" xsi:type="ToList"><operand libraryName="Concepts" localId="281" locator="162:18-162:45" name="Dengue serostatus" xsi:type="CodeRef"/></codes></expression></source><sort localId="296" locator="163:5-163:46"><by direction="desc" localId="295" locator="163:13-163:46" xsi:type="ByExpression"><expression localId="292" locator="163:13-163:41" xsi:type="End"><operand libraryName="WC" localId="294" locator="163:20-163:41" name="toInterval" xsi:type="FunctionRef"><operand localId="293" locator="163:20-163:28" name="effective" xsi:type="IdentifierRef"/></operand></expression></by></sort></operand></expression></def><def accessLevel="Public" context="Patient" localId="273" locator="67:1-68: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="273"><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="274"><a:s r="308"><a:s r="307"><a:s>First( </a:s><a:s r="304"><a:s>"Dengue serostatus Observation"</a:s></a:s><a:s> )</a:s></a:s><a:s>.</a:s><a:s r="308"><a:s>value</a:s></a:s></a:s><a:s> ~ </a:s><a:s r="310"><a:s r="309"><a:s>Concepts</a:s></a:s><a:s>.</a:s><a:s r="310"><a:s>"Dengue-Negative"</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="274" locator="68:3-68:77" xsi:type="Equivalent"><signature localId="316" name="t:Concept" xsi:type="NamedTypeSpecifier"/><signature localId="317" name="t:Concept" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="312" name="ToConcept" xsi:type="FunctionRef"><operand asType="fhir:CodeableConcept" localId="311" xsi:type="As"><operand localId="308" locator="68:3-68:48" path="value" xsi:type="Property"><source localId="307" locator="68:3-68:42" xsi:type="First"><source localId="304" locator="68:10-68:40" name="Dengue serostatus Observation" xsi:type="ExpressionRef"/></source></operand></operand></operand><operand localId="314" xsi:type="ToConcept"><signature localId="315" name="t:Code" xsi:type="NamedTypeSpecifier"/><operand libraryName="Concepts" localId="310" locator="68:52-68:77" name="Dengue-Negative" xsi:type="CodeRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="320" locator="77:1-78: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="320"><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="321"><a:s r="322"><a:s>"Number of Dengue Primary Series Doses Administered"</a:s></a:s><a:s r="323"> = 0</a:s></a:s></a:s></annotation><expression localId="321" locator="78:3-78:58" xsi:type="Equal"><signature localId="324" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="325" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="322" locator="78:3-78:54" name="Number of Dengue Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="323" locator="78:58" value="0" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="328" locator="87:1-89:51" 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="328"><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="329"><a:s r="330"><a:s r="332"><a:s r="331"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="332"><a:s>"Current Patient Age In Years"</a:s></a:s></a:s><a:s r="333"> &gt;= 9</a:s></a:s><a:s>
  and </a:s><a:s r="336"><a:s r="338"><a:s r="337"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="338"><a:s>"Current Patient Age In Years"</a:s></a:s></a:s><a:s r="339"> &lt;= 45</a:s></a:s></a:s></a:s></annotation><expression localId="329" locator="88:3-89:51" xsi:type="And"><operand localId="330" locator="88:3-88:46" xsi:type="GreaterOrEqual"><signature localId="334" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="335" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Elements" localId="332" locator="88:3-88:41" name="Current Patient Age In Years" xsi:type="ExpressionRef"/><operand localId="333" locator="88:46" value="9" valueType="t:Integer" xsi:type="Literal"/></operand><operand localId="336" locator="89:7-89:51" xsi:type="LessOrEqual"><signature localId="340" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="341" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand libraryName="Elements" localId="338" locator="89:7-89:45" name="Current Patient Age In Years" xsi:type="ExpressionRef"/><operand localId="339" locator="89:50-89:51" value="45" valueType="t:Integer" xsi:type="Literal"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="344" locator="97:1-98: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="344"><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="345"><a:s r="350"><a:s r="349"><a:s>First( </a:s><a:s r="346"><a:s>"Dengue serostatus Observation"</a:s></a:s><a:s> )</a:s></a:s><a:s>.</a:s><a:s r="350"><a:s>value</a:s></a:s></a:s><a:s> ~ </a:s><a:s r="352"><a:s r="351"><a:s>Concepts</a:s></a:s><a:s>.</a:s><a:s r="352"><a:s>"Dengue-Positive"</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="345" locator="98:3-98:77" xsi:type="Equivalent"><signature localId="358" name="t:Concept" xsi:type="NamedTypeSpecifier"/><signature localId="359" name="t:Concept" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="354" name="ToConcept" xsi:type="FunctionRef"><operand asType="fhir:CodeableConcept" localId="353" xsi:type="As"><operand localId="350" locator="98:3-98:48" path="value" xsi:type="Property"><source localId="349" locator="98:3-98:42" xsi:type="First"><source localId="346" locator="98:10-98:40" name="Dengue serostatus Observation" xsi:type="ExpressionRef"/></source></operand></operand></operand><operand localId="356" xsi:type="ToConcept"><signature localId="357" name="t:Code" xsi:type="NamedTypeSpecifier"/><operand libraryName="Concepts" localId="352" locator="98:52-98:77" name="Dengue-Positive" xsi:type="CodeRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="362" locator="107:1-108: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="362"><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="363"><a:s r="364"><a:s>"Number of Dengue Primary Series Doses Administered"</a:s></a:s><a:s r="365"> = 1</a:s></a:s></a:s></annotation><expression localId="363" locator="108:3-108:58" xsi:type="Equal"><signature localId="366" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="367" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="364" locator="108:3-108:54" name="Number of Dengue Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="365" locator="108:58" value="1" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="374" locator="155:1-156: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="374"><a:s>/*
@internal: Date of Latest Dengue Dose
*/
define "Date of Latest Dengue Dose":
  </a:s><a:s r="375"><a:s>date from </a:s><a:s r="376"><a:s>start of </a:s><a:s r="382"><a:s r="381"><a:s r="378"><a:s r="377"><a:s>"Dengue Doses Administered to Patient"</a:s></a:s><a:s>.</a:s><a:s r="378"><a:s>mostRecent()</a:s></a:s></a:s><a:s>.</a:s><a:s r="381"><a:s>occurrence</a:s></a:s></a:s><a:s>.</a:s><a:s r="382"><a:s>toInterval()</a:s></a:s></a:s></a:s></a:s></a:s></annotation><expression localId="375" locator="156:3-156:96" xsi:type="DateFrom"><operand localId="376" locator="156:13-156:96" xsi:type="Start"><operand libraryName="WC" localId="382" locator="156:22-156:96" name="toInterval" xsi:type="FunctionRef"><operand localId="381" locator="156:22-156:83" path="occurrence" xsi:type="Property"><source libraryName="WC" localId="378" locator="156:22-156:72" name="mostRecent" xsi:type="FunctionRef"><signature localId="379" xsi:type="ListTypeSpecifier"><elementType localId="380" name="fhir:Immunization" xsi:type="NamedTypeSpecifier"/></signature><operand localId="377" locator="156:22-156:59" name="Dengue Doses Administered to Patient" xsi:type="ExpressionRef"/></source></operand></operand></operand></expression></def><def accessLevel="Public" context="Patient" localId="370" locator="117:1-119: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="370"><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="371"><a:s r="385"><a:s r="383"><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="386"><a:s r="387"><a:s>duration in months between </a:s><a:s r="388"><a:s>"Date of Latest Dengue Dose"</a:s></a:s><a:s> and </a:s><a:s r="391"><a:s>Now()</a:s></a:s></a:s><a:s r="397"> &lt; 6</a:s></a:s></a:s></a:s></annotation><expression localId="371" locator="118:3-119:75" xsi:type="And"><operand localId="385" locator="118:3-118:42" xsi:type="Not"><operand localId="384" locator="118:3-118:42" xsi:type="IsNull"><operand localId="383" locator="118:3-118:30" name="Date of Latest Dengue Dose" xsi:type="ExpressionRef"/></operand></operand><operand localId="386" locator="119:7-119:75" xsi:type="Less"><signature localId="398" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="399" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="387" locator="119:7-119:71" precision="Month" xsi:type="DurationBetween"><signature localId="395" name="t:DateTime" xsi:type="NamedTypeSpecifier"/><signature localId="396" name="t:DateTime" xsi:type="NamedTypeSpecifier"/><operand localId="393" xsi:type="ToDateTime"><signature localId="394" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="388" locator="119:34-119:61" name="Date of Latest Dengue Dose" xsi:type="ExpressionRef"/></operand><operand localId="391" locator="119:67-119:71" xsi:type="Now"/></operand><operand localId="397" locator="119:75" value="6" valueType="t:Integer" xsi:type="Literal"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="402" locator="128:1-130: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="402"><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="403"><a:s r="406"><a:s r="404"><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="407"><a:s r="408"><a:s>duration in months between </a:s><a:s r="409"><a:s>"Date of Latest Dengue Dose"</a:s></a:s><a:s> and </a:s><a:s r="412"><a:s>Now()</a:s></a:s></a:s><a:s r="418"> &gt;= 6</a:s></a:s></a:s></a:s></annotation><expression localId="403" locator="129:3-130:76" xsi:type="And"><operand localId="406" locator="129:3-129:42" xsi:type="Not"><operand localId="405" locator="129:3-129:42" xsi:type="IsNull"><operand localId="404" locator="129:3-129:30" name="Date of Latest Dengue Dose" xsi:type="ExpressionRef"/></operand></operand><operand localId="407" locator="130:7-130:76" xsi:type="GreaterOrEqual"><signature localId="419" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="420" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="408" locator="130:7-130:71" precision="Month" xsi:type="DurationBetween"><signature localId="416" name="t:DateTime" xsi:type="NamedTypeSpecifier"/><signature localId="417" name="t:DateTime" xsi:type="NamedTypeSpecifier"/><operand localId="414" xsi:type="ToDateTime"><signature localId="415" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="409" locator="130:34-130:61" name="Date of Latest Dengue Dose" xsi:type="ExpressionRef"/></operand><operand localId="412" locator="130:67-130:71" xsi:type="Now"/></operand><operand localId="418" locator="130:76" value="6" valueType="t:Integer" xsi:type="Literal"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="423" locator="139:1-140: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="423"><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="424"><a:s r="425"><a:s>"Number of Dengue Primary Series Doses Administered"</a:s></a:s><a:s r="426"> = 2</a:s></a:s></a:s></annotation><expression localId="424" locator="140:3-140:58" xsi:type="Equal"><signature localId="427" name="t:Integer" xsi:type="NamedTypeSpecifier"/><signature localId="428" name="t:Integer" xsi:type="NamedTypeSpecifier"/><operand localId="425" locator="140:3-140:54" name="Number of Dengue Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="426" locator="140:58" value="2" valueType="t:Integer" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="431" locator="149:1-150: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="431"><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="432"><a:s r="433"><a:s>"Number of Dengue Primary Series Doses Administered"</a:s></a:s><a:s r="434"> = 3</a:s></a:s></a:s></annotation><expression localId="432" locator="150:3-150:58" 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="150:3-150:54" name="Number of Dengue Primary Series Doses Administered" xsi:type="ExpressionRef"/><operand localId="434" locator="150:58" value="3" valueType="t:Integer" xsi:type="Literal"/></expression></def></statements></library>