EXMLogic-FHIR
type: Measure
node role: treeRoot
resource.id:
  value: EXMLogic-FHIR
resource.meta:
  meta.profile:
    value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cvmeasure
    index: 0
    link: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cvmeasure
  meta.profile:
    value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure
    index: 1
    link: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure
  meta.profile:
    value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-executablemeasure
    index: 2
    link: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-executablemeasure
  meta.profile:
    value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cqlmeasure
    index: 3
    link: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cqlmeasure
  meta.profile:
    value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-elmmeasure
    index: 4
    link: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-elmmeasure
  meta.profile:
    value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure
    index: 5
    link: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Metadata Title EXM Measure Version 2.0.0 Identifier EXM Identifier urn:oid:2.16.840.1.113883.4.642.40.61.29.9 Approval Date 2019-02-17 Last Review Date 2019-02-17 Experimental true Use Context Clinical Venue = EC Jurisdiction 001 from http://unstats.un.org/unsd/methods/m49/m49.htm Topic Health Quality Measure Document Steward (Publisher) HL7 International / Clinical Quality Information Developer Example Measure Content Developer Description An example FHIR-based measure Purpose This measure has been developed to support improvement in clinical care. Copyright Example Copyright Statement Disclaimer Example disclaimer Measure Basis Encounter Measure Scoring Continuous Variable Measure Scoring Precision 2 Improvement Notation Increased score indicates improvement Measure Type process from http://terminology.hl7.org/CodeSystem/measure-type Risk Adjustment Risk adjustment for this measure is performed by... Rate Aggregation Rate aggregation for this measure is performed by... Rationale The purpose of this measure is to show how all the elements of a FHIR-based quality measure are represented. Clinical Recommendation Statement The clinical recommendation statement for this measure is... Guidance (Usage) Users of this measure should be aware that this is intentionally simplified to show specific aspects of a measure. Measure Group (Rate) (ID: primary) Stratifier ID: stratifier-1 Code: Stratifier 1 Stratifier ID: stratifier-2 Code: Stratifier 2 Stratifier ID: stratifier-3 Code: Stratifier 3 Stratifier ID: stratifier-4 Code: Stratifier 4 Supplemental Data Elements Supplemental Data Element ID: sde-ethnicity Usage Code: Supplemental Data Description: No description provided Logic Definition: SDE Ethnicity Supplemental Data Element ID: sde-race Usage Code: Supplemental Data Description: No description provided Logic Definition: SDE Race Supplemental Data Element ID: sde-payer Usage Code: Supplemental Data Description: No description provided Logic Definition: SDE Payer Supplem…
