Stream: implementers
Topic: DSTU2 _include on reference within extension
James Cox (Oct 03 2017 at 14:19):
Hi All
We are currently still using DSTU2, we have a "Schedule" resource where the 'actor' element is a mandatory reference to a location resource. We also have an extension to allow the providers to add a Practitioner to the schedule by reference to a Practitioner Resource.
We are trying to work out how to represent an _include parameter in the request to ask for the referenced Practitioner Resource within the custom Schedule Resource extension.
_include= Schedule:actor:Location - this is the parameter for the inclusion of the mandatory location resource
What would be the _include parameter format for the extension:
_include= Schedule:extension:Practitioner - ?
Thanks
James
Lloyd McKenzie (Oct 03 2017 at 19:24):
To search on extensions, you need to define your own custom SearchParameter (which can have whatever name you like)
Christiaan Knaap (Oct 03 2017 at 19:24):
_include can only use searchparameters. So you would need to first define a SearchParameter on Schedule with an xpath that extracts the reference to the Practitioner, let's say it has the name 'practitioner'. Then your server must understand this custom SearchParameter. And then you can use _include=Schedule:practitioner
Lloyd McKenzie (Oct 03 2017 at 19:24):
The server declares what it is in its Conformance/CapabilityStatement
James Cox (Oct 04 2017 at 07:23):
Thanks for your quick response, your answers were very helpful.
Last updated: Apr 12 2022 at 19:14 UTC