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

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

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 inputIMMZD2DTYellowFeverInput
depends-onValue set Yellow Fever VaccineIMMZ.Z.DE23 Yellow fever containing vaccines

Parameters

Patientout01Patient
Yellow fever dose 1out01boolean
Yellow fever dose 1 Due Dateout01date
Yellow fever dose 1 Overdueout01date
Yellow fever dose dose 1 Createout01string
Yellow fever dose 1 Expirationout01Resource

Data Requirements

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

Contents

text/cql

/*
 * Library: IMMZD18SYellowFever (IMMZ.D18.S.Yellow fever schedule)
 */
library IMMZD18SYellowFever
// 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 IMMZD2DTYellowFeverInput called input

// End Skeleton CQL
context Patient


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

/*
@output: Measles dose dose 1 Create
@create: The client is due for measles dose 1 if the client is at least 9 months
*/
define "Yellow fever dose dose 1 Create":
	if "Yellow fever dose 1" then 	'The client is due for yellow fever dose 1 if the client is at least 9 months and living in a yellow fever endemic area. Due Date is '
		+ ToString("Yellow fever dose 1 Due Date") + '. Overdue on ' + ToString("Yellow fever dose 1 Overdue")
	else ''

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

/*
@dynamicValue: Yellow fever 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 "Yellow fever dose 1 Overdue":
	if "Yellow fever dose 1" then Patient.birthDate + 12 months
	else null

/*
@dynamicValue: Yellow fever 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 "Yellow fever dose 1 Expiration":
	null

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

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