FHIR Chat · Can we Delete all Observations related to Observation? · implementers

Stream: implementers

Topic: Can we Delete all Observations related to Observation?


view this post on Zulip Karimulla (Oct 31 2017 at 11:50):

Hi,

I want to delete all related observations objects while deleting Observation from Server in a single call instead of getting related reference ids and make another call.

Currently if I want to delete an observation object, I am preparing an array of ids from related from delete observation object and deleting observation from server call. and after that I am making server call for deleting Observations of particular ids from related.

Is there any way to delete all Observations related to that delete Observation.

view this post on Zulip Ben Spencer (Oct 31 2017 at 12:02):

you can delete the related ones in one go if the server supports deleting multiple resources with a conditional delete: https://www.hl7.org/fhir/http.html#2.21.0.13.1

view this post on Zulip Brian Postlethwaite (Nov 10 2017 at 08:13):

More likely you'd be marking them with an appropriate status code (reason why they are going) rather than deleting them. And for that likely to be using a patch?


Last updated: Apr 12 2022 at 19:14 UTC