How to Bulk Delete FHIR Resources | Cloud Healthcare API
Excluir recursos FHIR em massa | Cloud Healthcare API - Google Cloud Documentation
Summary
This article details the process of bulk deleting multiple FHIR resources from a FHIR store using the Google Cloud Healthcare API. It explains how filtering by criteria like resource type and last updated time helps manage data efficiently and reduce costs.
Details
This guide describes the method for bulk deletion of FHIR resources using the `projects.locations.datasets.fhirStores.bulkDelete` method within the Cloud Healthcare API. This operation is handled as a Long Running Operation (LRO), allowing users to track its status using the returned `OPERATION_ID`. The user can specify target resource types (e.g., "Observation,Encounter") and criteria for deletion, such as an expiration date (`until`), along with an optional Google Cloud Storage destination (`gcsDestination`). This capability is highly useful for data lifecycle management and optimizing storage costs. The provided steps include concrete examples using REST API or PowerShell to send the initial POST request, followed by a GET request to check the LRO status. This ensures that large-scale FHIR data cleanup and governance can be achieved.
Original content copyright by respective publishers