CMS FHIR Quality Measure Development IG
1.0.0-cibuild - CI Build
CMS FHIR Quality Measure Development IG, published by Centers for Medicare & Medicaid Services (CMS). This guide is not an authorized publication; it is the continuous build for version 1.0.0-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/cms-qmd/ and changes regularly. See the Directory of published versions
QI-Core defines a QICore Patient profile that extends the USCore patient.
Patient information includes the birth date, and CQL provides a built-in function to calculate the patient’s age, either the current age (i.e. as of now), or as of a specified date. In quality improvement artifacts, age is typically calculated as of a specific date such as the start of the measurement period:
CQL:
define "Patient Age Between 50 and 75":
AgeInYearsAt(date from start of "Measurement Period") between 50 and 75
NOTES: The CQL function AgeInYearsAt uses the underlying data model (QI-Core in this case) to determine how to access the patient’s birth date.
CQL supports age calculation functions thta accept either Date or DateTime values. In both cases the function is shorthand for a date/datetime duration calculation. When usng the DateTime overloads, the timezone offset is taken into account, which can introduce edge cases particularly when the timezone offset differs significantly from the execution timestamp. To avoid these issues, best practice is to use the Date rather than the DateTime.
US Core defines extensions for representing a patient’s race and ethnicity using CDC’s race and ethnicity codes. When authoring using QI-Core, these extensions can be accessed directly on the Patient resource using the “slice name” of the extension. For example:
CQL:
define "Patient Race Includes Alaska Native":
Patient Patients
where exists (Patients.race.ombCategory Category where Category ~ "American Indian or Alaska Native")
and exists (Patients.race.detailed RaceDetails where RaceDetails ~ "Alaska Native")
NOTE: CQL uses the underlying data model (QI-Core in this case) to determine how to access patient information through the
Patientdefinition. This definition is available in thePatientcontexts.