This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v1.1.0: STU 2 Ballot 1) 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-fhir2
Formats: XML, JSON, Turtle
Id: | supplementaldataelements-fhir2 |
---|
Type: | system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library |
---|
Version: | 1.0.0 |
---|
Status: | active |
Content: | type: text/cql |
---|
library SupplementalDataElements_FHIR2 version '1.0.0'
/*
using FHIR version '1.0.2'
include FHIRHelpers version '1.0.2' 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://fhir.org/guides/argonaut/StructureDefinition/argo-ethnicity'
return Extension.extension
)) E
where E.url = 'ombCategory'
or E.url = 'detailed'
return E.valueCodeableConcept
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://fhir.org/guides/argonaut/StructureDefinition/argo-race'
return Extension.extension
)) E
where E.url = 'ombCategory'
or E.url = 'detailed'
return E.valueCodeableConcept
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 */
|