<?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="446"><a:s>/*
 * Library: IMMZD18SHPVSingleDoseLogic (IMMZ.D18.S.Single-dose schedule)
 * Schedule Table: Alternative single-dose schedule
 */
library IMMZD18SHPVSingleDoseLogic</a:s></a:s></annotation><identifier id="IMMZD18SHPVSingleDoseLogic" 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="WC" locator="10:1-10:27" path="http://smart.who.int/immunizations/WHOCommon"><annotation xsi:type="a:Annotation"><a:s r="210"><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="212" localIdentifier="Common" locator="12:1-12:32" path="http://smart.who.int/immunizations/IMMZCommon"><annotation xsi:type="a:Annotation"><a:s r="212"><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="214" localIdentifier="Concepts" locator="13:1-13:36" path="http://smart.who.int/immunizations/IMMZConcepts"><annotation xsi:type="a:Annotation"><a:s r="214"><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="216" localIdentifier="IE" locator="15:1-15:39" path="http://smart.who.int/immunizations/IMMZEncounterElements"><annotation xsi:type="a:Annotation"><a:s r="216"><a:s>include </a:s><a:s><a:s>IMMZEncounterElements</a:s></a:s><a:s> called IE</a:s></a:s></annotation></def><def localId="218" localIdentifier="Encounter" locator="16:1-16:53" path="http://smart.who.int/immunizations/IMMZD2DTHPVEncounterElements"><annotation xsi:type="a:Annotation"><a:s r="218"><a:s>include </a:s><a:s><a:s>IMMZD2DTHPVEncounterElements</a:s></a:s><a:s> called Encounter</a:s></a:s></annotation></def></includes><parameters><def accessLevel="Public" localId="220" locator="18:1-18:36" name="Today"><annotation xsi:type="a:Annotation"><a:s r="220"><a:s>parameter Today </a:s><a:s r="224"><a:s>Date</a:s></a:s><a:s> default </a:s><a:s r="223"><a:s>Today()</a:s></a:s></a:s></annotation><default localId="223" locator="18:30-18:36" xsi:type="Today"/><parameterTypeSpecifier localId="224" locator="18:17-18:20" name="t:Date" xsi:type="NamedTypeSpecifier"/></def></parameters><contexts><def localId="229" locator="21:1-21:15" name="Patient"/></contexts><statements><def context="Patient" localId="227" locator="21:1-21:15" name="Patient"><expression localId="228" xsi:type="SingletonFrom"><operand dataType="fhir:Patient" localId="226" locator="21:1-21:15" templateId="http://hl7.org/fhir/StructureDefinition/Patient" xsi:type="Retrieve"/></expression></def><def accessLevel="Public" context="Patient" localId="239" locator="78:1-79:58" name="First HPV dose from the primary series was administered"><annotation xsi:type="a:Annotation"><a:t name="complete" value="First HPV dose from the primary series was administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;HPV vaccines&#34;) = 1"/><a:s r="239"><a:s>/*
@complete: First HPV dose from the primary series was administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "HPV vaccines") = 1
*/
define "First HPV dose from the primary series was administered":
  </a:s><a:s r="241"><a:s r="240"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="241"><a:s>"One HPV primary series dose was administered"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="241" locator="79:3-79:58" name="One HPV primary series dose was administered" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="232" locator="31:1-33:67" name="Human papillomavirus (HPV) dose 1"><annotation xsi:type="a:Annotation"><a:t name="output" value="Human papillomavirus (HPV) dose 1"/><a:t name="description" value="Provision of the HPV dose 1"/><a:t name="trigger" value="Child's birth"/><a:t name="pseudo"/><a:t name="triggerDate" value="&#34;Date of birth&#34;"/><a:s r="232"><a:s>/*
@output: Human papillomavirus (HPV) dose 1
@description: Provision of the HPV dose 1
@trigger: Child's birth
@pseudo: 
@triggerDate: "Date of birth"
*/
define "Human papillomavirus (HPV) dose 1":
  </a:s><a:s r="233"><a:s r="235"><a:s r="234"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="235"><a:s>"No HPV primary series doses were administered"</a:s></a:s></a:s><a:s>
  and </a:s><a:s r="236"><a:s>not </a:s><a:s r="242"><a:s>"First HPV dose from the primary series was administered"</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="233" locator="32:3-33:67" xsi:type="And"><operand libraryName="Encounter" localId="235" locator="32:3-32:59" name="No HPV primary series doses were administered" xsi:type="ExpressionRef"/><operand localId="236" locator="33:7-33:67" xsi:type="Not"><operand localId="242" locator="33:11-33:67" name="First HPV dose from the primary series was administered" xsi:type="ExpressionRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="261" locator="52:1-54:11" name="Human papillomavirus (HPV) dose 1 Due Date"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Human papillomavirus (HPV) dose 1 Due Date"/><a:t name="pseudocode" value="&#34;Date of birth&#34; + 9 years"/><a:s r="261"><a:s>/*
@dynamicValue: Human papillomavirus (HPV) dose 1 Due Date
@pseudocode: "Date of birth" + 9 years
*/
define "Human papillomavirus (HPV) dose 1 Due Date":
  </a:s><a:s r="262"><a:s>if </a:s><a:s r="263"><a:s>"Human papillomavirus (HPV) dose 1"</a:s></a:s><a:s> then </a:s><a:s r="264"><a:s r="266"><a:s r="265"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="266"><a:s>birthDate</a:s></a:s></a:s><a:s> + </a:s><a:s r="267"><a:s>9 years</a:s></a:s></a:s><a:s r="271">
  else null</a:s></a:s></a:s></annotation><expression localId="262" locator="53:3-54:11" xsi:type="If"><condition localId="263" locator="53:6-53:40" name="Human papillomavirus (HPV) dose 1" xsi:type="ExpressionRef"/><then localId="264" locator="53:47-53:73" xsi:type="Add"><signature localId="269" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="270" name="t:Quantity" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="268" name="ToDate" xsi:type="FunctionRef"><operand localId="266" locator="53:47-53:63" path="birthDate" xsi:type="Property"><source localId="265" locator="53:47-53:53" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="267" locator="53:67-53:73" unit="years" value="9" xsi:type="Quantity"/></then><else asType="t:Date" localId="272" xsi:type="As"><operand localId="271" locator="54:8-54:11" xsi:type="Null"/></else></expression></def><def accessLevel="Public" context="Patient" localId="289" locator="61:1-63:11" name="Human papillomavirus (HPV) dose 1 Overdue"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Human papillomavirus (HPV) dose 1 Overdue"/><a:t name="pseudocode" value="&#34;Date of birth&#34; + 20 years"/><a:s r="289"><a:s>/*
