FHIR Chat · Fhir net api - delete all resources of a type · dotnet

Stream: dotnet

Topic: Fhir net api - delete all resources of a type


view this post on Zulip Stine Johansen (Oct 29 2020 at 07:20):

Hi, anyone know how I can do a batch deletion of all or multiple resources of a certain resource type? I'm using MS FHIR API which does not support transactions, so that's a no-go.

view this post on Zulip Mirjam Baltus (Oct 29 2020 at 09:01):

You can check the CapabilityStatement for the 'conditionalDelete' interaction on the resource type. If that states 'multiple', the server will be able to delete multiple resources in one go. In that case, you could try a 'DELETE <ms_server>/<resource_type>' to try and delete all resources of that type.

view this post on Zulip Stine Johansen (Oct 29 2020 at 10:19):

My server does not support that, unfortunately

view this post on Zulip Gino Canessa (Oct 29 2020 at 15:14):

@Brendan Kowitz @Caitlin Voegele

view this post on Zulip Brendan Kowitz (Oct 29 2020 at 17:40):

Is the requirement that all deletes happen in a Transaction? If not, the managed service does support Batch type Bundles

view this post on Zulip Stine Johansen (Oct 30 2020 at 07:25):

No, it was just one way I had found that looked like it would solve it. Thank you for the tip, I'll check it out.


Last updated: Apr 12 2022 at 19:14 UTC