[RAA-9579]-[NB]-[A031 shortlist editable by SPC/SPCA]-[RK] - #2870
Conversation
1edf91c to
fae1dcf
Compare
fae1dcf to
9972c07
Compare
9972c07 to
c2436d8
Compare
There was a problem hiding this comment.
🟡 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_STATEto the A031 422 (Unprocessable Entity) error-code table. - Extended A031 documentation to include
SERVICE_PROVIDER_CLINICIAN/SERVICE_PROVIDER_CLINICIAN_ADMINand added guidance for SPCA “on behalf of” usage. - Added the
OnBehalfOfUserIDrequest 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' | |||
There was a problem hiding this comment.
Won't apply. Reason: manual tests indicated that the endpoint doesn't reject the request even if the header is missing.
Summary
Add any other relevant notes or explanations here. Remove this line if you have nothing to add.
Reviews Required
Review Checklist
ℹ️ This section is to be filled in by the reviewer.