Skip to content

[NDR-288] Provide fhir upload nhs id error details#926

Merged
megan-bower4 merged 6 commits intomainfrom
NDR-288
Jan 19, 2026
Merged

[NDR-288] Provide fhir upload nhs id error details#926
megan-bower4 merged 6 commits intomainfrom
NDR-288

Conversation

@megan-bower4
Copy link
Copy Markdown
Contributor

@megan-bower4 megan-bower4 commented Dec 4, 2025

Overview

Jira ticket: NDR-288

Description

This change allows an optional details parameter to be passed to LambdaError. This gives the chance to provide additional details if necessary.
It is utilised for providing additional context when there is an fhir upload error due to an invalid formatted NHS number.

Context

The apigateway response on post fhir document reference was not very useful when an invalid formatted NHS number was given. This change allows the details to be presented to the user, without the need to dig into lambda logs/errors.

Checklist

Tasks for all changes:

  • 1. I have linked this PR to its Jira ticket.
  • 2. I have run git pre-commits.
  • 3. I have added and/or updated relevant tests.
  • 4. I have updated relevant documentation.
  • 5. I have considered the cross-team impact (and have PR approval from both Core & Demographics if necessary).
  • 6. I have successfully deployed this change to a sandbox and witnessed unit and e2e tests passing:

@megan-bower4 megan-bower4 changed the title [NDR-288] WIP - Give upload nhs id error details [NDR-288] Provide fhir upload nhs id error details Jan 13, 2026
@megan-bower4 megan-bower4 marked this pull request as ready for review January 13, 2026 08:09
@megan-bower4 megan-bower4 requested review from a team as code owners January 13, 2026 08:09
tim-knight-nhs
tim-knight-nhs previously approved these changes Jan 13, 2026
PedroSoaresNHS
PedroSoaresNHS previously approved these changes Jan 15, 2026
lillie-dae
lillie-dae previously approved these changes Jan 15, 2026
Comment thread lambdas/enums/lambda_error.py
Comment thread lambdas/utils/lambda_exceptions.py
Comment thread lambdas/utils/lambda_exceptions.py
Comment thread lambdas/enums/lambda_error.py
tim-knight-nhs
tim-knight-nhs previously approved these changes Jan 16, 2026
lillie-dae
lillie-dae previously approved these changes Jan 16, 2026
@github-actions
Copy link
Copy Markdown

Code security issues found

View full details here.

@sonarqubecloud
Copy link
Copy Markdown

@megan-bower4 megan-bower4 merged commit 0bd8905 into main Jan 19, 2026
17 of 19 checks passed
@megan-bower4 megan-bower4 deleted the NDR-288 branch January 19, 2026 09:12
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.

6 participants