Skip to main content
PATCH
Update or retract a referral

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Optional. A unique value you choose for this request, such as a UUID. When sent, a retry with the same key returns the first answer instead of applying the change twice. See Retries and idempotency.

Minimum string length: 1

Path Parameters

clinic_id
string<uuid>
required
referral_id
string<uuid>
required

Body

application/json

A proposed change to a referral, or a retraction. It becomes a NEW pending submission; the referral does not change until clinic staff confirm it. A change is always reviewed, even when the clinic accepts new referrals automatically. You can change a referral only while the clinic has not acted on it: once staff have accepted, declined, scheduled, completed or cancelled it, the change is refused. The service can never be changed (a different service is a new referral). status accepts only entered_in_error, which proposes retracting the referral as sent in error and cannot be combined with other changes. A sender cannot accept, decline, schedule, complete or cancel a referral.

status
enum<string>
Available options:
entered_in_error
priority
enum<string>
Available options:
routine,
urgent,
asap,
stat
needed_by
string<date>

Not earlier than yesterday.

reason
object
clinical_summary
string
Required string length: 1 - 8000
requester
object
client_reference
string
Maximum string length: 200
origin_assistant_name
string
Maximum string length: 200

Response

Accepted - waiting for clinic staff.

data
object
required

What the clinic's review queue holds for something this key sent: one outside record waiting for, or already past, a clinician's decision.