Metadata Version 0.5.3 Status Draft Jurisdiction 001 from http://unstats.un.org/unsd/methods/m49/m49.htm Steward (Publisher) HL7 International - [Some] Work Group Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Dependency Description: Library FHIRHelpers Resource: http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1 Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1 Dependency Description: Value set Apple Resource: http://fhir.org/guides/cqf/cpg/example/ValueSet/Apple Canonical URL: http://fhir.org/guides/cqf/cpg/example/ValueSet/Apple Data Requirement Type: Patient Profile(s): Patient Data Requirement Type: MedicationRequest Profile(s): MedicationRequest Must Support Elements: medication, intent, status, doNotPerform Code Filter(s): Path: medication ValueSet: http://fhir.org/guides/cqf/cpg/example/ValueSet/Apple Data Requirement Type: MedicationRequest Profile(s): MedicationRequest Must Support Elements: medication.reference, intent, status, doNotPerform Data Requirement Type: Medication Profile(s): Medication Must Support Elements: id, code Parameters Name Use Card. Type Documentation Patient Out 0..1 Patient Inclusion Criteria Out 0..1 boolean Active Daily Apple Order Out 0..* MedicationRequest Prohibitions For Daily Apple Order Out 0..* MedicationRequest No Daily Apple Order Out 0..1 boolean Library Content CQL Content library DailyAppleLogic version '0.4.1'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include FHIRHelpers version '4.0.1' called FHIRHelpers#xD; #xD; valueset "Apple": 'http://fhir.org/guides/cqf/cpg/example/ValueSet/Apple'#xD; #xD; context Patient#xD; #xD; define "Inclusion Criteria":#xD; Patient.active#xD; #xD; define "Active Daily Apple Order":#xD; [MedicationRequest: "Apple"] M#xD; where M.intent = 'order'#xD; and M.status = 'active'#xD; and M.doNotPerform is not true#xD; #xD; define "Prohibitions For Daily Apple Order":#xD; [MedicationRequest: "Apple"] M#xD; where M.intent = 'order'#xD; and M.status = 'active'#xD; and M.doNotPerform is true#xD; #xD; define "No Daily Apple Order":#xD; "Inclusion Criteria"#xD; and not exists ("Active Daily Apple Order")#xD; and not exists ("Prohibitions For Daily Apple Order")#xD; ELM XML Content Encoded data ELM JSON Content Encoded data Generated using version 0.5.3 of the sample-content-ig Liquid templates