@dynamicValue: Human papillomavirus (HPV) dose 1 Overdue
@pseudocode: "Date of birth" + 20 years
*/
define "Human papillomavirus (HPV) dose 1 Overdue":
  </a:s><a:s r="290"><a:s>if </a:s><a:s r="291"><a:s>"Human papillomavirus (HPV) dose 1"</a:s></a:s><a:s> then </a:s><a:s r="292"><a:s r="294"><a:s r="293"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="294"><a:s>birthDate</a:s></a:s></a:s><a:s> + </a:s><a:s r="295"><a:s>20 years</a:s></a:s></a:s><a:s r="299">
  else null</a:s></a:s></a:s></annotation><expression localId="290" locator="62:3-63:11" xsi:type="If"><condition localId="291" locator="62:6-62:40" name="Human papillomavirus (HPV) dose 1" xsi:type="ExpressionRef"/><then localId="292" locator="62:47-62:74" xsi:type="Add"><signature localId="297" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="298" name="t:Quantity" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="296" name="ToDate" xsi:type="FunctionRef"><operand localId="294" locator="62:47-62:63" path="birthDate" xsi:type="Property"><source localId="293" locator="62:47-62:53" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="295" locator="62:67-62:74" unit="years" value="20" xsi:type="Quantity"/></then><else asType="t:Date" localId="300" xsi:type="As"><operand localId="299" locator="63:8-63:11" xsi:type="Null"/></else></expression></def><def accessLevel="Public" context="Patient" localId="245" locator="40:1-45:9" name="Human papillomavirus (HPV) dose 1 Create"><annotation xsi:type="a:Annotation"><a:t name="output" value="Human papillomavirus (HPV) dose 1 Create"/><a:t name="create" value="HPV dose 1 should be provided if the client is older than 9 years of age."/><a:s r="245"><a:s>/*
@output: Human papillomavirus (HPV) dose 1 Create
@create: HPV dose 1 should be provided if the client is older than 9 years of age.
*/
define "Human papillomavirus (HPV) dose 1 Create":
  </a:s><a:s r="246"><a:s>if </a:s><a:s r="247"><a:s>"Human papillomavirus (HPV) dose 1"</a:s></a:s><a:s>
  then </a:s><a:s r="309"><a:s r="286"><a:s r="281"><a:s r="258"><a:s r="252"><a:s>'HPV dose 1 should be provided if the client is older than 9 years of age.'</a:s></a:s><a:s> + </a:s><a:s r="254"><a:s>'
Due Date: '</a:s></a:s></a:s><a:s> + </a:s><a:s r="277"><a:s>ToString(</a:s><a:s r="273"><a:s>"Human papillomavirus (HPV) dose 1 Due Date"</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s> + </a:s><a:s r="282"><a:s>'
Overdue: '</a:s></a:s></a:s><a:s> + </a:s><a:s r="305"><a:s>ToString(</a:s><a:s r="301"><a:s>"Human papillomavirus (HPV) dose 1 Overdue"</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s>
  else </a:s><a:s r="310"><a:s>''</a:s></a:s></a:s></a:s></annotation><expression localId="246" locator="41:3-45:9" xsi:type="If"><condition localId="247" locator="41:6-41:40" name="Human papillomavirus (HPV) dose 1" xsi:type="ExpressionRef"/><then localId="309" locator="42:8-44:66" xsi:type="Concatenate"><operand localId="286" locator="42:8-43:83" xsi:type="Concatenate"><operand localId="281" locator="42:8-43:68" xsi:type="Concatenate"><operand localId="258" locator="42:8-42:98" xsi:type="Concatenate"><operand localId="252" locator="42:8-42:82" value="HPV dose 1 should be provided if the client is older than 9 years of age." valueType="t:String" xsi:type="Literal"/><operand localId="254" locator="42:86-42:98" value="&#xA;Due Date: " valueType="t:String" xsi:type="Literal"/></operand><operand localId="277" locator="43:15-43:68" xsi:type="ToString"><signature localId="278" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="273" locator="43:24-43:67" name="Human papillomavirus (HPV) dose 1 Due Date" xsi:type="ExpressionRef"/></operand></operand><operand localId="282" locator="43:72-43:83" value="&#xA;Overdue: " valueType="t:String" xsi:type="Literal"/></operand><operand localId="305" locator="44:14-44:66" xsi:type="ToString"><signature localId="306" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="301" locator="44:23-44:65" name="Human papillomavirus (HPV) dose 1 Overdue" xsi:type="ExpressionRef"/></operand></then><else localId="310" locator="45:8-45:9" value="" valueType="t:String" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="314" locator="70:1-71:6" name="Human papillomavirus (HPV) dose 1 Expiration"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="Human papillomavirus (HPV) dose 1 Expiration"/><a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended expiration date."/><a:s r="314"><a:s r="315">/*
@dynamicValue: Human papillomavirus (HPV) dose 1 Expiration
@pseudocode: To be determined by Member States; however, there is no recommended expiration date.
*/
define "Human papillomavirus (HPV) dose 1 Expiration":
  null</a:s></a:s></annotation><expression localId="315" locator="71:3-71:6" xsi:type="Null"/></def><def accessLevel="Public" context="Patient" localId="330" locator="139:1-140:60" name="Second HPV dose from the primary series was administered"><annotation xsi:type="a:Annotation"><a:t name="complete" value="Second HPV dose from the primary series was administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;HPV vaccines&#34;) = 2"/><a:s r="330"><a:s>/*
@complete: Second HPV dose from the primary series was administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "HPV vaccines") = 2
*/
define "Second HPV dose from the primary series was administered":
  </a:s><a:s r="332"><a:s r="331"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="332"><a:s>"Two HPV primary series doses were administered"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="332" locator="140:3-140:60" name="Two HPV primary series doses were administered" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="318" locator="90:1-96:68" name="HPV dose 2 (Immunocompromised or HIV-positive)"><annotation xsi:type="a:Annotation"><a:t name="output" value="HPV dose 2 (Immunocompromised or HIV-positive)"/><a:t name="description" value="Provision of the HPV dose 2 for individuals immunocompromised or infected with HIV"/><a:t name="trigger" value="First HPV dose from the primary series was administered and client's HIV status is positive or client is immunocompromised"/><a:t name="pseudo" value="&#34;Vaccine type&#34; = &#34;HPV vaccines&#34;) = 1 AND (&#34;HIV status&#34; = &#34;HIV-positive&#34; OR &#34;Immunocompromised&#34; = TRUE)"/><a:t name="triggerDate" value="&#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34; = &#34;HPV vaccines&#34;)"/><a:s r="318"><a:s>/*
@output: HPV dose 2 (Immunocompromised or HIV-positive)
@description: Provision of the HPV dose 2 for individuals immunocompromised or infected with HIV
@trigger: First HPV dose from the primary series was administered and client's HIV status is positive or client is immunocompromised
@pseudo: Count of vaccines administered (where "Vaccine type" = "HPV vaccines") = 1 AND ("HIV status" = "HIV-positive" OR "Immunocompromised" = TRUE)
@triggerDate: "Date and time of vaccination" (where "Vaccine type" = "HPV vaccines")
*/
define "HPV dose 2 (Immunocompromised or HIV-positive)":
  </a:s><a:s r="319"><a:s r="320"><a:s r="321"><a:s>"First HPV dose from the primary series was administered"</a:s></a:s><a:s>
  and </a:s><a:s r="322"><a:s>(
    </a:s><a:s r="322"><a:s r="324"><a:s r="323"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="324"><a:s>"Client's HIV status is positive"</a:s></a:s></a:s><a:s>
    or </a:s><a:s r="326"><a:s r="325"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="326"><a:s>"Client is immunocompromised"</a:s></a:s></a:s></a:s><a:s>
  )</a:s></a:s></a:s><a:s>
  and </a:s><a:s r="327"><a:s>not </a:s><a:s r="333"><a:s>"Second HPV dose from the primary series was administered"</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="319" locator="91:3-96:68" xsi:type="And"><operand localId="320" locator="91:3-95:3" xsi:type="And"><operand localId="321" locator="91:3-91:59" name="First HPV dose from the primary series was administered" xsi:type="ExpressionRef"/><operand localId="322" locator="92:7-95:3" xsi:type="Or"><operand libraryName="Encounter" localId="324" locator="93:5-93:47" name="Client's HIV status is positive" xsi:type="ExpressionRef"/><operand libraryName="Encounter" localId="326" locator="94:8-94:46" name="Client is immunocompromised" xsi:type="ExpressionRef"/></operand></operand><operand localId="327" locator="96:7-96:68" xsi:type="Not"><operand localId="333" locator="96:11-96:68" name="Second HPV dose from the primary series was administered" xsi:type="ExpressionRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="350" locator="114:1-116:11" name="HPV dose 2 (Immunocompromised or HIV-positive) Due Date"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="HPV dose 2 (Immunocompromised or HIV-positive) Due Date"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34; = &#34;HPV vaccines&#34;) + 6 months"/><a:s r="350"><a:s>/*
@dynamicValue: HPV dose 2 (Immunocompromised or HIV-positive) Due Date
@pseudocode: "Date and time of vaccination" (where "Vaccine type" = "HPV vaccines") + 6 months
*/
define "HPV dose 2 (Immunocompromised or HIV-positive) Due Date":
  </a:s><a:s r="351"><a:s>if </a:s><a:s r="352"><a:s>"HPV dose 2 (Immunocompromised or HIV-positive)"</a:s></a:s><a:s> then </a:s><a:s r="353"><a:s r="355"><a:s r="354"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="355"><a:s>"Date of Latest HPV Dose"</a:s></a:s></a:s><a:s> + </a:s><a:s r="356"><a:s>6 months</a:s></a:s></a:s><a:s r="359">
  else null</a:s></a:s></a:s></annotation><expression localId="351" locator="115:3-116:11" xsi:type="If"><condition localId="352" locator="115:6-115:53" name="HPV dose 2 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><then localId="353" locator="115:60-115:105" xsi:type="Add"><signature localId="357" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="358" name="t:Quantity" xsi:type="NamedTypeSpecifier"/><operand libraryName="Encounter" localId="355" locator="115:60-115:94" name="Date of Latest HPV Dose" xsi:type="ExpressionRef"/><operand localId="356" locator="115:98-115:105" unit="months" value="6" xsi:type="Quantity"/></then><else asType="t:Date" localId="360" xsi:type="As"><operand localId="359" locator="116:8-116:11" xsi:type="Null"/></else></expression></def><def accessLevel="Public" context="Patient" localId="336" locator="103:1-107:9" name="HPV dose 2 (Immunocompromised or HIV-positive) Create"><annotation xsi:type="a:Annotation"><a:t name="output" value="HPV dose 2 (Immunocompromised or HIV-positive) Create"/><a:t name="create" value="Individuals known to be immunocompromised or infected with HIV should receive at least two HPV vaccine doses."/><a:s r="336"><a:s>/*
