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 Value set Mumps Vaccine http://fhir.org/guides/who/smart-immunization/ValueSet/IMMZ.A1.DE11 Parameters Patient out 0 1 Patient MUMPS vaccine history out 0 * Immunization No-doses out 0 1 boolean Age out 0 1 integer Should vaccinate Patient for MUMPS because no doses on 2 dose scheme out 0 1 boolean Should vaccinate Patient for MUMPS a second dose on a 2 dose scheme out 0 1 boolean Data Requirements Type: Patient (Patient) Type: Immunization (Immunization) Contents text/cql /* * Library: IMMZDT20 (IMMZ.DT.20.Mumps) * Rule: If child or person has not been vaccinated against Mumps, give Mumps vaccine * Trigger: Patient has never had the Mumps vaccination, or missing doses in the vaccination schedule */ library IMMZDT20 // 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 // End Skeleton CQL context Patient /* * @dataElement MUMPS vaccine history */ define "MUMPS vaccine history": IMMZCom."Mumps Doses Administered to Patient" /* * @dataElement No-doses */ define "No-doses": not exists("MUMPS vaccine history") /* * @dataElement Age */ define "Age": IMMZCom."Current Patient Age In Months" /* * Rule: Should vaccinate Patient for MUMPS because no doses on 2 dose scheme * Annotations: * - Provide MUMPS immunizations - using the "MUMPS vaccine immunization - NO PREVIOUS" schedule (2 dose scheme) * Outputs: * - Immunize Patient for MUMPS - 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: * ((("MUMPS vaccine history" = "No-doses") and ("Age" < "19 months")) and ("Age" > "11 months")) */ define "Should vaccinate Patient for MUMPS because no doses on 2 dose scheme": "No-doses" and "Age" >= 12 and IMMZCon."Country recognizes MUMPS reduction as a public health priority" /* * Rule: Should vaccinate Patient for MUMPS a second dose on a 2 dose scheme * Annotations: * - Provide MUMPS immunizations - using the "MUMPS vaccine immunization - ONE PREVIOUS" schedule (2 dose scheme) * Outputs: * - Immunize Patient for MUMPS - One 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: * (("Age" < "19 months") and ("Age" > "11 months")) */ define "Should vaccinate Patient for MUMPS a second dose on a 2 dose scheme": IMMZCom."Number of Mumps Doses Administered to Patient" = 1 and IMMZCom."Date last Mumps dose Administered to Patient" more than 12 month before Today() Content not shown - (application/elm+xml, size = 12Kb) Content not shown - (application/elm+json, size = 54Kb)
Should vaccinate Patient for MUMPS because no doses on 2 dose scheme
Should vaccinate Patient for MUMPS a second dose on a 2 dose scheme