Library

Browse and search developer information

A013: Accept Referral

API

Request Type: POST

URL: https://mhsin.{{env}}.ers.ncrs.nhs.uk/ers-api/v1/ReferralRequest/{{UBRN}}/$ers.accept

 

Description

This API lets the professional user accept the Referral that has already been created and not reviewed.

Input

Header: Provide ASID for the end-point system, Session Key and VersionId.

Example

XAPI_ASID:200000000220

HTTP_X_SESSION_KEY:{{sessionKey}}

Accept:application/json+fhir

If-Match: W/”n”

 

Note: n is the VersionId of the Referral and this can be retrieved by fetching the Referral details.

 

Output

If successful the referral is accepted. The response code 200 (OK) is returned. This response has no body.

Code Sample

Refer to ‘API Client Demonstrator tool’ Source code