Get Referrals
Retrieve referrals from the Cobalt database for a specified date range.
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, orstat - direction (string, optional): Filter by referral direction —
incomingoroutgoing - 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_atfor 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, orstat - 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 —
incomingoroutgoing - 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
Query Parameters
Start of the date range in ISO format (YYYY-MM-DD)
End of the date range in ISO format (YYYY-MM-DD)
Filter by patient MRN
Filter by referral status
Filter by priority
routine, urgent, stat Filter by referral direction
incoming, outgoing Filter by the referral's EHR ID
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 number (default: 1)
Results per page, max 100 (default: 100)
x <= 100Sort order — pass created_at for ascending, defaults to descending by referral date