How can I transer data from one patient to another?
Hi,
I have a scenario where I recognize that I have a duplicate patient in FHIR , both have a different set of data attached to them (Specimens / Observations / Conditions) and I want to transfer all the data from patient X to patient Y, and maybe mark patient X as not relevant or delete it IDK yet.
since Patch currently supports only single patch,
"The Conditional Patch query identified more than one resource."
I can't use it as a bulk, but I need to loop through all the resources I find that are connected to patient X,
so I guess my question is how would you do it?
Product version: IRIS 2023.3
I would get a bundle from patient X for each resource that you want to move and send a post for the patient Y with a bundle formed by the resources that you got modifying the reference to the patient Y.
there should be a merge operation on the fhir server for this, or you should be able to use the link element on a patient to assign one as the mast record. See https://www.hl7.org/fhir/patient.html or https://www.hl7.org/fhir/patient-operation-merge.html for more info.
Thanks Dean, I don't see merge operation in R4, only on R5.
I didn't want to link between patients, I wanted to pass all data from one patient to another and to mark the "empty" patient as inactive
Duplicate Patient resources are approached by use of the Patient.link element (the last element in the Patient Resource) . Patient - FHIR v4.0.1 (hl7.org)
See sections 8.1.4 and 8.1.4.1 below Resource Content.
Thanks Russ,
I didn't want to link between patients, I wanted to pass all data from one patient to another and to mark the "empty" patient as inactive