This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v2.0.0: STU 2) based on FHIR R4. The current version which supercedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions
Library-SupplementalDataElements
Formats: XML, JSON, Turtle
Id: |
SupplementalDataElements |
Url: |
http://hl7.org/fhir/us/cqfmeasures/Library/SupplementalDataElements |
Version: |
2.0.0 |
Identifier: |
value: SupplementalDataElements
|
Name: |
SupplementalDataElements |
Title: |
Supplemental Data Elements |
Status: |
active |
Experimental: |
true |
Type: |
system: http://terminology.hl7.org/CodeSystem/library-type
code: logic-library
|
Date: |
2019-09-03 |
Publisher: |
Health Level 7 International - Clinical Quality Information Work Group |
Description: |
This library is used as an example in the FHIR Quality Measure Implementation Guide |
Jurisdiction: |
US |
Approval Date: |
2019-08-03 |
Last Review Date: |
2019-08-03 |
Related Artifacts: |
Type | Resource |
depends-on | http://hl7.org/fhir/Library/FHIR-ModelInfo|4.0.1 |
depends-on | http://hl7.org/fhir/Library/FHIRHelpers|4.0.1 |
depends-on | http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1 |
depends-on | http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836 |
depends-on | http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837 |
depends-on | http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 |
|
Parameters: |
Name | Type | Min | Max | In/Out |
Patient | Patient | 0 | 1 | out |
SDE Ethnicity | Coding | 0 | * | out |
SDE Payer | Any | 0 | * | out |
SDE Race | Coding | 0 | * | out |
SDE Sex | Coding | 0 | 1 | out |
|
Data Requirements: |
Type | Profile | MS | Code Filter |
Coverage |
http://hl7.org/fhir/StructureDefinition/Coverage |
|
code filter:
path: type
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
|
|
Content: text/cql |
library SupplementalDataElements version '2.0.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
valueset "ONC Administrative Sex": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1'
valueset "Race": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836'
valueset "Ethnicity": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837'
valueset "Payer": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591'
context Patient
define "SDE Ethnicity":
(flatten (
Patient.extension Extension
where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'
return Extension.extension
)) E
where E.url = 'ombCategory'
or E.url = 'detailed'
return E.value as Coding
define "SDE Payer":
[Coverage: type in "Payer"] Payer
return {
code: Payer.type,
period: Payer.period
}
define "SDE Race":
(flatten (
Patient.extension Extension
where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'
return Extension.extension
)) E
where E.url = 'ombCategory'
or E.url = 'detailed'
return E.value as Coding
define "SDE Sex":
case
when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }
when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }
else null
end
|
Content: application/elm+xml |
Encoded data (15364 characters)
|
Content: application/elm+json |
Encoded data (27900 characters)
|