Stream: implementers
Topic: change _sort to descending
Michael E Campbell (Jul 30 2020 at 07:11):
Hello. My first question on FHIR Zulip so please let me know if I am not following an appropriate protocol or if there is a stream better suited for understanding specifications. I have created a query and I would like for the bundle to sort the resources by resource id. The bundle has sorted them by ascending order, which I assume is the default, but I cannot locate in the specifications http://hl7.org/fhir/search.html#_sort how to change the sort order to descending with the valid syntax.
Grahame Grieve (Jul 30 2020 at 07:16):
question + place is good.
Grahame Grieve (Jul 30 2020 at 07:17):
_sort=-_id
Michael E Campbell (Jul 30 2020 at 15:41):
Thanks Grahame. This is an honor. I sorted it out with an instructor. _sort=-_id for decreasing order or the default of _sort=_id for increasing order.
Grahame Grieve (Jul 30 2020 at 23:41):
ah yes. _id
Last updated: Apr 12 2022 at 19:14 UTC