@output: HPV dose 2 (Immunocompromised or HIV-positive) Create
@create: Individuals known to be immunocompromised or infected with HIV should receive at least two HPV vaccine doses.
*/
define "HPV dose 2 (Immunocompromised or HIV-positive) Create":
  </a:s><a:s r="337"><a:s>if </a:s><a:s r="338"><a:s>"HPV dose 2 (Immunocompromised or HIV-positive)"</a:s></a:s><a:s>
  then </a:s><a:s r="369"><a:s r="347"><a:s r="341"><a:s>'Individuals known to be immunocompromised or infected with HIV should receive at least two HPV vaccine doses.'</a:s></a:s><a:s> + </a:s><a:s r="343"><a:s>'
Due Date: '</a:s></a:s></a:s><a:s> + </a:s><a:s r="365"><a:s>ToString(</a:s><a:s r="361"><a:s>"HPV dose 2 (Immunocompromised or HIV-positive) Due Date"</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s>
  else </a:s><a:s r="370"><a:s>''</a:s></a:s></a:s></a:s></annotation><expression localId="337" locator="104:3-107:9" xsi:type="If"><condition localId="338" locator="104:6-104:53" name="HPV dose 2 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><then localId="369" locator="105:8-106:81" xsi:type="Concatenate"><operand localId="347" locator="105:8-105:134" xsi:type="Concatenate"><operand localId="341" locator="105:8-105:118" value="Individuals known to be immunocompromised or infected with HIV should receive at least two HPV vaccine doses." valueType="t:String" xsi:type="Literal"/><operand localId="343" locator="105:122-105:134" value="&#xA;Due Date: " valueType="t:String" xsi:type="Literal"/></operand><operand localId="365" locator="106:15-106:81" xsi:type="ToString"><signature localId="366" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="361" locator="106:24-106:80" name="HPV dose 2 (Immunocompromised or HIV-positive) Due Date" xsi:type="ExpressionRef"/></operand></then><else localId="370" locator="107:8-107:9" value="" valueType="t:String" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="374" locator="123:1-124:6" name="HPV dose 2 (Immunocompromised or HIV-positive) Overdue"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="HPV dose 2 (Immunocompromised or HIV-positive) Overdue"/><a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date."/><a:s r="374"><a:s r="375">/*
@dynamicValue: HPV dose 2 (Immunocompromised or HIV-positive) Overdue
@pseudocode: To be determined by Member States; however, there is no recommended overdue date.
*/
define "HPV dose 2 (Immunocompromised or HIV-positive) Overdue":
  null</a:s></a:s></annotation><expression localId="375" locator="124:3-124:6" xsi:type="Null"/></def><def accessLevel="Public" context="Patient" localId="378" locator="131:1-132:6" name="HPV dose 2 (Immunocompromised or HIV-positive) Expiration"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="HPV dose 2 (Immunocompromised or HIV-positive) Expiration"/><a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended expiration date."/><a:s r="378"><a:s r="379">/*
@dynamicValue: HPV dose 2 (Immunocompromised or HIV-positive) Expiration
@pseudocode: To be determined by Member States; however, there is no recommended expiration date.
*/
define "HPV dose 2 (Immunocompromised or HIV-positive) Expiration":
  null</a:s></a:s></annotation><expression localId="379" locator="132:3-132:6" xsi:type="Null"/></def><def accessLevel="Public" context="Patient" localId="394" locator="200:1-201:62" name="Third HPV dose from the primary series was administered"><annotation xsi:type="a:Annotation"><a:t name="complete" value="Third HPV dose from the primary series was administered"/><a:t name="pseudocode" value="&#34;Vaccine type&#34; = &#34;HPV vaccines&#34;) = 3"/><a:s r="394"><a:s>/*
@complete: Third HPV dose from the primary series was administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = "HPV vaccines") = 3
*/
define "Third HPV dose from the primary series was administered":
  </a:s><a:s r="396"><a:s r="395"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="396"><a:s>"Three HPV primary series doses were administered"</a:s></a:s></a:s></a:s></annotation><expression libraryName="Encounter" localId="396" locator="201:3-201:62" name="Three HPV primary series doses were administered" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Patient" localId="382" locator="151:1-157:67" name="HPV dose 3 (Immunocompromised or HIV-positive)"><annotation xsi:type="a:Annotation"><a:t name="output" value="HPV dose 3 (Immunocompromised or HIV-positive)"/><a:t name="description" value="Provision of the HPV dose 3 for individuals immunocompromised or infected with HIV"/><a:t name="trigger" value="Second HPV dose from the primary series was administered and client's HIV status is positive or client is immunocompromised"/><a:t name="pseudo" value="&#34;Vaccine type&#34; = &#34;HPV vaccines&#34;) = 2 AND (&#34;HIV status&#34; = &#34;HIV-positive&#34; OR &#34;Immunocompromised&#34; = TRUE)"/><a:t name="triggerDate" value="&#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34; = &#34;HPV vaccines&#34;)"/><a:s r="382"><a:s>/*
