<?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="294"><a:s>/*
 * Library: IMMZ.IND.44 Logic
 * Adverse event following immunization (AEFI) cases
 * The total number of adverse events following the administration of vaccines during the reporting period
 * 
 * Numerator: Number of AEFI cases during the reporting period
 * Numerator Computation: COUNT of immunization events WHERE "Reaction reported" is "Yes" AND "Date and time of vaccination" is during the reporting period
 * Denominator: Not applicable
 * Denominator Computation: Not applicable
 * 
 * Disaggregation
 *  - Vaccine type: BCG, OPV, etc.
 *  - Vaccine manufacturer
 *  - Type of reaction: non-serious, disability, etc.
 *  - Administrative area
 *  - Reaction manifestation: rash, vomiting, etc.
 *
 * References: WHO Immunization facility analysis guide (5)
 * 
 * Annotations: –
 */
library IMMZIND44Logic</a:s></a:s></annotation><identifier id="IMMZIND44Logic" 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="24:1-24: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="26:1-26: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="28:1-28: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="30:1-30: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="31:1-31: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="32:1-32: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="35:1-35: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="35:55-35:88" lowClosed="true" xsi:type="Interval"><low localId="223" locator="35:64-35: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="35:77-35: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="35:32-35:45" xsi:type="IntervalTypeSpecifier"><pointType localId="231" locator="35:41-35:44" name="t:Date" xsi:type="NamedTypeSpecifier"/></parameterTypeSpecifier></def></parameters><contexts><def localId="236" locator="37:1-37:20" name="Immunization"/></contexts><statements><def context="Immunization" localId="234" locator="37:1-37:20" name="Immunization"><expression localId="235" xsi:type="SingletonFrom"><operand dataType="fhir:Immunization" localId="233" locator="37:1-37:20" templateId="http://hl7.org/fhir/StructureDefinition/Immunization" xsi:type="Retrieve"/></expression></def><def accessLevel="Public" context="Immunization" localId="239" locator="42:1-43:6" name="Initial Population"><annotation xsi:type="a:Annotation"><a:s r="239"><a:s r="240">/*
 * As defined by Member State
 */
define "Initial Population":
  true</a:s></a:s></annotation><expression localId="240" locator="43:3-43:6" value="true" valueType="t:Boolean" xsi:type="Literal"/></def><def accessLevel="Public" context="Immunization" localId="243" locator="49:1-50:6" name="Denominator"><annotation xsi:type="a:Annotation"><a:t name="denominator" value="Not applicable"/><a:t name="pseudocode" value="Not applicable"/><a:s r="243"><a:s r="244">/*
@denominator: Not applicable
@pseudocode: Not applicable
*/
define "Denominator":
  true</a:s></a:s></annotation><expression localId="244" locator="50:3-50:6" value="true" valueType="t:Boolean" xsi:type="Literal"/></def><def accessLevel="Public" context="Immunization" localId="247" locator="56:1-57:51" name="Numerator"><annotation xsi:type="a:Annotation"><a:t name="numerator" value="Number of AEFI cases during the reporting period"/><a:t name="pseudocode" value="&#34;Reaction reported&#34; is &#34;Yes&#34; AND &#34;Date and time of vaccination&#34; is during the reporting period"/><a:s r="247"><a:s>/*
@numerator: Number of AEFI cases during the reporting period
@pseudocode: COUNT of immunization events WHERE "Reaction reported" is "Yes" AND "Date and time of vaccination" is during the reporting period
*/
define "Numerator":
  </a:s><a:s r="248"><a:s>exists </a:s><a:s r="250"><a:s r="249"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="250"><a:s>"Adverse Events for Immunization"</a:s></a:s></a:s></a:s></a:s></annotation><expression localId="248" locator="57:3-57:51" xsi:type="Exists"><operand libraryName="Elements" localId="250" locator="57:10-57:51" name="Adverse Events for Immunization" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Immunization" localId="253" locator="66:1-67:42" name="Stratification 1"><annotation xsi:type="a:Annotation"><a:t name="disaggregation" value="Vaccine type: BCG, OPV, etc.&#xA;                 Vaccine manufacturer&#xA;                 Type of reaction: non-serious, disability, etc.&#xA;                 Administrative area&#xA;                 Reaction manifestation: rash, vomiting, etc."/><a:s r="253"><a:s>/*
@disaggregation: Vaccine type: BCG, OPV, etc.
                 Vaccine manufacturer
                 Type of reaction: non-serious, disability, etc.
                 Administrative area
                 Reaction manifestation: rash, vomiting, etc.
