FHIR Chat · Bundle Transaction with two resource type · implementers

Stream: implementers

Topic: Bundle Transaction with two resource type


view this post on Zulip Jenny Zhu (Jun 26 2018 at 09:54):

Hi
We are working on the FHIR implementation. I want to ask if I want to create a episode of care with a reference patient that doesn’t exist, (both the episode of care and the reference patient need to be created. ) what should the bundle be like?

Does someone have experience on it?

view this post on Zulip Lloyd McKenzie (Jun 26 2018 at 10:00):

So you want to send a Bundle that requests creation of both Patient and EpisodeOfCare? That sounds like a transaction. The Patient would have a fullUrl of a guid and the EpisodeOfCare would reference the Patient by that GUID. It would be the responsibility of the receiving server to translate that reference into a proper URL as part of executing the transaction.

view this post on Zulip Jenny Zhu (Jun 27 2018 at 02:51):

Thank you very much for your reply.
Do you mean that it's not necessary for the receiving server to create the patient?
For the receiving server, it only stores the full Url of patient.

Or the full Url contains the operation 'POST' for the patient? then the receiving server should analyze the Url and do corresponding operation?

view this post on Zulip Lloyd McKenzie (Jun 27 2018 at 05:21):

If you're sending a transaction, you'd be doing a POST for both. The inclusion of the fullUrls would be to allow referencing between the items in the Bundle. The receiving system would assign new fullUrls in its system when it processes the POST requests.

view this post on Zulip Jenny Zhu (Jun 28 2018 at 02:37):

So you mean that in a transaction we can create an episode of care and a patient. Is it correct?

view this post on Zulip Lloyd McKenzie (Jun 28 2018 at 06:31):

Yes

view this post on Zulip Jenny Zhu (Jun 29 2018 at 06:33):

Thank you very much. It's clear for me now.


Last updated: Apr 12 2022 at 19:14 UTC