Quality Measure Implementation Guide
2.0.0-ballot - STU 2 Ballot

Quality Measure Implementation Guide - Downloaded Version null See the Directory of published versions

## Resource Profile: CQM Test Case

Official URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testcase | Version: 1.0.0 | Highlight text changes?
Standards status: Trial-use Active as of 2026-04-07 | Maturity Level: 4 | Computable Name: CQMTestCase
Other Identifiers: OID:2.16.840.1.113883.4.642.40.61.42.32

The cqm Test Case Profile describes expectations for the definition and exchange of a measure test case, including input data and parameters, as well as expected outcome

Usages:

- Examples for this Profile: MeasureReport/testcase-example
- CapabilityStatements using this Profile: CQF Measures Publishable Measure Repository Capability Statement

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description Differentials, Snapshots, and other representations.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MeasureReport | C | 0..* | MeasureReport | Results of a measure evaluation Constraints: mrp-1, mrp-2
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension |  |  |  | Content/Rules for all slices
extension:testCaseDescription | S | 0..1 | markdown | What is being tested URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription
extension:inputParameters | S | 0..1 | Reference(Parameters) | What parameters URL: http://hl7.org/fhir/StructureDefinition/cqf-inputParameters
extension:operation | S | 0..1 | Reference(OperationDefinition) | If an operation is not specificed, then the test case is assumed to be for $evaluate-measure. URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-operation
extension:softwaresystem | S | 0..* | Reference(CRMI Software System Device) | Extension URL: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
Slices for modifierExtension | ?! | 0..* | Extension | Extension Slice: Unordered, Open by value:url
modifierExtension:isTestCase | ?!S | 0..1 | boolean | Test Case? URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-isTestCase
identifier | S Σ | 0..* | Identifier | Additional identifier for the MeasureReport
status | ?!S Σ | 1..1 | code | complete | pending | error Binding: MeasureReportStatus (required): The status of the measure report.
type | S Σ C | 1..1 | code | individual | subject-list | summary | data-collection Binding: MeasureReportType (required): The type of the measure report.
measure | S Σ | 1..1 | canonical(Measure) | What measure was calculated
period | Σ | 1..1 | Period | What period the report covers
improvementNotation | ?!Σ | 0..1 | CodeableConcept | increase | decrease Binding: MeasureImprovementNotation (required): Observation values that indicate what change in a measurement value or score is indicative of an improvement in the measured item or scored issue.
group | S C | 0..* | BackboneElement | Measure results for each group
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
population | S C | 0..* | BackboneElement | The populations in the group Constraints: cntq-1
Slices for extension |  |  |  | Content/Rules for all slices
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S Σ | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation Binding: MeasurePopulationType (extensible): The type of population (e.g. initial, numerator, denominator, etc.).
count | S | 0..1 | integer | Size of the population
measureScore | S Σ | 0..1 | Quantity | What score this group achieved
stratifier | S | 0..* | BackboneElement | Stratification results
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 0..* | CodeableConcept | What stratifier of the group
stratum | S | 0..* | BackboneElement | Stratum results, one for each unique value, or set of values, in the stratifier, or stratifier components
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
value | S | 0..1 | CodeableConcept | The stratum value, e.g. male
component | S | 0..* | BackboneElement | Stratifier component values
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConcept | What stratifier component of the group
value | S | 1..1 | CodeableConcept | The stratum component value, e.g. male
population | S C | 0..* | BackboneElement | Population results in this stratum Constraints: cntq-1
Slices for extension |  |  |  | Content/Rules for all slices
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation Binding: MeasurePopulationType (extensible): The type of population (e.g. initial, numerator, denominator, etc.).
count | S | 0..1 | integer | Size of the population
measureScore | S | 0..1 | Quantity | What score this stratum achieved
evaluatedResource | S | 0..* | Reference(Resource) | What data was used to calculate the measure score
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MeasureReport.status | Base | required | MeasureReportStatus | 📍4.0.1 | FHIR Std.
MeasureReport.type | Base | required | MeasureReportType | 📍4.0.1 | FHIR Std.
MeasureReport.improvementNotation | Base | required | MeasureImprovementNotation | 📍4.0.1 | FHIR Std.
MeasureReport.group.​population.code | Base | extensible | MeasurePopulationType | 📍4.0.1 | FHIR Std.
MeasureReport.group.​stratifier.stratum.population.​code | Base | extensible | MeasurePopulationType | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
cntq-1 | error | MeasureReport.group.population, MeasureReport.group.stratifier.stratum.population | Either count or countQuantity must be provided, but not both. | `(count.exists() xor extension('http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity').exists())`
dom-2 | error | MeasureReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MeasureReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | MeasureReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | MeasureReport | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MeasureReport | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
mrp-1 | error | MeasureReport | Measure Reports used for data collection SHALL NOT communicate group and score information | `(type != 'data-collection') or group.exists().not()`
mrp-2 | error | MeasureReport | Stratifiers SHALL be either a single criteria or a set of criteria components | `group.stratifier.stratum.all(value.exists() xor component.exists())`

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MeasureReport |  | 0..* | MeasureReport | Results of a measure evaluation
Slices for extension |  |  |  | Content/Rules for all slices
extension:testCaseDescription | S | 0..1 | markdown | What is being tested URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription
extension:inputParameters | S | 0..1 | Reference(Parameters) | What parameters URL: http://hl7.org/fhir/StructureDefinition/cqf-inputParameters
extension:operation | S | 0..1 | Reference(OperationDefinition) | If an operation is not specificed, then the test case is assumed to be for $evaluate-measure. URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-operation
extension:softwaresystem | S | 0..* | Reference(CRMI Software System Device) | Extension URL: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
Slices for modifierExtension |  |  |  | Content/Rules for all slices
modifierExtension:isTestCase | S | 0..1 | boolean | Test Case? URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-isTestCase
identifier | S | 0..* | Identifier | Additional identifier for the MeasureReport
status | S | 1..1 | code | complete | pending | error
type | S | 1..1 | code | individual | subject-list | summary | data-collection
measure | S | 1..1 | canonical(Measure) | What measure was calculated
group | S | 0..* | BackboneElement | Measure results for each group
population | S C | 0..* | BackboneElement | The populations in the group Constraints: cntq-1
Slices for extension |  |  |  | Content/Rules for all slices
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
code | S | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation
count | S | 0..1 | integer | Size of the population
measureScore | S | 0..1 | Quantity | What score this group achieved
stratifier | S | 0..* | BackboneElement | Stratification results
code | S | 0..* | CodeableConcept | What stratifier of the group
stratum | S | 0..* | BackboneElement | Stratum results, one for each unique value, or set of values, in the stratifier, or stratifier components
value | S | 0..1 | CodeableConcept | The stratum value, e.g. male
component | S | 0..* | BackboneElement | Stratifier component values
code | S | 1..1 | CodeableConcept | What stratifier component of the group
value | S | 1..1 | CodeableConcept | The stratum component value, e.g. male
population | S C | 0..* | BackboneElement | Population results in this stratum Constraints: cntq-1
Slices for extension |  |  |  | Content/Rules for all slices
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
code | S | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation
count | S | 0..1 | integer | Size of the population
measureScore | S | 0..1 | Quantity | What score this stratum achieved
evaluatedResource | S | 0..* | Reference(Resource) | What data was used to calculate the measure score
Documentation for this format

