HealthRecordCommunity
FHIR🌏 International🏛 Google CloudEnriched

FHIR Referential Integrity: Handling and Caveats in Cloud Healthcare API

FHIR 參考完整性| Cloud Healthcare API

June 3, 2025Google Cloud

Summary

Google Cloud explains the concept of referential integrity within FHIR stores used with the Cloud Healthcare API. It details that operations like creating, updating, or deleting resources will fail if they contain references to non-existent resources.

Details

This article provides a detailed explanation of 'Referential Integrity' when managing FHIR data using the Cloud Healthcare API. Generally, the FHIR store enforces this integrity for references to other resources within the same store; operations containing invalid references will fail. However, exceptions exist, such as external URL references or logical references specified by merchant IDs, which are exempt from this constraint. Furthermore, certain API methods (e.g., Resource-purge) may bypass integrity checks, and the FHIR import method does not enforce it, requiring careful handling to maintain data consistency. The article also highlights a strict limitation on 'Containing Resources': every containing resource must be referenced somewhere within its contained resources, and all such references must be valid. Understanding these technical constraints is crucial for building stable FHIR systems.

📰
Read Original Article
cloud.google.com

Original content copyright by respective publishers