Update Referral
Queues an update to an existing referral in the provider’s EMR system.
Path Parameter
- id (string, required): The Cobalt referral ID (UUID) returned by Create Referral or Get Referrals. The referral must already exist and have been created in the EMR.
Request Parameters
Supply one or more of the following fields. Omitted fields are left unchanged in the EMR — this is a partial update.- priority (string, optional): Referral priority —
routine,urgent, orstat. Case-insensitive:"Routine","URGENT", and"stat"are all accepted and normalized. - status (string, optional): Referral status label — e.g.
"Open","Pending","Internal Review","Insurance Auth","Addressed". See Status Values below. - reason (string, optional): Reason for the referral.
- notes (string, optional): Free-text notes on the referral.
400.Status Values
The set of valid statuses — and their exact labels — is specific to each EMR instance and organization, not a fixed global list. When you PATCH astatus, the value is resolved against that instance’s live status list at processing time.
Because of this, you can pass a human-friendly, title-cased label with spaces (e.g. "Internal Review") regardless of how the status is stored internally in the EMR. Matching is case- and spacing-insensitive.
If the supplied status does not match any status configured for the instance, the update fails and a referral.failed webhook is sent with error_type: "ecw_validation_failure".
status field returned by Get Referrals for existing referrals.Example Request
Update a Single Field
Example Response
- referral_id: Cobalt referral ID (UUID without dashes). Echoed back in the webhook payload so you can correlate the two.
- job_id: Job execution identifier for tracking the async operation.
Error Responses
Invalid Priority
Invalid Status
No Updatable Fields
Unexpected Fields
Invalid Referral ID
Referral Not Yet in the EMR
Referral Not Found
Webhook Notifications
When the update has finished processing, we send a webhook to your registered endpoint.Success
updated_fields lists the fields that were applied in this update.
Failure
error_type is only present for validation failures (e.g. an unrecognized status). Other failures omit it.Authorizations
Path Parameters
Cobalt referral ID (UUID). The referral must already exist and have been created in the EMR.
Body
Referral priority. Case-insensitive — "Routine", "URGENT", and "stat" are all accepted and normalized.
routine, urgent, stat Referral status label (e.g. "Open", "Pending", "Internal Review", "Insurance Auth", "Addressed"). The set of valid statuses is specific to each EMR instance/organization; the value is resolved against the instance's live status list at processing time. Case- and spacing-insensitive.
Reason for the referral.
Free-text notes on the referral.
Response
Referral update queued successfully