Quality Measure Implementation Guide (STU4)
4.0.0 - STU4 United States of America flag

This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v4.0.0: STU4 (v4.0.0)) based on FHIR R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Example Measure: Multi-Rate Example Measure

Draft as of 2022-02-22
Id: MultiRateExample-FHIR
Download cql: MultiRateExample-FHIR.cql
Url: Multi-Rate Example Measure
Version: 0.1.0
Name: MultiRateExample
Title: Multi-Rate Example Measure
Status: draft
Experimental: true
Type:

structure

Subject:

Location (http://hl7.org/fhir/resource-types)

Date: 2022-02-22 10:37:03-0700
Publisher: Clinical Quality Information WG
Description:

This measure example illustrates the use of the group-level computation extensions to describe a multi-rate measure with mixed population bases

Jurisdiction: US
Population Criteria:
group-1
: Total number of patients
: Total number of patients
: Total number of patients
group-2
: Total number of practitioners
: Total number of practitioners
: Total number of practitioners
group-3
: Total number of beds
: Total number of beds
: Total number of beds
group-4
: Total number of screening procedures
: Total number of screening procedures
: Total number of screening procedures
group-5
: Patients
: Eligible patients
: Patients with screening
group-6
Libraries:
Multi Rate Example Logic Library
Related Artifact Dependencies:
  • http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
  • http://example.org/fhir/ValueSet/TBD
  • Parameters:
    nameuseminmaxtype
    Practitioners out 0 * PractitionerRole
    Numerator out 0 * Patient
    Denominator out 0 * Patient
    Initial Population out 0 * Patient
    Patients out 0 * Patient
    Beds out 0 * Device
    DataRequirements:
    TypeMust SupportValueset NameValueset
    Patient gender id
    Device type Screening Procedure Types http://example.org/fhir/ValueSet/TBD
    Procedure code subject subject.reference Screening Procedure Types http://example.org/fhir/ValueSet/TBD
    PractitionerRole
    Logic Definitions:
    GroupScoringPopulation CriteriaExpression
    group-1 Group scoring: continuous-variable
    // Number of patients
    define "Patients":
      [Patient]
    // Number of patients
    define "Patients":
      [Patient]
    group-2 Group scoring: continuous-variable
    // Number of practitioners
    define "Practitioners":
      [PractitionerRole]
    // Number of practitioners
    define "Practitioners":
      [PractitionerRole]
    group-3 Group scoring: continuous-variable
    // Number of beds
    define "Beds":
      [Device: "Bed Device Types"]
    // Number of beds
    define "Beds":
      [Device: "Bed Device Types"]
    group-4 Group scoring: continuous-variable
    group-5 Group scoring: proportion
    // Percentage of patients who received screening
    define "Initial Population":
      "Patients"
    define "Denominator":
      "Patients" P
        where P.gender = 'female'
    define "Numerator":
      "Patients" P
        with "Screening Procedures" SP
          such that P.id = Last(Split(SP.subject.reference, '/'))
    group-6 Group scoring: composite
    Library NameName
    MultiRateExample-FHIR Practitioners
    // Number of practitioners
    define "Practitioners":
      [PractitionerRole]
    Library NameName
    MultiRateExample-FHIR Patients
    // Number of patients
    define "Patients":
      [Patient]
    Library NameName
    MultiRateExample-FHIR Screening Procedures
    // Number of screening procedures
    define "Screening Procedures":
      [Procedure: "Screening Procedure Types"]
    Library NameName
    MultiRateExample-FHIR Numerator
    define "Numerator":
      "Patients" P
        with "Screening Procedures" SP
          such that P.id = Last(Split(SP.subject.reference, '/'))
    Library NameName
    MultiRateExample-FHIR Denominator
    define "Denominator":
      "Patients" P
        where P.gender = 'female'
    Library NameName
    MultiRateExample-FHIR Initial Population
    // Percentage of patients who received screening
    define "Initial Population":
      "Patients"
    Library NameName
    MultiRateExample-FHIR Beds
    // Number of beds
    define "Beds":
      [Device: "Bed Device Types"]

    Contained resources