PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.cqfmeasures@4.0.0-ballot
    http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/measure-cqfm
description: The CQFM Measure Profile describes minimum expectations for defining an electronic Clinical Quality Measure (eCQM)
package_name: hl7.fhir.us.cqfmeasures
derivation: constraint
name: CQFMMeasure
type: Measure
elements:
  meta:
    mustSupport: true
    index: 0
    elements:
      profile: {mustSupport: true, array: true, min: 1, index: 1}
    required: [profile]
  extension:
    type: Extension
    mustSupport: true
    url: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-artifactComment
    index: 2
    slicing:
      slices:
        comment:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-artifactComment', index: 2}
          min: 0
        allocation:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-allocation', index: 3}
          min: 0
          max: 1
        softwaresystem:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem', index: 4}
          min: 0
  library:
    constraint:
      cqm-2: {human: Measures utilizing CQL SHALL reference one and only one CQL library (and that referenced library MUST be the primary library for the measure), severity: warning, expression: exists()}
    short: CQFMMeasures are not required to use a Library, but if they do, it SHALL be a CQFMLibrary.
    type: canonical
    mustSupport: true
    index: 5
  type:
    binding: {strength: extensible, valueSet: 'http://terminology.hl7.org/ValueSet/measure-type'}
    mustSupport: true
    index: 6
  group:
    mustSupport: true
    index: 7
    elements:
      id:
        constraint:
          cqm-3: {human: 'Group identifiers SHOULD use the convention: "group-[group number]", where [group number] corresponds with the group naming convention for the criteria within the group', severity: warning, expression: value.startsWith('group-')}
        mustSupport: true
        index: 8
      population:
        mustSupport: true
        array: true
        index: 9
        elements:
          id: {mustSupport: true, index: 10}
          code:
            binding: {strength: extensible, valueSet: 'http://terminology.hl7.org/ValueSet/measure-population'}
            mustSupport: true
            index: 11
          criteria:
            constraint:
              cqm-4: {human: Group population criteria SHOULD be simple expression names found within the primary library for the measure. The criteria SHOULD NOT include a namespace., severity: warning, expression: expression.contains('.').not()}
            mustSupport: true
            index: 12
        required: [id, code]
      stratifier:
        mustSupport: true
        index: 13
        elements:
          id: {mustSupport: true, index: 14}
          criteria:
            constraint:
              cqm-5: {human: Group stratifier criteria SHOULD be simple expression names found within the primary library for the measure. The criteria SHOULD NOT include a namespace., severity: warning, expression: expression.contains('.').not()}
            mustSupport: true
            index: 15
        required: [id]
  supplementalData:
    constraint:
      cqm-6: {human: Supplemental data SHALL use either criteria or path, severity: warning, expression: criteria.exists() or path.exists()}
    mustSupport: true
    index: 16
    elements:
      id: {mustSupport: true, index: 17}
      code:
        binding: {strength: extensible, valueSet: 'http://terminology.hl7.org/ValueSet/measure-data-usage'}
        mustSupport: true
        index: 18
    required: [id]
package_version: 4.0.0-ballot
extensions:
  comment: {url: 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-artifactComment', min: 0, type: Extension, mustSupport: true, index: 2}
  allocation: {url: 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-allocation', min: 0, max: 1, type: Extension, mustSupport: true, index: 3}
  softwaresystem: {url: 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem', min: 0, type: Extension, mustSupport: true, index: 4}
class: profile
kind: resource
url: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/measure-cqfm
base: http://hl7.org/fhir/StructureDefinition/shareablemeasure
version: 4.0.0-ballot
required: [meta]