Quality Measure Implementation Guide
1.0.0 - STU 1

Quality Measure Implementation Guide - Downloaded Version null See the Directory of published versions

## Library: Multi Rate Example Logic Library (Experimental)

Official URL: http://hl7.org/fhir/uv/cqm/Library/MultiRateExample | Version: 2.0.0
Standards status: Informative | Computable Name: MultiRateExample
Other Identifiers: http://example.org/fhir/cqi/ecqm/Library/Identifier#MultiRateExample (use: official, ), OID:2.16.840.1.113883.4.642.40.61.28.29

This library is used as an example in the FHIR Quality Measure Implementation Guide

Metadata
Title | Multi Rate Example Logic Library
Version | 2.0.0
Identifier | MultiRateExample
Identifier | urn:oid:2.16.840.1.113883.4.642.40.61.28.29
Approval Date | 2019-08-03
Last Review Date | 2019-08-03
Experimental | true
Jurisdiction | Global (Whole world)
Steward (Publisher) | HL7 International / Clinical Quality Information
Description | This library is used as an example in the FHIR Quality Measure Implementation Guide
Type | Logic Library
Parameter | Name: Location Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Location
Parameter | Name: Patients Use: Out Min Cardinality: 0 Max Cardinality: * Type: Patient
Parameter | Name: Practitioners Use: Out Min Cardinality: 0 Max Cardinality: * Type: PractitionerRole
Parameter | Name: Beds Use: Out Min Cardinality: 0 Max Cardinality: * Type: Device
Parameter | Name: Screening Procedures Use: Out Min Cardinality: 0 Max Cardinality: * Type: Procedure
Parameter | Name: Initial Population Use: Out Min Cardinality: 0 Max Cardinality: * Type: Patient
Parameter | Name: Denominator Use: Out Min Cardinality: 0 Max Cardinality: * Type: Patient
Parameter | Name: Numerator Use: Out Min Cardinality: 0 Max Cardinality: * Type: Patient
Data Requirement | Type: Location Profile(s): Location
Data Requirement | Type: Patient Profile(s): Patient Must Support Elements: gender, id
Data Requirement | Type: PractitionerRole Profile(s): PractitionerRole
Data Requirement | Type: Device Profile(s): Device Must Support Elements: type Code Filter(s): Path: type ValueSet: `http://example.org/fhir/ValueSet/TBD`
Data Requirement | Type: Procedure Profile(s): Procedure Must Support Elements: code, subject, subject.reference Code Filter(s): Path: code ValueSet: `http://example.org/fhir/ValueSet/TBD`
Library Content
CQL Content |
    library MultiRateExample

    using FHIR version '4.0.1'

    include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' called FHIRHelpers

    valueset "Bed Device Types": 'http://example.org/fhir/ValueSet/TBD'
    valueset "Screening Procedure Types": 'http://example.org/fhir/ValueSet/TBD'

    context Location

    // Number of patients
    define "Patients":
      [Patient]

    // Number of practitioners
    define "Practitioners":
      [PractitionerRole]

    // Number of beds
    define "Beds":
      [Device: "Bed Device Types"]

    // Number of screening procedures
    define "Screening Procedures":
      [Procedure: "Screening Procedure Types"]

    // 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, '/'))

    define function ToNumber(patient Patient):
      if patient is not null then 1 else 0

    define function ToNumber(practitionerRole PractitionerRole):
      if practitionerRole is not null then 1 else 0

    define function ToNumber(device Device):
      if device is not null then 1 else 0
ELM XML Content |
    Encoded data (26892 characters)
ELM JSON Content |
    Encoded data (47568 characters)
Generated using version 0.4.9 of the sample-content-ig Liquid templates