Quality Measure Implementation Guide (STU5)
5.0.0-ballot - ballot United States of America flag

This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v5.0.0-ballot: STU5 (v5.0.0) Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 4.0.0. For a full list of available versions, see the Directory of published versions

Example Measure: EXM55 - Median Emergency Department Visit Duration

Active as of 2022-02-22
Id: EXM55-FHIR
Download cql: EXM55-FHIR.cql
Url: EXM55 - Median Emergency Department Visit Duration
Version: 5.0.0-ballot
Identifier:

value: 55

Name: EXM55
Title: EXM55 - Median Emergency Department Visit Duration
Status: active
Experimental: true
Scoring:

Continuous Variable

Improvement Notation:

Decreased score indicates improvement

Type:

process

Date: 2022-02-22
Publisher: HL7 International / Clinical Quality Information
Description:

This example illustrates a continuous variable measure represented as a FHIR eCQM

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
Libraries:
EXM55 - Median Emergency Department Visit Duration (Example Continuous Variable Measure Library)
Related Artifact Dependencies:
  • http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
  • Diagnosis Role
  • Psychiatric/Mental Health Diagnosis
  • Emergency Department Visit
  • Hospital Settings
  • Parameters:
    nameuseminmaxtype
    Measurement Period in 0 1 Period
    Stratification 3 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
    DataRequirements:
    TypeMust SupportValueset NameValueset
    Encounter period hospitalization hospitalization.admitSource type status Emergency Department Visit Emergency Department Visit
    Encounter period
    Condition id
    Direct Reference Codes:
    displaycodesystem
    Billing billing Diagnosis Role
    Logic Definitions:
    GroupScoringPopulation CriteriaExpression
    Measure scoring:

    Continuous Variable

    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
    Measure Population
    define "Measure Population" :
      "Initial Population"
    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"
    Measure Observation
    Library NameName
    EXM55-FHIR Inpatient Encounter
    define "Inpatient Encounter" :
      ["Encounter"] Encounter
        where LengthInDays(Encounter.period) <= 120
          and Encounter.period ends during "Measurement Period"
    Library NameName
    EXM55-FHIR Stratification 3
    define "Stratification 3" :
      "Inpatient Encounter" Encounter
        where PrincipalDiagnosis(Encounter) is null
    Library NameName
    EXM55-FHIR Stratification 2
    define "Stratification 2" :
      "Inpatient Encounter" Encounter
        where PrincipalDiagnosis(Encounter).code in "Psychiatric/Mental Health Patient"
    Library NameName
    EXM55-FHIR 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 NameName
    EXM55-FHIR Stratification 1
    define "Stratification 1" :
      "Inpatient Encounter" Encounter
        where not (PrincipalDiagnosis(Encounter).code in "Psychiatric/Mental Health Patient")
    Library NameName
    EXM55-FHIR 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 NameName
    EXM55-FHIR Measure Population
    define "Measure Population" :
      "Initial Population"

    Contained resources