#
List patient referrals
GET
/api/v1/patients/{patient}/referrals
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
status
|
query |
string |
|
Responses
-
200
Success
application/json
-
Fields ReferralPage · 21
| Field |
Type |
Details |
items
required
|
array of Referral |
items ≤ 100
|
attachment_snapshot
required
|
array of object or null |
|
content
required
|
ReferralContent |
|
clinical_reason
required
|
string |
length 1–2000
|
priority
required
|
string |
one of routine, urgent
|
recipient
required
|
string |
length 1–300
|
requested_service
required
|
string |
length 1–200
|
clinical_summary
|
string |
default length ≤ 10000
|
document_ids
|
array of string (uuid) |
default []items ≤ 20
|
follow_up_due
|
string (date) or null |
|
specialty
|
string |
default length ≤ 200
|
created_at
required
|
string (date-time) |
|
created_by
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of draft, ready, sent, accepted, scheduled, completed, cancelled, entered_in_error
|
updated_at
required
|
string (date-time) |
|
updated_by
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
visit_id
required
|
string (uuid) or null |
|
next_cursor
required
|
string (uuid) or null |
|
Example response placeholder values
{
"items": [
{
"attachment_snapshot": [
{
"content_type": null,
"filename": null,
"id": null,
"sha256": null,
"size_bytes": null,
"title": null,
"version": null,
"status": "active"
}
],
"content": {
"clinical_reason": "string",
"priority": "routine",
"recipient": "string",
"requested_service": "string",
"clinical_summary": "",
"document_ids": [],
"follow_up_due": "2026-01-15",
"specialty": ""
},
"created_at": "2026-01-15T15:30:00Z",
"created_by": "00000000-0000-4000-8000-000000000000",
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000",
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000"
}
],
"next_cursor": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or request identity conflict
-
500
Atomic operation failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/referrals" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create a draft referral
POST
/api/v1/patients/{patient}/referrals
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
Request body
application/json · required
Fields ReferralCreate · 12
| Field |
Type |
Details |
content
required
|
ReferralContent |
|
clinical_reason
required
|
string |
length 1–2000
|
priority
required
|
string |
one of routine, urgent
|
recipient
required
|
string |
length 1–300
|
requested_service
required
|
string |
length 1–200
|
clinical_summary
|
string |
default length ≤ 10000
|
document_ids
|
array of string (uuid) |
default []items ≤ 20
|
follow_up_due
|
string (date) or null |
|
specialty
|
string |
default length ≤ 200
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
visit_id
|
string (uuid) or null |
|
Example request body placeholder values
{
"content": {
"clinical_reason": "string",
"priority": "routine",
"recipient": "string",
"requested_service": "string",
"clinical_summary": "",
"document_ids": [],
"follow_up_due": "2026-01-15",
"specialty": ""
},
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"visit_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields Referral · 19
| Field |
Type |
Details |
attachment_snapshot
required
|
array of object or null |
|
content
required
|
ReferralContent |
|
clinical_reason
required
|
string |
length 1–2000
|
priority
required
|
string |
one of routine, urgent
|
recipient
required
|
string |
length 1–300
|
requested_service
required
|
string |
length 1–200
|
clinical_summary
|
string |
default length ≤ 10000
|
document_ids
|
array of string (uuid) |
default []items ≤ 20
|
follow_up_due
|
string (date) or null |
|
specialty
|
string |
default length ≤ 200
|
created_at
required
|
string (date-time) |
|
created_by
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of draft, ready, sent, accepted, scheduled, completed, cancelled, entered_in_error
|
updated_at
required
|
string (date-time) |
|
updated_by
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
visit_id
required
|
string (uuid) or null |
|
Example response placeholder values
{
"attachment_snapshot": [
{
"content_type": "string",
"filename": "string",
"id": "00000000-0000-4000-8000-000000000000",
"sha256": "string",
"size_bytes": 1,
"title": "string",
"version": 1,
"status": "active"
}
],
"content": {
"clinical_reason": "string",
"priority": "routine",
"recipient": "string",
"requested_service": "string",
"clinical_summary": "",
"document_ids": [],
"follow_up_due": "2026-01-15",
"specialty": ""
},
"created_at": "2026-01-15T15:30:00Z",
"created_by": "00000000-0000-4000-8000-000000000000",
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000",
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or request identity conflict
-
500
Atomic operation failed
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/referrals" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read patient referral
GET
/api/v1/patients/{patient}/referrals/{id}
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields Referral · 19
| Field |
Type |
Details |
attachment_snapshot
required
|
array of object or null |
|
content
required
|
ReferralContent |
|
clinical_reason
required
|
string |
length 1–2000
|
priority
required
|
string |
one of routine, urgent
|
recipient
required
|
string |
length 1–300
|
requested_service
required
|
string |
length 1–200
|
clinical_summary
|
string |
default length ≤ 10000
|
document_ids
|
array of string (uuid) |
default []items ≤ 20
|
follow_up_due
|
string (date) or null |
|
specialty
|
string |
default length ≤ 200
|
created_at
required
|
string (date-time) |
|
created_by
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of draft, ready, sent, accepted, scheduled, completed, cancelled, entered_in_error
|
updated_at
required
|
string (date-time) |
|
updated_by
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
visit_id
required
|
string (uuid) or null |
|
Example response placeholder values
{
"attachment_snapshot": [
{
"content_type": "string",
"filename": "string",
"id": "00000000-0000-4000-8000-000000000000",
"sha256": "string",
"size_bytes": 1,
"title": "string",
"version": 1,
"status": "active"
}
],
"content": {
"clinical_reason": "string",
"priority": "routine",
"recipient": "string",
"requested_service": "string",
"clinical_summary": "",
"document_ids": [],
"follow_up_due": "2026-01-15",
"specialty": ""
},
"created_at": "2026-01-15T15:30:00Z",
"created_by": "00000000-0000-4000-8000-000000000000",
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000",
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or request identity conflict
-
500
Atomic operation failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/referrals/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Revise referral content before handoff
PUT
/api/v1/patients/{patient}/referrals/{id}
Draft/ready only. Editing a ready referral returns it to draft and clears readiness snapshot. Attached documents must be active and belong to this patient; sent referral content is immutable.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
|
Request body
application/json · required
Fields ReferralEdit · 11
| Field |
Type |
Details |
content
required
|
ReferralContent |
|
clinical_reason
required
|
string |
length 1–2000
|
priority
required
|
string |
one of routine, urgent
|
recipient
required
|
string |
length 1–300
|
requested_service
required
|
string |
length 1–200
|
clinical_summary
|
string |
default length ≤ 10000
|
document_ids
|
array of string (uuid) |
default []items ≤ 20
|
follow_up_due
|
string (date) or null |
|
specialty
|
string |
default length ≤ 200
|
reason
required
|
string |
length 1–1000
|
visit_id
|
string (uuid) or null |
|
Example request body placeholder values
{
"content": {
"clinical_reason": "string",
"priority": "routine",
"recipient": "string",
"requested_service": "string",
"clinical_summary": "",
"document_ids": [],
"follow_up_due": "2026-01-15",
"specialty": ""
},
"reason": "string",
"visit_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields Referral · 19
| Field |
Type |
Details |
attachment_snapshot
required
|
array of object or null |
|
content
required
|
ReferralContent |
|
clinical_reason
required
|
string |
length 1–2000
|
priority
required
|
string |
one of routine, urgent
|
recipient
required
|
string |
length 1–300
|
requested_service
required
|
string |
length 1–200
|
clinical_summary
|
string |
default length ≤ 10000
|
document_ids
|
array of string (uuid) |
default []items ≤ 20
|
follow_up_due
|
string (date) or null |
|
specialty
|
string |
default length ≤ 200
|
created_at
required
|
string (date-time) |
|
created_by
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of draft, ready, sent, accepted, scheduled, completed, cancelled, entered_in_error
|
updated_at
required
|
string (date-time) |
|
updated_by
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
visit_id
required
|
string (uuid) or null |
|
Example response placeholder values
{
"attachment_snapshot": [
{
"content_type": "string",
"filename": "string",
"id": "00000000-0000-4000-8000-000000000000",
"sha256": "string",
"size_bytes": 1,
"title": "string",
"version": 1,
"status": "active"
}
],
"content": {
"clinical_reason": "string",
"priority": "routine",
"recipient": "string",
"requested_service": "string",
"clinical_summary": "",
"document_ids": [],
"follow_up_due": "2026-01-15",
"specialty": ""
},
"created_at": "2026-01-15T15:30:00Z",
"created_by": "00000000-0000-4000-8000-000000000000",
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000",
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or request identity conflict
-
428
Current quoted version required
-
500
Atomic operation failed
Example call
curl -X PUT "$EHR_URL/api/v1/patients/{patient}/referrals/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Record reviewed referral lifecycle evidence
POST
/api/v1/patients/{patient}/referrals/{id}/actions
Manual recording only; no network delivery occurs. Ready captures reviewed document metadata. Sent requires unchanged active attachments. Sent/accepted/scheduled/completed require nonblank evidence. Invalid transitions or stale versions fail409; sent content and prior revisions remain immutable.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
|
Request body
application/json · required
Fields ReferralAction · 3
| Field |
Type |
Details |
action
required
|
string |
one of draft, ready, sent, accepted, scheduled, completed, cancelled, entered_in_error
|
reason
required
|
string |
length 1–1000
|
evidence
|
string |
default length ≤ 4000
|
Example request body placeholder values
{
"action": "draft",
"reason": "string",
"evidence": ""
}
Responses
-
200
Success
application/json
-
Fields Referral · 19
| Field |
Type |
Details |
attachment_snapshot
required
|
array of object or null |
|
content
required
|
ReferralContent |
|
clinical_reason
required
|
string |
length 1–2000
|
priority
required
|
string |
one of routine, urgent
|
recipient
required
|
string |
length 1–300
|
requested_service
required
|
string |
length 1–200
|
clinical_summary
|
string |
default length ≤ 10000
|
document_ids
|
array of string (uuid) |
default []items ≤ 20
|
follow_up_due
|
string (date) or null |
|
specialty
|
string |
default length ≤ 200
|
created_at
required
|
string (date-time) |
|
created_by
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of draft, ready, sent, accepted, scheduled, completed, cancelled, entered_in_error
|
updated_at
required
|
string (date-time) |
|
updated_by
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
visit_id
required
|
string (uuid) or null |
|
Example response placeholder values
{
"attachment_snapshot": [
{
"content_type": "string",
"filename": "string",
"id": "00000000-0000-4000-8000-000000000000",
"sha256": "string",
"size_bytes": 1,
"title": "string",
"version": 1,
"status": "active"
}
],
"content": {
"clinical_reason": "string",
"priority": "routine",
"recipient": "string",
"requested_service": "string",
"clinical_summary": "",
"document_ids": [],
"follow_up_due": "2026-01-15",
"specialty": ""
},
"created_at": "2026-01-15T15:30:00Z",
"created_by": "00000000-0000-4000-8000-000000000000",
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000",
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or request identity conflict
-
428
Current quoted version required
-
500
Atomic operation failed
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/referrals/{id}/actions" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read attributed referral revisions and recorded evidence
GET
/api/v1/patients/{patient}/referrals/{id}/revisions
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields object · 20
| Field |
Type |
Details |
items
required
|
array of ReferralRevision |
items ≤ 100
|
actor_label
required
|
string or null |
|
attachment_snapshot
required
|
array of object or null |
|
author_id
required
|
string (uuid) |
|
content
required
|
ReferralContent |
|
clinical_reason
required
|
string |
length 1–2000
|
priority
required
|
string |
one of routine, urgent
|
recipient
required
|
string |
length 1–300
|
requested_service
required
|
string |
length 1–200
|
clinical_summary
|
string |
default length ≤ 10000
|
document_ids
|
array of string (uuid) |
default []items ≤ 20
|
follow_up_due
|
string (date) or null |
|
specialty
|
string |
default length ≤ 200
|
created_at
required
|
string (date-time) |
|
evidence
required
|
string |
|
reason
required
|
string |
|
status
required
|
string |
one of draft, ready, sent, accepted, scheduled, completed, cancelled, entered_in_error
|
version
required
|
integer |
|
visit_id
required
|
string (uuid) or null |
|
truncated
required
|
boolean |
|
Example response placeholder values
{
"items": [
{
"actor_label": "string",
"attachment_snapshot": [
{
"content_type": null,
"filename": null,
"id": null,
"sha256": null,
"size_bytes": null,
"title": null,
"version": null,
"status": "active"
}
],
"author_id": "00000000-0000-4000-8000-000000000000",
"content": {
"clinical_reason": "string",
"priority": "routine",
"recipient": "string",
"requested_service": "string",
"clinical_summary": "",
"document_ids": [],
"follow_up_due": "2026-01-15",
"specialty": ""
},
"created_at": "2026-01-15T15:30:00Z",
"evidence": "string",
"reason": "string",
"status": "draft",
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000"
}
],
"truncated": true
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or request identity conflict
-
500
Atomic operation failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/referrals/{id}/revisions" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Review practice referrals and overdue follow-up
GET
/api/v1/referrals/worklist
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
status
|
query |
string |
|
overdue
|
query |
string |
|
Responses
-
200
Success
application/json
-
Fields object · 24
| Field |
Type |
Details |
items
required
|
array of ReferralWorklistEntry |
items ≤ 100
|
attachment_snapshot
required
|
array of object or null |
|
content
required
|
ReferralContent |
|
clinical_reason
required
|
string |
length 1–2000
|
priority
required
|
string |
one of routine, urgent
|
recipient
required
|
string |
length 1–300
|
requested_service
required
|
string |
length 1–200
|
clinical_summary
|
string |
default length ≤ 10000
|
document_ids
|
array of string (uuid) |
default []items ≤ 20
|
follow_up_due
|
string (date) or null |
|
specialty
|
string |
default length ≤ 200
|
created_at
required
|
string (date-time) |
|
created_by
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
mrn
required
|
string |
|
patient_id
required
|
string (uuid) |
|
patient_label
required
|
string |
|
status
required
|
string |
one of draft, ready, sent, accepted, scheduled, completed, cancelled, entered_in_error
|
updated_at
required
|
string (date-time) |
|
updated_by
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
visit_id
required
|
string (uuid) or null |
|
next_cursor
required
|
string or null |
|
overdue_as_of
required
|
string (date) |
|
Example response placeholder values
{
"items": [
{
"attachment_snapshot": [
{
"content_type": null,
"filename": null,
"id": null,
"sha256": null,
"size_bytes": null,
"title": null,
"version": null,
"status": "active"
}
],
"content": {
"clinical_reason": "string",
"priority": "routine",
"recipient": "string",
"requested_service": "string",
"clinical_summary": "",
"document_ids": [],
"follow_up_due": "2026-01-15",
"specialty": ""
},
"created_at": "2026-01-15T15:30:00Z",
"created_by": "00000000-0000-4000-8000-000000000000",
"id": "00000000-0000-4000-8000-000000000000",
"mrn": "string",
"patient_id": "00000000-0000-4000-8000-000000000000",
"patient_label": "string",
"status": "draft",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000",
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000"
}
],
"next_cursor": "00000000-0000-4000-8000-000000000000",
"overdue_as_of": "2026-01-15"
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or request identity conflict
-
500
Atomic operation failed
Example call
curl "$EHR_URL/api/v1/referrals/worklist" -H "Authorization: Bearer $ACCESS_TOKEN"
No endpoint matches that filter.