FHIR Chat · If-Match for DELETE · implementers

Stream: implementers

Topic: If-Match for DELETE


view this post on Zulip Ivan Dubrov (Sep 18 2018 at 22:10):

The delete interaction specification doesn't say anything about If-Match for DELETE (https://build.fhir.org/http.html#summary). However, it looks to me that it would make sense to support it in the same way as for update / patch (only delete if version matches expected).

What do you think?

view this post on Zulip Shamil Nizamov (Sep 20 2018 at 16:31):

The delete interaction specification doesn't say anything about If-Match for DELETE (https://build.fhir.org/http.html#summary). However, it looks to me that it would make sense to support it in the same way as for update / patch (only delete if version matches expected).
What do you think?

Conditional delete is based on some selection criteria. If no or one match then the server does a usual delete. If more than one match the server may delete all or return an error. Does this cover what you are trying to achieve with If-Match?

view this post on Zulip Ivan Dubrov (Oct 02 2018 at 17:40):

Not really, what I want is to say "DELETE this resource ONLY if it's current version is XYZ"

view this post on Zulip Dennis Patterson (Oct 02 2018 at 17:50):

We discussed this some in Cologne with https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=16448 . I think conditional deletes make sense and are part of http.. there just weren't a lot of active users in the room to speak to actually using it. (read the comments)

view this post on Zulip Michael Donnelly (Oct 02 2018 at 18:40):

Ah, I remember that one.


Last updated: Apr 12 2022 at 19:14 UTC