Stream: implementers
Topic: Resolving a reference from a bundle inside another bundle
Frank McKinney (Jul 27 2020 at 16:32):
I'm working on a use case where it might be useful to include multiple searchset bundles within a response message. The searches would all relate to one patient, so resources within the searchset bundles will contain references to that same patient.
I'd like to include the Patient resource just once, within the "outside" message bundle, to be referenced by resources within the "nested" searchset bundles. The structure would be something like:
Bundle (type: message)
- Patient/1 (the patient for whom multiple searches have be performed)
- Bundle (searchset)
- entry: Observation (containing a reference to Patient/1)
...
My question is: Does the searchset Observation's reference to Patient/1 legitimately resolve to the resource in the outer bundle.
It wasn't clear to me in the resolving references in Bundles section whether references could resolve to a containing bundle.
Thanks!
Lloyd McKenzie (Jul 27 2020 at 16:51):
There's no support for resolution across Bundles. However, in a search-set, there's no expectation for resolution within a Bundle except for items that are marked as 'includes' (which are expected to be pointed to by something else in the Bundle with a pathway to one of the matching resources). It would be fine to have a batch of queries, one of which just asked for Patient and others asking for various other information. The linkages should be resolvable once you import/process all of the search-set Bundles because the full URLs should allow de-referencing.
Frank McKinney (Jul 27 2020 at 17:02):
Thanks Lloyd for the clarification. Just what I needed to understand
Last updated: Apr 12 2022 at 19:14 UTC