#### Constraints

Id | Grade | Path(s) | Description | Expression
cntq-1 | error | MeasureReport.group.population, MeasureReport.group.stratifier.stratum.population | Either count or countQuantity must be provided, but not both. | `(count.exists() xor extension('http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity').exists())`

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MeasureReport | C | 0..* | MeasureReport | Results of a measure evaluation Constraints: mrp-1, mrp-2
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:testCaseDescription | S | 0..1 | markdown | What is being tested URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription
extension:inputParameters | S | 0..1 | Reference(Parameters) | What parameters URL: http://hl7.org/fhir/StructureDefinition/cqf-inputParameters
extension:operation | S | 0..1 | Reference(OperationDefinition) | If an operation is not specificed, then the test case is assumed to be for $evaluate-measure. URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-operation
extension:softwaresystem | S | 0..* | Reference(CRMI Software System Device) | Extension URL: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
Slices for modifierExtension | ?! | 0..* | Extension | Extension Slice: Unordered, Open by value:url
modifierExtension:isTestCase | ?!S | 0..1 | boolean | Test Case? URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-isTestCase
identifier | S Σ | 0..* | Identifier | Additional identifier for the MeasureReport
status | ?!S Σ | 1..1 | code | complete | pending | error Binding: MeasureReportStatus (required): The status of the measure report.
type | S Σ C | 1..1 | code | individual | subject-list | summary | data-collection Binding: MeasureReportType (required): The type of the measure report.
measure | S Σ | 1..1 | canonical(Measure) | What measure was calculated
subject | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | Location | Device | RelatedPerson | Group) | What individual(s) the report is for
date | Σ | 0..1 | dateTime | When the report was generated
reporter | Σ | 0..1 | Reference(Practitioner | PractitionerRole | Location | Organization) | Who is reporting the data
period | Σ | 1..1 | Period | What period the report covers
improvementNotation | ?!Σ | 0..1 | CodeableConcept | increase | decrease Binding: MeasureImprovementNotation (required): Observation values that indicate what change in a measurement value or score is indicative of an improvement in the measured item or scored issue.
group | S C | 0..* | BackboneElement | Measure results for each group
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | Σ | 0..1 | CodeableConcept | Meaning of the group
population | S C | 0..* | BackboneElement | The populations in the group Constraints: cntq-1
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S Σ | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation Binding: MeasurePopulationType (extensible): The type of population (e.g. initial, numerator, denominator, etc.).
count | S | 0..1 | integer | Size of the population
subjectResults |  | 0..1 | Reference(List) | For subject-list reports, the subject results in this population
measureScore | S Σ | 0..1 | Quantity | What score this group achieved
stratifier | S | 0..* | BackboneElement | Stratification results
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 0..* | CodeableConcept | What stratifier of the group
stratum | S | 0..* | BackboneElement | Stratum results, one for each unique value, or set of values, in the stratifier, or stratifier components
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
value | S | 0..1 | CodeableConcept | The stratum value, e.g. male
component | S | 0..* | BackboneElement | Stratifier component values
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConcept | What stratifier component of the group
value | S | 1..1 | CodeableConcept | The stratum component value, e.g. male
population | S C | 0..* | BackboneElement | Population results in this stratum Constraints: cntq-1
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation Binding: MeasurePopulationType (extensible): The type of population (e.g. initial, numerator, denominator, etc.).
count | S | 0..1 | integer | Size of the population
subjectResults |  | 0..1 | Reference(List) | For subject-list reports, the subject results in this population
measureScore | S | 0..1 | Quantity | What score this stratum achieved
evaluatedResource | S | 0..* | Reference(Resource) | What data was used to calculate the measure score
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MeasureReport.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
MeasureReport.status | Base | required | MeasureReportStatus | 📍4.0.1 | FHIR Std.
MeasureReport.type | Base | required | MeasureReportType | 📍4.0.1 | FHIR Std.
MeasureReport.improvementNotation | Base | required | MeasureImprovementNotation | 📍4.0.1 | FHIR Std.
MeasureReport.group.​population.code | Base | extensible | MeasurePopulationType | 📍4.0.1 | FHIR Std.
MeasureReport.group.​stratifier.stratum.population.​code | Base | extensible | MeasurePopulationType | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
cntq-1 | error | MeasureReport.group.population, MeasureReport.group.stratifier.stratum.population | Either count or countQuantity must be provided, but not both. | `(count.exists() xor extension('http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity').exists())`
dom-2 | error | MeasureReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MeasureReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | MeasureReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | MeasureReport | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MeasureReport | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
mrp-1 | error | MeasureReport | Measure Reports used for data collection SHALL NOT communicate group and score information | `(type != 'data-collection') or group.exists().not()`
mrp-2 | error | MeasureReport | Stratifiers SHALL be either a single criteria or a set of criteria components | `group.stratifier.stratum.all(value.exists() xor component.exists())`

