Quality Measure Implementation Guide
2.0.0 - STU 2 International flag

Quality Measure Implementation Guide, published by HL7 International / Clinical Quality Information. This guide is not an authorized publication; it is the continuous build for version 2.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cqm/ and changes regularly. See the Directory of published versions

Measure: EXM Measure (Experimental)

Official URL: http://hl7.org/fhir/uv/cqm/Measure/EXMLogic-FHIR Version: 2.0.0
Standards status: Informative Computable Name: MeasureEXM
Other Identifiers: http://example.org/fhir/cqi/ecqm/Measure/Identifier/exm#EXM, OID:2.16.840.1.113883.4.642.40.61.29.9

Usage: Clinical Venue: EC

Copyright/Legal: Example Copyright Statement

An example FHIR-based measure

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 http://unstats.un.org/unsd/methods/m49/m49.htm#001
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 http://terminology.hl7.org/CodeSystem/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...

Guidance (Usage) Users of this measure should be aware that this is intentionally simplified to show specific aspects of a measure.
Comment

This illustrates an example comment

Contents Metadata
Contents
Measure Rates (Groups)
Supplemental Data
Measure Logic
Population Criteria
Logic Definitions
Terminology
Dependencies
Data Requirements
Measure Rates (Groups)
Measure Rate (Group) (ID: primary)
Initial Population ID: primary-exmlogic-initial-population
Criteria: Initial Population
Measure Population ID: primary-exmlogic-measure-population
Criteria: Measure Population
Measure Observation ID: primary-exmlogic-measure-observation
Criteria: Measure Observation
Input population: measure-population Aggregate method: median
Stratifier ID: stratifier-1
Code: Stratifier 1
Applies to: initial-population
Stratifier ID: stratifier-2
Code: Stratifier 2
Applies to: initial-population
Stratifier ID: stratifier-3
Code: Stratifier 3
Applies to: initial-population
Stratifier ID: stratifier-4
Code: Stratifier 4
Applies to: initial-population
Supplemental Data Elements
Measure Logic
Primary Library Example Logic Library
Population Criteria
Measure Rate (Group) (ID: primary)
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
Definition
Measure Population
define "Measure Population" :
  "Initial Population"
Definition
Measure Observation
define function "Measure Observation"(Encounter "Encounter") :
  duration in minutes of "Related ED Visit"(Encounter).period
Definition
Logic Definitions
Logic Definition Library Name: EXMCommon
define fluent function lengthInDays(Value Interval<DateTime> ):
  difference in days between start of Value and end of Value
Logic Definition Library Name: FHIRHelpers
/*
@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]
Logic Definition Library Name: FHIRHelpers
define function ToString(value EncounterStatus): value.value
Logic Definition Library Name: EXMLogic
define "Inpatient Encounter" :
  ["Encounter"] Encounter
    where Encounter.period.lengthInDays() <= 120
      and Encounter.period ends during "Measurement Period"
Logic Definition Library Name: EXMLogic
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
Logic Definition Library Name: EXMLogic
define "Measure Population" :
  "Initial Population"
Logic Definition Library Name: EXMLogic
define function "Measure Observation"(Encounter "Encounter") :
  duration in minutes of "Related ED Visit"(Encounter).period
Logic Definition Library Name: EXMLogic
//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 )
Terminology
Value Set Description: Value set Emergency Department Visit
Resource: Emergency Department Visit
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
Dependencies
Dependency Description: FHIR model information
Resource: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
Dependency Description: Library EXMCommon
Resource: EXMCommon
Canonical URL: http://hl7.org/fhir/uv/cqm/Library/EXMCommon
Dependency Description: Library FHIRHelpers
Resource: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
Data Requirements
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: period
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: type, status, period
Code Filter(s):
Path: type
ValueSet: Emergency Department Visit
Generated using version 0.5.6 of the sample-content-ig Liquid templates