@output: HPV dose 3 (Immunocompromised or HIV-positive)
@description: Provision of the HPV dose 3 for individuals immunocompromised or infected with HIV
@trigger: Second HPV dose from the primary series was administered and client's HIV status is positive or client is immunocompromised
@pseudo: Count of vaccines administered (where "Vaccine type" = "HPV vaccines") = 2 AND ("HIV status" = "HIV-positive" OR "Immunocompromised" = TRUE)
@triggerDate: Latest "Date and time of vaccination" (where "Vaccine type" = "HPV vaccines")
*/
define "HPV dose 3 (Immunocompromised or HIV-positive)":
  </a:s><a:s r="383"><a:s r="384"><a:s r="385"><a:s>"Second HPV dose from the primary series was administered"</a:s></a:s><a:s>
  and </a:s><a:s r="386"><a:s>(
    </a:s><a:s r="386"><a:s r="388"><a:s r="387"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="388"><a:s>"Client's HIV status is positive"</a:s></a:s></a:s><a:s>
    or </a:s><a:s r="390"><a:s r="389"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="390"><a:s>"Client is immunocompromised"</a:s></a:s></a:s></a:s><a:s>
  )</a:s></a:s></a:s><a:s>
  and </a:s><a:s r="391"><a:s>not </a:s><a:s r="397"><a:s>"Third HPV dose from the primary series was administered"</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="383" locator="152:3-157:67" xsi:type="And"><operand localId="384" locator="152:3-156:3" xsi:type="And"><operand localId="385" locator="152:3-152:60" name="Second HPV dose from the primary series was administered" xsi:type="ExpressionRef"/><operand localId="386" locator="153:7-156:3" xsi:type="Or"><operand libraryName="Encounter" localId="388" locator="154:5-154:47" name="Client's HIV status is positive" xsi:type="ExpressionRef"/><operand libraryName="Encounter" localId="390" locator="155:8-155:46" name="Client is immunocompromised" xsi:type="ExpressionRef"/></operand></operand><operand localId="391" locator="157:7-157:67" xsi:type="Not"><operand localId="397" locator="157:11-157:67" name="Third HPV dose from the primary series was administered" xsi:type="ExpressionRef"/></operand></expression></def><def accessLevel="Public" context="Patient" localId="414" locator="175:1-177:11" name="HPV dose 3 (Immunocompromised or HIV-positive) Due Date"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="HPV dose 3 (Immunocompromised or HIV-positive) Due Date"/><a:t name="pseudocode" value="&#34;Date and time of vaccination&#34; (where &#34;Vaccine type&#34; = &#34;HPV vaccines&#34;) + 6 months"/><a:s r="414"><a:s>/*
@dynamicValue: HPV dose 3 (Immunocompromised or HIV-positive) Due Date
@pseudocode: Latest "Date and time of vaccination" (where "Vaccine type" = "HPV vaccines") + 6 months
*/
define "HPV dose 3 (Immunocompromised or HIV-positive) Due Date":
  </a:s><a:s r="415"><a:s>if </a:s><a:s r="416"><a:s>"HPV dose 3 (Immunocompromised or HIV-positive)"</a:s></a:s><a:s> then </a:s><a:s r="417"><a:s r="419"><a:s r="418"><a:s>Encounter</a:s></a:s><a:s>.</a:s><a:s r="419"><a:s>"Date of Latest HPV Dose"</a:s></a:s></a:s><a:s> + </a:s><a:s r="420"><a:s>6 months</a:s></a:s></a:s><a:s r="423">
  else null</a:s></a:s></a:s></annotation><expression localId="415" locator="176:3-177:11" xsi:type="If"><condition localId="416" locator="176:6-176:53" name="HPV dose 3 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><then localId="417" locator="176:60-176:105" xsi:type="Add"><signature localId="421" name="t:Date" xsi:type="NamedTypeSpecifier"/><signature localId="422" name="t:Quantity" xsi:type="NamedTypeSpecifier"/><operand libraryName="Encounter" localId="419" locator="176:60-176:94" name="Date of Latest HPV Dose" xsi:type="ExpressionRef"/><operand localId="420" locator="176:98-176:105" unit="months" value="6" xsi:type="Quantity"/></then><else asType="t:Date" localId="424" xsi:type="As"><operand localId="423" locator="177:8-177:11" xsi:type="Null"/></else></expression></def><def accessLevel="Public" context="Patient" localId="400" locator="164:1-168:9" name="HPV dose 3 (Immunocompromised or HIV-positive) Create"><annotation xsi:type="a:Annotation"><a:t name="output" value="HPV dose 3 (Immunocompromised or HIV-positive) Create"/><a:t name="create" value="Where possible, three HPV doses should be provided to individuals known to be immunocompromised or infected with HIV."/><a:s r="400"><a:s>/*
@output: HPV dose 3 (Immunocompromised or HIV-positive) Create
@create: Where possible, three HPV doses should be provided to individuals known to be immunocompromised or infected with HIV.
*/
define "HPV dose 3 (Immunocompromised or HIV-positive) Create":
  </a:s><a:s r="401"><a:s>if </a:s><a:s r="402"><a:s>"HPV dose 3 (Immunocompromised or HIV-positive)"</a:s></a:s><a:s>
  then </a:s><a:s r="433"><a:s r="411"><a:s r="405"><a:s>'Where possible, three HPV doses should be provided to individuals known to be immunocompromised or infected with HIV.'</a:s></a:s><a:s> + </a:s><a:s r="407"><a:s>'
