Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Deleting a patient via transaction while deleting all of their resources sometimes fails #253
I'm not sure whether order is important, but if you pull all of a patient's resources, then create a bundle deleting all of them, including the patient, it can fail because one of the resources being deleted references the patient.
https://www.hl7.org/fhir/http.html#transaction states that "The outcome of the processing the transaction SHALL NOT depend on the order of the resources in the transaction."
Removing the patient from the initial transaction then deleting the patient after the transaction works, so there's definitely not some lingering "other" resource holding onto the Patient.