Related Artifacts depends-on FHIR model information http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 depends-on Library FHIRHelpers http://smart.who.int/ig/smart-immunizations/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 input IMMZD2DTMeaslesInput depends-on Value set MCV Vaccine IMMZ.Z.DE9 ValueSet for Measles Vaccines Parameters Patient out 0 1 Patient Measles dose 1 out 0 1 boolean Measles dose 1 Due Date out 0 1 date Measles dose 1 Create out 0 1 string Measles dose 1 Overdue out 0 1 Resource Measles dose 1 Expiration out 0 1 Resource Measles dose 2 out 0 1 boolean Measles dose 2 Due Date out 0 1 date Measles dose 2 Create out 0 1 string Measles dose 2 Overdue out 0 1 Resource Measles dose 2 Expiration out 0 1 Resource 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)