Due Date: '</a:s></a:s></a:s><a:s> + </a:s><a:s r="429"><a:s>ToString(</a:s><a:s r="425"><a:s>"HPV dose 3 (Immunocompromised or HIV-positive) Due Date"</a:s></a:s><a:s>)</a:s></a:s></a:s><a:s>
  else </a:s><a:s r="434"><a:s>''</a:s></a:s></a:s></a:s></annotation><expression localId="401" locator="165:3-168:9" xsi:type="If"><condition localId="402" locator="165:6-165:53" name="HPV dose 3 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><then localId="433" locator="166:8-167:81" xsi:type="Concatenate"><operand localId="411" locator="166:8-166:142" xsi:type="Concatenate"><operand localId="405" locator="166:8-166:126" value="Where possible, three HPV doses should be provided to individuals known to be immunocompromised or infected with HIV." valueType="t:String" xsi:type="Literal"/><operand localId="407" locator="166:130-166:142" value="&#xA;Due Date: " valueType="t:String" xsi:type="Literal"/></operand><operand localId="429" locator="167:15-167:81" xsi:type="ToString"><signature localId="430" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="425" locator="167:24-167:80" name="HPV dose 3 (Immunocompromised or HIV-positive) Due Date" xsi:type="ExpressionRef"/></operand></then><else localId="434" locator="168:8-168:9" value="" valueType="t:String" xsi:type="Literal"/></expression></def><def accessLevel="Public" context="Patient" localId="438" locator="184:1-185:6" name="HPV dose 3 (Immunocompromised or HIV-positive) Overdue"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="HPV dose 3 (Immunocompromised or HIV-positive) Overdue"/><a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended overdue date."/><a:s r="438"><a:s r="439">/*