domain resource.contained: Library
  index: 0
  resource.id:
    value: effective-data-requirements
  domain resource.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
    extension.value coding:
      coding.system:
        value: http://terminology.hl7.org/CodeSystem/diagnosis-role
      coding.code:
        value: billing
      coding.display:
        value: Billing
  domain resource.extension:
    index: 1
    element.extension:
      index: 0
      extension.url:
        value: libraryName
      extension.value string:
        value: EXMLogic
    element.extension:
      index: 1
      extension.url:
        value: name
      extension.value string:
        value: SDE Sex
    element.extension:
      index: 2
      extension.url:
        value: statement
      extension.value string:
        value: define "SDE Sex": case when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' } when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' } else null end
    element.extension:
      index: 3
      extension.url:
        value: displaySequence
      extension.value integer:
        value: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  domain resource.extension:
    index: 2
    element.extension:
      index: 0
      extension.url:
        value: libraryName
      extension.value string:
        value: EXMLogic
    element.extension:
      index: 1
      extension.url:
        value: name
      extension.value string:
        value: Inpatient Encounter
    element.extension:
      index: 2
      extension.url:
        value: statement
      extension.value string:
        value: define "Inpatient Encounter" : ["Encounter"] Encounter where LengthInDays(Encounter.period) <= 120 and Encounter.period ends during "Measurement Period"
    element.extension:
      index: 3
      extension.url:
        value: displaySequence
      extension.value integer:
        value: 1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  domain resource.extension:
    index: 3
    element.extension:
      index: 0
      extension.url:
        value: libraryName
      extension.value string:
        value: EXMLogic
    element.extension:
      index: 1
      extension.url:
        value: name
      extension.value string:
        value: Stratifier 3
    element.extension:
      index: 2
      extension.url:
        value: statement
      extension.value string:
        value: define "Stratifier 3" : "Inpatient Encounter" Encounter where PrincipalDiagnosis(Encounter) is null
    element.extension:
      index: 3
      extension.url:
        value: displaySequence
      extension.value integer:
        value: 2
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  domain resource.extension:
    index: 4
    element.extension:
      index: 0
      extension.url:
        value: libraryName
      extension.value string:
        value: EXMLogic
    element.extension:
      index: 1
      extension.url:
        value: name
      extension.value string:
        value: Stratifier 4
    element.extension:
      index: 2
      extension.url:
        value: statement
      extension.value string:
        value: define "Stratifier 4" : "Inpatient Encounter" Encounter where PrincipalDiagnosis(Encounter) is null
    element.extension:
      index: 3
      extension.url:
        value: displaySequence
      extension.value integer:
        value: 3
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  domain resource.extension:
    index: 5
    element.extension:
      index: 0
      extension.url:
        value: libraryName
      extension.value string:
        value: EXMLogic
    element.extension:
      index: 1
      extension.url:
        value: name
      extension.value string:
        value: SDE Payer
    element.extension:
      index: 2
      extension.url:
        value: statement
      extension.value string:
        value: define "SDE Payer": [Coverage: type in "Payer"] Payer return { code: Payer.type, period: Payer.period }
    element.extension:
      index: 3
      extension.url:
        value: displaySequence
      extension.value integer:
        value: 4
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  domain resource.extension:
    index: 6
    element.extension:
      index: 0
      extension.url:
        value: libraryName
      extension.value string:
        value: EXMLogic
    element.extension:
      index: 1
      extension.url:
        value: name
      extension.value string:
        value: Initial Population

index: 2
extension.url:
  value: statement
extension.value string:
  value: define "Initial Population" : "Inpatient Encounter" Encounter

index: 3
extension.url:
  value: displaySequence
extension.value integer:
  value: 5

