#
List patients
GET
/api/v1/patients
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
after
|
query |
string (uuid) |
Cursor returned by the previous page; 50 patients per page. |
status
|
query |
string |
Directory status filter. Archived patients retain direct chart and record access. |
Responses
-
200
Tenant-scoped patient page
application/json
-
Fields PatientPage · 8
| Field |
Type |
Details |
items
required
|
array of Patient |
|
birth_date
required
|
string (date) |
|
family_name
required
|
string |
|
given_name
required
|
string |
|
id
required
|
string (uuid) |
|
mrn
required
|
string |
|
archived
|
boolean |
Current append-only chart archive status on native patient directory and workspace responses. Historical identity snapshots may omit it.
|
next_cursor
required
|
string (uuid) or null |
|
Example response placeholder values
{
"items": [
{
"birth_date": "2026-01-15",
"family_name": "string",
"given_name": "string",
"id": "00000000-0000-4000-8000-000000000000",
"mrn": "string",
"archived": true
}
],
"next_cursor": "00000000-0000-4000-8000-000000000000"
}
Example call
curl "$EHR_URL/api/v1/patients" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create patient
POST
/api/v1/patients
Access
OAuth 2.0 access tokenclinical.write
Request body
application/json · required
Fields NewPatient · 3
| Field |
Type |
Details |
birth_date
required
|
string (date) |
|
family_name
required
|
string |
|
given_name
required
|
string |
|
Example request body placeholder values
{
"birth_date": "2026-01-15",
"family_name": "string",
"given_name": "string"
}
Responses
-
201
Success
application/json
-
Fields Patient · 6
| Field |
Type |
Details |
birth_date
required
|
string (date) |
|
family_name
required
|
string |
|
given_name
required
|
string |
|
id
required
|
string (uuid) |
|
mrn
required
|
string |
|
archived
|
boolean |
Current append-only chart archive status on native patient directory and workspace responses. Historical identity snapshots may omit it.
|
Example response placeholder values
{
"birth_date": "2026-01-15",
"family_name": "string",
"given_name": "string",
"id": "00000000-0000-4000-8000-000000000000",
"mrn": "string",
"archived": true
}
-
400
Invalid input
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
401
Authentication required
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
403
Forbidden
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
404
Resource not found in trusted tenant
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
409
State/version conflict
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
428
Version required
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
500
Internal error
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
Example call
curl -X POST "$EHR_URL/api/v1/patients" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Get patient
GET
/api/v1/patients/{id}
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields Patient · 6
| Field |
Type |
Details |
birth_date
required
|
string (date) |
|
family_name
required
|
string |
|
given_name
required
|
string |
|
id
required
|
string (uuid) |
|
mrn
required
|
string |
|
archived
|
boolean |
Current append-only chart archive status on native patient directory and workspace responses. Historical identity snapshots may omit it.
|
Example response placeholder values
{
"birth_date": "2026-01-15",
"family_name": "string",
"given_name": "string",
"id": "00000000-0000-4000-8000-000000000000",
"mrn": "string",
"archived": true
}
-
400
Invalid input
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
401
Authentication required
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
403
Forbidden
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
404
Resource not found in trusted tenant
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
409
State/version conflict
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
428
Version required
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
500
Internal error
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
Example call
curl "$EHR_URL/api/v1/patients/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Get staff patient banner
GET
/api/v1/patients/{id}/banner
Staff only. Read-only facts for the patient banner: next appointment, last finished visit, status flags and a revision marker. The billing object (reviewed patient balance, card on file) is present only when the caller may view billing; eligibility (the latest check per coverage) only when the caller may also view claims.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Patient banner facts
application/json
-
Fields object · 7
| Field |
Type |
Details |
flags
required
|
object |
|
patient_id
required
|
string (uuid) |
|
revision
required
|
string |
|
billing
|
object |
|
eligibility
|
array of object |
|
last_visit
|
object or null |
|
next_appointment
|
object or null |
|
Example response placeholder values
{
"flags": {},
"patient_id": "00000000-0000-4000-8000-000000000000",
"revision": "string",
"billing": {},
"eligibility": [
{}
],
"last_visit": {},
"next_appointment": {}
}
Example call
curl "$EHR_URL/api/v1/patients/{id}/banner" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read native patient contact details
GET
/api/v1/patients/{id}/demographics
Staff-only tenant-scoped audited read; unknown fields are null. Core patient MRN, legal name and DOB remain separate.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Current contact profile and last 50 immutable revisions
application/json
-
Fields object · 44
| Field |
Type |
Details |
content
required
|
object |
|
address
|
object or null |
|
city
|
string or null |
length ≤ 100
|
country
|
string or null |
length ≤ 2
|
line1
|
string or null |
length ≤ 200
|
line2
|
string or null |
length ≤ 200
|
postal_code
|
string or null |
length ≤ 32
|
region
|
string or null |
length ≤ 100
|
administrative_gender
|
string or null |
one of female, male, other, unknown, null
|
email
|
string or null |
length ≤ 254
|
emergency_contact
|
object or null |
|
name
|
string or null |
length ≤ 200
|
phone
|
string or null |
length ≤ 40
|
relationship
|
string or null |
length ≤ 100
|
language
|
string or null |
length ≤ 100
|
phone
|
string or null |
length ≤ 40
|
preferred_name
|
string or null |
length ≤ 100
|
pronouns
|
string or null |
length ≤ 100
|
history
required
|
array of object |
items ≤ 50
|
author_id
required
|
string (uuid) |
|
content
required
|
object |
|
address
|
object or null |
|
city
|
string or null |
length ≤ 100
|
country
|
string or null |
length ≤ 2
|
line1
|
string or null |
length ≤ 200
|
line2
|
string or null |
length ≤ 200
|
postal_code
|
string or null |
length ≤ 32
|
region
|
string or null |
length ≤ 100
|
administrative_gender
|
string or null |
one of female, male, other, unknown, null
|
email
|
string or null |
length ≤ 254
|
emergency_contact
|
object or null |
|
name
|
string or null |
length ≤ 200
|
phone
|
string or null |
length ≤ 40
|
relationship
|
string or null |
length ≤ 100
|
language
|
string or null |
length ≤ 100
|
phone
|
string or null |
length ≤ 40
|
preferred_name
|
string or null |
length ≤ 100
|
pronouns
|
string or null |
length ≤ 100
|
created_at
required
|
string (date-time) |
|
reason
required
|
string |
length ≤ 1000
|
version
required
|
integer |
value ≥ 1
|
history_truncated
required
|
boolean |
|
patient_id
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 0
|
Example response placeholder values
{
"content": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"region": "string"
},
"administrative_gender": "female",
"email": "string",
"emergency_contact": {
"name": "string",
"phone": "string",
"relationship": "string"
},
"language": "string",
"phone": "string",
"preferred_name": "string",
"pronouns": "string"
},
"history": [
{
"author_id": "00000000-0000-4000-8000-000000000000",
"content": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"region": null
},
"administrative_gender": "female",
"email": "string",
"emergency_contact": {
"name": null,
"phone": null,
"relationship": null
},
"language": "string",
"phone": "string",
"preferred_name": "string",
"pronouns": "string"
},
"created_at": "2026-01-15T15:30:00Z",
"reason": "string",
"version": 1
}
],
"history_truncated": true,
"patient_id": "00000000-0000-4000-8000-000000000000",
"version": 0
}
-
401
Authentication required
-
403
Staff required
-
404
Patient not found in this tenant
Example call
curl "$EHR_URL/api/v1/patients/{id}/demographics" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Replace a reviewed patient contact profile
PUT
/api/v1/patients/{id}/demographics
Owner, clinician or front-desk staff; quoted If-Match required. Full replacement normalizes blank optional fields to null. Profile, immutable history and audit commit together. This is not consent, message delivery permission, identity merge or complete registration.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current version, "0" for first save |
Request body
application/json · required
Fields object · 19
| Field |
Type |
Details |
content
required
|
object |
|
address
|
object or null |
|
city
|
string or null |
length ≤ 100
|
country
|
string or null |
length ≤ 2
|
line1
|
string or null |
length ≤ 200
|
line2
|
string or null |
length ≤ 200
|
postal_code
|
string or null |
length ≤ 32
|
region
|
string or null |
length ≤ 100
|
administrative_gender
|
string or null |
one of female, male, other, unknown, null
|
email
|
string or null |
length ≤ 254
|
emergency_contact
|
object or null |
|
name
|
string or null |
length ≤ 200
|
phone
|
string or null |
length ≤ 40
|
relationship
|
string or null |
length ≤ 100
|
language
|
string or null |
length ≤ 100
|
phone
|
string or null |
length ≤ 40
|
preferred_name
|
string or null |
length ≤ 100
|
pronouns
|
string or null |
length ≤ 100
|
reason
required
|
string |
length 1–1000
|
Example request body placeholder values
{
"content": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"region": "string"
},
"administrative_gender": "female",
"email": "string",
"emergency_contact": {
"name": "string",
"phone": "string",
"relationship": "string"
},
"language": "string",
"phone": "string",
"preferred_name": "string",
"pronouns": "string"
},
"reason": "string"
}
Responses
-
200
Current contact profile and last 50 immutable revisions
application/json
-
Fields object · 44
| Field |
Type |
Details |
content
required
|
object |
|
address
|
object or null |
|
city
|
string or null |
length ≤ 100
|
country
|
string or null |
length ≤ 2
|
line1
|
string or null |
length ≤ 200
|
line2
|
string or null |
length ≤ 200
|
postal_code
|
string or null |
length ≤ 32
|
region
|
string or null |
length ≤ 100
|
administrative_gender
|
string or null |
one of female, male, other, unknown, null
|
email
|
string or null |
length ≤ 254
|
emergency_contact
|
object or null |
|
name
|
string or null |
length ≤ 200
|
phone
|
string or null |
length ≤ 40
|
relationship
|
string or null |
length ≤ 100
|
language
|
string or null |
length ≤ 100
|
phone
|
string or null |
length ≤ 40
|
preferred_name
|
string or null |
length ≤ 100
|
pronouns
|
string or null |
length ≤ 100
|
history
required
|
array of object |
items ≤ 50
|
author_id
required
|
string (uuid) |
|
content
required
|
object |
|
address
|
object or null |
|
city
|
string or null |
length ≤ 100
|
country
|
string or null |
length ≤ 2
|
line1
|
string or null |
length ≤ 200
|
line2
|
string or null |
length ≤ 200
|
postal_code
|
string or null |
length ≤ 32
|
region
|
string or null |
length ≤ 100
|
administrative_gender
|
string or null |
one of female, male, other, unknown, null
|
email
|
string or null |
length ≤ 254
|
emergency_contact
|
object or null |
|
name
|
string or null |
length ≤ 200
|
phone
|
string or null |
length ≤ 40
|
relationship
|
string or null |
length ≤ 100
|
language
|
string or null |
length ≤ 100
|
phone
|
string or null |
length ≤ 40
|
preferred_name
|
string or null |
length ≤ 100
|
pronouns
|
string or null |
length ≤ 100
|
created_at
required
|
string (date-time) |
|
reason
required
|
string |
length ≤ 1000
|
version
required
|
integer |
value ≥ 1
|
history_truncated
required
|
boolean |
|
patient_id
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 0
|
Example response placeholder values
{
"content": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"region": "string"
},
"administrative_gender": "female",
"email": "string",
"emergency_contact": {
"name": "string",
"phone": "string",
"relationship": "string"
},
"language": "string",
"phone": "string",
"preferred_name": "string",
"pronouns": "string"
},
"history": [
{
"author_id": "00000000-0000-4000-8000-000000000000",
"content": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"region": null
},
"administrative_gender": "female",
"email": "string",
"emergency_contact": {
"name": null,
"phone": null,
"relationship": null
},
"language": "string",
"phone": "string",
"preferred_name": "string",
"pronouns": "string"
},
"created_at": "2026-01-15T15:30:00Z",
"reason": "string",
"version": 1
}
],
"history_truncated": true,
"patient_id": "00000000-0000-4000-8000-000000000000",
"version": 0
}
-
400
Invalid contact values
-
403
Owner, clinician or front desk required
-
404
Patient not found in this tenant
-
409
Stale version; reload and reconcile
-
422
Unknown properties or invalid JSON shape
-
428
Quoted If-Match required
Example call
curl -X PUT "$EHR_URL/api/v1/patients/{id}/demographics" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Source history
GET
/api/v1/patients/{id}/history
Staff-only imported history. external_unverified signature and staff_only_pending_review release policy. Immutable source records, distinct from native signed visits.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
409
Conflicting state
Example call
curl "$EHR_URL/api/v1/patients/{id}/history" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Copy one imported contact value into an empty native field
POST
/api/v1/patients/{id}/history/{record}/use-contact
Owner, clinician or front desk. Copies address, phone, email, administrative_gender or language from the imported record's contact block into the native contact profile only when that native field is empty; a filled field returns 409. Appends an attributed contact revision.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
record
required
|
path |
string (uuid) |
|
Request body
application/json · required
Fields object · 1
| Field |
Type |
Details |
field
required
|
string |
one of address, phone, email, administrative_gender, language
|
Example request body placeholder values
{
"field": "address"
}
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Record not found in the authenticated clinic
-
409
Conflicting state
Example call
curl -X POST "$EHR_URL/api/v1/patients/{id}/history/{record}/use-contact" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Appointment source mapping
GET
/api/v1/patients/{id}/history/{source}/appointment-mapping
Scheduling-role review of immutable source system appointment; native reconciliation uses POST appointments with source_history_id. Source import never creates bookings.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
source
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields AppointmentMapping · 3
| Field |
Type |
Details |
native_appointment_id
required
|
string or null |
|
policy
required
|
string |
|
source
required
|
object |
Immutable history ID, source identifiers, original source_data and normalized data; no inferred timezone/status/provider
|
Example response placeholder values
{
"native_appointment_id": "00000000-0000-4000-8000-000000000000",
"policy": "string",
"source": {}
}
-
400
Invalid input
-
401
Sign in required
-
403
Role/scope denied
-
404
Tenant-scoped resource not found
-
409
Conflict or stale version
-
428
If-Match required
-
500
Change rolled back or outcome requires verification
Example call
curl "$EHR_URL/api/v1/patients/{id}/history/{source}/appointment-mapping" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read patient archive status and attributed history
GET
/api/v1/patients/{id}/lifecycle
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields PatientLifecycle · 12
| Field |
Type |
Details |
archived
required
|
boolean |
|
can_manage
required
|
boolean |
|
history
required
|
array of object |
items ≤ 100
|
actor_id
required
|
string (uuid) |
|
archived
required
|
boolean |
|
created_at
required
|
string (date-time) |
|
reason
required
|
string |
|
version
required
|
integer |
value ≥ 2
|
actor_label
|
string or null |
|
history_truncated
required
|
boolean |
|
patient_id
required
|
string (uuid) |
|
version
required
|
integer |
Starts at 1 for an active chart without lifecycle events.
value ≥ 1
|
Example response placeholder values
{
"archived": true,
"can_manage": true,
"history": [
{
"actor_id": "00000000-0000-4000-8000-000000000000",
"archived": true,
"created_at": "2026-01-15T15:30:00Z",
"reason": "string",
"version": 2,
"actor_label": "string"
}
],
"history_truncated": true,
"patient_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant
-
409
Stale version or invalid state
-
500
Atomic operation failed
Example call
curl "$EHR_URL/api/v1/patients/{id}/lifecycle" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Archive or restore a patient chart with an audited reason
PUT
/api/v1/patients/{id}/lifecycle
Owner, clinician or front desk with clinical edit permission may archive or restore using the current quoted If-Match. Status, reason and audit commit atomically. Existing records are never deleted or rewritten. Archived charts cannot start new appointments or encounters until restored; direct records remain accessible. Stale versions return 409.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
|
Request body
application/json · required
Fields PatientLifecycleChange · 2
| Field |
Type |
Details |
archived
required
|
boolean |
|
reason
required
|
string |
Nonblank reason without control characters; recorded with actor and time.
length 1–1000
|
Example request body placeholder values
{
"archived": true,
"reason": "string"
}
Responses
-
200
Success
application/json
-
Fields PatientLifecycle · 12
| Field |
Type |
Details |
archived
required
|
boolean |
|
can_manage
required
|
boolean |
|
history
required
|
array of object |
items ≤ 100
|
actor_id
required
|
string (uuid) |
|
archived
required
|
boolean |
|
created_at
required
|
string (date-time) |
|
reason
required
|
string |
|
version
required
|
integer |
value ≥ 2
|
actor_label
|
string or null |
|
history_truncated
required
|
boolean |
|
patient_id
required
|
string (uuid) |
|
version
required
|
integer |
Starts at 1 for an active chart without lifecycle events.
value ≥ 1
|
Example response placeholder values
{
"archived": true,
"can_manage": true,
"history": [
{
"actor_id": "00000000-0000-4000-8000-000000000000",
"archived": true,
"created_at": "2026-01-15T15:30:00Z",
"reason": "string",
"version": 2,
"actor_label": "string"
}
],
"history_truncated": true,
"patient_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant
-
409
Stale version or invalid state
-
428
Current quoted version required
-
500
Atomic operation failed
Example call
curl -X PUT "$EHR_URL/api/v1/patients/{id}/lifecycle" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Get signed record
GET
/api/v1/patients/{id}/record
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields Record · 25
| Field |
Type |
Details |
amendments
required
|
array of Amendment |
|
author_id
required
|
string (uuid) |
|
created_at
required
|
string (date-time) |
|
id
required
|
string (uuid) |
|
reason
required
|
string |
|
text
required
|
string |
|
visit_id
required
|
string (uuid) |
|
patient
required
|
Patient |
|
birth_date
required
|
string (date) |
|
family_name
required
|
string |
|
given_name
required
|
string |
|
id
required
|
string (uuid) |
|
mrn
required
|
string |
|
archived
|
boolean |
Current append-only chart archive status on native patient directory and workspace responses. Historical identity snapshots may omit it.
|
visits
required
|
array of Visit |
|
appointment_id
required
|
string (uuid) |
|
clinician_id
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
note
required
|
SoapNote or null |
|
patient_id
required
|
string (uuid) |
|
signed_at
required
|
string (date-time) or null |
|
signed_by
required
|
string (uuid) or null |
|
status
required
|
string |
one of in_progress, signed
|
version
required
|
integer |
value ≥ 1
|
vitals
required
|
Vitals or null |
|
Example response placeholder values
{
"amendments": [
{
"author_id": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"reason": "string",
"text": "string",
"visit_id": "00000000-0000-4000-8000-000000000000"
}
],
"patient": {
"birth_date": "2026-01-15",
"family_name": "string",
"given_name": "string",
"id": "00000000-0000-4000-8000-000000000000",
"mrn": "string",
"archived": true
},
"visits": [
{
"appointment_id": "00000000-0000-4000-8000-000000000000",
"clinician_id": "00000000-0000-4000-8000-000000000000",
"id": "00000000-0000-4000-8000-000000000000",
"note": {
"assessment": "string",
"objective": "string",
"plan": "string",
"subjective": "string",
"procedure": "string",
"saved_by": {
"at": null,
"id": null,
"name": null,
"support": null
},
"started_from": {
"sections": null,
"version": null,
"visit_id": null,
"visit_date": null
}
},
"patient_id": "00000000-0000-4000-8000-000000000000",
"signed_at": "2026-01-15T15:30:00Z",
"signed_by": "00000000-0000-4000-8000-000000000000",
"status": "in_progress",
"version": 1,
"vitals": {
"diastolic_mm_hg": 10,
"heart_rate_bpm": 10,
"height_cm": 10,
"oxygen_saturation_pct": 0,
"systolic_mm_hg": 30,
"temperature_c": 20,
"weight_kg": 0.1
}
}
]
}
-
400
Invalid input
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
401
Authentication required
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
403
Forbidden
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
404
Resource not found in trusted tenant
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
409
State/version conflict
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
428
Version required
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
-
500
Internal error
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
Example call
curl "$EHR_URL/api/v1/patients/{id}/record" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Get staff patient workspace
GET
/api/v1/patients/{id}/workspace
Staff only. Includes draft visits. Latest 100 appointments and 100 visits. Full historical paging is pending.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Clinical workspace
application/json
-
Fields Workspace · 39
| Field |
Type |
Details |
amendments
required
|
array of Amendment |
|
author_id
required
|
string (uuid) |
|
created_at
required
|
string (date-time) |
|
id
required
|
string (uuid) |
|
reason
required
|
string |
|
text
required
|
string |
|
visit_id
required
|
string (uuid) |
|
appointments
required
|
array of Appointment |
|
category
required
|
string |
length 1–100
|
clinician_id
required
|
string (uuid) |
|
ends_at
required
|
string (date-time) |
|
facility
required
|
string |
length 0–200
|
id
required
|
string (uuid) |
|
notes
required
|
string |
length 0–2000
|
patient_id
required
|
string (uuid) |
|
room
required
|
string |
length 0–100
|
source_history_id
required
|
string or null |
|
starts_at
required
|
string (date-time) |
|
status
required
|
string |
one of booked, checked_in, in_progress, completed, cancelled, no_show
|
title
required
|
string |
length 1–200
|
version
required
|
integer |
value ≥ 1
|
patient
required
|
Patient |
|
birth_date
required
|
string (date) |
|
family_name
required
|
string |
|
given_name
required
|
string |
|
id
required
|
string (uuid) |
|
mrn
required
|
string |
|
archived
|
boolean |
Current append-only chart archive status on native patient directory and workspace responses. Historical identity snapshots may omit it.
|
visits
required
|
array of Visit |
|
appointment_id
required
|
string (uuid) |
|
clinician_id
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
note
required
|
SoapNote or null |
|
patient_id
required
|
string (uuid) |
|
signed_at
required
|
string (date-time) or null |
|
signed_by
required
|
string (uuid) or null |
|
status
required
|
string |
one of in_progress, signed
|
version
required
|
integer |
value ≥ 1
|
vitals
required
|
Vitals or null |
|
Example response placeholder values
{
"amendments": [
{
"author_id": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"reason": "string",
"text": "string",
"visit_id": "00000000-0000-4000-8000-000000000000"
}
],
"appointments": [
{
"category": "string",
"clinician_id": "00000000-0000-4000-8000-000000000000",
"ends_at": "2026-01-15T15:30:00Z",
"facility": "string",
"id": "00000000-0000-4000-8000-000000000000",
"notes": "string",
"patient_id": "00000000-0000-4000-8000-000000000000",
"room": "string",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"starts_at": "2026-01-15T15:30:00Z",
"status": "booked",
"title": "string",
"version": 1
}
],
"patient": {
"birth_date": "2026-01-15",
"family_name": "string",
"given_name": "string",
"id": "00000000-0000-4000-8000-000000000000",
"mrn": "string",
"archived": true
},
"visits": [
{
"appointment_id": "00000000-0000-4000-8000-000000000000",
"clinician_id": "00000000-0000-4000-8000-000000000000",
"id": "00000000-0000-4000-8000-000000000000",
"note": {
"assessment": "string",
"objective": "string",
"plan": "string",
"subjective": "string",
"procedure": "string",
"saved_by": {
"at": null,
"id": null,
"name": null,
"support": null
},
"started_from": {
"sections": null,
"version": null,
"visit_id": null,
"visit_date": null
}
},
"patient_id": "00000000-0000-4000-8000-000000000000",
"signed_at": "2026-01-15T15:30:00Z",
"signed_by": "00000000-0000-4000-8000-000000000000",
"status": "in_progress",
"version": 1,
"vitals": {
"diastolic_mm_hg": 10,
"heart_rate_bpm": 10,
"height_cm": 10,
"oxygen_saturation_pct": 0,
"systolic_mm_hg": 30,
"temperature_c": 20,
"weight_kg": 0.1
}
}
]
}
Example call
curl "$EHR_URL/api/v1/patients/{id}/workspace" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Clinical lists
GET
/api/v1/patients/{patient}/clinical
Single snapshot of native items, list review versions and attributed review history. Empty entries mean unknown, never automatically no-known. Staff only.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
Responses
-
200
Success
-
400
Invalid content/status/date/classification
-
401
Authentication required
-
403
Role/scope denied
-
404
Patient or entry not in authenticated clinic
-
409
Stale version, duplicate source mapping or conflicting review
-
428
Current quoted If-Match version required
Example call
curl "$EHR_URL/api/v1/patients/{patient}/clinical" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create clinical entry
POST
/api/v1/patients/{patient}/clinical
Clinician/owner only; creates version 1 and immutable revision with atomic audit. Optional source_history_id must match this patient and kind, and can be reconciled only once. Invalidates prior list review.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
Request body
application/json · required
Fields ClinicalChange · 14
| Field |
Type |
Details |
content
required
|
ClinicalContent |
|
detail
required
|
object or object or object |
|
status
required
|
string |
one of active, inactive, resolved, recurrence, remission, on_hold, stopped, completed, not_taken, intended, entered_in_error
|
title
required
|
string |
length 1–200
|
verification
required
|
string |
one of unconfirmed, confirmed, refuted, entered_in_error
|
codes
|
array of ClinicalCoding |
items ≤ 20
|
code
required
|
string |
length ≤ 120
|
system
required
|
string |
length ≤ 200
|
display
|
string |
length ≤ 200
|
end_date
|
string or null |
|
notes
|
string |
length ≤ 10000
|
onset_date
|
string or null |
|
reason
required
|
string |
length 1–1000
|
source_history_id
|
string or null |
|
Example request body placeholder values
{
"content": {
"detail": {
"kind": "problem",
"problem_type": "problem"
},
"status": "active",
"title": "string",
"verification": "unconfirmed",
"codes": [
{
"code": "string",
"system": "string",
"display": "string"
}
],
"end_date": "2026-01-15",
"notes": "string",
"onset_date": "2026-01-15"
},
"reason": "string",
"source_history_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
-
400
Invalid content/status/date/classification
-
401
Authentication required
-
403
Role/scope denied
-
404
Patient or entry not in authenticated clinic
-
409
Stale version, duplicate source mapping or conflicting review
-
428
Current quoted If-Match version required
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/clinical" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Reconcile imported clinical list
POST
/api/v1/patients/{patient}/clinical-reconcile/{kind}
Clinician/owner only. Creates one native entry per listed imported problem or medication of this patient, each with its own source link, carried source codes (ICD-10-CM, SNOMED CT, RxNorm, NDC) and attributed revision. Already reconciled records are skipped; records whose suggested entry is not valid are returned in needs_review and left for individual reconciliation. No native signature is created.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
kind
required
|
path |
string |
|
Request body
application/json · required
Fields object · 1
| Field |
Type |
Details |
history_ids
required
|
array of string (uuid) |
items 1–200
|
Example request body placeholder values
{
"history_ids": [
"00000000-0000-4000-8000-000000000000"
]
}
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid request
-
401
Authentication required
-
403
Scope or role denied
-
404
Record not found in the authenticated clinic
-
409
Conflicting state
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/clinical-reconcile/{kind}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Review clinical list
POST
/api/v1/patients/{patient}/clinical-review/{kind}
Clinician/owner only; version prevents reviewing a changed list. Unreconciled imported list records block reviewed/no_known. Current nonrefuted entries block no_known. Reviews append attributed history; later native mutations and new source imports invalidate review.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
kind
required
|
path |
string |
|
If-Match
required
|
header |
string |
Quoted current entry version, or list version for reviews. Initial unrecorded list version is 1. |
Request body
application/json · required
Fields ClinicalReview · 2
| Field |
Type |
Details |
note
required
|
string |
length 1–2000
|
review_state
required
|
string |
one of unknown, reviewed, no_known
|
Example request body placeholder values
{
"note": "string",
"review_state": "unknown"
}
Responses
-
200
Success
-
400
Invalid content/status/date/classification
-
401
Authentication required
-
403
Role/scope denied
-
404
Patient or entry not in authenticated clinic
-
409
Stale version, duplicate source mapping or conflicting review
-
428
Current quoted If-Match version required
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/clinical-review/{kind}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Update clinical entry
PUT
/api/v1/patients/{patient}/clinical/{id}
Clinician/owner only; full replacement of content with reason and optimistic version. Appends revision, invalidates list review. Kind and source_history_id cannot change; echo existing source_history_id. Use entered_in_error or inactive/stopped/resolved status instead of hard deletion. Medication statements do not create prescriptions.
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 |
Quoted current entry version, or list version for reviews. Initial unrecorded list version is 1. |
Request body
application/json · required
Fields ClinicalChange · 14
| Field |
Type |
Details |
content
required
|
ClinicalContent |
|
detail
required
|
object or object or object |
|
status
required
|
string |
one of active, inactive, resolved, recurrence, remission, on_hold, stopped, completed, not_taken, intended, entered_in_error
|
title
required
|
string |
length 1–200
|
verification
required
|
string |
one of unconfirmed, confirmed, refuted, entered_in_error
|
codes
|
array of ClinicalCoding |
items ≤ 20
|
code
required
|
string |
length ≤ 120
|
system
required
|
string |
length ≤ 200
|
display
|
string |
length ≤ 200
|
end_date
|
string or null |
|
notes
|
string |
length ≤ 10000
|
onset_date
|
string or null |
|
reason
required
|
string |
length 1–1000
|
source_history_id
|
string or null |
|
Example request body placeholder values
{
"content": {
"detail": {
"kind": "problem",
"problem_type": "problem"
},
"status": "active",
"title": "string",
"verification": "unconfirmed",
"codes": [
{
"code": "string",
"system": "string",
"display": "string"
}
],
"end_date": "2026-01-15",
"notes": "string",
"onset_date": "2026-01-15"
},
"reason": "string",
"source_history_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
-
400
Invalid content/status/date/classification
-
401
Authentication required
-
403
Role/scope denied
-
404
Patient or entry not in authenticated clinic
-
409
Stale version, duplicate source mapping or conflicting review
-
428
Current quoted If-Match version required
Example call
curl -X PUT "$EHR_URL/api/v1/patients/{patient}/clinical/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Clinical entry revisions
GET
/api/v1/patients/{patient}/clinical/{id}/revisions
Staff only; full immutable snapshots with author, time and change reason, newest first.
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
-
400
Invalid content/status/date/classification
-
401
Authentication required
-
403
Role/scope denied
-
404
Patient or entry not in authenticated clinic
-
409
Stale version, duplicate source mapping or conflicting review
-
428
Current quoted If-Match version required
Example call
curl "$EHR_URL/api/v1/patients/{patient}/clinical/{id}/revisions" -H "Authorization: Bearer $ACCESS_TOKEN"
#
List patient surgical and dental history
GET
/api/v1/patients/{patient}/health-history
Staff-only patient-scoped keyset page. Empty history does not assert no prior surgery or dental problems.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
_count
|
query |
integer |
|
_after
|
query |
string (uuid) |
|
kind
|
query |
string |
|
status
|
query |
string |
|
Responses
-
200
Success
application/json
-
Fields HealthHistoryPage · 18
| Field |
Type |
Details |
items
required
|
array of HealthHistoryEntry |
|
content
required
|
HealthHistoryContent |
|
kind
required
|
string |
one of surgery, dental
|
status
required
|
string |
one of active, resolved, completed, entered_in_error
|
title
required
|
string |
length 1–200
|
verification
required
|
string |
one of unconfirmed, confirmed, refuted, entered_in_error
|
code
|
object or null |
|
end_date
|
string (date) or null |
|
notes
|
string |
default length ≤ 10000
|
onset_date
|
string (date) or null |
|
created_at
required
|
string (date-time) |
|
created_by
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
updated_at
required
|
string (date-time) |
|
updated_by
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
next_cursor
required
|
string (uuid) or null |
|
Example response placeholder values
{
"items": [
{
"content": {
"kind": "surgery",
"status": "active",
"title": "string",
"verification": "unconfirmed",
"code": {
"code": null,
"system": null,
"display": ""
},
"end_date": "2026-01-15",
"notes": "",
"onset_date": "2026-01-15"
},
"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",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000",
"version": 1
}
],
"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 idempotency conflict
-
500
Atomic operation failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/health-history" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Record surgical or dental history
POST
/api/v1/patients/{patient}/health-history
Clinician/owner only. Request UUID is idempotent only for identical content and reason. Creates immutable attributed revision and atomic audit. Does not assert procedure performance or terminology validation.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
Request body
application/json · required
Fields HealthHistoryCreate · 11
| Field |
Type |
Details |
content
required
|
HealthHistoryContent |
|
kind
required
|
string |
one of surgery, dental
|
status
required
|
string |
one of active, resolved, completed, entered_in_error
|
title
required
|
string |
length 1–200
|
verification
required
|
string |
one of unconfirmed, confirmed, refuted, entered_in_error
|
code
|
object or null |
|
end_date
|
string (date) or null |
|
notes
|
string |
default length ≤ 10000
|
onset_date
|
string (date) or null |
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
Example request body placeholder values
{
"content": {
"kind": "surgery",
"status": "active",
"title": "string",
"verification": "unconfirmed",
"code": {
"code": "string",
"system": "string",
"display": ""
},
"end_date": "2026-01-15",
"notes": "",
"onset_date": "2026-01-15"
},
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields HealthHistoryEntry · 16
| Field |
Type |
Details |
content
required
|
HealthHistoryContent |
|
kind
required
|
string |
one of surgery, dental
|
status
required
|
string |
one of active, resolved, completed, entered_in_error
|
title
required
|
string |
length 1–200
|
verification
required
|
string |
one of unconfirmed, confirmed, refuted, entered_in_error
|
code
|
object or null |
|
end_date
|
string (date) or null |
|
notes
|
string |
default length ≤ 10000
|
onset_date
|
string (date) or null |
|
created_at
required
|
string (date-time) |
|
created_by
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
updated_at
required
|
string (date-time) |
|
updated_by
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"content": {
"kind": "surgery",
"status": "active",
"title": "string",
"verification": "unconfirmed",
"code": {
"code": "string",
"system": "string",
"display": ""
},
"end_date": "2026-01-15",
"notes": "",
"onset_date": "2026-01-15"
},
"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",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or idempotency conflict
-
500
Atomic operation failed
Example call
curl -X POST "$EHR_URL/api/v1/patients/{patient}/health-history" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read a surgical or dental history entry
GET
/api/v1/patients/{patient}/health-history/{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 HealthHistoryEntry · 16
| Field |
Type |
Details |
content
required
|
HealthHistoryContent |
|
kind
required
|
string |
one of surgery, dental
|
status
required
|
string |
one of active, resolved, completed, entered_in_error
|
title
required
|
string |
length 1–200
|
verification
required
|
string |
one of unconfirmed, confirmed, refuted, entered_in_error
|
code
|
object or null |
|
end_date
|
string (date) or null |
|
notes
|
string |
default length ≤ 10000
|
onset_date
|
string (date) or null |
|
created_at
required
|
string (date-time) |
|
created_by
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
updated_at
required
|
string (date-time) |
|
updated_by
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"content": {
"kind": "surgery",
"status": "active",
"title": "string",
"verification": "unconfirmed",
"code": {
"code": "string",
"system": "string",
"display": ""
},
"end_date": "2026-01-15",
"notes": "",
"onset_date": "2026-01-15"
},
"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",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or idempotency conflict
-
500
Atomic operation failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/health-history/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Revise surgical or dental history
PUT
/api/v1/patients/{patient}/health-history/{id}
Clinician/owner only. Appends an attributed revision and audit atomically. No destructive deletion.
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 |
Quoted current entry/resource version. |
Request body
application/json · required
Fields HealthHistoryEdit · 10
| Field |
Type |
Details |
content
required
|
HealthHistoryContent |
|
kind
required
|
string |
one of surgery, dental
|
status
required
|
string |
one of active, resolved, completed, entered_in_error
|
title
required
|
string |
length 1–200
|
verification
required
|
string |
one of unconfirmed, confirmed, refuted, entered_in_error
|
code
|
object or null |
|
end_date
|
string (date) or null |
|
notes
|
string |
default length ≤ 10000
|
onset_date
|
string (date) or null |
|
reason
required
|
string |
length 1–1000
|
Example request body placeholder values
{
"content": {
"kind": "surgery",
"status": "active",
"title": "string",
"verification": "unconfirmed",
"code": {
"code": "string",
"system": "string",
"display": ""
},
"end_date": "2026-01-15",
"notes": "",
"onset_date": "2026-01-15"
},
"reason": "string"
}
Responses
-
200
Success
application/json
-
Fields HealthHistoryEntry · 16
| Field |
Type |
Details |
content
required
|
HealthHistoryContent |
|
kind
required
|
string |
one of surgery, dental
|
status
required
|
string |
one of active, resolved, completed, entered_in_error
|
title
required
|
string |
length 1–200
|
verification
required
|
string |
one of unconfirmed, confirmed, refuted, entered_in_error
|
code
|
object or null |
|
end_date
|
string (date) or null |
|
notes
|
string |
default length ≤ 10000
|
onset_date
|
string (date) or null |
|
created_at
required
|
string (date-time) |
|
created_by
required
|
string (uuid) |
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
updated_at
required
|
string (date-time) |
|
updated_by
required
|
string (uuid) |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"content": {
"kind": "surgery",
"status": "active",
"title": "string",
"verification": "unconfirmed",
"code": {
"code": "string",
"system": "string",
"display": ""
},
"end_date": "2026-01-15",
"notes": "",
"onset_date": "2026-01-15"
},
"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",
"updated_at": "2026-01-15T15:30:00Z",
"updated_by": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or idempotency conflict
-
428
Current quoted version required
-
500
Atomic operation failed
Example call
curl -X PUT "$EHR_URL/api/v1/patients/{patient}/health-history/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read attributed surgical or dental history revisions
GET
/api/v1/patients/{patient}/health-history/{id}/revisions
Bounded immutable revision history; response reports omitted older history. See current entry version before editing.
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 · 16
| Field |
Type |
Details |
items
required
|
array of object |
items ≤ 100
|
author_id
required
|
string (uuid) |
|
content
required
|
HealthHistoryContent |
|
kind
required
|
string |
one of surgery, dental
|
status
required
|
string |
one of active, resolved, completed, entered_in_error
|
title
required
|
string |
length 1–200
|
verification
required
|
string |
one of unconfirmed, confirmed, refuted, entered_in_error
|
code
|
object or null |
|
end_date
|
string (date) or null |
|
notes
|
string |
default length ≤ 10000
|
onset_date
|
string (date) or null |
|
created_at
required
|
string (date-time) |
|
reason
required
|
string |
|
version
required
|
integer |
|
actor_label
|
string or null |
|
truncated
required
|
boolean |
|
Example response placeholder values
{
"items": [
{
"author_id": "00000000-0000-4000-8000-000000000000",
"content": {
"kind": "surgery",
"status": "active",
"title": "string",
"verification": "unconfirmed",
"code": {
"code": null,
"system": null,
"display": ""
},
"end_date": "2026-01-15",
"notes": "",
"onset_date": "2026-01-15"
},
"created_at": "2026-01-15T15:30:00Z",
"reason": "string",
"version": 1,
"actor_label": "string"
}
],
"truncated": true
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Record not found in tenant/patient
-
409
Version, state or idempotency conflict
-
500
Atomic operation failed
Example call
curl "$EHR_URL/api/v1/patients/{patient}/health-history/{id}/revisions" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Preview source lab mapping
GET
/api/v1/patients/{patient}/history/{id}/lab-mapping
Clinician/owner only. legacy-ehi-labs-v1 suggested fields and original source data. Reconcile the source order before its report. No silent timezone, terminology or laboratory identity inference. No records change on preview; explicit creation requires clinician review. Source signatures remain unverified.
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
-
400
Invalid data or clinical relationship
-
401
Authentication required
-
403
Clinical role/scope denied
-
404
Record not in authenticated clinic/patient
-
409
Invalid transition, stale version, request ID collision or duplicate source mapping
-
413
Request exceeds 64KiB
-
428
Current quoted If-Match version required
Example call
curl "$EHR_URL/api/v1/patients/{patient}/history/{id}/lab-mapping" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Preview clinical source mapping
GET
/api/v1/patients/{patient}/history/{id}/mapping
Clinician/owner only. Suggested source system list mapping, review issues, original source fields and existing native_entry_id if reconciled. Preview never mutates source or creates an entry; explicitly POST ClinicalChange to reconcile. Structured source codes (ICD-10-CM, SNOMED CT, RxNorm, NDC) are carried into the suggested entry as recorded. Mapping is not source identity authentication, terminology validation or eRx.
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
-
400
Invalid content/status/date/classification
-
401
Authentication required
-
403
Role/scope denied
-
404
Patient or entry not in authenticated clinic
-
409
Stale version, duplicate source mapping or conflicting review
-
428
Current quoted If-Match version required
Example call
curl "$EHR_URL/api/v1/patients/{patient}/history/{id}/mapping" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Financial source mapping
GET
/api/v1/patients/{p}/history/{id}/billing-mapping
Staff review insurance/billing/transaction originals. Insurance and charges require explicit native reconciliation; transactions remain archive until separately reconciled.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
p
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields BillingMapping · 6
| Field |
Type |
Details |
data
required
|
object |
|
kind
required
|
string |
one of insurance, billing, transaction
|
native_id
required
|
string or null |
|
policy
required
|
string |
length 0–1000
|
source_data
required
|
object |
|
source_history_id
required
|
string (uuid) |
|
Example response placeholder values
{
"data": {},
"kind": "insurance",
"native_id": "00000000-0000-4000-8000-000000000000",
"policy": "string",
"source_data": {},
"source_history_id": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid mapping or values
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale version, duplicate source, conflicting coverage or balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; no partial mutation committed
Example call
curl "$EHR_URL/api/v1/patients/{p}/history/{id}/billing-mapping" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Claim source mapping
GET
/api/v1/patients/{p}/history/{id}/claim-mapping
Read preserved source system claim fields and native reconciliation link. No automatic submission activation.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
p
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields ClaimSourceMapping · 4
| Field |
Type |
Details |
native_id
|
string or null |
|
policy
|
string |
|
source_data
|
object |
|
source_history_id
|
string (uuid) |
|
Example response placeholder values
{
"native_id": "00000000-0000-4000-8000-000000000000",
"policy": "string",
"source_data": {},
"source_history_id": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid values or unsupported shape
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale review, duplicate evidence, incompatible lifecycle or unsafe balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/patients/{p}/history/{id}/claim-mapping" -H "Authorization: Bearer $ACCESS_TOKEN"
No endpoint matches that filter.