FHIR Chat · Specify a specific extension or slice in a 'path' attribute · implementers

Stream: implementers

Topic: Specify a specific extension or slice in a 'path' attribute


view this post on Zulip Travis Stenerson (Nov 23 2017 at 15:26):

How does one specify a specific extension in a path element? I suppose this is also asking how does one specify a particular slice in a path element, such as those found in Definitional resources.

Here's an example: My medication request resource has two extensions, one of which has the uri "http://baseURL/line-of-therapy" and is a CodeableConcept. How would I specify the path to this extension in 'dataRequirement.mustSupport', 'dataRequirement.codeFilter.path', or in '_Definition.dynamicValue.path'?

Thank you

view this post on Zulip Lloyd McKenzie (Nov 23 2017 at 19:44):

@Bryn Rhodes

view this post on Zulip Bryn Rhodes (Nov 28 2017 at 20:30):

The FHIRPath specification defines additional operators for working with FHIR that allow you to reference extensions and slices, .extension() and .slice(). So for the extension, the path would be .extension('http://baseURL/line-of-therapy'), and similarly for the slice, the path would be .extension('http://baseURL/example-sd', 'slice-name').

view this post on Zulip Travis Stenerson (Nov 28 2017 at 21:04):

Great, thank you Bryn.


Last updated: Apr 12 2022 at 19:14 UTC