GoogleCloudPlatform / GoogleCloudPlatform/python-docs-samples

FHIR Batch Delete Based on a List of Resource IDs in Google Cloud Healthcare API

Đang mở
#12,012 0 bình luận 0 reaction 1 người được giao Được @nicain nhận Xem trên GitHub
priority: p3 samples triage me type: feature request
Ngôn ngữ chính
Jupyter Notebook
Star
8.1k
Fork
6.7k
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
16

Mô tả

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

**The issue you're having must be related to a file in this repository.** We are unable to provide assistance for issues unrelated to samples in this repository.

Please include as much information as possible:

## Is your feature request related to a problem? Please describe.

I'm working on a project using the Healthcare API FHIR Storage and I'm frustrated by the difficulty of deleting all resources for a customer. The current samples include a delete_resource() function, but due to data integrity constraints in FHIR Storage, I cannot directly delete a resource if it is referenced by another resource.

## Describe the solution you'd like.

I created a function called batch_delete() that receives a list of resource IDs to be deleted in a single transactional call to the Healthcare API. This function will delete all specified resources at once, ensuring transactional integrity in the FHIR Storage.

## Describe alternatives you've considered.

I have tried using the delete_resource() function from [this sample](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/healthcare/api-client/v1beta1/fhir/fhir_resources.py), but I encountered issues due to integrity constraints.

## Additional context.

My idea is to contribute to this repository by creating the batch_delete() function. Additionally, I could develop a batch_deletion_by_patient_id() function, which would be highly beneficial.

Thanks!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.