Quality Measure Implementation Guide (STU3 Ballot)
2.1.0 - ballot

This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v2.1.0: STU3 Ballot 1) based on FHIR R4. The current version which supercedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions

Example Measure: Median ED Visit Duration

Id: measure-exm55-FHIR
Url: http://hl7.org/fhir/us/cqfmeasures/Measure/measure-exm55-FHIR
Version: 5.0.0
Identifier:

value: 55

Name: EXM55
Title: Median ED Visit Duration
Status: active
Experimental: true
Scoring:

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

code: continuous-variable

display: Continuous Variable

Improvement Notation:

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

code: decrease

display: Decreased score indicates improvement

Type:

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

code: process

Date: 2021-04-03
Publisher: Clinical Quality Information WG
Description: This example illustrates a continuous variable measure represented as a FHIR eCQM
Parameters:
nameuseminmaxtype
Measurement Period in 0 1 Period
Stratification 3 out 0 * Encounter
Inpatient Encounter out 0 * Encounter
Stratification 2 out 0 * Encounter
Measure Population Exclusion out 0 * Encounter
Stratification 1 out 0 * Encounter
Initial Population out 0 * Encounter
Measure Population out 0 * Encounter
Data Requirements:
typepathvalueSet or systemcode
Encounter
Condition id
Encounter type http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
Encounter type http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
Direct Reference Codes:
displaycodesystem
Billing billing
Use Context:
codevalue
program
Jurisdiction: US
Topic: 57024-2
Approval Date: 2019-03-08
Last Review Date: 2019-03-08
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.113883.3.117.1.7.1.299
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.126
Logic Definitions:
Library NameNamesequence
EXM55 Stratification 3
define "Stratification 3" :
  "Inpatient Encounter" Encounter
    where PrincipalDiagnosis(Encounter) is null


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


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


Library NameNamesequence
EXM55 Measure Population Exclusion
define "Measure Population Exclusion" :
  "Inpatient Encounter" Encounter
    with ["Encounter" : "Emergency Department Visit"] ED
      such that ED.period ends 1 hour or less before start of Encounter.period
        and ED.status = 'finished'
        and ED.hospitalization.admitSource in "Hospital Settings"


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


Library NameNamesequence
EXM55 Initial Population
define "Initial Population" :
  "Inpatient Encounter" Encounter
    with ["Encounter" : "Emergency Department Visit"] ED
     such that ED.status = 'finished'
       and ED.period ends 1 hour or less before start of Encounter.period


Library NameNamesequence
EXM55 Measure Population
define "Measure Population" :
  "Initial Population"