Neeraj Shrivastava Thank you for posting your question in Microsoft Q&A. When you delete a specific resource (patient record in this case), the resource is soft deleted (hardDelete
as false) and it will no longer be returned in search. This has been described in detail in doc: Delete (Hard + Soft Delete) and if you want to fully delete the resource, then pass parameter ?hardDelete=true
. Also, note the historic versions will still be available regardless of hardDelete
and you can either recover with PUT/POST operation described in Recovery of deleted files or purge it with $purge-history
operation.
Based on your description, you got completely different patient ID, then it is different resource. It is also possible that POST operation was made to create a new resource with the same information and still be considered as new resource based on ID. You can enable Diagnostic settings in your FHIR service View and enable diagnostic settings in the FHIR service and track the operations for any operations. I hope this helps with your question and let me know if you have any questions.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.