Stream: cql
Topic: Working with extension data
Michael Riley (Jan 15 2020 at 15:39):
Is there a process in the FHIRDataProvider to work with extension data? For example, the us-core extension is a very popular extension that contains extensive race and ethnicity data on patients. It would be helpful to write measures against those. Example patient: https://www.hl7.org/fhir/us/core/Patient-example.json.html
Bryn Rhodes (Jan 15 2020 at 15:44):
We are working on a way to make extensions visible as first-class elements in CQL, but until that toolchain is complete, you can always ask for the extension directly, we've defined some functions to support this that we use in FHIR-based Quality Measures: https://github.com/DBCG/connectathon/blob/master/fhir4/cql/MATGlobalCommonFunctions_FHIR4-4.0.000.cql#L200
Bryn Rhodes (Jan 15 2020 at 15:45):
You don't have to use the functions either, here's an example of accessing those race/ethnicity extensions directly: https://github.com/DBCG/connectathon/blob/master/fhir4/cql/SupplementalDataElements_FHIR4-1.0.0.cql#L14
Michael Riley (Jan 15 2020 at 17:56):
Both of these are great thank you very much Bryn!
Last updated: Apr 12 2022 at 19:14 UTC