Stream: implementers
Topic: Chained _include and _include:recurse statements
Jonny Rylands (Oct 16 2018 at 20:32):
In STU3 is the following legal:
GET /Slot?_id=1&_include=Slot:schedule:Schedule&_include:recurse=Schedule:actor:Location&_include:recurse=Location:managingOrganization:Organization
To do the following:
Return Slot with id=1
& its associated Schedule
& any Location actors in the Schedule
& the managing Organizations of the Location actors
I'm particularly interested if you can use _include:recurse on an resource which itself was included with _include:recurse.
I can't see an example/question with an _include:recurse operating on the output of another _include:recurse.
Thanks.
Lloyd McKenzie (Oct 16 2018 at 20:41):
I won't speak to the recurse question, but I think you want _id=1
rather than id=1
Jonny Rylands (Oct 16 2018 at 20:56):
Updated :-)
Michael Calderero (Oct 17 2018 at 04:07):
I believe it is legal. The recursive examples from http://hl7.org/fhir/STU3/search.html#include indicate it's possible.
In R4, they changed the modifier to :iterate (i.e. http://build.fhir.org/search.html#include) but I'm not sure if the semantics are still the same as :recurse
René Spronk (Oct 17 2018 at 07:19):
you're iteratively expanding the result set (a set of resources), this seems like a good example thereof.
Jonny Rylands (Oct 26 2018 at 00:11):
Thanks for your responses.
Last updated: Apr 12 2022 at 19:14 UTC