dQM CMS Content Implementation Guide
2026.1.0 - CI Build

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

Measure:

Official URL: https://madie.cms.gov/Measure/StratificationEncounterExample Version: 2026.1.0
Draft as of 2026-07-30 Computable Name:
Metadata
Version 2026.1.0
Status Draft
Measure Scoring proportion from http://hl7.org/fhir/measure-scoring
Measure Group (Rate) (ID: group-1)
Basis Encounter
Stratifier Code: Criteria-based Age Range Stratifier, 0 to 20 years
Stratifier Code: Criteria-based Age Range Stratifier, 21 to 40 years
Stratifier Code: Criteria-based Age Range Stratifier, 41+ years
Stratifier Code: Value-based Gender and Age Range Stratifier
Measure Logic
Primary Library Stratification Encounter Example
Contents Population Criteria
Logic Definitions
Terminology
Dependencies
Data Requirements
Parameters
Population Criteria
Measure Group (Rate) (ID: group-1)
Stratifier
/* Criteria-based Stratification */

define "Stratifier P0Y--P21Y":
  "Well-Visit Encounter" E
    where Patient.ageInYearsAt(end of E.period) between 0 and 20
Definition
Stratifier
define "Stratifier P21Y--P41Y":
  "Well-Visit Encounter" E
    where Patient.ageInYearsAt(end of E.period) between 21 and 40
Definition
Stratifier
define "Stratifier P41Y--P9999Y":
  "Well-Visit Encounter" E
    where Patient.ageInYearsAt(end of E.period) >= 41
Definition
Logic Definitions
Logic Definition Library Name: StratificationEncounterExample
define "Well-Visit Encounter":
  [Encounter] E
    where E.status = 'finished'
      and E.period ends during day of "Measurement Period"
Logic Definition Library Name: StratificationEncounterExample
define "Blood Pressure Observation":
  [Observation] O
    where O.status in { 'final', 'amended', 'corrected' }
      and O.issued during day of "Measurement Period"
Logic Definition Library Name: StratificationEncounterExample
define "Numerator":
  "Well-Visit Encounter" E
    with "Blood Pressure Observation" O
      such that O.issued during E.period
Logic Definition Library Name: StratificationEncounterExample
define "Stratifier P21Y--P41Y":
  "Well-Visit Encounter" E
    where Patient.ageInYearsAt(end of E.period) between 21 and 40
Logic Definition Library Name: StratificationEncounterExample
define "Denominator":
  "Well-Visit Encounter"
Logic Definition Library Name: StratificationEncounterExample
/* Criteria-based Stratification */

define "Stratifier P0Y--P21Y":
  "Well-Visit Encounter" E
    where Patient.ageInYearsAt(end of E.period) between 0 and 20
Logic Definition Library Name: StratificationEncounterExample
define "Initial Population":
  "Well-Visit Encounter"
Logic Definition Library Name: StratificationEncounterExample
define "Stratifier P41Y--P9999Y":
  "Well-Visit Encounter" E
    where Patient.ageInYearsAt(end of E.period) >= 41
Logic Definition Library Name: PatientCommon
/*
@description: Returns the age in years of the patient, as of the given date
@comment: This function returns the number of whole calendar years between the patient birth 
date and the given date. Regardless of whether the patient has a birthTime, the calculation is
performed using only the birth date. If the given date has a time component, it is ignored, on 
the grounds that birth time is almost universally not considered when determining age in years.
*/
define fluent function ageInYearsAt(patient Patient, asOf DateTime):
  CalculateAgeInYearsAt(Patient.birthDate, date from asOf)
Logic Definition Library Name: FHIRHelpers
define function ToString(value EncounterStatus): value.value
Logic Definition Library Name: FHIRHelpers
/*
@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
value to a CQL DateTime Interval
@comment: If the start value of the given period is unspecified, the starting
boundary of the resulting interval will be open (meaning the start of the interval
is unknown, as opposed to interpreted as the beginning of time).
*/
define function ToInterval(period FHIR.Period):
    if period is null then
        null
    else
        if period."start" is null then
            Interval(period."start".value, period."end".value]
        else
            Interval[period."start".value, period."end".value]
Logic Definition Library Name: FHIRHelpers
define function ToString(value ObservationStatus): value.value
Logic Definition Library Name: FHIRHelpers
define function ToDateTime(value instant): value.value
Logic Definition Library Name: FHIRHelpers
define function ToDate(value date): value.value
Terminology
Terminology None
Dependencies
Dependency Description: FHIR model information
Resource: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
Dependency Description: Library FHIRHelpers
Resource: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
Dependency Description: Library PatientCommon
Resource: Patient Common
Canonical URL: https://madie.cms.gov/Library/PatientCommon
Dependency Description: Library FHIRHelpers
Resource: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
Data Requirements
Data Requirement Type: Observation
Profile(s): Observation
Must Support Elements: status, issued
Data Requirement Type: Patient
Profile(s): Patient
Data Requirement Type: Encounter
Profile(s): Encounter
Must Support Elements: status, period
Parameters
Name Use Card. Type Documentation
Measurement Period In 0..1 Period
Numerator Out 0..* Encounter
Stratifier P21Y--P41Y Out 0..* Encounter
Denominator Out 0..* Encounter
Stratifier P0Y--P21Y Out 0..* Encounter
Initial Population Out 0..* Encounter
Stratifier P41Y--P9999Y Out 0..* Encounter
Generated using version 0.5.6-cibuild of the sample-content-ig Liquid templates