In this update, we have introduced a feature allowing the sorting of historical data based on the '_sort' parameter. A method, 'getHistorySortOrder', has been added to validate the provided _sort parameter and a new field, 'historySortOrder', has been attached to the FHIRHistoryContext class.
Now system supports following queries.
Descendion order by lastUpdated
GET {ResourceName}/{id}/_history/?_sort=-_lastUpdated
Ascending order by lastUpdated
GET {ResourceName}/{id}/_history/?_sort=_lastUpdated
In this update, we have introduced a feature allowing the sorting of historical data based on the '_sort' parameter. A method, 'getHistorySortOrder', has been added to validate the provided _sort parameter and a new field, 'historySortOrder', has been attached to the FHIRHistoryContext class.
Now system supports following queries.
Descendion order by lastUpdated
GET {ResourceName}/{id}/_history/?_sort=-_lastUpdated
Ascending order by lastUpdated
Closes Issue #4237