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.
clinicLicenseNumberstringOptional
Clinic license number
clinicTypeenumOptional
Clinic type
Allowed values:
clinicalInfostringOptional
Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc.

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
noteslist of objects
formslist of objects or null
List of forms required to complete the referral
urlstring or null
URL to view the referral
clinicLicenseNumberstring or null
Clinic license number
clinicTypeenum or null
Clinic type
Allowed values:
clinicalInfostring or null
Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc.
timeslotStartAtstring or null

Timeslot start time (ISO datetime)

appointmentLocationstring or null
Appointment location

Errors