#
readPatientPortalAccess
GET
/api/v1/patients/{patient}/portal
Owner/clinician/front desk staff only; account status and current version. Initial version 0.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields PortalAccess · 8
| Field |
Type |
Details |
account
required
|
object or null |
|
events
required
|
array of object |
items ≤ 50
|
events_has_more
required
|
boolean |
|
patient_id
required
|
string (uuid) |
|
practice_id
required
|
string (uuid) |
|
releases
required
|
array of object |
items ≤ 100
|
releases_has_more
required
|
boolean |
|
version
required
|
integer |
value ≥ 0
|
Example response placeholder values
{
"account": {},
"events": [
{}
],
"events_has_more": true,
"patient_id": "00000000-0000-4000-8000-000000000000",
"practice_id": "00000000-0000-4000-8000-000000000000",
"releases": [
{}
],
"releases_has_more": true,
"version": 0
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/portal" -H "Authorization: Bearer $ACCESS_TOKEN"
#
publishPatientPortalAvs
POST
/api/v1/patients/{patient}/portal/avs/{visit}
Whoever may sign the note (any clinician or the owner, never a delegated support session) may publish/hide an existing released AVS version of a signed visit. If-Match is publication version, 0 initially; avs_version selects immutable release.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
visit
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current native version; portal initial account/publication uses "0". FHIR accepts W/"n" or "n"; native headers use "n". |
Origin
required
|
header |
string (uri) |
Must exactly match the configured EHR origin. |
Request body
application/json · required
Fields PortalPublication · 3
| Field |
Type |
Details |
avs_version
required
|
integer |
value ≥ 1
|
reason
required
|
string |
length 1–1000
|
visible
required
|
boolean |
|
Example request body placeholder values
{
"avs_version": 1,
"reason": "string",
"visible": true
}
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
428
Current If-Match required
-
500
Atomic operation or audit failed
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/portal/avs/{visit}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
invitePatientPortal
POST
/api/v1/patients/{patient}/portal/invite
Scheduling roles; quoted current account version (0 initially). Returns a one-time invitation URL for manual secure handoff; email_sent=false.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current native version; portal initial account/publication uses "0". FHIR accepts W/"n" or "n"; native headers use "n". |
Origin
required
|
header |
string (uri) |
Must exactly match the configured EHR origin. |
Request body
application/json · required
Fields PortalInvite · 2
| Field |
Type |
Details |
email
required
|
string (email) |
length ≤ 254
|
reason
required
|
string |
length 1–1000
|
Example request body placeholder values
{
"email": "[email protected]",
"reason": "string"
}
Responses
-
200
Success
application/json
-
Fields PortalInvitation · 6
| Field |
Type |
Details |
delivery
required
|
constant |
always manual_secure_handoff
|
email_sent
required
|
constant |
always false
|
expires_in_seconds
required
|
constant |
always 86400
|
invitation_url
required
|
string (uri) |
One-time activation credential; securely hand off without logging.
|
practice_id
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"delivery": "manual_secure_handoff",
"email_sent": false,
"expires_in_seconds": 86400,
"invitation_url": "https://app.example.test/callback",
"practice_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
428
Current If-Match required
-
500
Atomic operation or audit failed
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/portal/invite" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
revokePatientPortal
POST
/api/v1/patients/{patient}/portal/revoke
Scheduling roles; revoke account/invitations/sessions atomically using current version.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current native version; portal initial account/publication uses "0". FHIR accepts W/"n" or "n"; native headers use "n". |
Origin
required
|
header |
string (uri) |
Must exactly match the configured EHR origin. |
Request body
application/json · required
Fields PortalReason · 1
| Field |
Type |
Details |
reason
required
|
string |
length 1–1000
|
Example request body placeholder values
{
"reason": "string"
}
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
428
Current If-Match required
-
500
Atomic operation or audit failed
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/portal/revoke" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
staffPortalInbox
GET
/api/v1/portal-inbox
Scheduling roles; tenant-scoped bounded inbox.
Access
OAuth 2.0 access tokenclinical.read
Responses
-
200
Success
application/json
-
Fields PortalThreadPage · 11
| Field |
Type |
Details |
has_more
required
|
boolean |
|
items
required
|
array of PortalThread |
items ≤ 100
|
id
required
|
string (uuid) |
|
kind
required
|
string |
one of message, appointment_change
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of open, closed
|
subject
required
|
string |
|
version
required
|
integer |
value ≥ 1
|
appointment_id
|
string or null |
|
created_at
|
string (date-time) |
|
updated_at
|
string (date-time) |
|
Example response placeholder values
{
"has_more": true,
"items": [
{
"id": "00000000-0000-4000-8000-000000000000",
"kind": "message",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "open",
"subject": "string",
"version": 1,
"appointment_id": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z"
}
]
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/portal-inbox" -H "Authorization: Bearer $ACCESS_TOKEN"
#
staffPortalThread
GET
/api/v1/portal-inbox/{thread}
Scheduling roles; tenant-scoped conversation.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
thread
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields PortalThreadMessages · 17
| Field |
Type |
Details |
messages
required
|
array of object |
items ≤ 200
|
author
required
|
string |
one of patient, staff
|
body
required
|
string |
|
created_at
required
|
string (date-time) |
|
id
required
|
string (uuid) |
|
version
required
|
integer |
|
messages_has_more
required
|
boolean |
|
thread
required
|
PortalThread |
|
id
required
|
string (uuid) |
|
kind
required
|
string |
one of message, appointment_change
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of open, closed
|
subject
required
|
string |
|
version
required
|
integer |
value ≥ 1
|
appointment_id
|
string or null |
|
created_at
|
string (date-time) |
|
updated_at
|
string (date-time) |
|
Example response placeholder values
{
"messages": [
{
"author": "patient",
"body": "string",
"created_at": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
],
"messages_has_more": true,
"thread": {
"id": "00000000-0000-4000-8000-000000000000",
"kind": "message",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "open",
"subject": "string",
"version": 1,
"appointment_id": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z"
}
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
500
Atomic operation or audit failed
Example call
curl "$EHR_URL/api/v1/portal-inbox/{thread}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
staffReplyPortalThread
POST
/api/v1/portal-inbox/{thread}
Scheduling roles; current thread version and actor-bound request replay.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
thread
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current native version; portal initial account/publication uses "0". FHIR accepts W/"n" or "n"; native headers use "n". |
Origin
required
|
header |
string (uri) |
Must exactly match the configured EHR origin. |
Request body
application/json · required
Fields PortalReply · 2
| Field |
Type |
Details |
body
required
|
string |
length 1–4000
|
request_id
required
|
string (uuid) |
|
Example request body placeholder values
{
"body": "string",
"request_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields PortalThread · 9
| Field |
Type |
Details |
id
required
|
string (uuid) |
|
kind
required
|
string |
one of message, appointment_change
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
one of open, closed
|
subject
required
|
string |
|
version
required
|
integer |
value ≥ 1
|
appointment_id
|
string or null |
|
created_at
|
string (date-time) |
|
updated_at
|
string (date-time) |
|
Example response placeholder values
{
"id": "00000000-0000-4000-8000-000000000000",
"kind": "message",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "open",
"subject": "string",
"version": 1,
"appointment_id": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z"
}
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
428
Current If-Match required
-
500
Atomic operation or audit failed
Example call
curl -X POST "$EHR_URL/api/v1/portal-inbox/{thread}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
staffStatusPortalThread
POST
/api/v1/portal-inbox/{thread}/status
Scheduling roles; open/close conversation with current version and reason.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
thread
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current native version; portal initial account/publication uses "0". FHIR accepts W/"n" or "n"; native headers use "n". |
Origin
required
|
header |
string (uri) |
Must exactly match the configured EHR origin. |
Request body
application/json · required
Fields PortalThreadStatus · 2
| Field |
Type |
Details |
reason
required
|
string |
length 1–1000
|
status
required
|
string |
one of open, closed
|
Example request body placeholder values
{
"reason": "string",
"status": "open"
}
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid or unsupported input
-
401
Authentication required or expired
-
403
Scope, role, Origin or patient access denied
-
404
Record not found in authenticated tenant/patient
-
409
Version, immutable-state or request identity conflict
-
428
Current If-Match required
-
500
Atomic operation or audit failed
Example call
curl -X POST "$EHR_URL/api/v1/portal-inbox/{thread}/status" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
No endpoint matches that filter.