Skip to content

Sandbox responses for Cancel referral (A036, FHIR STU3) requests "Cancelled Referral (Provider) without Comment (Comment Not Mandatory)" and "Cancelled Referral with Triage Response" return a 422 code. #2773

@craigdavidson0

Description

@craigdavidson0

Describe the bug
Sandbox responses for Cancel referral (A036, FHIR STU3) requests "Cancelled Referral (Provider) without Comment (Comment Not Mandatory)" and "Cancelled Referral with Triage Response" return a 422 code.

To Reproduce
Use the sandbox request templates "Cancelled Referral (Provider) without Comment (Comment Not Mandatory)" or "Cancelled Referral with Triage Response".

Additional context
I had a quick look through the codebase, it could be due to missing mapping for the requests "bookedOutsideCabWithoutComment.json" and "outpatientService.json" in the getResponseForCancelReferral method within mockResponseProvider.js.
https://github.com/NHSDigital/e-referrals-service-api/blob/develop/sandbox/src/routes/stu3/services/mockResponseProvider.js#L393-L404

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions