CMS Draft FHIR Measures
2024.1.0 - CI Build

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

## Library: SupplementalDataElements

Official URL: https://madie.cms.gov/Library/SupplementalDataElements | Version: 3.5.000
Active as of 2024-12-11 | Responsible: ICF | Computable Name: SupplementalDataElements
Other Identifiers: https://madie.cms.gov/login#660d680101598d085de46055 (use: official, )

This is the QI-Core version of the Supplemental Data Elements library containing the CMS SDE definitions for Payer, Race, Ethnicity and Gender

Metadata
Title | SupplementalDataElements
Version | 3.5.000
Identifier | 660d680101598d085de46055
Topic | FHIR
Topic | CQL
Steward (Publisher) | ICF
Description | This is the QI-Core version of the Supplemental Data Elements library containing the CMS SDE definitions for Payer, Race, Ethnicity and Gender
Type | logic-library from http://terminology.hl7.org/CodeSystem/library-type
Dependency | Description: Library FHIRHelpers Resource: FHIRHelpersversion: null4.4.000) Canonical URL: `https://madie.cms.gov/Library/FHIRHelpers|4.4.000`
Dependency | Description: Code System AdministrativeGender Resource: AdministrativeGender Canonical URL: `http://hl7.org/fhir/administrative-gender`
Dependency | Description: Value Set Ethnicity Resource: Ethnicity Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837`
Dependency | Description: Value Set ONC Administrative Sex Resource: ONC Administrative Sex Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1`
Dependency | Description: Value Set Payer Type Resource: Payer Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591`
Dependency | Description: Value Set Race Resource: Race Canonical URL: `http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836`
Data Requirement | Type: Coverage Profile(s): QICoreCoverage Code Filter(s): Path: type ValueSet: Payer
Parameters
Name | Use | Card. | Type | Documentation
Patient | Out | 0..1 | Resource |
SDE Ethnicity | Out | 0..1 | Resource |
SDE Payer | Out | 0..* | Resource |
SDE Race | Out | 0..1 | Resource |
SDE Sex | Out | 0..1 | Coding |
Library Content
CQL Content |
    /*
    @update: JSR 2024-04-04 ->
    Updated FHIRHelpers version to 4.4.000.
    Added Male and Female codes and related AdministrativeGender code system
    Updated SDE Sex definition to use added codes from FHIR administrative-gender code system.
    */
    library SupplementalDataElements version '3.5.000'

    using QICore version '4.1.1'

    include FHIRHelpers version '4.4.000' called FHIRHelpers

    codesystem "AdministrativeGender": 'http://hl7.org/fhir/administrative-gender'

    valueset "Ethnicity": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837'
    valueset "ONC Administrative Sex": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1'
    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 "M": 'M' from "AdministrativeGender" display 'Male'
    code "F": 'F' from "AdministrativeGender" display 'Female'

    context Patient

    define "SDE Ethnicity":
      Patient.ethnicity E
        return Tuple {
          codes: { E.ombCategory } union E.detailed,
          display: E.text
        }

    define "SDE Payer":
      [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.gender = 'male' then "M"
        when Patient.gender = 'female' then "F"
        else null
      end
ELM XML Content |
    Encoded data
ELM JSON Content |
    Encoded data
Generated using version 0.5.4-cibuild of the sample-content-ig Liquid templates