Written by

Question Eyal Levin · Feb 25, 2024

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

Comments

Luis Angel Pérez Ramos · Feb 25, 2024

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.

0
Eyal Levin  Feb 28, 2024 to Dean White

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

0
Russ Leftwich · Feb 26, 2024

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.  

0
Eyal Levin  Feb 28, 2024 to Russ Leftwich

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

0