Stream: implementers
Topic: representing a resource as deleted
Simon Yun (Feb 14 2019 at 00:20):
hello — and requisite apologies if this question has already been asked/answered, but i did a few searches and came up empty.
i want to be able to return resources as having been deleted on a query like /fhir/Patient/?_lastUpdated=gt2019-02-13T16:00:00Z
.
is there a recommended/specific way to express this in FHIR? the closest thing i can think of is to use an isDeleted
modifier extension, but i'm wary of doing that for all the reasons modifiers are tricky.
thanks in advance!
Lloyd McKenzie (Feb 14 2019 at 01:15):
The only way to return deleted resources is with the isDeleted modifier. The whole point of deleting a resource is ensuring it doesn't come back in a query response. Modifiers aren't necessarily tricky, they're just less widely supported.
Brian Postlethwaite (Feb 15 2019 at 02:58):
Given no other parameters, probably better to use _history which has the deletions in it too.
Lloyd McKenzie (Feb 15 2019 at 03:06):
However, that's going to return every version from every change that's happened since you last looked.
Last updated: Apr 12 2022 at 19:14 UTC