Hi,
Is there a way to tell the FHIR server to avoid adding duplicate resources? We have a system that extracts clinical data from hospital systems, converts it to FHIR resources and adds them to the FHIR database. The system, in its current form, may read the very same data (e.g. lab tests, diagnostic reports) multiple times, but should not create duplicate resources. What is the suggested approach for that?
Of course, the system could fetch existing resources and compare them to the data it has read from the hospital systems, in order to avoid creating duplicate resources, but doing this for all the types of data is a lot of code. I hope there is generic mechanism for this in FHIR, such as telling the FHIR server to reject any "create" requests if a resource with the exact same data already exists - similar to the option in SQL to prevent adding a new row to a table if such a row already exists.
Thanks,
Shlomy