FHIR Chat · Include lokations referenced by tasks · implementers

Stream: implementers

Topic: Include lokations referenced by tasks


view this post on Zulip Christian Schmidt (May 19 2021 at 08:21):

Hi, When downloading tasks from the Fhir backend we also download referenced information like Patients, Encounters, Requester:Organization with include statements on the task.
Like this: Task?_include=Task%3Aencounter&_include=Task%3Arequester%3AOrganization&_include=Task%3Apatient

Here we also want to include referenced locations, but it does not seems to work with an include statement.
Like this: Task?_include=Task%3Aencounter&_include=Task%3Arequester%3AOrganization&_include=Task%3Apatient&_include=Task%3Alocation
Is this not possible or can anyone explain to me how to include locations?

view this post on Zulip Alexander Kiel (May 19 2021 at 11:03):

location is no common search parameter for the Task resource. Includes work with search parameter codes/names not property names. However, you could create your own search parameter for location, if your server supports custom search parameters.

view this post on Zulip Christian Schmidt (May 19 2021 at 13:58):

Thanks Alexander. Are you able to supply me with some example or redirect me to some documentation on how to structure the searchParameter, to make it available with the include statements?

view this post on Zulip Lloyd McKenzie (May 19 2021 at 15:57):

You can download all the SearchParameters defined in the core spec here: C:\Users\lloyd\Documents\SVN\fhir\publish\search-parameters.json (or change the extension to XML if you prefer). That provides lots of examples. However, you'd also have to get the server in question to support the search parameter (and to allow it to be used with _include). If you're in control of the server, that's easy. If not, you'll have to ask the server owner.

As an aside, you might submit a change request asking for Task.location to be a standard search parameter in R5.

view this post on Zulip Christian Schmidt (May 20 2021 at 11:47):

Thanks for the great answers! I succeeded making the search parameters and include locations in taks downloads.

view this post on Zulip Lloyd McKenzie (May 20 2021 at 13:12):

Any chance of you submitting a change request to seek a standard Search Parameter in R5 @Christian Schmidt ? :)


Last updated: Apr 12 2022 at 19:14 UTC