Metadata Title Supplemental Data Elements Version 2.0.000 Identifier urn:oid:2.16.840.1.113883.4.642.40.61.28.32 Experimental true Jurisdiction Global (Whole world) Steward (Publisher) HL7 International / Clinical Quality Information Description This example illustrates logic for sharing supplemental data element calculation between multiple measures. Type Logic Library Parameter Name: Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Patient Parameter Name: SDE Ethnicity Use: Out Min Cardinality: 0 Max Cardinality: * Type: Coding Parameter Name: SDE Payer Use: Out Min Cardinality: 0 Max Cardinality: * Type: Resource Parameter Name: SDE Race Use: Out Min Cardinality: 0 Max Cardinality: * Type: Coding Parameter Name: SDE Sex Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Coding Data Requirement Type: Patient Profile(s): Patient Must Support Elements: url, extension, value Data Requirement Type: Coverage Profile(s): Coverage Must Support Elements: type, period Code Filter(s): Path: type ValueSet: Payer Type Library Content CQL Content /*#xD; This example is a work in progress and should not be considered a final specification#xD; or recommendation for guidance. This example will help guide and direct the process#xD; of finding conventions and usage patterns that meet the needs of the various stakeholders#xD; in the measure development community.#xD; */#xD; library SupplementalDataElements version '2.0.000'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' called FHIRHelpers#xD; #xD; valueset "Ethnicity": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837'#xD; valueset "ONC Administrative Sex": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1'#xD; valueset "Payer": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591'#xD; valueset "Race": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836'#xD; #xD; context Patient#xD; #xD; define "SDE Ethnicity":#xD; (flatten (#xD; Patient.extension Extension#xD; where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'#xD; return Extension.extension#xD; )) E#xD; where E.url = 'ombCategory'#xD; or E.url = 'detailed'#xD; return E.value as Coding#xD; #xD; define "SDE Payer":#xD; [Coverage: type in "Payer"] Payer#xD; return {#xD; code: Payer.type,#xD; period: Payer.period#xD; }#xD; #xD; define "SDE Race":#xD; (flatten (#xD; Patient.extension Extension#xD; where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'#xD; return Extension.extension#xD; )) E#xD; where E.url = 'ombCategory'#xD; or E.url = 'detailed'#xD; return E.value as Coding#xD; #xD; define "SDE Sex":#xD; case#xD; when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }#xD; when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }#xD; else null#xD; end#xD; ELM XML Content Encoded data (48764 characters) ELM JSON Content Encoded data (86452 characters) Generated using version 0.4.9 of the sample-content-ig Liquid templates
HL7 International / Clinical Quality Information
This example illustrates logic for sharing supplemental data element calculation between multiple measures.