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

Sorting by -lastUpdated results in "unknown sort parameter" #99

Open
plynchnlm opened this issue Apr 17, 2019 · 0 comments
Open

Sorting by -lastUpdated results in "unknown sort parameter" #99

plynchnlm opened this issue Apr 17, 2019 · 0 comments

Comments

@plynchnlm
Copy link

I would like to retrieve the last 10 QuestionnaireResponses for a Patient, which I do by sorting by -lastUpdated (i.e., descending, with most recently modified first). This results in a 500 error. Interestingly, if I change "-lastUpdated" to "lastUpdated" (ascending order) it accepts the parameter name. I think there is a bug in handling the "-" prefix. Here is an example URL that shows the error:

http://test.fhir.org/r4/QuestionnaireResponse?subject=Patient%2Fihe-pcd&_include=QuestionnaireResponse%3Aquestionnaire&_sort=-_lastUpdated&_count=10

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

1 participant