FHIR Chat · change _sort to descending · implementers

Stream: implementers

Topic: change _sort to descending


view this post on Zulip 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.

view this post on Zulip Grahame Grieve (Jul 30 2020 at 07:16):

question + place is good.

view this post on Zulip Grahame Grieve (Jul 30 2020 at 07:17):

_sort=-_id

view this post on Zulip 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.

view this post on Zulip Grahame Grieve (Jul 30 2020 at 23:41):

ah yes. _id


Last updated: Apr 12 2022 at 19:14 UTC