description: 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 package_name: hl7.fhir.uv.cqm derivation: constraint name: CQMTestCase type: MeasureReport elements: extension: type: Extension mustSupport: true url: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription index: 0 slicing: slices: testCaseDescription: match: {} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription', index: 0} min: 0 max: 1 inputParameters: match: {} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/cqf-inputParameters', index: 1} min: 0 max: 1 operation: match: {} schema: {type: Extension, short: 'If an operation is not specificed, then the test case is assumed to be for $evaluate-measure.', mustSupport: true, url: 'http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-operation', index: 2} min: 0 max: 1 softwaresystem: match: {} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem', index: 3} min: 0 modifierExtension: type: Extension mustSupport: true url: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-isTestCase index: 4 slicing: slices: isTestCase: match: {} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-isTestCase', index: 4} min: 0 max: 1 identifier: {mustSupport: true, index: 5} status: {mustSupport: true, index: 6} type: {mustSupport: true, index: 7} measure: {mustSupport: true, index: 8} group: mustSupport: true index: 9 elements: population: constraint: cntq-1: {human: 'Either count or countQuantity must be provided, but not both.', severity: error, expression: '(count.exists() xor extension(''http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity'').exists())'} mustSupport: true index: 10 extensions: countQuantity: {url: 'http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity', min: 0, max: 1, type: Extension, mustSupport: true, index: 11} elements: extension: type: Extension mustSupport: true url: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity index: 11 slicing: slices: countQuantity: match: {} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity', index: 11} min: 0 max: 1 code: {mustSupport: true, index: 12} count: {mustSupport: true, index: 13} measureScore: {mustSupport: true, index: 14} stratifier: mustSupport: true index: 15 elements: code: {mustSupport: true, index: 16} stratum: mustSupport: true index: 17 elements: value: {mustSupport: true, index: 18} component: mustSupport: true index: 19 elements: code: {mustSupport: true, index: 20} value: {mustSupport: true, index: 21} population: constraint: cntq-1: {human: 'Either count or countQuantity must be provided, but not both.', severity: error, expression: '(count.exists() xor extension(''http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity'').exists())'} mustSupport: true index: 22 extensions: countQuantity: {url: 'http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity', min: 0, max: 1, type: Extension, mustSupport: true, index: 23} elements: extension: type: Extension mustSupport: true url: http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity index: 23 slicing: slices: countQuantity: match: {} schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/measurereport-countQuantity', index: 23} min: 0 max: 1 code: {mustSupport: true, index: 24} count: {mustSupport: true, index: 25} measureScore: {mustSupport: true, index: 26} evaluatedResource: {mustSupport: true, index: 27} package_version: 1.0.0 extensions: testCaseDescription: {url: 'http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testCaseDescription', min: 0, max: 1, type: Extension, mustSupport: true, index: 0} inputParameters: {url: 'http://hl7.org/fhir/StructureDefinition/cqf-inputParameters', min: 0, max: 1, type: Extension, mustSupport: true, index: 1} operation: {url: 'http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-operation', min: 0, max: 1, type: Extension, short: 'If an operation is not specificed, then the test case is assumed to be for $evaluate-measure.', mustSupport: true, index: 2} softwaresystem: {url: 'http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem', min: 0, type: Extension, mustSupport: true, index: 3} class: profile kind: resource url: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-testcase base: http://hl7.org/fhir/StructureDefinition/MeasureReport version: 1.0.0 required: [measure]