DailyAppleLogic
type: Library
node role: treeRoot
id:
  v: DailyAppleLogic
text:
  status:
    v: extensions
  div:
    v: 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…
contained: Parameters
  id:
    v: options
  parameter:
    name:
      v: translatorVersion
    value: String
      v: 3.27.0
  parameter:
    name:
      v: option
    value: String
      v: EnableAnnotations
  parameter:
    name:
      v: option
    value: String
      v: EnableLocators
  parameter:
    name:
      v: option
    value: String
      v: DisableListDemotion
  parameter:
    name:
      v: option
    value: String
      v: DisableListPromotion
  parameter:
    name:
      v: format
    value: String
      v: JSON
  parameter:
    name:
      v: format
    value: String
      v: XML
  parameter:
    name:
      v: analyzeDataRequirements
    value: Boolean
      v: false
  parameter:
    name:
      v: collapseDataRequirements
    value: Boolean
      v: true
  parameter:
    name:
      v: compatibilityLevel
    value: String
      v: 1.5
  parameter:
    name:
      v: enableCqlOnly
    value: Boolean
      v: false
  parameter:
    name:
      v: errorLevel
    value: String
      v: Info
  parameter:
    name:
      v: signatureLevel
    value: String
      v: Overloads
  parameter:
    name:
      v: validateUnits
    value: Boolean
      v: true
  parameter:
    name:
      v: verifyOnly
    value: Boolean
      v: false
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions
    l: cqf-cqlOptions
  value: Reference
    l: options
    reference:
      v: #options
extension:
  url:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
    l: crmi-softwaresystem
  value: Reference
    l: cqf-tooling
    reference:
      v: Device/cqf-tooling
url:
  v: http://somewhere.org/fhir/uv/mycontentig/Library/DailyAppleLogic
  l: DailyAppleLogic
version:
  v: 0.5.3
name:
  v: DailyAppleLogic
status:
  v: draft
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2025-12-10T03:14:19+00:00
publisher:
  v: HL7 International - [Some] Work Group
contact:
  telecom:
    system:
      v: url
    value:
      v: http://hl7.org/Special/committees/[something]
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1
    l: http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Apple
  resource:
    v: http://fhir.org/guides/cqf/cpg/example/ValueSet/Apple
    l: Apple
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: Inclusion Criteria
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Active Daily Apple Order
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: MedicationRequest
parameter:
  name:
    v: Prohibitions For Daily Apple Order
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: MedicationRequest
parameter:
  name:
    v: No Daily Apple Order
  use:
    v: out

v: 0

v: 1

v: boolean

type:
  v: Patient
profile:
  v: http://hl7.org/fhir/StructureDefinition/Patient
  l: Patient

type:
  v: MedicationRequest
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
must support:
  v: medication
must support:
  v: intent
must support:
  v: status
must support:
  v: doNotPerform
code filter:
  path:
    v: medication
  value set:
    v: http://fhir.org/guides/cqf/cpg/example/ValueSet/Apple
    l: Apple

type:
  v: MedicationRequest
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
must support:
  v: medication.reference
must support:
  v: intent
must support:
  v: status
must support:
  v: doNotPerform

type:
  v: Medication
profile:
  v: http://hl7.org/fhir/StructureDefinition/Medication
  l: Medication
must support:
  v: id
must support:
  v: code

content type:
  v: text/cql
url:
  v: http://somewhere.org/fhir/uv/mycontentig/DailyAppleLogic.cql
  l: DailyAppleLogic.cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json