Stream: implementers
Topic: Linking resources in create transaction
Rick Riemer (May 19 2016 at 08:49):
I'm working on implementing a transaction with multiple create interactions. I'm wondering how to link resources in the transaction.
I'm trying to create a DocumentReference with a Binary. Both new. The 'create' interaction description (in the HTTP section) clearly states that the resources should not have ids, as these will be assigned by the server. However, how would I link to the Binary resource from the DocumentReference resource if I do not yet have an id for the Binary resource?
Is there any provision in FHIR for this?
BTW: This is within the scope of IHE MHD. In IHE XDS there is a provision that the source can use temporary ids, which will be reassigned to actual ids once created. Does FHIR have something similar?
Ewout Kramer (May 19 2016 at 09:06):
Hi Rick, they cannot have id's, but the Bundle.entry which contains the resource CAN have a fullUrl element. If you make this a uri, other resources can reference the to-be-created resource by this uri, and the server will resolve and update such references while processing the batch. See http://hl7.org/fhir/bundle-transaction.xml.html for an example of such a fullUrl.
Rick Riemer (May 19 2016 at 10:41):
Thanks. That makes sense. I will submit a request to IHE to include a statement like this in the MHD profile for the ITI-65 Provide Document Bundle transaction (which is in ready-for-trial-implementation state), as it was not immediately clear to me.
Last updated: Apr 12 2022 at 19:14 UTC