Skip to main content
POST
Submit 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
required

A unique value you choose for this request, such as a UUID. Sending the same key again returns the first answer instead of doing the work twice, so a timed-out request is safe to retry. Reusing a key for a different request is refused with 409 idempotency_key_conflict, and retrying while the first request is still running with 409 idempotency_key_reused. See Retries and idempotency.

Minimum string length: 1

Path Parameters

clinic_id
string<uuid>
required

Body

application/json

A referral to this clinic, submitted for clinic staff to confirm. It does not appear on the clinic's referral list until they do (unless the clinic has chosen to accept such submissions automatically); either way it lands as received and the clinic decides whether to accept, decline or schedule it. This is a clinical referral, not the clinic referral programme. Send code on service or reason only with its system. client_reference (your own id, up to 200 characters) makes a second submission of the same record with different content a client_reference_conflict.

patient_id
string<uuid>
required
service
object
required
reason
object
required
priority
enum<string>
default:routine
Available options:
routine,
urgent,
asap,
stat
needed_by
string<date>

Not earlier than yesterday.

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. If the clinic has chosen to accept this kind of item from your key or connection without review, the body already shows review_status: confirmed and accepted_automatically: true; read review_status, not the status code.

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.

idempotent_replay
boolean

Present and true when this Idempotency-Key was already used and the original submission is returned.