Create a new referral

Authentication

Authorizationstring
API Key authentication via header

Request

This endpoint expects an object.
patientobjectRequired
offeringIdstringRequired
senderHciCodestringRequired
HCI code of the institution authoring this referral.
senderInstitutionNamestringRequired
Name of the institution authoring this referral.
doctorMcrstringRequired
MCR number of the doctor authoring this referral.
doctorNamestringRequired
Name of the doctor authoring this referral.
doctorEmailstringRequired
Email of the doctor authoring this referral.
doctorContactNumberstringRequiredformat: "^[3689][0-9]{7}$"
Contact number of the doctor authoring this referral.
isSubsidisedbooleanRequiredDefaults to false
isUrgentbooleanRequiredDefaults to false
isDraftbooleanRequiredDefaults to false
In draft state, further edits can be made. No referral will be emitted to the service provider yet.
formResponseslist of objectsRequired
Form responses
referrerIdTypeenumOptional
Type of ID specified in referrerId.
Allowed values:
idstringOptionalformat: "uuid"
Referral ID
timeslotStartAtdoubleOptional
Timeslot start time, in milliseconds since epoch.

Response

idstring
senderobject
senderSystemenum
offeringobject
patientobject
referringDoctorobject
isSubsidisedboolean
isUrgentboolean
createdAtstring

Created at (ISO datetime)

updatedAtstring

Updated at (ISO datetime)

formResponseslist of objects
attachmentslist of objects
statusenum
isCancellableboolean
Whether this referral can be cancelled
noteslist of objects
formslist of objects
List of forms required to complete the referral
urlstring
URL to view the referral
clinicLicenseNumberstring
Clinic license number
clinicTypeenum
Clinic type
Allowed values:
clinicalInfostring
Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc.
timeslotStartAtstring

Timeslot start time (ISO datetime)

appointmentLocationstring
Appointment location

Errors

400
Referrals Upsert Request Bad Request Error
401
Referrals Upsert Request Unauthorized Error