Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for historical data sorting #4245

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

None yet

1 participant