Summary

Mandatory: 1 element
Must-Support: 28 elements

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription
- http://hl7.org/fhir/StructureDefinition/cqf-inputParameters
- http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-operation
- http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
- http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-isTestCase (Modifier)
- http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity

Maturity: 4

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MeasureReport | C | 0..* | MeasureReport | Results of a measure evaluation Constraints: mrp-1, mrp-2
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension |  |  |  | Content/Rules for all slices
extension:testCaseDescription | S | 0..1 | markdown | What is being tested URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription
extension:inputParameters | S | 0..1 | Reference(Parameters) | What parameters URL: http://hl7.org/fhir/StructureDefinition/cqf-inputParameters
extension:operation | S | 0..1 | Reference(OperationDefinition) | If an operation is not specificed, then the test case is assumed to be for $evaluate-measure. URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-operation
extension:softwaresystem | S | 0..* | Reference(CRMI Software System Device) | Extension URL: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
Slices for modifierExtension | ?! | 0..* | Extension | Extension Slice: Unordered, Open by value:url
modifierExtension:isTestCase | ?!S | 0..1 | boolean | Test Case? URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-isTestCase
identifier | S Σ | 0..* | Identifier | Additional identifier for the MeasureReport
status | ?!S Σ | 1..1 | code | complete | pending | error Binding: MeasureReportStatus (required): The status of the measure report.
type | S Σ C | 1..1 | code | individual | subject-list | summary | data-collection Binding: MeasureReportType (required): The type of the measure report.
measure | S Σ | 1..1 | canonical(Measure) | What measure was calculated
period | Σ | 1..1 | Period | What period the report covers
improvementNotation | ?!Σ | 0..1 | CodeableConcept | increase | decrease Binding: MeasureImprovementNotation (required): Observation values that indicate what change in a measurement value or score is indicative of an improvement in the measured item or scored issue.
group | S C | 0..* | BackboneElement | Measure results for each group
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
population | S C | 0..* | BackboneElement | The populations in the group Constraints: cntq-1
Slices for extension |  |  |  | Content/Rules for all slices
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S Σ | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation Binding: MeasurePopulationType (extensible): The type of population (e.g. initial, numerator, denominator, etc.).
count | S | 0..1 | integer | Size of the population
measureScore | S Σ | 0..1 | Quantity | What score this group achieved
stratifier | S | 0..* | BackboneElement | Stratification results
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 0..* | CodeableConcept | What stratifier of the group
stratum | S | 0..* | BackboneElement | Stratum results, one for each unique value, or set of values, in the stratifier, or stratifier components
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
value | S | 0..1 | CodeableConcept | The stratum value, e.g. male
component | S | 0..* | BackboneElement | Stratifier component values
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConcept | What stratifier component of the group
value | S | 1..1 | CodeableConcept | The stratum component value, e.g. male
population | S C | 0..* | BackboneElement | Population results in this stratum Constraints: cntq-1
Slices for extension |  |  |  | Content/Rules for all slices
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation Binding: MeasurePopulationType (extensible): The type of population (e.g. initial, numerator, denominator, etc.).
count | S | 0..1 | integer | Size of the population
measureScore | S | 0..1 | Quantity | What score this stratum achieved
evaluatedResource | S | 0..* | Reference(Resource) | What data was used to calculate the measure score
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MeasureReport.status | Base | required | MeasureReportStatus | 📍4.0.1 | FHIR Std.
MeasureReport.type | Base | required | MeasureReportType | 📍4.0.1 | FHIR Std.
MeasureReport.improvementNotation | Base | required | MeasureImprovementNotation | 📍4.0.1 | FHIR Std.
MeasureReport.group.​population.code | Base | extensible | MeasurePopulationType | 📍4.0.1 | FHIR Std.
MeasureReport.group.​stratifier.stratum.population.​code | Base | extensible | MeasurePopulationType | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
cntq-1 | error | MeasureReport.group.population, MeasureReport.group.stratifier.stratum.population | Either count or countQuantity must be provided, but not both. | `(count.exists() xor extension('http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity').exists())`
dom-2 | error | MeasureReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MeasureReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | MeasureReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | MeasureReport | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MeasureReport | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
mrp-1 | error | MeasureReport | Measure Reports used for data collection SHALL NOT communicate group and score information | `(type != 'data-collection') or group.exists().not()`
mrp-2 | error | MeasureReport | Stratifiers SHALL be either a single criteria or a set of criteria components | `group.stratifier.stratum.all(value.exists() xor component.exists())`

