# Derive safe charge context
GET
/api/v1/patients/{patient_id}/fee-context
Staff only with native billing view permission and billing.read OAuth scope when applicable. Tenant and patient-bound encounter lookup. Returns provider_id, active facilities, exact unique appointment-facility match and explicitly approved setting default, otherwise null choices.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name | In | Type | Details |
|---|---|---|---|
patient_id
required
|
path | string (uuid) | |
visit_id
required
|
query | string (uuid) | |
service_date
required
|
query | string (date) |
Responses
- 200 Success
- 400 Invalid scope, source, amount or missing approval acknowledgement
- 401 Authentication required
- 403 Staff role, owner privilege or billing scope denied
- 404 Resource not found in tenant/patient scope
- 409 Version, immutable scope or approved-schedule conflict
- 428 Current quoted If-Match version required
Example call
curl "$EHR_URL/api/v1/patients/{patient_id}/fee-context" -H "Authorization: Bearer $ACCESS_TOKEN"