Stream: implementers
Topic: Find the set of version IDs for a resource
Jean Duteau (Aug 12 2019 at 21:00):
I was giving a tutorial today and was asked if there was a way to find the set of version IDs for a given resource without getting the full details of the versions, i.e. through a simple history call. My initial answer was no and the set of parameters for history would lead me to believe that is the right answer, but I thought I'd ask the community before I give an absolute no as my answer. :)
David Hay (Aug 12 2019 at 21:27):
dang tricky questions!
Paul Church (Aug 12 2019 at 21:29):
Search has _summary for this purpose but I don't think that's supported by history.
Michael Lawley (Aug 13 2019 at 06:10):
_elements=id
?
Brian Postlethwaite (Aug 13 2019 at 06:31):
Close. But there is no description in elements on the syntax for nested props. Eg. Patient.name.family
Only defines for properties at the root.
So couldn't do patient/43/_history?_elements=meta.vetsionId
Josh Mandel (Aug 13 2019 at 12:54):
(Indeed, we had a discussion about this capability on last week's infrastructure call; while the specification does not define dotted paths in the _elements array, some servers do implement this behavior -- namely HAPI.)
Josh Mandel (Aug 13 2019 at 12:59):
But http://hapi.fhir.org/baseR4/_history?_elements=meta is standards compliant and pretty close to let us being asked for. It just includes a little bit of additional metadata :)
Lloyd McKenzie (Aug 20 2019 at 16:50):
@Jean Duteau Can you submit a change request to a) explicitly allow dotted paths in _elements; and b) make clear that _elements is supported for _history, and provide this as an example of how you might choose to use it?
Jean Duteau (Aug 20 2019 at 20:37):
Done
Brian Postlethwaite (Aug 30 2019 at 07:30):
I must reimplement the dotted notation.
Brian Postlethwaite (Aug 30 2019 at 07:32):
Had some interesting issues when you select a backbone type, does that mean you want all props of it, and none nested eg Patient?_elements=name,identifier
Last updated: Apr 12 2022 at 19:14 UTC