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

## Measure:

Official URL: https://madie.cms.gov/Measure/StratificationEncounterExample | Version: 2026.0.0
Draft as of 2026-01-20 | Computable Name:

Metadata
Version | 2026.0.0
Status | Draft
Measure Scoring | proportion from http://hl7.org/fhir/measure-scoring
Measure Group (Rate) (ID: group-1)
Basis | Encounter
Initial Population | ID: initial-population Description: No description provided Criteria: Initial Population
Denominator | ID: denominator Description: No description provided Criteria: Denominator
Numerator | ID: numerator Description: No description provided Criteria: Numerator
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
Population Criteria
Measure Group (Rate) (ID: group-1)
Initial Population
    define "Initial Population":
      "Well-Visit Encounter"
Definition
Denominator
    define "Denominator":
      "Well-Visit Encounter"
Definition
Numerator
    define "Numerator":
      "Well-Visit Encounter" E
        with "Blood Pressure Observation" O
          such that O.issued during E.period
Definition
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 | None
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
Generated using version 0.5.0 of the sample-content-ig Liquid templates