Skip to content

Conversation

berkant-k
Copy link
Contributor

@berkant-k berkant-k commented Jan 6, 2024

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

Closes Issue #4237

berkant-k and others added 2 commits January 6, 2024 12:51
This update allows sorting of historical data based on the '_sort' parameter. A new method, 'getHistorySortOrder', validates the provided _sort parameter and a new field, 'historySortOrder', has been added to the FHIRHistoryContext class. Additionally, the error message for invalid _sort parameter has been improved.

Signed-off-by: Berkant KARDUMAN <berkant.karduman@tigahealth.com>
Signed-off-by: Berkant KARDUMAN <berkant.karduman@tigahealth.com>
@berkant-k berkant-k mentioned this pull request Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants