Quality Measure Implementation Guide
1.0.0 - STU 1

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

## Library: EXM Aggregate (Experimental)

Official URL: http://hl7.org/fhir/uv/cqm/Library/EXMAggregate | Version: 1.0.0
Standards status: Informative | Computable Name: EXMAggregate
Other Identifiers: OID:2.16.840.1.113883.4.642.40.61.28.14

This library provides an example of logic for computing aggregates based on the results of measure calculations (i.e. aggregate calculation using MeasureReport resources).

Metadata
Title | EXM Aggregate
Version | 1.0.0
Identifier | urn:oid:2.16.840.1.113883.4.642.40.61.28.14
Experimental | true
Jurisdiction | Global (Whole world)
Steward (Publisher) | HL7 International / Clinical Quality Information
Description | This library provides an example of logic for computing aggregates based on the results of measure calculations (i.e. aggregate calculation using MeasureReport resources).
Type | Logic Library
Parameter | Name: Measurement Period Use: In Min Cardinality: 0 Max Cardinality: 1 Type: Period
Parameter | Name: Location Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Location
Parameter | Name: Initial Population Use: Out Min Cardinality: 0 Max Cardinality: * Type: MeasureReport
Parameter | Name: Measure Population Use: Out Min Cardinality: 0 Max Cardinality: * Type: MeasureReport
Data Requirement | Type: Location Profile(s): Location
Data Requirement | Type: MeasureReport Profile(s): MeasureReport Must Support Elements: measure, measure.value, status, status.value, date, date.value
Library Content
CQL Content |
    library EXMAggregate

    using FHIR version '4.0.1'

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

    parameter "Measurement Period" Interval<DateTime>

    context Location

    define "Initial Population":
      [MeasureReport] MR
        where MR.measure.value = 'http://example.org/fhir/Measure/malnutrition-assessment'
          and MR.status.value = 'complete'
          and MR.date.value during "Measurement Period"

    define "Measure Population":
      "Initial Population"

    /* Continuous variable measure with Sum as the aggregate method */
    define function "Measure Observation"(measureReport MeasureReport):
      measureReport.group[0].measureScore.value.value
ELM XML Content |
    Encoded data (16632 characters)
ELM JSON Content |
    Encoded data (29956 characters)
Generated using version 0.4.9 of the sample-content-ig Liquid templates