*/
define "Stratification 1":
  </a:s><a:s r="259"><a:s>First( </a:s><a:s r="256"><a:s r="255"><a:s r="254"><a:s>Immunization</a:s></a:s><a:s>.</a:s><a:s r="255"><a:s>vaccineCode</a:s></a:s></a:s><a:s>.</a:s><a:s r="256"><a:s>coding</a:s></a:s></a:s><a:s> )</a:s></a:s></a:s></annotation><expression localId="259" locator="67:3-67:42" xsi:type="First"><source localId="256" locator="67:10-67:40" path="coding" xsi:type="Property"><source localId="255" locator="67:10-67:33" path="vaccineCode" xsi:type="Property"><source localId="254" locator="67:10-67:21" name="Immunization" xsi:type="ExpressionRef"/></source></source></expression></def><def accessLevel="Public" context="Immunization" localId="262" locator="69:1-70:27" name="Stratification 2"><annotation xsi:type="a:Annotation"><a:s r="262"><a:s>define "Stratification 2":
  </a:s><a:s r="264"><a:s r="263"><a:s>Immunization</a:s></a:s><a:s>.</a:s><a:s r="264"><a:s>manufacturer</a:s></a:s></a:s></a:s></annotation><expression localId="264" locator="70:3-70:27" path="manufacturer" xsi:type="Property"><source localId="263" locator="70:3-70:14" name="Immunization" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Immunization" localId="267" locator="72:1-73:81" name="Stratification 3"><annotation xsi:type="a:Annotation"><a:s r="267"><a:s>define "Stratification 3":
  </a:s><a:s r="283"><a:s>First( </a:s><a:s r="278"><a:s r="277"><a:s r="274"><a:s>First (</a:s><a:s r="269"><a:s r="268"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="269"><a:s>"Adverse Events for Immunization"</a:s></a:s></a:s><a:s> )</a:s></a:s><a:s>.</a:s><a:s r="277"><a:s>seriousness</a:s></a:s></a:s><a:s>.</a:s><a:s r="278"><a:s>coding</a:s></a:s></a:s><a:s> )</a:s></a:s></a:s></annotation><expression localId="283" locator="73:3-73:81" xsi:type="First"><signature localId="284" xsi:type="ListTypeSpecifier"><elementType localId="285" name="fhir:Coding" xsi:type="NamedTypeSpecifier"/></signature><source localId="278" locator="73:10-73:79" path="coding" xsi:type="Property"><source localId="277" locator="73:10-73:72" path="seriousness" xsi:type="Property"><source localId="274" locator="73:10-73:60" xsi:type="First"><signature localId="275" xsi:type="ListTypeSpecifier"><elementType localId="276" name="fhir:AdverseEvent" xsi:type="NamedTypeSpecifier"/></signature><source libraryName="Elements" localId="269" locator="73:17-73:58" name="Adverse Events for Immunization" xsi:type="ExpressionRef"/></source></source></source></expression></def><def accessLevel="Public" context="Immunization" localId="288" locator="75:1-76:61" name="Stratification 4"><annotation xsi:type="a:Annotation"><a:s r="288"><a:s>define "Stratification 4":
  </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="76:3-76:61" name="GetGeographicRegionForImmunization" xsi:type="FunctionRef"><operand localId="290" locator="76:48-76:59" name="Immunization" xsi:type="ExpressionRef"/></expression></def><def accessLevel="Public" context="Immunization" localId="294" locator="78:1-79:75" name="Stratification 5"><annotation xsi:type="a:Annotation"><a:s r="294"><a:s>define "Stratification 5":
  </a:s><a:s r="310"><a:s>First( </a:s><a:s r="305"><a:s r="304"><a:s r="301"><a:s>First (</a:s><a:s r="296"><a:s r="295"><a:s>Elements</a:s></a:s><a:s>.</a:s><a:s r="296"><a:s>"Adverse Events for Immunization"</a:s></a:s></a:s><a:s> )</a:s></a:s><a:s>.</a:s><a:s r="304"><a:s>event</a:s></a:s></a:s><a:s>.</a:s><a:s r="305"><a:s>coding</a:s></a:s></a:s><a:s> )</a:s></a:s></a:s></annotation><expression localId="310" locator="79:3-79:75" xsi:type="First"><signature localId="311" xsi:type="ListTypeSpecifier"><elementType localId="312" name="fhir:Coding" xsi:type="NamedTypeSpecifier"/></signature><source localId="305" locator="79:10-79:73" path="coding" xsi:type="Property"><source localId="304" locator="79:10-79:66" path="event" xsi:type="Property"><source localId="301" locator="79:10-79:60" xsi:type="First"><signature localId="302" xsi:type="ListTypeSpecifier"><elementType localId="303" name="fhir:AdverseEvent" xsi:type="NamedTypeSpecifier"/></signature><source libraryName="Elements" localId="296" locator="79:17-79:58" name="Adverse Events for Immunization" xsi:type="ExpressionRef"/></source></source></source></expression></def></statements></library>