EXMLogic-FHIR
type: Measure
node role: treeRoot
id:
  v: EXMLogic-FHIR
meta:
  profile:
    v: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cvmeasure
    l: cqm-cvmeasure
  profile:
    v: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure
    l: cqm-computablemeasure
  profile:
    v: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-executablemeasure
    l: cqm-executablemeasure
  profile:
    v: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cqlmeasure
    l: cqm-cqlmeasure
  profile:
    v: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-elmmeasure
    l: cqm-elmmeasure
  profile:
    v: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure
    l: cqm-computablemeasure
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Metadata Title EXM Measure Version 2.0.0 Identifier EXM Identifier urn:oid:2.16.840.1.113883.4.642.40.61.29.9 Effective Period 2018-01-01 + 1 year(s) Approval Date 2019-02-17 Last Review Date 2019-02-17 Experimental true Use Context Clinical Venue = EC Jurisdiction Global (Whole world) 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 Measure Type Process 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... Improvement Notation Increased score indicates improvement 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) Initial Population ID: primary-exmlogic-initial-population Description: No description provided Criteria: Initial Population Measure Population ID: primary-exmlogic-measure-population Description: No description provided Criteria: Measure Population Measure Observation ID: primary-exmlogic-measure-observation Description: No description provided Criteria: Measure Observation Input Population: measure-population AggregateMethod: median 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: …
contained: Library
  id:
    v: effective-data-requirements
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
      l: cqf-directReferenceCode
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/diagnosis-role
        l: diagnosis-role
      code:
        v: billing
      display:
        v: Billing
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: EXMLogic
    extension:
      url:
        v: name
        l: name
      value: String
        v: SDE Sex
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: 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
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 0
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: EXMLogic
    extension:
      url:
        v: name
        l: name
      value: String
        v: Inpatient Encounter
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: define "Inpatient Encounter" : ["Encounter"] Encounter where LengthInDays(Encounter.period) <= 120 and Encounter.period ends during "Measurement Period"
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 1
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: EXMLogic
    extension:
      url:
        v: name
        l: name
      value: String
        v: Stratifier 3
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: define "Stratifier 3" : "Inpatient Encounter" Encounter where PrincipalDiagnosis(Encounter) is null
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 2
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: EXMLogic
    extension:
      url:
        v: name
        l: name
      value: String
        v: Stratifier 4
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: define "Stratifier 4" : "Inpatient Encounter" Encounter where PrincipalDiagnosis(Encounter) is null
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 3
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: EXMLogic
    extension:
      url:
        v: name
        l: name
      value: String
        v: SDE Payer
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: define "SDE Payer": [Coverage: type in "Payer"] Payer return { code: Payer.type, period: Payer.period }
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 4
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: EXMLogic
    extension:
      url:
        v: name
        l: name
      value: String
        v: Initial Population
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: define "Initial Population" : "Inpatient Encounter" Encounter

url:
  v: displaySequence
  l: displaySequence
