CMS Draft FHIR Measures
2024.1.0 - CI Build

CMS Draft FHIR Measures, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2024.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/dqm-content-cms-2024/ and changes regularly. See the Directory of published versions

## Library: AdultOutpatientEncounters

Official URL: https://madie.cms.gov/Library/AdultOutpatientEncounters | Version: 4.11.000
Active as of 2024-05-15 | Responsible: National Committee for Quality Assurance | Computable Name: AdultOutpatientEncounters
Other Identifiers: https://madie.cms.gov/login#66313ce9633fd342e6fbc53c (use: official, )

This library contains a definition used to identify denominator qualifying encounters.

Metadata
Title | AdultOutpatientEncounters
Version | 4.11.000
Identifier | 66313ce9633fd342e6fbc53c
Topic | FHIR
Topic | CQL
Steward (Publisher) | National Committee for Quality Assurance
Description | This library contains a definition used to identify denominator qualifying encounters.
Type | logic-library from http://terminology.hl7.org/CodeSystem/library-type
Dependency | Description: Library FHIRHelpers Resource: FHIRHelpersversion: null4.4.000) Canonical URL: `https://madie.cms.gov/Library/FHIRHelpers|4.4.000`
Dependency | Description: Library QICoreCommon Resource: QICoreCommonversion: null2.1.000) Canonical URL: `https://madie.cms.gov/Library/QICoreCommon|2.1.000`
Dependency | Description: Library Status Resource: Statusversion: null1.8.000) Canonical URL: `https://madie.cms.gov/Library/Status|1.8.000`
Dependency | Description: Value Set Annual Wellness Visit Resource: Annual Wellness Visit Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240`
Dependency | Description: Value Set Home Healthcare Services Resource: Home Healthcare Services Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016`
Dependency | Description: Value Set Office Visit Resource: Office Visit Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001`
Dependency | Description: Value Set Virtual Encounter Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089 Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089`
Dependency | Description: Value Set Preventive Care Services Established Office Visit, 18 and Up Resource: Preventive Care Services - Established Office Visit, 18 and Up Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025`
Dependency | Description: Value Set Preventive Care Services Initial Office Visit, 18 and Up Resource: Preventive Care Services-Initial Office Visit, 18 and Up Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023`
Dependency | Description: Value Set Telephone Visits Resource: Telephone Visits Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080`
Data Requirement | Type: Encounter Profile(s): QICoreEncounter Code Filter(s): Path: type ValueSet: Office Visit
Data Requirement | Type: Encounter Profile(s): QICoreEncounter Code Filter(s): Path: type ValueSet: Annual Wellness Visit
Data Requirement | Type: Encounter Profile(s): QICoreEncounter Code Filter(s): Path: type ValueSet: Preventive Care Services - Established Office Visit, 18 and Up
Data Requirement | Type: Encounter Profile(s): QICoreEncounter Code Filter(s): Path: type ValueSet: Preventive Care Services-Initial Office Visit, 18 and Up
Data Requirement | Type: Encounter Profile(s): QICoreEncounter Code Filter(s): Path: type ValueSet: Home Healthcare Services
Data Requirement | Type: Encounter Profile(s): QICoreEncounter Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089
Data Requirement | Type: Encounter Profile(s): QICoreEncounter Code Filter(s): Path: type ValueSet: Telephone Visits
Parameters
Name | Use | Card. | Type | Documentation
Measurement Period | In | 0..1 | Period |
Patient | Out | 0..1 | Resource |
Qualifying Encounters | Out | 0..* | Resource |
Library Content
CQL Content |
    library AdultOutpatientEncounters version '4.11.000'

    using QICore version '4.1.1'

    include FHIRHelpers version '4.4.000' called FHIRHelpers
    include QICoreCommon version '2.1.000' called QICoreCommon
    include Status version '1.8.000' called Status

    valueset "Annual Wellness Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240'
    valueset "Home Healthcare Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016'
    valueset "Office Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'
    valueset "Virtual Encounter": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089'
    valueset "Preventive Care Services Established Office Visit, 18 and Up": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025'
    valueset "Preventive Care Services Initial Office Visit, 18 and Up": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023'
    valueset "Telephone Visits": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080'

    parameter "Measurement Period" Interval<DateTime>

    context Patient

    define "Qualifying Encounters":
      ( ( [Encounter: "Office Visit"]
        union [Encounter: "Annual Wellness Visit"]
        union [Encounter: "Preventive Care Services Established Office Visit, 18 and Up"]
        union [Encounter: "Preventive Care Services Initial Office Visit, 18 and Up"]
        union [Encounter: "Home Healthcare Services"]
        union [Encounter: "Virtual Encounter"]
        union [Encounter: "Telephone Visits"] ).isEncounterPerformed() ) ValidEncounter
        where ValidEncounter.period.toInterval() during day of "Measurement Period"
ELM XML Content |
    Encoded data
ELM JSON Content |
    Encoded data
Generated using version 0.5.4-cibuild of the sample-content-ig Liquid templates