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 IMMZCon IMMZConfig depends-on Library IMMZc IMMZConcepts depends-on Library WCom WHOCommon depends-on Value set Rabies Vaccine http://fhir.org/guides/who/smart-immunization/ValueSet/IMMZ.A1.DE15 depends-on Value set VNA levels http://fhir.org/guides/who/smart-immunization/ValueSet/VNAlevelsRAbies-values Parameters Individual is at high risk of RABV exposure in 0 1 boolean Individual has continual or frequent risk of exposure (i.e. occupational) in 0 1 boolean Patient out 0 1 Patient Rabies vaccine immunization history out 0 * Immunization No-doses out 0 1 boolean 1 dose out 0 1 boolean Date last Rabies dose given >= 7 days out 0 1 boolean Should vaccinate patient with Rabies vaccine (PrEP strategy) on 2 dose scheme out 0 1 boolean VNA levels out 0 1 Quantity Should vaccinate patient with Rabies vaccine Booster (PrEP strategy) out 0 1 boolean Data Requirements Type: Patient (Patient) Type: Immunization (Immunization) Type: Observation (Observation) Filter Value code In ValueSet http://fhir.org/guides/who/smart-immunization/ValueSet/VNAlevelsRAbies-values Contents text/cql /* * Library: IMMZDT18 (IMMZ.DT.18.Rabies) * Rule: If patient has not been vaccinated, give Rabies vaccine * Trigger: Patient has never been vaccinated and is at high risk of exposure to RABV and/or patient has been exposed to RABV */ library IMMZDT18 // Start Skeleton CQL using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include IMMZCommon called IMMZCom include IMMZConfig called IMMZCon include IMMZConcepts called IMMZc // End Skeleton CQL parameter "Individual is at high risk of RABV exposure" Boolean default false parameter "Individual has continual or frequent risk of exposure (i.e. occupational)" Boolean default false context Patient /* * @dataElement Rabies vaccine immunization history */ define "Rabies vaccine immunization history": IMMZCom."Rabies Doses Administered to Patient" /* * @dataElement No-doses */ define "No-doses": not exists("Rabies vaccine immunization history") /* * @dataElement 1 dose */ define "1 dose": IMMZCom."Number of Rabies Doses Administered to Patient" = 1 /* * @dataElement Date last Rabies dose given >= 7 days */ define "Date last Rabies dose given >= 7 days": IMMZCom."Date last Rabies dose given Dose Administered to Patient" equal 7 'days' before Today() or IMMZCom."Date last Rabies dose given Dose Administered to Patient" more than 7 'days' before Today() /* * Rule: Should vaccinate patient with Rabies vaccine (PrEP strategy) on 2 dose scheme * Annotations: * - Provide Rabies immunizations – using the "PrEP vaccination strategy – NO PREVIOUS" schedule (2 dose scheme) * - Provide Rabies immunizations – using the "PrEP vaccination strategy – 1 PREVIOUS" schedule (2 dose scheme) * Outputs: * - Immunize Patient for Rabies (PrEP strategy) - No Doses * - Immunize Patient for Rabies (PrEP strategy) - 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: * ((("Rabies vaccine immunization history" = "No-doses") and ("Individual is at high risk of RABV exposure" = true)) or (("Rabies vaccine immunization history" = "1 dose") and ("Date last Rabies dose given" >= "7 days" = true))) */ define "Should vaccinate patient with Rabies vaccine (PrEP strategy) on 2 dose scheme": ((("No-doses") and ("Individual is at high risk of RABV exposure")) or (("1 dose") and ("Date last Rabies dose given >= 7 days"))) /* * @dataElement VNA levels */ define "VNA levels": First( IMMZCom."VNA Test Results" ).value as FHIR.Quantity /* * Rule: Should vaccinate patient with Rabies vaccine Booster (PrEP strategy) * Annotations: * - Provide Rabies immunizations – using the "PrEP vaccination strategy – BOOSTER" schedule (1 dose booster) * Outputs: * - Immunize Patient for Rabies vaccine Booster (PrEP strategy) * 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: * (("Individual has continual or frequent risk of exposure (i.e. occupational)" = true) and ("VNA levels" < "0.5 IU/mL")) */ define "Should vaccinate patient with Rabies vaccine Booster (PrEP strategy)": (("Individual has continual or frequent risk of exposure (i.e. occupational)") and ("VNA levels" < 0.5 '[iU]/mL')) Content not shown - (application/elm+xml, size = 20Kb) Content not shown - (application/elm+json, size = 98Kb)
Individual is at high risk of RABV exposure
Individual has continual or frequent risk of exposure (i.e. occupational)
Should vaccinate patient with Rabies vaccine (PrEP strategy) on 2 dose scheme
Should vaccinate patient with Rabies vaccine Booster (PrEP strategy)