Is there no dependency between FHIR resources in FHIR service?

P, Pioline (Cognizant) 195 Reputation points
2023-10-09T12:48:33.1966667+00:00

Hi

I am using Azure Health Data Services to push data to the repository.

I have two FHIR resources: Patient and Claim.

The Claim resource has a reference property that refers to a Patient FHIR resources.

Now, suppose if I DELETE the patient in the FHIR repo, and the claim resource that is referencing the Patient is still present.

Ideally, dependency error should pop up.
But, I am not getting any such error. Is this correct? Am I missing something here?

Kindly assist me in this.

Azure Health Data Services
Azure Health Data Services
An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.
149 questions
0 comments No comments
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 22,121 Reputation points
    2023-10-10T18:11:37.3666667+00:00

    @P, Pioline (Cognizant) Thanks for reaching out. The FHIR service does not enforce referential integrity among FHIR resources.

    This means that if you delete a Patient resource, any Claim resources that reference the deleted Patient will not be automatically deleted or throw an error. This is by design, as FHIR aims to be a flexible model that can handle real-world healthcare scenarios. In many cases, resources may reference other resources that are no longer available or have been deleted.

    let me know incase of further queries, i would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topic

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful