Draft dQM CMS Content Implementation Guide
2025.1.0 - CI Build
Draft dQM CMS Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2025.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-2025/ and changes regularly. See the Directory of published versions
| Active as of 2025-10-02 |
<Library xmlns="http://hl7.org/fhir">
<id value="SupplementalDataElements"/>
<meta>
<profile
value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary"/>
<profile
value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-computablelibrary"/>
<profile
value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary"/>
<profile
value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-executablelibrary"/>
<profile
value="http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library"/>
<profile
value="http://hl7.org/fhir/uv/cql/StructureDefinition/elm-json-library"/>
<profile
value="http://hl7.org/fhir/uv/cql/StructureDefinition/elm-xml-library"/>
</meta>
<text>
<status value="extensions"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<table class="narrative-table">
<tbody>
<tr>
<th colspan="2" scope="row" class="row-header"><a name="metadata"> </a>Metadata</th>
</tr>
<tr>
<th scope="row" class="row-header">Title</th>
<td class="content-container">SupplementalDataElements</td>
</tr>
<tr>
<th scope="row" class="row-header">Version</th>
<td class="content-container">6.1.000</td>
</tr>
<tr>
<th scope="row" class="row-header">Topic</th>
<td class="content-container">FHIR
</td>
</tr>
<tr>
<th scope="row" class="row-header">Topic</th>
<td class="content-container">CQL
</td>
</tr>
<tr>
<th scope="row" class="row-header">Steward (Publisher)</th>
<td class="content-container">ICF</td>
</tr>
<tr>
<th scope="row" class="row-header">Description</th>
<td class="content-container"><div><p>This is the QI-Core 6.0.0-derived version of the Supplemental Data Elements library containing the CMS SDE definitions for Payer, Race, Ethnicity and Sex</p>
</div></td>
</tr>
<tr>
<th scope="row" class="row-header">Type</th>
<td class="content-container">
<a href="http://terminology.hl7.org/7.1.0/CodeSystem-library-type.html">http://terminology.hl7.org/CodeSystem/library-type</a>#logic-library
</td>
</tr>
<tr>
<th colspan="2" scope="row" class="row-header"><a name="parameters"> </a>Parameters</th>
</tr>
<tr>
<th scope="row" class="row-header">Parameter</th>
<td class="content-container">None</td>
</tr>
<tr>
<th colspan="2" scope="row" class="row-header">Library Content</th>
</tr>
<tr>
<th scope="row" class="row-header">CQL Content</th>
<td>
<a name="cql-content"> </a>
<pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
@description: Supplemental data elements for use in digital quality measure specifications in CMS programs
NOTE: This library is not published in this IG, it is included here for convenience. The source of truth for
this library will be the MADiE environment once it fully supports use of QICore STU6-derived.
*/
library SupplementalDataElements version '6.1.000'
using USQualityCore version '0.1.0-cibuild'
using USCore version '6.1.0-derived'
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 hl7.fhir.us.cql.USCoreCommon version '2.0.0-ballot' called USCommon
codesystem "SNOMEDCT": 'http://snomed.info/sct'
valueset "Ethnicity": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837'
valueset "Federal Administrative Sex": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1021.121'
valueset "Payer Type": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591'
valueset "Race": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836'
code "Male (finding)": '248153007' from "SNOMEDCT" display 'Male (finding)'
code "Female (finding)": '248152002' from "SNOMEDCT" display 'Female (finding)'
context Patient
define "SDE Ethnicity":
(Patient.ethnicity()) E
return Tuple {
codes: { E.ombCategory } union E.detailed,
display: E.text
}
define "SDE Payer":
[USQualityCore.Coverage: type in "Payer Type"] Payer
return {
code: Payer.type,
period: Payer.period
}
define "SDE Race":
(Patient.race()) R
return Tuple {
codes: R.ombCategory union R.detailed,
display: R.text
}
define "SDE Sex":
case
when Patient.sex() = '248153007' then "Male (finding)"
when Patient.sex() = '248152002' then "Female (finding)"
else null
end</code></pre>
</td>
</tr>
<tr>
<th colspan="2" scope="row" class="row-header">Generated using version 0.5.6 of the sample-content-ig Liquid templates</th>
</tr>
</tbody>
</table>
</div>
</text>
<extension
url="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem">
<valueReference>
<reference value="Device/cqf-tooling"/>
</valueReference>
</extension>
<url value="https://madie.cms.gov/Library/SupplementalDataElements"/>
<version value="6.1.000"/>
<name value="SupplementalDataElements"/>
<title value="SupplementalDataElements"/>
<status value="active"/>
<experimental value="false"/>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/library-type"/>
<code value="logic-library"/>
</coding>
</type>
<date value="2025-10-02T13:51:37+00:00"/>
<publisher value="ICF"/>
<description
value="This is the QI-Core 6.0.0-derived version of the Supplemental Data Elements library containing the CMS SDE definitions for Payer, Race, Ethnicity and Sex"/>
<topic>
<text value="FHIR"/>
</topic>
<topic>
<text value="CQL"/>
</topic>
<content>
<contentType value="text/cql"/>
<data
value="LyoKQGRlc2NyaXB0aW9uOiBTdXBwbGVtZW50YWwgZGF0YSBlbGVtZW50cyBmb3IgdXNlIGluIGRpZ2l0YWwgcXVhbGl0eSBtZWFzdXJlIHNwZWNpZmljYXRpb25zIGluIENNUyBwcm9ncmFtcwoKTk9URTogVGhpcyBsaWJyYXJ5IGlzIG5vdCBwdWJsaXNoZWQgaW4gdGhpcyBJRywgaXQgaXMgaW5jbHVkZWQgaGVyZSBmb3IgY29udmVuaWVuY2UuIFRoZSBzb3VyY2Ugb2YgdHJ1dGggZm9yCnRoaXMgbGlicmFyeSB3aWxsIGJlIHRoZSBNQURpRSBlbnZpcm9ubWVudCBvbmNlIGl0IGZ1bGx5IHN1cHBvcnRzIHVzZSBvZiBRSUNvcmUgU1RVN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MTQyMjIuNC4xMS44MzYnCgpjb2RlICJNYWxlIChmaW5kaW5nKSI6ICcyNDgxNTMwMDcnIGZyb20gIlNOT01FRENUIiBkaXNwbGF5ICdNYWxlIChmaW5kaW5nKScKY29kZSAiRmVtYWxlIChmaW5kaW5nKSI6ICcyNDgxNTIwMDInIGZyb20gIlNOT01FRENUIiBkaXNwbGF5ICdGZW1hbGUgKGZpbmRpbmcpJwoKY29udGV4dCBQYXRpZW50CgpkZWZpbmUgIlNERSBFdGhuaWNpdHkiOgogIChQYXRpZW50LmV0aG5pY2l0eSgpKSBFCiAgICByZXR1cm4gVHVwbGUgewogICAgICBjb2RlczogeyBFLm9tYkNhdGVnb3J5IH0gdW5pb24gRS5kZXRhaWxlZCwKICAgICAgZGlzcGxheTogRS50ZXh0CiAgICB9CgpkZWZpbmUgIlNERSBQYXllciI6CiAgW1VTUXVhbGl0eUNvcmUuQ292ZXJhZ2U6IHR5cGUgaW4gIlBheWVyIFR5cGUiXSBQYXllcgogICAgcmV0dXJuIHsKICAgICAgY29kZTogUGF5ZXIudHlwZSwKICAgICAgcGVyaW9kOiBQYXllci5wZXJpb2QKICAgIH0KCmRlZmluZSAiU0RFIFJhY2UiOgogIChQYXRpZW50LnJhY2UoKSkgUgogICAgcmV0dXJuIFR1cGxlIHsKICAgICAgY29kZXM6IFIub21iQ2F0ZWdvcnkgdW5pb24gUi5kZXRhaWxlZCwKICAgICAgZGlzcGxheTogUi50ZXh0CiAgICB9CgpkZWZpbmUgIlNERSBTZXgiOgogIGNhc2UKICAgIHdoZW4gUGF0aWVudC5zZXgoKSA9ICcyNDgxNTMwMDcnIHRoZW4gIk1hbGUgKGZpbmRpbmcpIgogICAgd2hlbiBQYXRpZW50LnNleCgpID0gJzI0ODE1MjAwMicgdGhlbiAiRmVtYWxlIChmaW5kaW5nKSIKICAgIGVsc2UgbnVsbAogIGVuZA=="/>
<url value="https://madie.cms.gov/Library-SupplementalDataElements.cql"/>
</content>
</Library>