<?xml version="1.0" encoding="UTF-8"?><library xmlns="urn:hl7-org:elm:r1" xmlns:a="urn:hl7-org:cql-annotations:r1" xmlns:fhir="http://hl7.org/fhir" xmlns:t="urn:hl7-org:elm-types:r1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" localId="0"><annotation signatureLevel="Overloads" translatorOptions="EnableAnnotations,EnableLocators,DisableListDemotion,DisableListPromotion" translatorVersion="4.9.0" xsi:type="a:CqlToElmInfo"/><annotation errorSeverity="warning" errorType="semantic" message="An operand identifier reference is hiding another identifier of the same name." xsi:type="a:CqlToElmError"/><annotation errorSeverity="warning" errorType="semantic" message="An operand identifier reference is hiding another identifier of the same name." xsi:type="a:CqlToElmError"/><annotation errorSeverity="warning" errorType="semantic" message="An operand identifier reference is hiding another identifier of the same name." xsi:type="a:CqlToElmError"/><annotation xsi:type="a:Annotation"><a:s r="288"><a:s>/*
 * Library: IMMZ.IND.45 Logic
 * Immunization session completion rate
 * The percentage of immunization sessions completed during the reporting period
 * 
 * Numerator: Number of immunization sessions completed at the vaccination location during the reporting period
 * Numerator Computation: COUNT of immunization events WHERE "Immunization event status" = "Completed" during the reporting period
 * Denominator: Number of planned immunization sessions at the vaccination location during the reporting period
 * Denominator Computation: COUNT number of planned sessions during the reporting period
 * 
 * Disaggregation
 *  - Vaccination location
 *  - Administrative area
 *
 * References: WHO Immunization facility analysis guide (5)
 * 
 * Annotations: –
 */
library IMMZIND45Logic</a:s></a:s></annotation><identifier id="IMMZIND45Logic" 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="21:1-21: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="23:1-23: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="25:1-25: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="27:1-27: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="28:1-28: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="Elements" locator="29:1-29:45" path="http://smart.who.int/immunizations/IMMZIndicatorElements"><annotation xsi:type="a:Annotation"><a:s r="216"><a:s>include </a:s><a:s><a:s>IMMZIndicatorElements</a:s></a:s><a:s> called Elements</a:s></a:s></annotation></def></includes><parameters><def accessLevel="Public" localId="218" locator="32:1-32:88" name="Measurement Period"><annotation xsi:type="a:Annotation"><a:s r="218"><a:s>parameter "Measurement Period" </a:s><a:s r="230"><a:s>Interval&lt;</a:s><a:s r="231"><a:s>Date</a:s></a:s><a:s>&gt;</a:s></a:s><a:s> default </a:s><a:s r="229"><a:s r="223">Interval[@2025-01-01, @2025-12-31]</a:s></a:s></a:s></annotation><default highClosed="true" localId="229" locator="32:55-32:88" lowClosed="true" xsi:type="Interval"><low localId="223" locator="32:64-32:74" xsi:type="Date"><year localId="220" value="2025" valueType="t:Integer" xsi:type="Literal"/><month localId="221" value="1" valueType="t:Integer" xsi:type="Literal"/><day localId="222" value="1" valueType="t:Integer" xsi:type="Literal"/></low><high localId="228" locator="32:77-32:87" xsi:type="Date"><year localId="225" value="2025" valueType="t:Integer" xsi:type="Literal"/><month localId="226" value="12" valueType="t:Integer" xsi:type="Literal"/><day localId="227" value="31" valueType="t:Integer" xsi:type="Literal"/></high></default><parameterTypeSpecifier localId="230" locator="32:32-32:45" xsi:type="IntervalTypeSpecifier"><pointType localId="231" locator="32:41-32:44" name="t:Date" xsi:type="NamedTypeSpecifier"/></parameterTypeSpecifier></def></parameters><contexts><def localId="236" locator="34:1-34:20" name="Immunization"/></contexts><statements><def context="Immunization" localId="234" locator="34:1-34:20" name="Immunization"><expression localId="235" xsi:type="SingletonFrom"><operand dataType="fhir:Immunization" localId="233" locator="34:1-34:20" templateId="http://hl7.org/fhir/StructureDefinition/Immunization" xsi:type="Retrieve"/></expression></def><def accessLevel="Public" context="Immunization" localId="239" locator="39:1-41:77" name="Initial Population"><annotation xsi:type="a:Annotation"><a:s r="239"><a:s>/*
 * As defined by Member State
 */
