Quality Measure Implementation Guide (STU3 Ballot)
2.1.0 - ballot

Quality Measure Implementation Guide (STU3 Ballot), published by Clinical Quality Information WG. This is not an authorized publication; it is the continuous build for version 2.1.0). This version is based on the current content of https://github.com/HL7/cqf-measures/ and changes regularly. See the Directory of published versions

Example Measure: EXM Measure

Id: measure-exm
Url: http://hl7.org/fhir/us/cqfmeasures/Measure/measure-exm
Version: 2.0.0
Identifier:

value: EXM

Name: MeasureEXM
Title: EXM Measure
Status: active
Experimental: true
Scoring:

system: http://terminology.hl7.org/CodeSystem/measure-scoring

code: proportion

display: Proportion

Improvement Notation:

system: http://terminology.hl7.org/CodeSystem/measure-improvement-notation

code: increase

display: Increased score indicates improvement

Type:

system: http://terminology.hl7.org/CodeSystem/measure-type

code: process

Date: 2021-04-03
Publisher: Clinical Quality Information WG
Description: An example FHIR-based measure
Parameters:
nameuseminmaxtype
Measurement Period in 0 1 Period
SDE Sex out 0 1 Coding
Stratifier 3 out 0 * Encounter
Inpatient Encounter out 0 * Encounter
Stratifier 4 out 0 * Encounter
SDE Payer out 0 * Any
Initial Population out 0 * Encounter
SDE Ethnicity out 0 * Coding
Patient out 0 1 Patient
SDE Race out 0 * Coding
Stratifier 1 out 0 * Encounter
Stratifier 2 out 0 * Encounter
Data Requirements:
typepathvalueSet or systemcode
Encounter
Condition id
Coverage type http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
Patient
Direct Reference Codes:
displaycodesystem
Billing billing
Supplemental Data:
expressionsystem
SDE Ethnicity http://terminology.hl7.org/CodeSystem/measure-data-usage
SDE Race http://terminology.hl7.org/CodeSystem/measure-data-usage
SDE Payer http://terminology.hl7.org/CodeSystem/measure-data-usage
SDE Sex http://terminology.hl7.org/CodeSystem/measure-data-usage
Use Context:
codevalue
program eligible-provider
Jurisdiction: US
Topic: 57024-2
Purpose: The purpose of this measure is to...
Usage: Users of this measure should be aware of...
Copyright: Example Copyright Statement
Disclaimer: Example disclaimer
Approval Date: 2019-02-17
Last Review Date: 2019-02-17
Effective Period: 2018-01-01..2018-12-31
Related Artifacts:

Dependencies

  • http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
  • http://terminology.hl7.org/CodeSystem/diagnosis-role
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299
Logic Definitions:
Library NameNamesequence
EXMLogic SDE Sex
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


Library NameNamesequence
EXMLogic Stratifier 3
define "Stratifier 3" :
  "Inpatient Encounter" Encounter
    where PrincipalDiagnosis(Encounter) is null


Library NameNamesequence
EXMLogic Inpatient Encounter
define "Inpatient Encounter" :
  ["Encounter"] Encounter
    where LengthInDays(Encounter.period) <= 120
      and Encounter.period ends during "Measurement Period"


Library NameNamesequence
EXMLogic Stratifier 4
define "Stratifier 4" :
  "Inpatient Encounter" Encounter
    where PrincipalDiagnosis(Encounter) is null


Library NameNamesequence
EXMLogic SDE Payer
define "SDE Payer":
    [Coverage: type in "Payer"] Payer
      return {
        code: Payer.type,
        period: Payer.period
      }


Library NameNamesequence
EXMLogic Initial Population
define "Initial Population" :
  "Inpatient Encounter" Encounter


Library NameNamesequence
EXMLogic SDE Ethnicity
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


Library NameNamesequence
EXMLogic SDE Race
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


Library NameNamesequence
EXMLogic Stratifier 1
define "Stratifier 1" :
  "Inpatient Encounter" Encounter
    where not (PrincipalDiagnosis(Encounter).code in "Psychiatric/Mental Health Patient")


Library NameNamesequence
EXMLogic Stratifier 2
define "Stratifier 2" :
  "Inpatient Encounter" Encounter
    where PrincipalDiagnosis(Encounter).code in "Psychiatric/Mental Health Patient"