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

_sort in _history #4237

Open
Sundaresan-JSE-PMS opened this issue Sep 19, 2023 · 2 comments
Open

_sort in _history #4237

Sundaresan-JSE-PMS opened this issue Sep 19, 2023 · 2 comments

Comments

@Sundaresan-JSE-PMS
Copy link

Hi.
I'm having an observation resource and when I try to get it's history with the query below, I get the lastUpdated history first. But what I want is the first updated history of that particular day/time period. I tried _sort=-_lastUpdated, but I'm getting the following error:
FHIRPersistenceException: Unrecognized history parameter: '_sort'

How do I solve this?

API Query I used to get the history:
http://<IP ADDRESS>:9443/fhir-server/api/v4/Observation/18a9731c288-08443bac-c0f7-40ee-8f5a-94b2454f8cc6/_history?_count=1&_since=2023-09-19T00:00:00Z

Environment:
Docker image of the server in an Ubuntu machine.

Thanks!

@berkant-k
Copy link
Contributor

berkant-k commented Jan 6, 2024

I created PR #4245 to address this issue.

@Sundaresan-JSE-PMS
Copy link
Author

Hi @berkant-k . Thanks for the PR. This should solve the problem I'm having.

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

No branches or pull requests

2 participants