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

Empty Appointments Returns incorrect Response #24

Open
kchapple opened this issue Sep 12, 2016 · 1 comment
Open

Empty Appointments Returns incorrect Response #24

kchapple opened this issue Sep 12, 2016 · 1 comment
Labels

Comments

@kchapple
Copy link
Collaborator

kchapple commented Sep 12, 2016

@Leo24 If there are no results found in a search, the error should not be 404. The expected result is a Bundle resource with a count of Zero, and a return code of 200, not 404.

For example, when we search for a patient's appointments as in the request below, but the patient has no appointments in the result set, the returned JSON should be a Bundle with a count of Zero.
https://gponline-fhir.vu2vu.com/fhir/Appointment?patient=1

Actual
actual

Expected
expected

Currently, the response is a non-FHIR complaint error message. If in fact there is an error, then the response should be an OperationOutcome Resource. For example, when we query for a patient by ID, but no patient with that ID exists in the system.

OperationOutcome Response
operationoutcome

@kchapple kchapple added the bug label Sep 12, 2016
@Leo24
Copy link
Contributor

Leo24 commented Sep 12, 2016

#25
Fix empty appointments bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants