WHO Immunization Implementation Guide
0.1.0 - CI Build International flag

WHO Immunization Implementation Guide, published by World Health Organization (WHO). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-immunizations and changes regularly. See the Directory of published versions

Library: IMMZIND40Measles

Official URL: http://smart.who.int/ig/smart-immunizations/Library/IMMZIND40Measles Version: 0.1.0
Draft as of 2024-05-30 Computable Name: IMMZIND40Measles

Related Artifacts

depends-onFHIR model informationhttp://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
depends-onLibrary FHIRHelpershttp://smart.who.int/ig/smart-immunizations/Library/FHIRHelpers|4.0.1
depends-onLibrary IMMZComIMMZCommon
depends-onLibrary IMMZcIMMZConcepts
depends-onLibrary IMMZConIMMZConfig
depends-onLibrary IMMZvlIMMZVaccineLibrary
depends-onLibrary FCFHIRCommon
depends-onLibrary IndIMMZINDMeasles
depends-onLibrary StratifiersIMMZStratifiers
depends-onLibrary MeaslesIMMZD2DTMeaslesInput
depends-onCode system ISO-8601-Derived Periodshttp://ohie.org/CodeSystem/iso-8601-derived-periods
depends-onValue set MCV VaccineIMMZ.Z.DE9 ValueSet for Measles Vaccines

Parameters

Measurement Periodin01Period
Patientout01Patient
First Doseout01boolean
Second Doseout01boolean
Initial Populationout01boolean
Numeratorout01boolean
Denominatorout01boolean
Stratification 1out01string
Stratification 2out01string
Stratification 3out01integer
Stratification 4out01Coding

Data Requirements

Type: Patient (Patient)
Type: Immunization (Immunization)
Type: Encounter (Encounter)

Contents

text/cql

/*
 * Library: IMMZ.IND.40.Measles
 * Dropout rate of MCV1 to MCV2 
 * The percentage in the target population who received a first dose of measles containing vaccine in the primary series (MCV1) 
 * but have not received the second dose of measles containing vaccine in the primary series (i.e. are past due for MCV2) during the reporting period
 * 
 * 
 * References: WHO Immunization Facility Analysis Guide
 *       
 */

library IMMZIND40Measles

// Start Skeleton CQL
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
include IMMZCommon called IMMZCom
include IMMZConcepts called IMMZc
include IMMZConfig called IMMZCon
//include IMMZIndicatorCommon called IMMZIndCom
include IMMZVaccineLibrary called IMMZvl
include FHIRCommon called FC
include IMMZINDMeasles called Ind
include IMMZStratifiers called Stratifiers
// End Skeleton CQL
parameter "Measurement Period" Interval<DateTime> default Interval[@2023-01-01T00:00:00.0, @2023-12-31T23:59:59.9]

context Patient

/*
@internal: First dose received during reporting period
*/
define "First Dose":
	exists( Ind."Measles Doses in Measurement Period" I where IMMZCom.ToPositiveInt((singleton from I.protocolApplied).doseNumber) = 1 )

/*
@internal: Second dose received during reporting period
*/
define "Second Dose":
	exists( Ind."Measles Doses in Measurement Period" I where IMMZCom.ToPositiveInt((singleton from I.protocolApplied).doseNumber) = 2 )

/*
@population: Number of clients in the target population who received dose 1 of MCV containing vaccine during the reporting period
*/ 
define "Initial Population":
	"First Dose"

/*
@numerator: Number of clients who received dose 1 of MCV containing vaccine during the reporting period who should have received dose 2 of MCV containing vaccine during the reporting period, however did not receive MCV dose 2.
@computation: COUNT of clients with an immunization event WHERE "Vaccine type" = "Measles containing vaccines" for the first dose in the primary series (MCV1) AND "Date and time of vaccination" is during the reporting period
MINUS
COUNT of clients with an immunization event WHERE "Vaccine type"" = "Measles containing vaccines" for the second dose in the primary series (MCV2) AND "Date and time of vaccination" is during the reporting period
*/
define "Numerator":
	"First Dose" and not( "Second Dose" )
/*
@denominator: Number of clients in the target population who received dose 1 of MCV containing vaccine during the reporting period
@computation: COUNT clients with an immunization event WHERE "Vaccine type" = "Measles containing vaccines" for a first dose in the primary series (MCV1)  AND "Date and time of vaccination" is during the reporting period
*/
define "Denominator":
	"Initial Population"

/*
@disaggregation: Administrative area
                 Sex
                 Age in years
                 Age group (depending on schedule)
*/
define "Stratification 1":
	Stratifiers."Administrative Area"

define "Stratification 2":
	Stratifiers."Sex"

define "Stratification 3":
	Stratifiers."Age"

define "Stratification 4":
	Stratifiers."Age Group"

Content not shown - (application/elm+xml, size = 24Kb )

Content not shown - (application/elm+json, size = 42Kb )