define "Initial Population":
  </a:s><a:s r="240"><a:s r="244"><a:s r="242"><a:s r="241"><a:s>Immunization</a:s></a:s><a:s>.</a:s><a:s r="242"><a:s>occurrence</a:s></a:s></a:s><a:s> is not null</a:s></a:s><a:s>
  and </a:s><a:s r="250"><a:s r="247"><a:s r="246"><a:s r="245"><a:s>Immunization</a:s></a:s><a:s>.</a:s><a:s r="246"><a:s>occurrence</a:s></a:s></a:s><a:s>.</a:s><a:s r="247"><a:s>toInterval()</a:s></a:s></a:s><a:s r="250"> starts during </a:s><a:s r="248"><a:s>"Measurement Period"</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="240" locator="40:3-41:77" xsi:type="And"><operand localId="244" locator="40:3-40:37" xsi:type="Not"><operand localId="243" locator="40:3-40:37" xsi:type="IsNull"><operand localId="242" locator="40:3-40:25" path="occurrence" xsi:type="Property"><source localId="241" locator="40:3-40:14" name="Immunization" xsi:type="ExpressionRef"/></operand></operand></operand><operand localId="250" locator="41:7-41:77" xsi:type="In"><operand localId="249" locator="41:44-41:49" xsi:type="Start"><operand libraryName="WC" localId="247" locator="41:7-41:42" name="toInterval" xsi:type="FunctionRef"><operand localId="246" locator="41:7-41:29" path="occurrence" xsi:type="Property"><source localId="245" locator="41:7-41:18" name="Immunization" xsi:type="ExpressionRef"/></operand></operand></operand><operand localId="251" xsi:type="Interval"><low localId="254" xsi:type="ToDateTime"><signature localId="255" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="252" path="low" xsi:type="Property"><source localId="248" locator="41:58-41:77" name="Measurement Period" xsi:type="ParameterRef"/></operand></low><lowClosedExpression localId="256" path="lowClosed" xsi:type="Property"><source localId="248" locator="41:58-41:77" name="Measurement Period" xsi:type="ParameterRef"/></lowClosedExpression><high localId="259" xsi:type="ToDateTime"><signature localId="260" name="t:Date" xsi:type="NamedTypeSpecifier"/><operand localId="257" path="high" xsi:type="Property"><source localId="248" locator="41:58-41:77" name="Measurement Period" xsi:type="ParameterRef"/></operand></high><highClosedExpression localId="261" path="highClosed" xsi:type="Property"><source localId="248" locator="41:58-41:77" name="Measurement Period" xsi:type="ParameterRef"/></highClosedExpression></operand></operand></expression></def><def accessLevel="Public" context="Immunization" localId="264" locator="47:1-48:22" name="Denominator"><annotation xsi:type="a:Annotation"><a:t name="denominator" value="Number of planned immunization sessions at the vaccination location during the reporting period"/><a:t name="pseudocode" value="COUNT number of planned sessions during the reporting period"/><a:s r="264"><a:s>/*
@denominator: Number of planned immunization sessions at the vaccination location during the reporting period
@pseudocode: COUNT number of planned sessions during the reporting period
*/
define "Denominator":
  </a:s><a:s r="265"><a:s>"Initial Population"</a:s></a:s></a:s></annotation><expression localId="265" locator="48:3-48:22" name="Initial Population" xsi:type="ExpressionRef"/></def><def accessLevel="Public" context="Immunization" localId="268" locator="54:1-56:41" name="Numerator"><annotation xsi:type="a:Annotation"><a:t name="numerator" value="Number of immunization sessions completed at the vaccination location during the reporting period"/><a:t name="pseudocode" value="&#34;Immunization event status&#34; = &#34;Completed&#34; during the reporting period"/><a:s r="268"><a:s>/*
@numerator: Number of immunization sessions completed at the vaccination location during the reporting period
@pseudocode: COUNT of immunization events WHERE "Immunization event status" = "Completed" during the reporting period
*/
define "Numerator":
  </a:s><a:s r="269"><a:s r="270"><a:s>"Denominator"</a:s></a:s><a:s>
    and </a:s><a:s r="271"><a:s r="273"><a:s r="272"><a:s>Immunization</a:s></a:s><a:s>.</a:s><a:s r="273"><a:s>status</a:s></a:s></a:s><a:s> = </a:s><a:s r="274"><a:s>'completed'</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="269" locator="55:3-56:41" xsi:type="And"><operand localId="270" locator="55:3-55:15" name="Denominator" xsi:type="ExpressionRef"/><operand localId="271" locator="56:9-56:41" xsi:type="Equal"><signature localId="278" name="t:String" xsi:type="NamedTypeSpecifier"/><signature localId="279" name="t:String" xsi:type="NamedTypeSpecifier"/><operand libraryName="FHIRHelpers" localId="276" name="ToString" xsi:type="FunctionRef"><signature localId="277" name="fhir:ImmunizationStatus" xsi:type="NamedTypeSpecifier"/><operand localId="273" locator="56:9-56:27" path="status" xsi:type="Property"><source localId="272" locator="56:9-56:20" name="Immunization" xsi:type="ExpressionRef"/></operand></operand><operand localId="274" locator="56:31-56:41" value="completed" valueType="t:String" xsi:type="Literal"/></operand></expression></def><def accessLevel="Public" context="Immunization" localId="282" locator="62:1-63:57" name="Stratification 1"><annotation xsi:type="a:Annotation"><a:t name="disaggregation" value="Vaccination location&#xA;                 Administrative area"/><a:s r="282"><a:s>/*
@disaggregation: Vaccination location
                 Administrative area
*/
define "Stratification 1":
  </a:s><a:s r="285"><a:s r="283"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="285"><a:s>GetLocationNameForImmunization( </a:s><a:s r="284"><a:s>Immunization</a:s></a:s><a:s> )</a:s></a:s></a:s></a:s></annotation><expression libraryName="Elements" localId="285" locator="63:3-63:57" name="GetLocationNameForImmunization" xsi:type="FunctionRef"><operand localId="284" locator="63:44-63:55" name="Immunization" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Immunization" localId="288" locator="65:1-66:61" name="Stratification 2"><annotation xsi:type="a:Annotation"><a:s r="288"><a:s>define "Stratification 2":
  </a:s><a:s r="291"><a:s r="289"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="291"><a:s>GetGeographicRegionForImmunization( </a:s><a:s r="290"><a:s>Immunization</a:s></a:s><a:s> )</a:s></a:s></a:s></a:s></annotation><expression libraryName="Elements" localId="291" locator="66:3-66:61" name="GetGeographicRegionForImmunization" xsi:type="FunctionRef"><operand localId="290" locator="66:48-66:59" name="Immunization" xsi:type="ExpressionRef"/></expression></def></statements></library>