Skip to main content
GET
Get Referrals

Query Parameters

  • start_date (string, required): Start of the date range in ISO format (YYYY-MM-DD)
  • end_date (string, required): End of the date range in ISO format (YYYY-MM-DD)
  • patient_mrn (string, optional): Filter by patient MRN
  • status (string, optional): Filter by referral status
  • priority (string, optional): Filter by priority — routine, urgent, or stat
  • direction (string, optional): Filter by referral direction — incoming or outgoing
  • ehr_id (string, optional): Filter by the referral’s EMR ID
  • receiving_line (string, optional): Filter by the receiving line — the fax number that received the document. Accepts any format; the value is canonicalized to E.164 before matching. Currently populated for ModMed EMA referrals only.
  • page (integer, optional): Page number (default: 1)
  • page_size (integer, optional): Results per page, max 100 (default: 100)
  • sort (string, optional): Sort order — pass created_at for ascending, defaults to descending by referral date

Example Request

Example Response

Response Fields

Top-Level Fields

  • success (boolean): Whether the request was successful
  • referrals (array): Array of referral objects
  • pagination (object): Pagination metadata

Referral Object

  • id (string): Cobalt referral ID (UUID without dashes)
  • ehr_id (string): The referral ID as it appears in the EMR
  • patient_ehr_id (string, nullable): The patient’s EMR ID
  • patient_mrn (string, nullable): Patient medical record number
  • patient_first_name (string, nullable): Patient first name
  • patient_last_name (string, nullable): Patient last name
  • patient_dob (string, nullable): Patient date of birth
  • from_provider_ehr_id (string, nullable): EMR ID of the referring provider
  • from_provider_name (string, nullable): Name of the referring provider
  • to_provider_ehr_id (string, nullable): EMR ID of the provider being referred to
  • to_provider_name (string, nullable): Name of the provider being referred to
  • priority (string, nullable): Referral priority — routine, urgent, or stat
  • urgency (string, nullable): Urgency designation as recorded in the EMR
  • reason (string, nullable): Reason for the referral
  • diagnosis_codes (array): ICD-10 diagnosis codes associated with the referral
  • document_ids (array): Cobalt IDs of attached documents (UUIDs without dashes)
  • direction (string, nullable): Referral direction — incoming or outgoing
  • receiving_line (string, nullable): The receiving line — the fax number that received the document — in E.164 format (e.g. +12345678901). Currently populated for ModMed EMA referrals only; null otherwise.
  • status (string, nullable): Current referral status
  • referral_date (string, nullable): Date the referral was created (ISO 8601)
  • last_activity_at (string, nullable): Timestamp of the most recent activity on the referral (ISO 8601)
  • synced_at (string, nullable): Timestamp of the last sync from the EMR (ISO 8601)

Notes

  • This endpoint returns referrals from the Cobalt database. Data is updated during scheduled syncs.

Authorizations

client_id
string
header
required
client_secret
string
header
required
access_token
string
header
required

Query Parameters

start_date
string<date>
required

Start of the date range in ISO format (YYYY-MM-DD)

end_date
string<date>
required

End of the date range in ISO format (YYYY-MM-DD)

patient_mrn
string

Filter by patient MRN

status
string

Filter by referral status

priority
enum<string>

Filter by priority

Available options:
routine,
urgent,
stat
direction
enum<string>

Filter by referral direction

Available options:
incoming,
outgoing
ehr_id
string

Filter by the referral's EHR ID

receiving_line
string

Filter by the receiving line (the fax number that received the document), in E.164 format (e.g. +12345678901). Accepts any format; the value is canonicalized before matching. Currently populated for ModMed EMA referrals only.

page
integer
default:1

Page number (default: 1)

page_size
integer
default:100

Results per page, max 100 (default: 100)

Required range: x <= 100
sort
string

Sort order — pass created_at for ascending, defaults to descending by referral date

Response

200 - application/json

Successful response

success
boolean
referrals
object[]
pagination
object