dQM QICore Content Implementation Guide
2026.0.0 - CI Build

dQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2026.0.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-qicore-2026/ and changes regularly. See the Directory of published versions

## Library: Adult Outpatient Encounters

Official URL: https://madie.cms.gov/Library/AdultOutpatientEncounters | Version: 2026.0.0
Standards status: Informative | Maturity Level: 1 | Computable Name: AdultOutpatientEncounters

Adult outpatient encounters logic.

Metadata
Title | Adult Outpatient Encounters
Version | 2026.0.0
Topic | FHIR
Topic | CQL
Description | Adult outpatient encounters logic.
Type | logic-library from http://terminology.hl7.org/CodeSystem/library-type
Parameter | Name: Measurement Period Use: In Min Cardinality: 0 Max Cardinality: 1 Type: Period
Parameter | Name: Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Resource
Parameter | Name: Qualifying Encounters Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter
Data Requirement | Type: Encounter Profile(s): QICore Encounter Code Filter(s): Path: type ValueSet: Office Visit
Data Requirement | Type: Encounter Profile(s): QICore Encounter Code Filter(s): Path: type ValueSet: Annual Wellness Visit
Data Requirement | Type: Encounter Profile(s): QICore Encounter Code Filter(s): Path: type ValueSet: Preventive Care Services Established Office Visit, 18 and Up
Data Requirement | Type: Encounter Profile(s): QICore Encounter Code Filter(s): Path: type ValueSet: Preventive Care Services Initial Office Visit, 18 and Up
Data Requirement | Type: Encounter Profile(s): QICore Encounter Code Filter(s): Path: type ValueSet: Home Healthcare Services
Data Requirement | Type: Encounter Profile(s): QICore Encounter Code Filter(s): Path: type ValueSet: Virtual Encounter
Data Requirement | Type: Encounter Profile(s): QICore Encounter Code Filter(s): Path: type ValueSet: Telephone Visits
Library Content
CQL Content |
    /*
    NOTE: For use by January 2026 Connectathon participants for internal use only. Not for use or distribution in commercial products.
    */
    library AdultOutpatientEncounters version '5.0.000'

    using QICore version '7.0.2'
    using USCore version '7.0.0'
    using FHIR version '4.0.1'

    include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' called FHIRHelpers
    include hl7.fhir.uv.cql.FHIRCommon version '2.0.0' called FHIRCommon
    include Status version '2.0.000'

    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>
      default Interval[@2026-01-01T00:00:00, @2026-12-31T23:59:59]

    context Patient

    // NOTE: The QICore encounter here is not introducing any constraints, and so could be expressed directly using US Core
    define "Qualifying Encounters":
      ( ( [QICore.Encounter: "Office Visit"]
        union [QICore.Encounter: "Annual Wellness Visit"]
        union [QICore.Encounter: "Preventive Care Services Established Office Visit, 18 and Up"]
        union [QICore.Encounter: "Preventive Care Services Initial Office Visit, 18 and Up"]
        union [QICore.Encounter: "Home Healthcare Services"]
        union [QICore.Encounter: "Virtual Encounter"]
        union [QICore.Encounter: "Telephone Visits"] ).isEncounterPerformed() ) ValidEncounter
        where ValidEncounter.period during day of "Measurement Period"
ELM XML Content |
    Encoded data (32132 characters)
ELM JSON Content |
    Encoded data (59124 characters)
Generated using version 0.5.0 of the sample-content-ig Liquid templates