@dynamicValue: HPV dose 3 (Immunocompromised or HIV-positive) Overdue
@pseudocode: To be determined by Member States; however, there is no recommended overdue date.
*/
define "HPV dose 3 (Immunocompromised or HIV-positive) Overdue":
  null</a:s></a:s></annotation><expression localId="439" locator="185:3-185:6" xsi:type="Null"/></def><def accessLevel="Public" context="Patient" localId="442" locator="192:1-193:6" name="HPV dose 3 (Immunocompromised or HIV-positive) Expiration"><annotation xsi:type="a:Annotation"><a:t name="dynamicValue" value="HPV dose 3 (Immunocompromised or HIV-positive) Expiration"/><a:t name="pseudocode" value="To be determined by Member States; however, there is no recommended expiration date."/><a:s r="442"><a:s r="443">/*
@dynamicValue: HPV dose 3 (Immunocompromised or HIV-positive) Expiration
@pseudocode: To be determined by Member States; however, there is no recommended expiration date.
*/
define "HPV dose 3 (Immunocompromised or HIV-positive) Expiration":
  null</a:s></a:s></annotation><expression localId="443" locator="193:3-193:6" xsi:type="Null"/></def><def accessLevel="Public" context="Patient" localId="446" locator="208:1-224:5" name="Test Validation"><annotation xsi:type="a:Annotation"><a:t name="test" value="Test expected results based on example patients"/><a:s r="446"><a:s>/*
@test: Test expected results based on example patients
*/
define "Test Validation":
  </a:s><a:s r="447"><a:s>case
    </a:s><a:s r="448"><a:s>when </a:s><a:s r="449"><a:s r="451"><a:s r="450"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="451"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="452"><a:s>'HPV27.1'</a:s></a:s></a:s><a:s> then </a:s><a:s r="458"><a:s>"Human papillomavirus (HPV) dose 1"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="459"><a:s>when </a:s><a:s r="460"><a:s r="462"><a:s r="461"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="462"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="463"><a:s>'HPV28.2'</a:s></a:s></a:s><a:s> then </a:s><a:s r="469"><a:s>"Human papillomavirus (HPV) dose 1"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="470"><a:s>when </a:s><a:s r="471"><a:s r="473"><a:s r="472"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="473"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="474"><a:s>'HPV29.2'</a:s></a:s></a:s><a:s> then </a:s><a:s r="480"><a:s>"Human papillomavirus (HPV) dose 1"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="481"><a:s>when </a:s><a:s r="482"><a:s r="484"><a:s r="483"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="484"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="485"><a:s>'HPV30.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="491"><a:s>"HPV dose 2 (Immunocompromised or HIV-positive)"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="492"><a:s>when </a:s><a:s r="493"><a:s r="495"><a:s r="494"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="495"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="496"><a:s>'HPV31.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="502"><a:s>"HPV dose 2 (Immunocompromised or HIV-positive)"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="503"><a:s>when </a:s><a:s r="504"><a:s r="506"><a:s r="505"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="506"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="507"><a:s>'HPV32.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="513"><a:s>"HPV dose 2 (Immunocompromised or HIV-positive)"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="514"><a:s>when </a:s><a:s r="515"><a:s r="517"><a:s r="516"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="517"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="518"><a:s>'HPV33.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="524"><a:s>"HPV dose 2 (Immunocompromised or HIV-positive)"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="525"><a:s>when </a:s><a:s r="526"><a:s r="528"><a:s r="527"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="528"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="529"><a:s>'HPV34.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="535"><a:s r="536"><a:s>"First HPV dose from the primary series was administered"</a:s></a:s><a:s> and </a:s><a:s r="537"><a:s>not </a:s><a:s r="538"><a:s>"HPV dose 2 (Immunocompromised or HIV-positive)"</a:s></a:s></a:s></a:s></a:s><a:s>
    </a:s><a:s r="539"><a:s>when </a:s><a:s r="540"><a:s r="542"><a:s r="541"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="542"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="543"><a:s>'HPV35.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="549"><a:s>"HPV dose 3 (Immunocompromised or HIV-positive)"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="550"><a:s>when </a:s><a:s r="551"><a:s r="553"><a:s r="552"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="553"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="554"><a:s>'HPV36.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="560"><a:s>"HPV dose 3 (Immunocompromised or HIV-positive)"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="561"><a:s>when </a:s><a:s r="562"><a:s r="564"><a:s r="563"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="564"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="565"><a:s>'HPV37.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="571"><a:s>"HPV dose 3 (Immunocompromised or HIV-positive)"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="572"><a:s>when </a:s><a:s r="573"><a:s r="575"><a:s r="574"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="575"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="576"><a:s>'HPV38.3'</a:s></a:s></a:s><a:s> then </a:s><a:s r="582"><a:s>"HPV dose 3 (Immunocompromised or HIV-positive)"</a:s></a:s></a:s><a:s>
    </a:s><a:s r="583"><a:s>when </a:s><a:s r="584"><a:s r="586"><a:s r="585"><a:s>Patient</a:s></a:s><a:s>.</a:s><a:s r="586"><a:s>id</a:s></a:s></a:s><a:s> = </a:s><a:s r="587"><a:s>'HPV39.1'</a:s></a:s></a:s><a:s> then </a:s><a:s r="593"><a:s>"Third HPV dose from the primary series was administered"</a:s></a:s></a:s><a:s>
    else </a:s><a:s r="594"><a:s>'No test case set'</a:s></a:s><a:s>
  end</a:s></a:s></a:s></annotation><expression localId="447" locator="209:3-224:5" xsi:type="Case"><caseItem localId="448" locator="210:5-210:72"><when localId="449" locator="210:10-210:31" xsi:type="Equal"><signature localId="456" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="457" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="454" name="ToString" xsi:type="FunctionRef"><signature localId="455" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="451" locator="210:10-210:19" path="id" xsi:type="Property"><source localId="450" locator="210:10-210:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="452" locator="210:23-210:31" value="HPV27.1" valueType="t:String" xsi:type="Literal"/></when><then localId="596" xsi:type="As"><operand localId="458" locator="210:38-210:72" name="Human papillomavirus (HPV) dose 1" xsi:type="ExpressionRef"/><asTypeSpecifier localId="597" xsi:type="ChoiceTypeSpecifier"><choice localId="598" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="599" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="459" locator="211:5-211:72"><when localId="460" locator="211:10-211:31" xsi:type="Equal"><signature localId="467" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="468" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="465" name="ToString" xsi:type="FunctionRef"><signature localId="466" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="462" locator="211:10-211:19" path="id" xsi:type="Property"><source localId="461" locator="211:10-211:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="463" locator="211:23-211:31" value="HPV28.2" valueType="t:String" xsi:type="Literal"/></when><then localId="600" xsi:type="As"><operand localId="469" locator="211:38-211:72" name="Human papillomavirus (HPV) dose 1" xsi:type="ExpressionRef"/><asTypeSpecifier localId="601" xsi:type="ChoiceTypeSpecifier"><choice localId="602" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="603" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="470" locator="212:5-212:72"><when localId="471" locator="212:10-212:31" xsi:type="Equal"><signature localId="478" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="479" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="476" name="ToString" xsi:type="FunctionRef"><signature localId="477" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="473" locator="212:10-212:19" path="id" xsi:type="Property"><source localId="472" locator="212:10-212:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="474" locator="212:23-212:31" value="HPV29.2" valueType="t:String" xsi:type="Literal"/></when><then localId="604" xsi:type="As"><operand localId="480" locator="212:38-212:72" name="Human papillomavirus (HPV) dose 1" xsi:type="ExpressionRef"/><asTypeSpecifier localId="605" xsi:type="ChoiceTypeSpecifier"><choice localId="606" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="607" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="481" locator="213:5-213:85"><when localId="482" locator="213:10-213:31" xsi:type="Equal"><signature localId="489" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="490" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="487" name="ToString" xsi:type="FunctionRef"><signature localId="488" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="484" locator="213:10-213:19" path="id" xsi:type="Property"><source localId="483" locator="213:10-213:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="485" locator="213:23-213:31" value="HPV30.3" valueType="t:String" xsi:type="Literal"/></when><then localId="608" xsi:type="As"><operand localId="491" locator="213:38-213:85" name="HPV dose 2 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><asTypeSpecifier localId="609" xsi:type="ChoiceTypeSpecifier"><choice localId="610" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="611" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="492" locator="214:5-214:85"><when localId="493" locator="214:10-214:31" xsi:type="Equal"><signature localId="500" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="501" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="498" name="ToString" xsi:type="FunctionRef"><signature localId="499" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="495" locator="214:10-214:19" path="id" xsi:type="Property"><source localId="494" locator="214:10-214:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="496" locator="214:23-214:31" value="HPV31.3" valueType="t:String" xsi:type="Literal"/></when><then localId="612" xsi:type="As"><operand localId="502" locator="214:38-214:85" name="HPV dose 2 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><asTypeSpecifier localId="613" xsi:type="ChoiceTypeSpecifier"><choice localId="614" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="615" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="503" locator="215:5-215:85"><when localId="504" locator="215:10-215:31" xsi:type="Equal"><signature localId="511" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="512" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="509" name="ToString" xsi:type="FunctionRef"><signature localId="510" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="506" locator="215:10-215:19" path="id" xsi:type="Property"><source localId="505" locator="215:10-215:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="507" locator="215:23-215:31" value="HPV32.3" valueType="t:String" xsi:type="Literal"/></when><then localId="616" xsi:type="As"><operand localId="513" locator="215:38-215:85" name="HPV dose 2 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><asTypeSpecifier localId="617" xsi:type="ChoiceTypeSpecifier"><choice localId="618" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="619" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="514" locator="216:5-216:85"><when localId="515" locator="216:10-216:31" xsi:type="Equal"><signature localId="522" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="523" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="520" name="ToString" xsi:type="FunctionRef"><signature localId="521" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="517" locator="216:10-216:19" path="id" xsi:type="Property"><source localId="516" locator="216:10-216:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="518" locator="216:23-216:31" value="HPV33.3" valueType="t:String" xsi:type="Literal"/></when><then localId="620" xsi:type="As"><operand localId="524" locator="216:38-216:85" name="HPV dose 2 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><asTypeSpecifier localId="621" xsi:type="ChoiceTypeSpecifier"><choice localId="622" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="623" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="525" locator="217:5-217:151"><when localId="526" locator="217:10-217:31" xsi:type="Equal"><signature localId="533" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="534" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="531" name="ToString" xsi:type="FunctionRef"><signature localId="532" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="528" locator="217:10-217:19" path="id" xsi:type="Property"><source localId="527" locator="217:10-217:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="529" locator="217:23-217:31" value="HPV34.3" valueType="t:String" xsi:type="Literal"/></when><then localId="624" xsi:type="As"><operand localId="535" locator="217:38-217:151" xsi:type="And"><operand localId="536" locator="217:38-217:94" name="First HPV dose from the primary series was administered" xsi:type="ExpressionRef"/><operand localId="537" locator="217:100-217:151" xsi:type="Not"><operand localId="538" locator="217:104-217:151" name="HPV dose 2 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/></operand></operand><asTypeSpecifier localId="625" xsi:type="ChoiceTypeSpecifier"><choice localId="626" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="627" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="539" locator="218:5-218:85"><when localId="540" locator="218:10-218:31" xsi:type="Equal"><signature localId="547" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="548" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="545" name="ToString" xsi:type="FunctionRef"><signature localId="546" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="542" locator="218:10-218:19" path="id" xsi:type="Property"><source localId="541" locator="218:10-218:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="543" locator="218:23-218:31" value="HPV35.3" valueType="t:String" xsi:type="Literal"/></when><then localId="628" xsi:type="As"><operand localId="549" locator="218:38-218:85" name="HPV dose 3 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><asTypeSpecifier localId="629" xsi:type="ChoiceTypeSpecifier"><choice localId="630" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="631" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="550" locator="219:5-219:85"><when localId="551" locator="219:10-219:31" xsi:type="Equal"><signature localId="558" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="559" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="556" name="ToString" xsi:type="FunctionRef"><signature localId="557" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="553" locator="219:10-219:19" path="id" xsi:type="Property"><source localId="552" locator="219:10-219:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="554" locator="219:23-219:31" value="HPV36.3" valueType="t:String" xsi:type="Literal"/></when><then localId="632" xsi:type="As"><operand localId="560" locator="219:38-219:85" name="HPV dose 3 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><asTypeSpecifier localId="633" xsi:type="ChoiceTypeSpecifier"><choice localId="634" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="635" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="561" locator="220:5-220:85"><when localId="562" locator="220:10-220:31" xsi:type="Equal"><signature localId="569" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="570" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="567" name="ToString" xsi:type="FunctionRef"><signature localId="568" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="564" locator="220:10-220:19" path="id" xsi:type="Property"><source localId="563" locator="220:10-220:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="565" locator="220:23-220:31" value="HPV37.3" valueType="t:String" xsi:type="Literal"/></when><then localId="636" xsi:type="As"><operand localId="571" locator="220:38-220:85" name="HPV dose 3 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><asTypeSpecifier localId="637" xsi:type="ChoiceTypeSpecifier"><choice localId="638" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="639" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="572" locator="221:5-221:85"><when localId="573" locator="221:10-221:31" xsi:type="Equal"><signature localId="580" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="581" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="578" name="ToString" xsi:type="FunctionRef"><signature localId="579" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="575" locator="221:10-221:19" path="id" xsi:type="Property"><source localId="574" locator="221:10-221:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="576" locator="221:23-221:31" value="HPV38.3" valueType="t:String" xsi:type="Literal"/></when><then localId="640" xsi:type="As"><operand localId="582" locator="221:38-221:85" name="HPV dose 3 (Immunocompromised or HIV-positive)" xsi:type="ExpressionRef"/><asTypeSpecifier localId="641" xsi:type="ChoiceTypeSpecifier"><choice localId="642" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="643" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><caseItem localId="583" locator="222:5-222:94"><when localId="584" locator="222:10-222:31" xsi:type="Equal"><signature localId="591" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="592" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="589" name="ToString" xsi:type="FunctionRef"><signature localId="590" name="fhir:string" xsi:type="NamedTypeSpecifier"/><operand localId="586" locator="222:10-222:19" path="id" xsi:type="Property"><source localId="585" locator="222:10-222:16" name="Patient" xsi:type="ExpressionRef"/></operand></operand><operand localId="587" locator="222:23-222:31" value="HPV39.1" valueType="t:String" xsi:type="Literal"/></when><then localId="644" xsi:type="As"><operand localId="593" locator="222:38-222:94" name="Third HPV dose from the primary series was administered" xsi:type="ExpressionRef"/><asTypeSpecifier localId="645" xsi:type="ChoiceTypeSpecifier"><choice localId="646" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="647" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></then></caseItem><else localId="648" xsi:type="As"><operand localId="594" locator="223:10-223:27" value="No test case set" valueType="t:String" xsi:type="Literal"/><asTypeSpecifier localId="649" xsi:type="ChoiceTypeSpecifier"><choice localId="650" name="t:Boolean" xsi:type="NamedTypeSpecifier"/><choice localId="651" name="t:String" xsi:type="NamedTypeSpecifier"/></asTypeSpecifier></else></expression></def></statements></library>