-
Notifications
You must be signed in to change notification settings - Fork 3
VED-993 Fix error responses in API specification #1087
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
base: master
Are you sure you want to change the base?
Conversation
|
This branch is working on a ticket in the NHS England VED JIRA Project. Here's a handy link to the ticket: VED-993 |
|
| |--------------------------------------------------------------------------------------| | ||
| | 400 | Bad Request | Search parameter immunization.target is either missing or not in the expected format. | | ||
| | 400 | INVALID | Search parameter immunization.target is either missing or not in the expected format. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like what you've done in the 4XX-imms-create section above, consolidating multiple entries for various different flavours of validation error into a single entry. Perhaps we should do something similar here - it seems a bit unnecessary to state all of the different parameters which could contain an invalid value. A single entry of "Invalid or missing search parameter" would suffice



Summary
Primary change was to fix the schema for the OperationOutcome error responses. If you check the schema for any of the 4XX errors on our page, you will notice they are wrong and contain loads of superfluous information: https://digital.nhs.uk/developer/api-catalogue/immunisation-fhir-api#get-/Immunization
I have based my changes on the PDS FHIR API - https://digital.nhs.uk/developer/api-catalogue/personal-demographics-service-fhir#post-/Patient where the schema and examples reflect what the API does.
As an aside, when cross-referencing what we do against the actual FHIR specification, there are several problems. We can think about how/if we want to address this under VED-857.
Summary of changes:
Reviews Required
Review Checklist
ℹ️ This section is to be filled in by the reviewer.