Open LodewijkSioen opened 1 year ago
Thanks for reporting this @LodewijkSioen. @fhibf can you take a look at this?
Related (but perhaps for another issue): I've been looking at your FhirClient and noticed that it is not possible to add the provenance header to the following operations:
Also, as a user of the Client, it would be nice to pass a Provenance
object instead of a string.
One more thing to think about: If using the X-Provenance
header on a (transaction) bundle, should you create one Provenance
per resource created/updated. Or should you create only one Provenance
with multiple references in Target
.
(I would think the last one)
@LodewijkSioen thanks for reaching out ! Provenance header is used during PUT and POST. Will add work item in the backlog to address the issue related to not enabling for Patch, PostBundle and Post. #110273
FHIR spec does not call out support for Delete operation. https://www.hl7.org/fhir/provenance.html. For the question related to the creating one provenance per resource or one provenance with multiple references in the target, have reached out to FHIR community.
Another thing: I was expecting the target
in the Provenace resource to be version-specific. I was suprised to find out it wasn't.
@LodewijkSioen - thanks for reporting. In the spec, it states target usually should be version specific. Item created in the backlog: #112074
Is this a blocker for you or nice to have?
I would consider it a blocker, but I have a workaround by adding Provenance manually to a transaction bundle. It also misses the version, but at least I have a Provenance resource for everything in the Bundle.
Describe the bug When adding the
X-Provenance
header to a POST of a Transaction Bundle, only the first resource that is created or updated will have a linked Provenance.FHIR Version? R4
Data provider? SQL Server
To Reproduce Steps to reproduce the behavior:
Add some resources in a Transaction:
Only the patient will have a linked Provenance.
Expected behavior Every Resource that has been created or updated by the transaction should have a linked Provenance.
Actual behavior Only the first Resource created or updaten by the transaction has a linked Provenance.
AB#104579