Differential View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MeasureReport |  | 0..* | MeasureReport | Results of a measure evaluation
Slices for extension |  |  |  | Content/Rules for all slices
extension:testCaseDescription | S | 0..1 | markdown | What is being tested URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription
extension:inputParameters | S | 0..1 | Reference(Parameters) | What parameters URL: http://hl7.org/fhir/StructureDefinition/cqf-inputParameters
extension:operation | S | 0..1 | Reference(OperationDefinition) | If an operation is not specificed, then the test case is assumed to be for $evaluate-measure. URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-operation
extension:softwaresystem | S | 0..* | Reference(CRMI Software System Device) | Extension URL: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
Slices for modifierExtension |  |  |  | Content/Rules for all slices
modifierExtension:isTestCase | S | 0..1 | boolean | Test Case? URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-isTestCase
identifier | S | 0..* | Identifier | Additional identifier for the MeasureReport
status | S | 1..1 | code | complete | pending | error
type | S | 1..1 | code | individual | subject-list | summary | data-collection
measure | S | 1..1 | canonical(Measure) | What measure was calculated
group | S | 0..* | BackboneElement | Measure results for each group
population | S C | 0..* | BackboneElement | The populations in the group Constraints: cntq-1
Slices for extension |  |  |  | Content/Rules for all slices
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
code | S | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation
count | S | 0..1 | integer | Size of the population
measureScore | S | 0..1 | Quantity | What score this group achieved
stratifier | S | 0..* | BackboneElement | Stratification results
code | S | 0..* | CodeableConcept | What stratifier of the group
stratum | S | 0..* | BackboneElement | Stratum results, one for each unique value, or set of values, in the stratifier, or stratifier components
value | S | 0..1 | CodeableConcept | The stratum value, e.g. male
component | S | 0..* | BackboneElement | Stratifier component values
code | S | 1..1 | CodeableConcept | What stratifier component of the group
value | S | 1..1 | CodeableConcept | The stratum component value, e.g. male
population | S C | 0..* | BackboneElement | Population results in this stratum Constraints: cntq-1
Slices for extension |  |  |  | Content/Rules for all slices
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
code | S | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation
count | S | 0..1 | integer | Size of the population
measureScore | S | 0..1 | Quantity | What score this stratum achieved
evaluatedResource | S | 0..* | Reference(Resource) | What data was used to calculate the measure score
Documentation for this format