value: Integer
  v: 5

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: EXMLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Ethnicity
extension:
  url:
    v: statement
    l: statement
  value: String
    v: 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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 6
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: EXMLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Race
extension:
  url:
    v: statement
    l: statement
  value: String
    v: 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
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 7
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: EXMLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Measure Population
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "Measure Population" : "Initial Population"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 8
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: EXMLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Stratifier 1
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "Stratifier 1" : "Inpatient Encounter" Encounter where not (PrincipalDiagnosis(Encounter).code in "Psychiatric/Mental Health Patient")
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 9
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: EXMLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Stratifier 2
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "Stratifier 2" : "Inpatient Encounter" Encounter where PrincipalDiagnosis(Encounter).code in "Psychiatric/Mental Health Patient"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 10
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToString
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function ToString(value AdministrativeGender): value.value
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 11
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: EXMLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: LengthInDays
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function "LengthInDays"(Value Interval<DateTime>): difference in days between start of Value and end of Value
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 12
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToInterval
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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]
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 13
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: EXMLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: PrincipalDiagnosis
extension:
  url:
    v: statement
    l: statement
  value: String
    v: 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)])
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 14
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToConcept
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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 }
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 15
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToCode
extension:
  url:
    v: statement
    l: statement
  value: String
    v: /* @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 }
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 16
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: EXMLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: GetId
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function "GetId"(uri String): Last(Split(uri, '/'))
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 17
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToString
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function ToString(value string): value.value
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 18
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToString
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function ToString(value uri): value.value
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 19
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: EXMLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Measure Observation
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function "Measure Observation" (Encounter "Encounter" ) : duration in minutes of "Related ED Visit"(Encounter).period
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 20
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: EXMLogic
extension:
  url:
    v: name
    l: name
  value: String
    v: Related ED Visit
extension:
  url:
    v: statement
    l: statement
  value: String
    v: //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 )
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 21
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: FHIRHelpers
extension:
  url:
    v: name
    l: name
  value: String
    v: ToString
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define function ToString(value EncounterStatus): value.value
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 22
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

v: EffectiveDataRequirements

v: active

coding:
  system:
    v: http://terminology.hl7.org/CodeSystem/library-type
    l: library-type
  code:
    v: module-definition

type:
  v: depends-on
display:
  v: Library FHIRHelpers
resource:
  v: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
  l: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers

type:
  v: depends-on
display:
  v: Code system Diagnosis Role
resource:
  v: http://terminology.hl7.org/CodeSystem/diagnosis-role
  l: diagnosis-role

type:
  v: depends-on
display:
  v: Value set Payer
resource:
  v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
  l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591

type:
  v: depends-on
display:
  v: Value set Emergency Department Visit
resource:
  v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
  l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292

type:
  v: depends-on
display:
  v: Value set Psychiatric/Mental Health Patient
resource:
  v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299
  l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299

name:
  v: Measurement Period
use:
  v: in
min:
  v: 0
max:
  v: 1
type:
  v: Period

name:
  v: SDE Sex
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Coding

name:
  v: Stratifier 3
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: Stratifier 4
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: SDE Payer
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: Initial Population
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: SDE Ethnicity
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Coding

name:
  v: SDE Race
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Coding

name:
  v: Measure Population
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: Stratifier 1
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: Stratifier 2
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

type:
  v: Patient
profile:
  v: http://hl7.org/fhir/StructureDefinition/Patient
  l: Patient
must support:
  v: url
must support:
  v: extension
must support:
  v: value

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: type
must support:
  v: status
must support:
  v: period
must support:
  v: use
must support:
  v: rank
must support:
  v: rank.value
must support:
  v: condition
must support:
  v: condition.reference
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: period
must support:
  v: use
must support:
  v: rank
must support:
  v: rank.value
must support:
  v: condition
must support:
  v: condition.reference

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

type:
  v: Coverage
profile:
  v: http://hl7.org/fhir/StructureDefinition/Coverage
  l: Coverage
must support:
  v: type
must support:
  v: period
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591

extension:
  url:
    v: type
    l: type
  value: Code
    v: documentation
extension:
  url:
    v: text
    l: text
  value: Markdown
    v: This illustrates an example comment
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-artifactComment
  l: cqf-artifactComment

url:
  v: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis
  l: cqm-populationBasis
value: Code
  v: Encounter

url:
  v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem
  l: crmi-softwaresystem
value: Reference
  l: software-system-example
  reference:
    v: Device/software-system-example

url:
  v: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-scoringPrecision
  l: cqm-scoringPrecision
value: PositiveInt
  v: 2

id:
  v: effective-data-requirements
url:
  v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements
  l: crmi-effectiveDataRequirements
value: Canonical
  v: #effective-data-requirements
  l: effective-data-requirements

system:
  v: http://example.org/fhir/cqi/ecqm/Measure/Identifier/exm
  l: exm
value:
  v: EXM

system:
  v: urn:ietf:rfc:3986
  l: 3986
value:
  v: urn:oid:2.16.840.1.113883.4.642.40.61.29.9

v: 2.0.0

v: MeasureEXM

v: EXM Measure

v: active

v: true

v: 2025-08-13

v: HL7 International / Clinical Quality Information

telecom:
  system:
    v: url
  value:
    v: http://www.hl7.org/Special/committees/cqi

v: An example FHIR-based measure

code:
  system:
    v: http://terminology.hl7.org/CodeSystem/usage-context-type
    l: usage-context-type
  code:
    v: venue
  display:
    v: Clinical Venue
value: CodeableConcept
  coding:
    system:
      v: http://hl7.org/fhir/uv/cqm/CodeSystem/intended-venue-codes
      l: intended-venue-codes
    code:
      v: ec
    display:
      v: EC

coding:
  system:
    v: http://unstats.un.org/unsd/methods/m49/m49.htm
    l: m49.htm
  code:
    v: 001

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

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

v: Example Copyright Statement

v: 2019-02-17

v: 2019-02-17

extension:
  url:
    v: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-effectivePeriodAnchor
    l: cqm-effectivePeriodAnchor
  value: DateTime
    v: 2018-01-01
extension:
  url:
    v: http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-effectivePeriodDuration
    l: cqm-effectivePeriodDuration
  value: Duration
    value:
      v: 1
    system:
      v: http://unitsofmeasure.org
      l: unitsofmeasure.org
    code:
      v: a
start:
  v: 2018-01-01
end:
  v: 2018-12-31

coding: https://loinc.org/rdf/57024-2
  system:
    v: http://loinc.org
    l: loinc.org
  code:
    v: 57024-2
text:
  v: Health Quality Measure Document

name:
  v: Example Measure Content Developer

v: Example disclaimer

coding:
  system:
    v: http://terminology.hl7.org/CodeSystem/measure-scoring
    l: measure-scoring
  code:
    v: continuous-variable
  display:
    v: Continuous Variable

coding:
  system:
    v: http://terminology.hl7.org/CodeSystem/measure-type
    l: measure-type
  code:
    v: process

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

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

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

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

coding:
  system:
    v: http://terminology.hl7.org/CodeSystem/measure-improvement-notation
    l: measure-improvement-notation
  code:
    v: increase
  display:
    v: Increased score indicates improvement

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

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

v: initial-population

v: Initial Population

v: initial-population

v: Initial Population

v: initial-population

v: Initial Population

v: initial-population

v: Initial Population

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

id:
  v: sde-race
extension:
  url:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId
    l: extension-Measure.supplementalData.linkId
  value: String
    v: primary-sde-race
usage:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/measure-data-usage
      l: measure-data-usage
    code:
      v: supplemental-data
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Race

id:
  v: sde-payer
extension:
  url:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId
    l: extension-Measure.supplementalData.linkId
  value: String
    v: primary-sde-payer
usage:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/measure-data-usage
      l: measure-data-usage
    code:
      v: supplemental-data
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Payer

id:
  v: sde-sex
extension:
  url:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId
    l: extension-Measure.supplementalData.linkId
  value: String
    v: primary-sde-sex
usage:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/measure-data-usage
      l: measure-data-usage
    code:
      v: supplemental-data
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Sex