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
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