Skip to content

[RAA-9579]-[]-[A031 shortlist editable by SPC/SPCA]-[RK] - #2870

Open
rkacn wants to merge 1 commit into
feature/RAA-9284-RRfrom
feature/RAA-9579_A031_shortlist_access
Open

[RAA-9579]-[]-[A031 shortlist editable by SPC/SPCA]-[RK]#2870
rkacn wants to merge 1 commit into
feature/RAA-9284-RRfrom
feature/RAA-9579_A031_shortlist_access

Conversation

@rkacn

@rkacn rkacn commented Sep 1, 2026

Copy link
Copy Markdown

Summary

  • Routine Change
  • ❗ Breaking Change
  • 🤖 Operational or Infrastructure Change
  • ✨ New Feature
  • ⚠️ Potential issues that might be caused by this change

Add any other relevant notes or explanations here. Remove this line if you have nothing to add.

Reviews Required

  • Dev
  • Test
  • Tech Author
  • Product Owner

Review Checklist

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

  • I have reviewed the changes in this PR and they fill all or part of the acceptance criteria of the ticket, and the code is in a mergeable state.
  • If there were infrastructure, operational, or build changes, I have made sure there is sufficient evidence that the changes will work.
  • I have ensured the changelog has been updated by the submitter, if necessary.

@rkacn
rkacn requested a review from a team as a code owner September 1, 2026 08:57
@rkacn
rkacn force-pushed the feature/RAA-9579_A031_shortlist_access branch from 1edf91c to fae1dcf Compare September 1, 2026 08:58
@rkacn
rkacn changed the base branch from develop to feature/RAA-9284-RR September 2, 2026 08:29
@rkacn
rkacn force-pushed the feature/RAA-9579_A031_shortlist_access branch from fae1dcf to 9972c07 Compare September 2, 2026 08:35
@rkacn
rkacn force-pushed the feature/RAA-9579_A031_shortlist_access branch from 9972c07 to c2436d8 Compare September 4, 2026 14:27
@rkacn
rkacn requested review from nicolebalmer1-nhs and a lite review from Copilot September 4, 2026 14:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The updated A031 endpoint spec introduces OBO support but needs small consistency and wording fixes to align with existing header conventions and improve clarity.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the STU3 OpenAPI contract for the A031 “Change shortlist” endpoint to support service provider roles (including SPCA acting on behalf of SPC) and to document an additional 422 error condition.

Changes:

  • Added INVALID_STATE to the A031 422 (Unprocessable Entity) error-code table.
  • Extended A031 documentation to include SERVICE_PROVIDER_CLINICIAN / SERVICE_PROVIDER_CLINICIAN_ADMIN and added guidance for SPCA “on behalf of” usage.
  • Added the OnBehalfOfUserID request header parameter to A031.
File summaries
File Description
specification/components/stu3/schemas/responses/changeShortlist/422Response.yaml Adds INVALID_STATE to the documented 422 error codes for the change-shortlist response.
specification/components/stu3/schemas/endpoints/a031-change-shortlist.yaml Expands supported roles, documents SPCA OBO usage, and adds the OnBehalfOfUserID header to the endpoint parameters.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


You can check to see what referral letter information has already been added to a referral by using [[HYPERLINK_A005]], [[HYPERLINK_A007]], and [[HYPERLINK_A006]] endpoints where necessary.

When making a request as a `SERVICE_PROVIDER_CLINICIAN_ADMIN` (SPCA) use endpoint [[HYPERLINK_A040]] to determine which `SERVICE_PROVIDER_CLINICIAN` (SPC), the SPCA is allowed to act 'on-behalf-of'.
@@ -75,6 +81,7 @@ parameters:
- $ref: '../headers/request/BusinessFunction.yaml'
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.

2 participants