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
Reviewed 2024-06-18
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 age of a patient, either current age (i.e. as of now), or as of a particular date. In quality improvement artifacts, age is typically calculated as of a particular date such as the start of the measurement period:
define "Patient Age Between 50 and 75":
AgeInYearsAt(date from start of "Measurement Period") between 50 and 75
NOTE: The AgeInYearsAt function in CQL uses the data model (QICore in this case) to understand how to access the patient’s birth date information. NOTE: CQL supports age calculation functions using both Date and DateTime values. In both cases the function is shorthand for a date/datetime duration calculation. If the DateTime overloads are used, note that the timezone offset is considered and there may be edge cases that result in unexpected results, depending on how large the timezone offset is from the execution timestamp. To avoid these edge cases, best practice is to use the date from extractor as shown in the above pattern to ensure the Date calculation is used.
US Core defines extensions for representing the race and ethnicity of a patient using the CDC’s race and ethnicity codes. When authoring using QI-Core, these extensions can be accessed directly on the patient using the “slice name” of the extension:
define "Patient Race Includes Alaska Native":
Patient P
where exists (P.race.ombCategory C where C ~ "American Indian or Alaska Native")
and exists (P.race.detailed C where C ~ "Alaska Native")
NOTE: CQL uses the data model (QI-Core in this case) to understand how to access patient information using the
Patientdefinition. This definition is available inPatientcontexts.