Skip to content

Conversation

@dlzhry2nhs
Copy link
Contributor

@dlzhry2nhs dlzhry2nhs commented Dec 30, 2025

Summary

  • Routine Change

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:

  • Single correct schema and example now in use for all 4XX errors.
  • Corrected the tables to reflect the actual code we will get back from the API for the different scenarios.
  • Added a 500 example to each of the endpoints.
  • Deleted all the obsolete schema items which were added (by AI?) for no good reason.

Reviews Required

  • Dev
  • Tech Author

Review Checklist

ℹ️ This section is to be filled in by the reviewer.

  • I have reviewed the changes in this PR and they fill all of the acceptance criteria of the ticket.
  • If there were infrastructure, operational, or build changes, I have made sure there is sufficient evidence that the changes will work.
  • If there were changes that are outside of the regular release processes e.g. account infrastructure to setup, manual setup for external API integrations, secrets to set, then I have checked that the developer has flagged this to the Tech Lead as release steps.
  • I have checked that no Personal Identifiable Data (PID) is logged as part of the changes.

@github-actions
Copy link
Contributor

This branch is working on a ticket in the NHS England VED JIRA Project. Here's a handy link to the ticket:

VED-993

@sonarqubecloud
Copy link

@dlzhry2nhs dlzhry2nhs changed the title VED-993 Fixerror responses in API specification VED-993 Fix error responses in API specification Dec 30, 2025
@dlzhry2nhs dlzhry2nhs temporarily deployed to internal-dev-sandbox December 30, 2025 16:29 — with GitHub Actions Inactive
@dlzhry2nhs dlzhry2nhs deployed to internal-dev-sandbox December 30, 2025 16:29 — with GitHub Actions Active
@dlzhry2nhs dlzhry2nhs deployed to internal-dev December 30, 2025 16:35 — with GitHub Actions Active
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