Related Artifacts
| depends-on | FHIR model information | http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 |
| depends-on | Library FHIRHelpers | http://fhir.org/guides/who/smart-immunization/Library/FHIRHelpers|4.0.1 |
| depends-on | Library IMMZCom | IMMZCommon |
| depends-on | Library IMMZc | IMMZConcepts |
| depends-on | Library IMMZCon | IMMZConfig |
| depends-on | Library IMMZvl | IMMZVaccineLibrary |
| depends-on | Library FC | FHIRCommon |
| depends-on | Library WCom | WHOCommon |
| depends-on | Library Wcon | WHOConcepts |
| depends-on | Value set MCV Vaccine | http://fhir.org/guides/who/smart-immunization/ValueSet/IMMZ.A1.DE9 |
| depends-on | Value set HIV status | http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de45 |
| depends-on | Value set HIV status - HIV positive Choices | http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de46 |
| depends-on | Value set ARV Drugs | ARV Drugs values |
| depends-on | Value set Pregnancy Status Pregnant | http://fhir.org/guides/who/core/ValueSet/pregnancystatus-values |
| depends-on | Value set CD4% Test Result | CD4 Percentage Test |
Parameters
| Individual is at high risk of contracting measles | in | 0 | 1 | boolean |
| Individual is travelling to a country experiencing measles outbreaks | in | 0 | 1 | boolean |
| Individual is known to be HIV-infected or exposed | in | 0 | 1 | boolean |
| Immune reconstitution was achieved | in | 0 | 1 | boolean |
| Patient | out | 0 | 1 | Patient |
| Should vaccinate patient for measles (supplimentary) because no doses | out | 0 | 1 | boolean |
| Should vaccinate patient for measles because no doses in a 2 dose scheme | out | 0 | 1 | boolean |
| Should vaccinate patient for measles because 1 dose in a 2 dose scheme | out | 0 | 1 | boolean |
| Should vaccinate patient for measles supplimentary dose because HIV positive and started HAART | out | 0 | 1 | boolean |
Data Requirements
Contents
text/cql
/*
* Library: IMMZDT08 (IMMZ.DT.08.Measles)
* Rule: If the child or patient has not been given MCV1 (at 9 months) and MCV2 (between 15-18 months) vaccination
* Trigger: Patient has never received measles vaccination
*/
library IMMZDT08
// 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
parameter "Individual is at high risk of contracting measles" Boolean default false
parameter "Individual is travelling to a country experiencing measles outbreaks" Boolean default false
parameter "Individual is known to be HIV-infected or exposed" Boolean default false
parameter "Immune reconstitution was achieved" Boolean default false
// End Skeleton CQL
context Patient
/*
* Rule: Should vaccinate patient for measles (supplimentary) because no doses
* Annotations:
* - Provide measles immunization supplimentary dose - Using the "MCV0 Vaccine immunization - NO Previous" schedule (supplimentary dose zero)
* -
* Outputs:
* - Immunize patient for Measles - No doses
* -
* References:
* - WHO recommendations for routine immunization - summary tables: https://www.who.int/teams/immunization-vaccines-and-biologicals/policies/who-recommendations-for-routine-immunization---summary-tables
* -
* Logic:
* ((((((((((("Measles vaccine immunization history" = "No-doses" = true) and ("Current Patient Age in Months" > 6)) and ("HIV Status" = "Positive" = true)) and ("Current Patient Age in Months" < 9)) and ("Patient is receiving HAART" = false)) or (((("Measles vaccine immunization history" = "No-doses" = true) and ("Current Patient Age in Months" > 6)) and ("Country currently has a measles outbreak" = true)) and ("Current Patient Age in Months" < 9))) or (((("Measles vaccine immunization history" = "No-doses" = true) and ("Current Patient Age in Months" > 6)) and ("In a setting where the risk of measles among infants < 9 months of age remains high" = true)) and ("Current Patient Age in Months" < 9))) or (((("Measles vaccine immunization history" = "No-doses" = true) and ("Current Patient Age in Months" > 6)) and ("Population is in conflict zones internally displaced populations and refugees" = true)) and ("Current Patient Age in Months" < 9))) or (((("Measles vaccine immunization history" = "No-doses" = true) and ("Current Patient Age in Months" > 6)) and ("Individual is at high risk of contracting measles (e.g. contacts of known measles cases or in settings with increased risk of exposure during outbreaks suck as day-care facilities" = true)) and ("Current Patient Age in Months" < 9))) or (((("Measles vaccine immunization history" = "No-doses" = true) and ("Current Patient Age in Months" > 6)) and ("Individual is travelling to a country experiencing measles outbreaks" = true)) and ("Current Patient Age in Months" < 9))) or (((("Measles vaccine immunization history" = "No-doses" = true) and ("Current Patient Age in Months" > 6)) and ("Individual is known to be HIV-infected or exposed (i.e. born to an HIV-infected woman" = true)) and ("Current Patient Age in Months" < 9)))
*/
define "Should vaccinate patient for measles (supplimentary) because no doses":
IMMZCom."No MCV Doses Administered to Patient" and
(
IMMZCom."Current Patient Age In Months" between 6 and 9 and
(
(
IMMZCom."HIV Status" in IMMZc."HIV status - HIV positive Choices" and
not(IMMZCom."Patient is receiving HAART")
)
or
(
IMMZCon."Country currently has a measles outbreak" or
IMMZCon."In a setting where the risk of measles among infants < 9 months of age remains high" or
IMMZCon."Population is in conflict zones internally displaced populations and refugees" or
"Individual is at high risk of contracting measles" or
"Individual is travelling to a country experiencing measles outbreaks" or
"Individual is known to be HIV-infected or exposed"
)
)
)
/*
* Rule: Should vaccinate patient for measles because no doses in a 2 dose scheme
* Annotations:
* - Provide measles immunization 1st dose - Using the "MCV1 Vaccine immunization - NO Previous" schedule (2 doses scheme)
* -
* Outputs:
* - Immunize patient for Measles - No doses
* -
* References:
* - WHO recommendations for routine immunization - summary tables: https://www.who.int/teams/immunization-vaccines-and-biologicals/policies/who-recommendations-for-routine-immunization---summary-tables
* -
* Logic:
* ((((("Measles vaccine immunization history" = "No-doses" = true) and ("Current Patient Age in Months" >= 9)) and ("In a setting where there is high transmission of Measles" = true)) and ("Pregnancy Status" = false)) or ((("Measles vaccine immunization history" = "No-doses" = true) and ("Current Patient Age in Months" >= 12)) and ("In a setting where there is low transmission of Measles" = true)))
*/
define "Should vaccinate patient for measles because no doses in a 2 dose scheme":
IMMZCom."No MCV Doses Administered to Patient" and not(IMMZCom."Pregnant") and
(
(
IMMZCom."Current Patient Age In Months" >= 9 and
IMMZCon."In a setting where there is high transmission of Measles"
) or (
IMMZCom."Current Patient Age In Months" >= 12 and
IMMZCon."In a setting where there is low transmission of Measles"
)
)
/*
* Rule: Should vaccinate patient for measles because 1 dose in a 2 dose scheme
* Annotations:
* - Provide measles immunization 1st dose - Using the "MCV2 Vaccine immunization - 1 Previous" schedule (2 doses scheme)
* Outputs:
* - Immunize patient for Measles - 1 Dose
* References:
* - WHO recommendations for routine immunization - summary tables: https://www.who.int/teams/immunization-vaccines-and-biologicals/policies/who-recommendations-for-routine-immunization---summary-tables
* Logic:
* (((("Measles vaccine immunization history" = "1-dose" = true) and ("Current Patient Age in Months" >= 15)) and ("Date last Measles dose given" >= "4 weeks")) and ("Pregnancy Status" = false))
*/
define "Should vaccinate patient for measles because 1 dose in a 2 dose scheme":
IMMZCom."Number of MCV Doses Administered to Patient" = 1 and
IMMZCom."Current Patient Age In Months" >= 15 and
IMMZCom."Date Last MCV Dose Administered to Patient" more than 4 'week' before Today() and
not (IMMZCom."Pregnant")
/*
* Rule: Should vaccinate patient for measles supplimentary dose because HIV positive and started HAART
* Annotations:
* - Provide measles immunization supplimentary dose - Using the "MCV Vaccine immunization" schedule (additional supplimentary dose)
* -
* Outputs:
* - Immunize patient for Measles supplimentary
* -
* References:
* - WHO recommendations for routine immunization - summary tables: https://www.who.int/teams/immunization-vaccines-and-biologicals/policies/who-recommendations-for-routine-immunization---summary-tables
* -
* Logic:
* ((((("HIV Status" = "Positive" = true) and ("Patient is receiving HAART" = true)) and ("Immune reconstitution was achieved" = true)) and ("Pregnancy Status" = false)) or (((((("HIV Status" = "Positive" = true) and ("Patient is receiving HAART" = true)) and ("CD4+ T Lymphocyte monitoring is available" = false)) and ("Time since HAART was initiated in Months" >= 6)) and ("Time since HAART was initiated in Months" <= 12)) and ("Pregnancy Status" = false)))
*/
define "Should vaccinate patient for measles supplimentary dose because HIV positive and started HAART":
not(IMMZCom."Pregnant") and
IMMZCom."HIV Status" in IMMZc."HIV status - HIV positive Choices" and
IMMZCom."Patient is receiving HAART" and
(
"Immune reconstitution was achieved" or
not exists(IMMZCom."Observed CD4% Measurements")
and IMMZCom."Patient HAART Treatment Started 6 to 12 Months Ago"
)
Content not shown - (application/elm+xml, size = 43Kb)
Content not shown - (application/elm+json, size = 223Kb)