mr_andy_p
03/11/2024, 4:48 PMPatient with id=123 and then an Encounter.subject that contains a Reference to Patient123. Now, if I delete Patient123, is there any setting/config that would ensure that the Encounter would also be removed automatically along with any other objects that reference?
Potential Use Cases:
- Removing duplicate Patient
- Cleaning up Test Data
I've considered the below as a possible solution:
- Subscription to listen on Patient delete and go delete all Resources with a Reference to the deleted Patient
Any thoughts, resources, or further questions would be greatly appreciated!rahul1
03/11/2024, 6:35 PMmr_andy_p
03/11/2024, 7:05 PM