What is FHIR's Conditional Update? A Mechanism for Simultaneous Search and Update
Conditional Update - Oracle Help Center Oracle Help Center The
Summary
In FHIR, the Conditional Update mechanism allows resources to be updated using a search URL instead of a direct ID. The server first performs a search; if a resource matches, it is updated, otherwise, a new resource is created.
Details
This article explains the 'Conditional Update' feature within FHIR Bundle transactions. Typically, updating a resource requires supplying a specific ID. However, this mechanism allows clients to perform both existence checking and update operations simultaneously by providing a search URL. Operationally, the server first executes a search using the provided search URL. If resources matching the search are found, they are updated (using the PUT method). Conversely, if no resources match the search criteria, a new resource is created. This process significantly simplifies data manipulation while maintaining consistency and ensuring safe operations. The provided JSON example illustrates this pattern for resources like Patient or Observation. By specifying search criteria in `request.url` (e.g., `identifier=...`), the transaction ensures that the correct record is targeted, making it a crucial advanced pattern for FHIR data exchange, especially useful when synchronizing reference IDs across multiple disparate systems.
Technology Note
FHIR(Fast Healthcare Interoperability Resources)は医療データ交換の国際標準。このエントリの関連技術: FHIR
Original content copyright by respective publishers