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: IMMZD18SMeaslesHighTx

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

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 inputIMMZD2DTMeaslesInput
depends-onValue set MCV VaccineIMMZ.Z.DE9 ValueSet for Measles Vaccines

Parameters

Patientout01Patient
Measles dose 1out01boolean
Measles dose 1 Due Dateout01date
Measles dose 1 Createout01string
Measles dose 1 Overdueout01Resource
Measles dose 1 Expirationout01Resource
Measles dose 2out01boolean
Measles dose 2 Due Dateout01date
Measles dose 2 Createout01string
Measles dose 2 Overdueout01Resource
Measles dose 2 Expirationout01Resource

Data Requirements

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

Contents

text/cql

/*
 * Library: IMMZD18SMeaslesHighTx (IMMZ.D18.S.Measles.Ongoing transmission schedule)
 * Schedule Table: Schedule for countries with ongoing transmission in which the risk of measles mortality remains high
 */
library IMMZD18SMeaslesHighTx
// 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 IMMZVaccineLibrary called IMMZvl
include FHIRCommon called FC
include IMMZD2DTMeaslesInput called input

// End Skeleton CQL
context Patient


/*
@output: Measles dose 1
@trigger: Child's birth
*/
define "Measles dose 1":
	input."No measles primary series doses were administered"

/*
@output: Measles dose 1 Create
@create: The client is due for measles dose 1 if the client is at least 9 months
*/
define "Measles dose 1 Create":
	if "Measles dose 1" then 	'The client is due for measles dose 1 if the client is at least 9 months. Due Date is '
		+ ToString("Measles dose 1 Due Date")
	else ''

/*
@dynamicValue: Measles dose 1 Due Date
@pseudocode: "Date of birth" + 9 'month'
*/
define "Measles dose 1 Due Date":
	if "Measles dose 1" then Patient.birthDate + 9 months
	else null

/*
@dynamicValue: Measles dose 1 Overdue
@pseudocode: To be determined by Member States however there is no recommended overdue date and individuals are always eligible to be vaccinated
*/
define "Measles dose 1 Overdue":
	null

/*
@dynamicValue: Measles dose 1 Expiration
@pseudocode: To be determined by Member States however there is no recommended expiration date and individuals are always eligible to be vaccinated
*/
define "Measles dose 1 Expiration":
	null

/*
@output: Measles dose 2
@trigger: One measles primary series dose was administered
@pseudocode: Count of vaccines administered (where "Vaccine type" = 'Measles containing vaccines' and "Type of dose" = "Primary series" ) = 1
*/
define "Measles dose 2":
	input."MCV1 was administered High Tx"

/*
@output: Measles dose 2 Create
@create: The client is due for measles dose 2 if the client is at least 15 months.
*/
define "Measles dose 2 Create":
	if "Measles dose 2" then 'The client is due for measles dose 2 if the client is at least 15 months. Due Date is '
		+ ToString("Measles dose 2 Due Date")
	else ''

/*
@dynamicValue: Measles dose 2 Due Date
@pseudocode: "Date of birth" + 15 'month'
*/
define "Measles dose 2 Due Date":
	if "Measles dose 2" then Patient.birthDate + 15 months
	else null

/*
@dynamicValue: Measles dose 2 Overdue
@pseudocode: To be determined by Member States however there is no recommended overdue date and individuals are always eligible to be vaccinated
*/
define "Measles dose 2 Overdue":
	null

/*
@dynamicValue: Measles dose 2 Expiration
@pseudocode: To be determined by Member States however there is no recommended expiration date and individuals are always eligible to be vaccinated
*/
define "Measles dose 2 Expiration":
	null

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

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