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 IMMZD2DTYellowFeverInput depends-on Value set Yellow Fever Vaccine IMMZ.Z.DE23 Yellow fever containing vaccines Parameters Patient out 0 1 Patient Yellow fever dose 1 out 0 1 boolean Yellow fever dose 1 Due Date out 0 1 date Yellow fever dose 1 Overdue out 0 1 date Yellow fever dose dose 1 Create out 0 1 string Yellow fever dose 1 Expiration out 0 1 Resource 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)