index: 7
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: EXMLogic
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: SDE Ethnicity
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define "SDE Ethnicity": (flatten ( Patient.extension Extension where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity' return Extension.extension )) E where E.url = 'ombCategory' or E.url = 'detailed' return E.value as Coding
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 6
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 8
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: EXMLogic
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: SDE Race
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define "SDE Race": (flatten ( Patient.extension Extension where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race' return Extension.extension )) E where E.url = 'ombCategory' or E.url = 'detailed' return E.value as Coding
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 7
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 9
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: EXMLogic
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: Measure Population
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define "Measure Population" : "Initial Population"
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 8
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 10
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: EXMLogic
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: Stratifier 1
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define "Stratifier 1" : "Inpatient Encounter" Encounter where not (PrincipalDiagnosis(Encounter).code in "Psychiatric/Mental Health Patient")
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 9
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 11
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: EXMLogic
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: Stratifier 2
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define "Stratifier 2" : "Inpatient Encounter" Encounter where PrincipalDiagnosis(Encounter).code in "Psychiatric/Mental Health Patient"
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 10
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 12
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: FHIRHelpers
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: ToString
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define function ToString(value AdministrativeGender): value.value
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 11
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 13
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: EXMLogic
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: LengthInDays
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define function "LengthInDays"(Value Interval<DateTime>): difference in days between start of Value and end of Value
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 12
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 14
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: FHIRHelpers
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: ToInterval
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: /* @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period) value to a CQL DateTime Interval @comment: If the start value of the given period is unspecified, the starting boundary of the resulting interval will be open (meaning the start of the interval is unknown, as opposed to interpreted as the beginning of time). */ define function ToInterval(period FHIR.Period): if period is null then null else if period."start" is null then Interval(period."start".value, period."end".value] else Interval[period."start".value, period."end".value]
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 13
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 15
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: EXMLogic
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: PrincipalDiagnosis
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define function "PrincipalDiagnosis"(Encounter Encounter): (singleton from (Encounter.diagnosis D where D.use ~ ToConcept("Billing") and D.rank.value = 1)) PD return singleton from ([Condition: id in "GetId"(PD.condition.reference)])
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 14
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 16
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: FHIRHelpers
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: ToConcept
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: /* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept): if concept is null then null else System.Concept { codes: concept.coding C return ToCode(C), display: concept.text.value }
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 15
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 17
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: FHIRHelpers
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: ToCode
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: /* @description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code. */ define function ToCode(coding FHIR.Coding): if coding is null then null else System.Code { code: coding.code.value, system: coding.system.value, version: coding.version.value, display: coding.display.value }
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 16
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 18
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: EXMLogic
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: GetId
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define function "GetId"(uri String): Last(Split(uri, '/'))
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 17
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 19
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: FHIRHelpers
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: ToString
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define function ToString(value string): value.value
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 18
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 20
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: FHIRHelpers
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: ToString
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define function ToString(value uri): value.value
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 19
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 21
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: EXMLogic
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: Measure Observation
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define function "Measure Observation" (Encounter "Encounter" ) : duration in minutes of "Related ED Visit"(Encounter).period
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 20
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 22
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: EXMLogic
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: Related ED Visit
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: //Measure Observation define function "Related ED Visit" (Encounter "Encounter" ) : Last(["Encounter" : "Emergency Department Visit"] ED where ED.status = 'finished' and ED.period ends 1 hour or less before start of Encounter.period sort by start of period )
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 21
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

index: 23
element.extension:
  index: 0
  extension.url:
    value: libraryName
  extension.value string:
    value: FHIRHelpers
element.extension:
  index: 1
  extension.url:
    value: name
  extension.value string:
    value: ToString
element.extension:
  index: 2
  extension.url:
    value: statement
  extension.value string:
    value: define function ToString(value EncounterStatus): value.value
element.extension:
  index: 3
  extension.url:
    value: displaySequence
  extension.value integer:
    value: 22
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition

value: EffectiveDataRequirements

value: active

codeable concept.coding:
  index: 0
  coding.system:
    value: http://terminology.hl7.org/CodeSystem/library-type
  coding.code:
    value: module-definition

index: 0
related artifact.type:
  value: depends-on
related artifact.display:
  value: FHIR model information
related artifact.resource:
  value: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
  link: 4.0
  link: .1

index: 1
related artifact.type:
  value: depends-on
related artifact.display:
  value: Library FHIRHelpers
related artifact.resource:
  value: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
  link: 4.0
  link: .1

index: 2
related artifact.type:
  value: depends-on
related artifact.display:
  value: Code system Diagnosis Role
related artifact.resource:
  value: http://terminology.hl7.org/CodeSystem/diagnosis-role
  link: http://terminology.hl7.org/CodeSystem/diagnosis-role

index: 3
related artifact.type:
  value: depends-on
related artifact.display:
  value: Value set Payer
related artifact.resource:
  value: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
  link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591

index: 4
related artifact.type:
  value: depends-on
related artifact.display:
  value: Value set Emergency Department Visit
related artifact.resource:
  value: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
  link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292

index: 5
related artifact.type:
  value: depends-on
related artifact.display:
  value: Value set Psychiatric/Mental Health Patient
related artifact.resource:
  value: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299
  link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299

index: 0
parameter definition.name:
  value: Measurement Period
parameter definition.use:
  value: in
parameter definition.min:
  value: 0
parameter definition.max:
  value: 1
parameter definition.type:
  value: Period

index: 1
parameter definition.name:
  value: SDE Sex
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: 1
parameter definition.type:
  value: Coding

index: 2
parameter definition.name:
  value: Stratifier 3
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: *
parameter definition.type:
  value: Encounter

index: 3
parameter definition.name:
  value: Stratifier 4
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: *
parameter definition.type:
  value: Encounter

index: 4
parameter definition.name:
  value: SDE Payer
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: *
parameter definition.type:
  value: Resource

index: 5
parameter definition.name:
  value: Initial Population
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: *
parameter definition.type:
  value: Encounter

index: 6
parameter definition.name:
  value: SDE Ethnicity
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: *
parameter definition.type:
  value: Coding

index: 7
parameter definition.name:
  value: SDE Race
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: *
parameter definition.type:
  value: Coding

index: 8
parameter definition.name:
  value: Measure Population
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: *
parameter definition.type:
  value: Encounter

index: 9
parameter definition.name:
  value: Stratifier 1
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: *
parameter definition.type:
  value: Encounter

index: 10
parameter definition.name:
  value: Stratifier 2
parameter definition.use:
  value: out
parameter definition.min:
  value: 0
parameter definition.max:
  value: *
parameter definition.type:
  value: Encounter

index: 0
data requirement.type:
  value: Patient
data requirement.profile:
  value: http://hl7.org/fhir/StructureDefinition/Patient
  index: 0
  link: http://hl7.org/fhir/StructureDefinition/Patient
data requirement.must support:
  value: url
  index: 0
data requirement.must support:
  value: extension
  index: 1
data requirement.must support:
  value: value
  index: 2

index: 1
data requirement.type:
  value: Encounter
data requirement.profile:
  value: http://hl7.org/fhir/StructureDefinition/Encounter
  index: 0
  link: http://hl7.org/fhir/StructureDefinition/Encounter
data requirement.must support:
  value: type
  index: 0
data requirement.must support:
  value: status
  index: 1
data requirement.must support:
  value: period
  index: 2
data requirement.must support:
  value: use
  index: 3
data requirement.must support:
  value: rank
  index: 4
data requirement.must support:
  value: rank.value
  index: 5
data requirement.must support:
  value: condition
  index: 6
data requirement.must support:
  value: condition.reference
  index: 7
data requirement.code filter:
  index: 0
  data requirement.code filter.path:
    value: type
  data requirement.code filter.value set:
    value: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292

index: 2
data requirement.type:
  value: Encounter
data requirement.profile:
  value: http://hl7.org/fhir/StructureDefinition/Encounter
  index: 0
  link: http://hl7.org/fhir/StructureDefinition/Encounter
data requirement.must support:
  value: period
  index: 0
data requirement.must support:
  value: use
  index: 1
data requirement.must support:
  value: rank
  index: 2
data requirement.must support:
  value: rank.value
  index: 3
data requirement.must support:
  value: condition
  index: 4
data requirement.must support:
  value: condition.reference
  index: 5

index: 3
data requirement.type:
  value: Condition
data requirement.profile:
  value: http://hl7.org/fhir/StructureDefinition/Condition
  index: 0
  link: http://hl7.org/fhir/StructureDefinition/Condition
data requirement.must support:
  value: id
  index: 0
data requirement.code filter:
  index: 0
  data requirement.code filter.path:
    value: id

index: 4
data requirement.type:
  value: Coverage
data requirement.profile:
  value: http://hl7.org/fhir/StructureDefinition/Coverage
  index: 0
  link: http://hl7.org/fhir/StructureDefinition/Coverage
data requirement.must support:
  value: type
  index: 0
data requirement.must support:
  value: period
  index: 1
data requirement.code filter:
  index: 0
  data requirement.code filter.path:
    value: type
  data requirement.code filter.value set:
    value: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
    link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591

index: 0
element.extension:
  index: 0
  extension.url:
    value: type
  extension.value code:
    value: documentation
element.extension:
  index: 1
  extension.url:
    value: text
  extension.value markdown:
    value: This illustrates an example comment
extension.url:
  value: http://hl7.org/fhir/StructureDefinition/cqf-artifactComment

index: 1
extension.url:
  value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis
extension.value code:
  value: Encounter

index: 2
extension.url:
  value: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
extension.value reference:
  link: http://hl7.org/fhir/uv/cqm/Device/software-system-example
  reference.reference:
    value: Device/software-system-example

index: 3
extension.url:
  value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-scoringPrecision
extension.value positive int:
  value: 2

index: 4
extension.url:
  value: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements
extension.value canonical:
  value: #effective-data-requirements

index: 0
identifier.system:
  value: http://example.org/fhir/cqi/ecqm/Measure/Identifier/exm
identifier.value:
  value: EXM

index: 1
identifier.system:
  value: urn:ietf:rfc:3986
identifier.value:
  value: urn:oid:2.16.840.1.113883.4.642.40.61.29.9

value: 2.0.0

value: MeasureEXM

value: EXM Measure

value: active

value: true

value: 2025-08-13

value: HL7 International / Clinical Quality Information

index: 0
contact detail.telecom:
  index: 0
  contact point.system:
    value: url
  contact point.value:
    value: http://www.hl7.org/Special/committees/cqi

value: An example FHIR-based measure

index: 0
usage context.code:
  coding.system:
    value: http://terminology.hl7.org/CodeSystem/usage-context-type
  coding.code:
    value: venue
  coding.display:
    value: Clinical Venue
usage context.value codeable concept:
  codeable concept.coding:
    index: 0
    coding.system:
      value: http://hl7.org/fhir/uv/cqm/CodeSystem/intended-venue-codes
    coding.code:
      value: ec
    coding.display:
      value: EC

index: 0
codeable concept.coding:
  index: 0
  coding.system:
    value: http://unstats.un.org/unsd/methods/m49/m49.htm
  coding.code:
    value: 001

value: This measure has been developed to support improvement in clinical care.

value: Users of this measure should be aware that this is intentionally simplified to show specific aspects of a measure.

value: Example Copyright Statement

value: 2019-02-17

value: 2019-02-17

element.extension:
  index: 0
  extension.url:
    value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-effectivePeriodAnchor
  extension.value date time:
    value: 2018-01-01
element.extension:
  index: 1
  extension.url:
    value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-effectivePeriodDuration
  extension.value duration:
    quantity.value:
      value: 1
    quantity.system:
      value: http://unitsofmeasure.org
    quantity.code:
      value: a
period.start:
  value: 2018-01-01
period.end:
  value: 2018-12-31

index: 0
codeable concept.coding: http://loinc.org/rdf#57024-2
  index: 0
  coding.system:
    value: http://loinc.org
  coding.code:
    value: 57024-2
codeable concept.text:
  value: Health Quality Measure Document

index: 0
contact detail.name:
  value: Example Measure Content Developer

value: http://hl7.org/fhir/uv/cqm/Library/EXMLogic
index: 0
link: http://hl7.org/fhir/uv/cqm/Library/EXMLogic

value: Example disclaimer

codeable concept.coding:
  index: 0
  coding.system:
    value: http://terminology.hl7.org/CodeSystem/measure-scoring
  coding.code:
    value: continuous-variable
  coding.display:
    value: Continuous Variable

index: 0
codeable concept.coding:
  index: 0
  coding.system:
    value: http://terminology.hl7.org/CodeSystem/measure-type
  coding.code:
    value: process

value: Risk adjustment for this measure is performed by...

value: Rate aggregation for this measure is performed by...

value: The purpose of this measure is to show how all the elements of a FHIR-based quality measure are represented.

value: The clinical recommendation statement for this measure is...

codeable concept.coding:
  index: 0
  coding.system:
    value: http://terminology.hl7.org/CodeSystem/measure-improvement-notation
  coding.code:
    value: increase
  coding.display:
    value: Increased score indicates improvement

value: Additional guidance provided to help communicate the intent of the measure

index: 0
element.id:
  value: group-1
element.extension:
  index: 0
  extension.url:
    value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId
  extension.value string:
    value: primary
measure.group.code:
  codeable concept.coding:
    index: 0
    coding.system:
      value: http://example.org/group
    coding.code:
      value: group
    coding.display:
      value: group-1
measure.group.population:
  index: 0
  element.id:
    value: initial-population-1
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId
    extension.value string:
      value: primary-exmlogic-initial-population
  measure.group.population.code:
    codeable concept.coding:
      index: 0
      coding.system:
        value: http://terminology.hl7.org/CodeSystem/measure-population
      coding.code:
        value: initial-population
      coding.display:
        value: Initial Population
  measure.group.population.criteria:
    expression.language:
      value: text/cql-identifier
    expression.expression:
      value: Initial Population
measure.group.population:
  index: 1
  element.id:
    value: measure-population
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId
    extension.value string:
      value: primary-exmlogic-measure-population
  measure.group.population.code:
    codeable concept.coding:
      index: 0
      coding.system:
        value: http://terminology.hl7.org/CodeSystem/measure-population
      coding.code:
        value: measure-population
      coding.display:
        value: Measure Population
  measure.group.population.criteria:
    expression.language:
      value: text/cql-identifier
    expression.expression:
      value: Measure Population
measure.group.population:
  index: 2
  element.id:
    value: measure-observation
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId
    extension.value string:
      value: primary-exmlogic-measure-observation
  element.extension:
    index: 1
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/cqf-criteriaReference
    extension.value string:
      value: measure-population
  element.extension:
    index: 2
    extension.url:
      value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-aggregateMethod
    extension.value code:
      value: median
  measure.group.population.code:
    codeable concept.coding:
      index: 0
      coding.system:
        value: http://terminology.hl7.org/CodeSystem/measure-population
      coding.code:
        value: measure-observation
      coding.display:
        value: Measure Observation
  measure.group.population.criteria:
    expression.language:
      value: text/cql-identifier
    expression.expression:
      value: Measure Observation
measure.group.stratifier:
  index: 0
  element.id:
    value: stratifier-1
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.stratifier.linkId
    extension.value string:
      value: primary-exmlogic-stratification-1
  element.extension:
    index: 1
    extension.url:
      value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-appliesTo
    extension.value codeable concept:
      codeable concept.coding:
        index: 0
      codeable concept.text:
        value: initial-population
  measure.group.stratifier.code:
    codeable concept.text:
      value: Stratifier 1
  measure.group.stratifier.criteria:
    expression.language:
      value: text/cql-identifier
    expression.expression:
      value: Stratifier 1
measure.group.stratifier:
  index: 1
  element.id:
    value: stratifier-2
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.stratifier.linkId
    extension.value string:
      value: primary-exmlogic-stratification-2
  element.extension:
    index: 1
    extension.url:
      value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-appliesTo
    extension.value codeable concept:
      codeable concept.coding:
        index: 0
      codeable concept.text:
        value: initial-population
  measure.group.stratifier.code:
    codeable concept.text:
      value: Stratifier 2
  measure.group.stratifier.criteria:
    expression.language:
      value: text/cql-identifier
    expression.expression:
      value: Stratifier 2
measure.group.stratifier:
  index: 2
  element.id:
    value: stratifier-3
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.stratifier.linkId
    extension.value string:
      value: primary-exmlogic-stratification-3
  element.extension:
    index: 1
    extension.url:
      value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-appliesTo
    extension.value codeable concept:
      codeable concept.coding:
        index: 0
      codeable concept.text:
        value: initial-population
  measure.group.stratifier.code:
    codeable concept.text:
      value: Stratifier 3
  measure.group.stratifier.criteria:
    expression.language:
      value: text/cql-identifier
    expression.expression:
      value: Stratifier 3
measure.group.stratifier:
  index: 3
  element.id:
    value: stratifier-4
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.stratifier.linkId
    extension.value string:
      value: primary-exmlogic-stratification-4
  element.extension:
    index: 1
    extension.url:
      value: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-appliesTo
    extension.value codeable concept:
      codeable concept.coding:
        index: 0
      codeable concept.text:
        value: initial-population

value: initial-population

value: Initial Population

value: initial-population

value: Initial Population

value: initial-population

value: Initial Population

value: initial-population

value: Initial Population

codeable concept.text:
  value: Stratifier 4

expression.language:
  value: text/cql-identifier
expression.expression:
  value: Stratifier 4

index: 0
element.id:
  value: sde-ethnicity
element.extension:
  index: 0
  extension.url:
    value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId
  extension.value string:
    value: primary-sde-ethnicity
measure.supplemental data.usage:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: http://terminology.hl7.org/CodeSystem/measure-data-usage
    coding.code:
      value: supplemental-data
measure.supplemental data.criteria:
  expression.language:
    value: text/cql-identifier
  expression.expression:
    value: SDE Ethnicity

index: 1
element.id:
  value: sde-race
element.extension:
  index: 0
  extension.url:
    value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId
  extension.value string:
    value: primary-sde-race
measure.supplemental data.usage:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: http://terminology.hl7.org/CodeSystem/measure-data-usage
    coding.code:
      value: supplemental-data
measure.supplemental data.criteria:
  expression.language:
    value: text/cql-identifier
  expression.expression:
    value: SDE Race

index: 2
element.id:
  value: sde-payer
element.extension:
  index: 0
  extension.url:
    value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId
  extension.value string:
    value: primary-sde-payer
measure.supplemental data.usage:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: http://terminology.hl7.org/CodeSystem/measure-data-usage
    coding.code:
      value: supplemental-data
measure.supplemental data.criteria:
  expression.language:
    value: text/cql-identifier
  expression.expression:
    value: SDE Payer

index: 3
element.id:
  value: sde-sex
element.extension:
  index: 0
  extension.url:
    value: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId
  extension.value string:
    value: primary-sde-sex
measure.supplemental data.usage:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: http://terminology.hl7.org/CodeSystem/measure-data-usage
    coding.code:
      value: supplemental-data
measure.supplemental data.criteria:
  expression.language:
    value: text/cql-identifier
  expression.expression:
    value: SDE Sex