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 #4244

Closed
wants to merge 3 commits into from

Conversation

berkant-k
Copy link
Contributor

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

Signed-off-by: Berkant KARDUMAN <karduman.berkant@gmail.com>
…ng user-names should fallow the same naming convention.

Signed-off-by: Berkant KARDUMAN <karduman.berkant@gmail.com>
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>
@berkant-k berkant-k closed this Jan 6, 2024
@berkant-k berkant-k deleted the issue-4237 branch January 6, 2024 09:59
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.

1 participant