#### Constraints

Id | Grade | Path(s) | Description | Expression
cntq-1 | error | MeasureReport.group.population, MeasureReport.group.stratifier.stratum.population | Either count or countQuantity must be provided, but not both. | `(count.exists() xor extension('http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity').exists())`

Snapshot ViewView

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MeasureReport | C | 0..* | MeasureReport | Results of a measure evaluation Constraints: mrp-1, mrp-2
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:testCaseDescription | S | 0..1 | markdown | What is being tested URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription
extension:inputParameters | S | 0..1 | Reference(Parameters) | What parameters URL: http://hl7.org/fhir/StructureDefinition/cqf-inputParameters
extension:operation | S | 0..1 | Reference(OperationDefinition) | If an operation is not specificed, then the test case is assumed to be for $evaluate-measure. URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-operation
extension:softwaresystem | S | 0..* | Reference(CRMI Software System Device) | Extension URL: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
Slices for modifierExtension | ?! | 0..* | Extension | Extension Slice: Unordered, Open by value:url
modifierExtension:isTestCase | ?!S | 0..1 | boolean | Test Case? URL: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-isTestCase
identifier | S Σ | 0..* | Identifier | Additional identifier for the MeasureReport
status | ?!S Σ | 1..1 | code | complete | pending | error Binding: MeasureReportStatus (required): The status of the measure report.
type | S Σ C | 1..1 | code | individual | subject-list | summary | data-collection Binding: MeasureReportType (required): The type of the measure report.
measure | S Σ | 1..1 | canonical(Measure) | What measure was calculated
subject | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | Location | Device | RelatedPerson | Group) | What individual(s) the report is for
date | Σ | 0..1 | dateTime | When the report was generated
reporter | Σ | 0..1 | Reference(Practitioner | PractitionerRole | Location | Organization) | Who is reporting the data
period | Σ | 1..1 | Period | What period the report covers
improvementNotation | ?!Σ | 0..1 | CodeableConcept | increase | decrease Binding: MeasureImprovementNotation (required): Observation values that indicate what change in a measurement value or score is indicative of an improvement in the measured item or scored issue.
group | S C | 0..* | BackboneElement | Measure results for each group
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | Σ | 0..1 | CodeableConcept | Meaning of the group
population | S C | 0..* | BackboneElement | The populations in the group Constraints: cntq-1
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S Σ | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation Binding: MeasurePopulationType (extensible): The type of population (e.g. initial, numerator, denominator, etc.).
count | S | 0..1 | integer | Size of the population
subjectResults |  | 0..1 | Reference(List) | For subject-list reports, the subject results in this population
measureScore | S Σ | 0..1 | Quantity | What score this group achieved
stratifier | S | 0..* | BackboneElement | Stratification results
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 0..* | CodeableConcept | What stratifier of the group
stratum | S | 0..* | BackboneElement | Stratum results, one for each unique value, or set of values, in the stratifier, or stratifier components
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
value | S | 0..1 | CodeableConcept | The stratum value, e.g. male
component | S | 0..* | BackboneElement | Stratifier component values
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 1..1 | CodeableConcept | What stratifier component of the group
value | S | 1..1 | CodeableConcept | The stratum component value, e.g. male
population | S C | 0..* | BackboneElement | Population results in this stratum Constraints: cntq-1
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:countQuantity | S | 0..1 | Quantity | Size of the population as a quantity. URL: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
code | S | 0..1 | CodeableConcept | initial-population | numerator | numerator-exclusion | denominator | denominator-exclusion | denominator-exception | measure-population | measure-population-exclusion | measure-observation Binding: MeasurePopulationType (extensible): The type of population (e.g. initial, numerator, denominator, etc.).
count | S | 0..1 | integer | Size of the population
subjectResults |  | 0..1 | Reference(List) | For subject-list reports, the subject results in this population
measureScore | S | 0..1 | Quantity | What score this stratum achieved
evaluatedResource | S | 0..* | Reference(Resource) | What data was used to calculate the measure score
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MeasureReport.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
MeasureReport.status | Base | required | MeasureReportStatus | 📍4.0.1 | FHIR Std.
MeasureReport.type | Base | required | MeasureReportType | 📍4.0.1 | FHIR Std.
MeasureReport.improvementNotation | Base | required | MeasureImprovementNotation | 📍4.0.1 | FHIR Std.
MeasureReport.group.​population.code | Base | extensible | MeasurePopulationType | 📍4.0.1 | FHIR Std.
MeasureReport.group.​stratifier.stratum.population.​code | Base | extensible | MeasurePopulationType | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
cntq-1 | error | MeasureReport.group.population, MeasureReport.group.stratifier.stratum.population | Either count or countQuantity must be provided, but not both. | `(count.exists() xor extension('http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity').exists())`
dom-2 | error | MeasureReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MeasureReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | MeasureReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | MeasureReport | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MeasureReport | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
mrp-1 | error | MeasureReport | Measure Reports used for data collection SHALL NOT communicate group and score information | `(type != 'data-collection') or group.exists().not()`
mrp-2 | error | MeasureReport | Stratifiers SHALL be either a single criteria or a set of criteria components | `group.stratifier.stratum.all(value.exists() xor component.exists())`

Summary

Mandatory: 1 element
Must-Support: 28 elements

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription
- http://hl7.org/fhir/StructureDefinition/cqf-inputParameters
- http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-operation
- http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
- http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-isTestCase (Modifier)
- http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity

Maturity: 4

Other representations of profile: CSV, Excel, Schematron