Stream: implementers
Topic: Transaction Bundle with Provenance
Joel Francis (Aug 25 2020 at 20:01):
Hi,
I have created a transaction-bundle that contains an entry for a provenance resource. The target for this provenance is the transaction bundle itself. I have tried this on test.fhir.org/r4 and while the transaction response is successfully generated, I cannot seem to find the original transaction bundle.
I supplied the bundle.id (UUID) the same as the one to be referenced in the provenance.target .
Does this approach seem right?
Thanks,
Joel, @Alex Goel
Lloyd McKenzie (Aug 25 2020 at 20:09):
There's currently no mechanism for a Bundle.entry to point to the Bundle - the Provenance would need to be sent in an HTTP header.
Vassil Peytchev (Aug 25 2020 at 20:09):
(deleted)
Eric Haas (Aug 25 2020 at 20:37):
why not a transaction as discussed here both approaches would seem to work...
Eric Haas (Aug 25 2020 at 20:38):
i.e one entry = the bundle another the provenance.
Eric Haas (Aug 25 2020 at 20:38):
but header is another option....
Vassil Peytchev (Aug 25 2020 at 21:39):
In your example, you have a transaction for the explicit purpose to execute the $process-message command, and the Provenance.target is the message Bundle entry within the transaction. Can you have a transaction that just posts a transaction?
Eric Haas (Aug 26 2020 at 00:25):
@Vassil Peytchev I think the intent is here is to post a transaction to add the bundle provenance. In my case, I followed your advice and just added provenance for the messageheader to the bundle.
Joel Francis (Aug 26 2020 at 13:49):
Thanks all. I think we will try the X-provenance header approach.
Joel Francis (Aug 26 2020 at 14:48):
Hi,
Having tried the X-provenance HTTP header and even after reading the specification, I am unclear on the outcomes.
I have the custom header with the provenance in JSON format and the Transaction Bundle in the body of the POST.
I have used test.fhir.org/r4 and successfully posted the bundle (having received a transaction response) but there was no sign of the provenance being created in the response unlike the other resources that were successfully created.
EDIT: we were able to find the provenance but none of the targets were created. I also could not find the X-Provenance support in the server metadata. Are there any servers capable of processing the provenance header???
Any advice?
Thank you in advance.
Grahame Grieve (Aug 26 2020 at 20:20):
can you create a POSTman example of what you are submitting and send it to me? I will debug on the server
Joel Francis (Aug 26 2020 at 22:08):
Grahame Grieve said:
can you create a POSTman example of what you are submitting and send it to me? I will debug on the server
@Grahame Grieve sent via messaging. Thank you
Alex Goel (Sep 02 2020 at 15:16):
@Grahame Grieve Do you think we could do the same transaction with a Composition? Another suggestion was to put a Bundle in a Bundle with a Provenance in the parent Bundle pointing to the child Bundle
Grahame Grieve (Sep 02 2020 at 20:14):
I did resolve this. I will try and get a server upgrade in place today or tomorrow
Last updated: Apr 12 2022 at 19:14 UTC