#
Link selected encounter diagnoses to a draft order
PUT
/api/v1/patients/{patient}/orders/{order}/diagnoses
Draft-only. If-Match checks target version and visit_version checks linked encounter version under a shared lock. Selected IDs must belong to the same tenant, patient and linked visit. Persists a code/display/ID snapshot with attributed history and atomic audit. Empty selection clears provenance. Charge linking appends selected codes while retaining manual and previously added codes; clearing does not remove codes. Finalized content is immutable.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
patient
required
|
path |
string (uuid) |
|
order
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current resource version. Missing/malformed returns428; stale returns409. |
Request body
application/json · required
Fields OrderDiagnosisSelection · 3
| Field |
Type |
Details |
diagnosis_ids
required
|
array of string (uuid) |
items ≤ 20
|
reason
required
|
string |
length 1–1000
|
visit_version
required
|
integer |
value ≥ 1
|
Example request body placeholder values
{
"diagnosis_ids": [
"00000000-0000-4000-8000-000000000000"
],
"reason": "string",
"visit_version": 1
}
Responses
-
200
Success; tenant-scoped attributed data, no credentials
application/json
-
Fields LabOrder · 22
| Field |
Type |
Details |
content
required
|
OrderContent |
|
category
required
|
string |
one of laboratory, imaging, procedure
|
clinical_reason
required
|
string |
length ≤ 2000
|
destination
required
|
string |
length ≤ 200
|
priority
required
|
string |
one of routine, urgent, stat
|
tests
required
|
array of RequestedLabTest |
items 1–30
|
key
required
|
string |
length ≤ 80
|
label
required
|
string |
length ≤ 200
|
code
|
ClinicalCoding or null |
|
title
required
|
string |
length ≤ 200
|
instructions
|
string |
length ≤ 4000
|
diagnosis_snapshot
required
|
OrderDiagnosisSnapshot or null |
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
status
required
|
string |
|
version
required
|
integer |
|
visit_id
required
|
string (uuid) or null |
|
created_at
|
string (date-time) |
|
created_by
|
string (uuid) |
|
placed_at
|
string or null |
|
placed_by
|
string (uuid) or null |
|
source_history_id
|
string (uuid) or null |
|
Example response placeholder values
{
"content": {
"category": "laboratory",
"clinical_reason": "string",
"destination": "string",
"priority": "routine",
"tests": [
{
"key": "string",
"label": "string",
"code": {
"code": null,
"system": null,
"display": null
}
}
],
"title": "string",
"instructions": "string"
},
"diagnosis_snapshot": {
"code_system": "http://hl7.org/fhir/sid/icd-10-cm",
"diagnoses": [
{
"code": "string",
"display": "string",
"id": "00000000-0000-4000-8000-000000000000",
"rank": 1,
"catalog_release_id": "00000000-0000-4000-8000-000000000000",
"catalog_snapshot": {
"active": null,
"billable": null,
"code": null,
"display": null,
"edition": null,
"effective_end": null,
"effective_start": null,
"metadata": null,
"release_id": null,
"service_date": null,
"short_display": null,
"source_name": null,
"source_sha256": null,
"source_url": null,
"system": "ICD-10-CM"
}
}
],
"visit_id": "00000000-0000-4000-8000-000000000000",
"visit_version": 1
},
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"status": "string",
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z"
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Resource not found in tenant
-
409
State or version conflict
-
428
Current quoted resource version required
-
500
Atomic operation failed
Example call
curl -X PUT "$EHR_URL/api/v1/patients/{patient}/orders/{order}/diagnoses" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Link selected encounter diagnoses to a draft charge account
PUT
/api/v1/patients/{p}/billing/accounts/{id}/diagnoses
Draft-only. If-Match checks target version and visit_version checks linked encounter version under a shared lock. Selected IDs must belong to the same tenant, patient and linked visit. Persists a code/display/ID snapshot with attributed history and atomic audit. Empty selection clears provenance. Charge linking appends selected codes while retaining manual and previously added codes; clearing does not remove codes. Finalized content is immutable.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
p
required
|
path |
string (uuid) |
|
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current resource version. Missing/malformed returns428; stale returns409. |
Request body
application/json · required
Fields AccountDiagnosisSelection · 5
| Field |
Type |
Details |
lines
required
|
array of object |
items ≤ 100
|
diagnosis_ids
required
|
array of string (uuid) |
items ≤ 12
|
line_index
required
|
integer |
value ≥ 0
|
reason
required
|
string |
length 1–1000
|
visit_version
required
|
integer |
value ≥ 1
|
Example request body placeholder values
{
"lines": [
{
"diagnosis_ids": [
"00000000-0000-4000-8000-000000000000"
],
"line_index": 0
}
],
"reason": "string",
"visit_version": 1
}
Responses
-
200
Success; tenant-scoped attributed data, no credentials
application/json
-
Fields BillingAccount · 44
| Field |
Type |
Details |
content
required
|
BillingAccountContent |
|
coverage_id
required
|
string or null |
|
currency
required
|
string |
one of USD
|
lines
required
|
array of ChargeLine |
items 1–100
|
amount_cents
required
|
integer |
Complete USD line total for the stated units; never multiplied by units again
value 1–100000000
|
code
required
|
string |
Local code unless catalog_release_id is supplied. Canonical CPT syntax: ^[0-9]{4}[0-9FTUM]$; HCPCS: ^[A-Z][0-9]{4}$. Syntax alone does not establish catalog assignment or coverage.
length 1–100
|
code_system
required
|
string |
length 1–100
|
description
required
|
string |
Nonblank, at most 10000 UTF-8 bytes. A selected catalog supplies the publisher description.
length 1–10000
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
modifiers
required
|
string |
length 0–100
|
units
required
|
integer |
value 1–1000
|
catalog_release_id
|
string or null |
Optional tenant-owned catalog release. The server resolves the code and requires it to be active and billable for the service date. Only CPT or HCPCS; code_system must exactly match the selected catalog. Uses the billing account service_date.
|
catalog_snapshot
|
TerminologySelectionSnapshot |
Canonical catalog entry. Effective dates are the intersection of release and code dates. Syntax alone does not establish assignment, billability, coverage or licensing. ICD-10-CM permits an alphanumeric second character, including FY2027 QA0 codes; CPT supports numeric, F, T, U and M suffixes.
|
active
required
|
boolean |
|
billable
required
|
boolean |
|
code
required
|
string |
length ≤ 8
|
display
required
|
string |
Publisher description, bounded to 10000 UTF-8 bytes.
|
edition
required
|
string |
|
effective_end
required
|
string or null |
|
effective_start
required
|
string (date) |
|
metadata
required
|
object |
Publisher metadata, at most 4096 serialized UTF-8 bytes.
|
release_id
required
|
string (uuid) |
|
service_date
required
|
string (date) |
|
short_display
required
|
string or null |
|
source_name
required
|
string |
|
source_sha256
required
|
string |
pattern ^[0-9a-f]{64}$
|
source_url
required
|
string (uri) |
|
system
required
|
string |
one of ICD-10-CM, ICD-10-PCS, HCPCS, CPT
|
fee_entry_key
|
string or null |
Canonical system:code:exact-modifiers key returned by the quote.
|
fee_override_reason
|
string or null |
Required when an approved fee line amount differs from unit fee times units.
length ≤ 1000
|
fee_schedule_id
|
string or null |
|
fee_snapshot
|
PracticeFeeSnapshot |
Server-generated immutable approved fee evidence. Includes schedule_id, entry_key, unit_amount_cents, expected_line_amount_cents, actual_line_amount_cents, units, service_date, context, approved schedule scope/source metadata, source entry, override_reason and recorded_by. Unchanged saved line evidence survives retirement and directory changes. Supplied client snapshots are discarded.
|
notes
required
|
string |
length 0–2000
|
service_date
required
|
string (date) |
|
visit_id
required
|
string or null |
|
fee_context
|
PracticeFeeContext or null |
Optional once-per-account fee context; provider is derived from the linked visit. Required for newly selected approved fee lines.
|
coverage_snapshot
required
|
object or null |
Frozen payer and policy versions captured at local posting; no eligibility assertion
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
status
required
|
string |
one of draft, posted, void
|
total_cents
required
|
integer |
value 1–1000000000
|
version
required
|
integer |
value ≥ 1
|
diagnosis_snapshot
|
AccountDiagnosisSnapshot or null |
|
Example response placeholder values
{
"content": {
"coverage_id": "00000000-0000-4000-8000-000000000000",
"currency": "USD",
"lines": [
{
"amount_cents": 1,
"code": "string",
"code_system": "string",
"description": "string",
"diagnosis_codes": [],
"modifiers": "string",
"units": 1,
"catalog_release_id": "00000000-0000-4000-8000-000000000000"
}
],
"notes": "string",
"service_date": "2026-01-15",
"visit_id": "00000000-0000-4000-8000-000000000000",
"fee_context": {
"facility_id": "00000000-0000-4000-8000-000000000000",
"setting": "facility"
}
},
"coverage_snapshot": {},
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"total_cents": 1,
"version": 1
}
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Resource not found in tenant
-
409
State or version conflict
-
428
Current quoted resource version required
-
500
Atomic operation failed
Example call
curl -X PUT "$EHR_URL/api/v1/patients/{p}/billing/accounts/{id}/diagnoses" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Start visit
POST
/api/v1/visits
Access
OAuth 2.0 access tokenclinical.write
Request body
application/json · required
Fields StartVisit · 1
| Field |
Type |
Details |
appointment_id
required
|
string (uuid) |
|
Example request body placeholder values
{
"appointment_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
201
Success
application/json
-
Fields Visit · 10
| Field |
Type |
Details |
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
{
"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": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"support": true
},
"started_from": {
"sections": [
"subjective"
],
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000",
"visit_date": "2026-01-15T15:30:00Z"
}
},
"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 -X POST "$EHR_URL/api/v1/visits" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Get visit
GET
/api/v1/visits/{id}
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields Visit · 10
| Field |
Type |
Details |
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
{
"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": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"support": true
},
"started_from": {
"sections": [
"subjective"
],
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000",
"visit_date": "2026-01-15T15:30:00Z"
}
},
"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/visits/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Append a signed correction to a signed note
POST
/api/v1/visits/{id}/amendments
Any clinician or the owner may append a correction to a signed note, whether or not they signed it or the visit is assigned to them. Nurses, medical assistants and delegated support sessions cannot. Each amendment records its author and the original note is never changed.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Current quoted visit version, for example "1". Missing: 428. Stale: 409. |
Request body
application/json · required
Fields NewAmendment · 2
| Field |
Type |
Details |
reason
required
|
string |
length 1–1000
|
text
required
|
string |
length 1–10000
|
Example request body placeholder values
{
"reason": "string",
"text": "string"
}
Responses
-
200
Success
application/json
-
Fields Visit · 10
| Field |
Type |
Details |
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
{
"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": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"support": true
},
"started_from": {
"sections": [
"subjective"
],
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000",
"visit_date": "2026-01-15T15:30:00Z"
}
},
"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 -X POST "$EHR_URL/api/v1/visits/{id}/amendments" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read ordered encounter diagnoses and attributed revisions
GET
/api/v1/visits/{id}/diagnoses
Staff-only tenant-scoped read. Empty diagnoses is an unrecorded list, not a negative clinical assertion. Returns current shared visit version and at most100 newest immutable revisions; history_truncated signals older history. service_date is the date used for catalog selection; selected diagnoses include read-only catalog provenance.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success; tenant-scoped attributed data, no credentials
application/json
-
Fields VisitDiagnoses · 67
| Field |
Type |
Details |
can_edit
required
|
boolean |
|
code_system
required
|
constant |
always http://hl7.org/fhir/sid/icd-10-cm
|
diagnoses
required
|
array of EncounterDiagnosis |
items ≤ 20
|
code
required
|
string |
pattern ^[A-Z][A-Z0-9]{2}(\.[A-Z0-9]{1,4})?$
|
display
required
|
string |
|
id
required
|
string (uuid) |
Retained while the canonical code remains in the list.
|
rank
required
|
integer |
value 1–20
|
catalog_release_id
|
string (uuid) |
|
catalog_snapshot
|
TerminologySelectionSnapshot |
Canonical catalog entry. Effective dates are the intersection of release and code dates. Syntax alone does not establish assignment, billability, coverage or licensing. ICD-10-CM permits an alphanumeric second character, including FY2027 QA0 codes; CPT supports numeric, F, T, U and M suffixes.
|
active
required
|
boolean |
|
billable
required
|
boolean |
|
code
required
|
string |
length ≤ 8
|
display
required
|
string |
Publisher description, bounded to 10000 UTF-8 bytes.
|
edition
required
|
string |
|
effective_end
required
|
string or null |
|
effective_start
required
|
string (date) |
|
metadata
required
|
object |
Publisher metadata, at most 4096 serialized UTF-8 bytes.
|
release_id
required
|
string (uuid) |
|
service_date
required
|
string (date) |
|
short_display
required
|
string or null |
|
source_name
required
|
string |
|
source_sha256
required
|
string |
pattern ^[0-9a-f]{64}$
|
source_url
required
|
string (uri) |
|
system
required
|
string |
one of ICD-10-CM, ICD-10-PCS, HCPCS, CPT
|
history
required
|
array of VisitDiagnosisRevision |
items ≤ 100
|
actor_id
required
|
string (uuid) |
|
created_at
required
|
string (date-time) |
|
id
required
|
string (uuid) |
|
reason
required
|
string |
|
snapshot
required
|
array of EncounterDiagnosis |
|
code
required
|
string |
pattern ^[A-Z][A-Z0-9]{2}(\.[A-Z0-9]{1,4})?$
|
display
required
|
string |
|
id
required
|
string (uuid) |
Retained while the canonical code remains in the list.
|
rank
required
|
integer |
value 1–20
|
catalog_release_id
|
string (uuid) |
|
catalog_snapshot
|
TerminologySelectionSnapshot |
Canonical catalog entry. Effective dates are the intersection of release and code dates. Syntax alone does not establish assignment, billability, coverage or licensing. ICD-10-CM permits an alphanumeric second character, including FY2027 QA0 codes; CPT supports numeric, F, T, U and M suffixes.
|
active
required
|
boolean |
|
billable
required
|
boolean |
|
code
required
|
string |
length ≤ 8
|
display
required
|
string |
Publisher description, bounded to 10000 UTF-8 bytes.
|
edition
required
|
string |
|
effective_end
required
|
string or null |
|
effective_start
required
|
string (date) |
|
metadata
required
|
object |
Publisher metadata, at most 4096 serialized UTF-8 bytes.
|
release_id
required
|
string (uuid) |
|
service_date
required
|
string (date) |
|
short_display
required
|
string or null |
|
source_name
required
|
string |
|
source_sha256
required
|
string |
pattern ^[0-9a-f]{64}$
|
source_url
required
|
string (uri) |
|
system
required
|
string |
one of ICD-10-CM, ICD-10-PCS, HCPCS, CPT
|
visit_version
required
|
integer |
|
actor_label
|
string or null |
Current staff display name or email when available; actor_id retains stable attribution.
|
history_truncated
required
|
boolean |
|
service_date
required
|
string (date) |
Encounter service date in the booking timezone, frozen by the earliest catalog selection and retained through immutable revisions.
|
version
required
|
integer |
|
visit
required
|
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
{
"can_edit": true,
"code_system": "http://hl7.org/fhir/sid/icd-10-cm",
"diagnoses": [
{
"code": "string",
"display": "string",
"id": "00000000-0000-4000-8000-000000000000",
"rank": 1,
"catalog_release_id": "00000000-0000-4000-8000-000000000000",
"catalog_snapshot": {
"active": true,
"billable": true,
"code": "string",
"display": "string",
"edition": "string",
"effective_end": "2026-01-15",
"effective_start": "2026-01-15",
"metadata": {},
"release_id": "00000000-0000-4000-8000-000000000000",
"service_date": "2026-01-15",
"short_display": "string",
"source_name": "string",
"source_sha256": "string",
"source_url": "https://app.example.test/callback",
"system": "ICD-10-CM"
}
}
],
"history": [
{
"actor_id": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"reason": "string",
"snapshot": [
{
"code": null,
"display": null,
"id": null,
"rank": null,
"catalog_release_id": null,
"catalog_snapshot": null
}
],
"visit_version": 1,
"actor_label": "string"
}
],
"history_truncated": true,
"service_date": "2026-01-15",
"version": 1,
"visit": {
"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": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"support": true
},
"started_from": {
"sections": [
"subjective"
],
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000",
"visit_date": "2026-01-15T15:30:00Z"
}
},
"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
-
401
Authentication required
-
403
Role or scope denied
-
404
Resource not found in tenant
-
500
Atomic operation failed
Example call
curl "$EHR_URL/api/v1/visits/{id}/diagnoses" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Replace ordered encounter diagnoses before signing
PUT
/api/v1/visits/{id}/diagnoses
Anyone who may save the visit's note may save its diagnoses while the visit is in progress: any clinician, the owner, an enabled nurse or medical assistant. Replaces the whole ordered list with at most20 unique ICD-10-CM codes; rank1 is primary. Codes are trimmed and uppercased, descriptions trimmed. Without catalog_release_id, format validation does not establish validity in an ICD-10-CM edition. With a tenant ICD-10-CM release, the server requires an active billable code for service_date, replaces code/display with catalog values, and preserves read-only edition and service-date provenance. Reason is required; an empty array explicitly removes all diagnoses. Shares Visit.version with intake, SOAP and vitals. Mutation, immutable snapshot revision and audit event commit atomically. Signed diagnoses are immutable. Does not update the longitudinal problem list, orders or billing automatically.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current resource version. Missing/malformed returns428; stale returns409. |
Request body
application/json · required
Fields VisitDiagnosesInput · 5
| Field |
Type |
Details |
diagnoses
required
|
array of EncounterDiagnosisInput |
Ordered unique canonical codes. First entry is primary; empty array explicitly clears.
items ≤ 20
|
code
required
|
string |
Trimmed and uppercased. Canonical ICD-10-CM syntax is ^[A-Z][A-Z0-9]{2}(\.[A-Z0-9]{1,4})?$; the second character may be a letter (including FY2027 QA0 codes). Without catalog_release_id, only syntax is validated.
|
display
required
|
string |
Nonblank description, at most 2000 UTF-8 bytes after trimming. A selected catalog replaces it with the publisher description.
length 1–2000
|
catalog_release_id
|
string or null |
Optional tenant-owned catalog release. The server resolves the code and requires it to be active and billable for the service date. Must be an ICD-10-CM release.
|
reason
required
|
string |
Nonblank attributed reason for this revision.
length 1–2000
|
Example request body placeholder values
{
"diagnoses": [
{
"code": "string",
"display": "string",
"catalog_release_id": "00000000-0000-4000-8000-000000000000"
}
],
"reason": "string"
}
Responses
-
200
Success; tenant-scoped attributed data, no credentials
application/json
-
Fields VisitDiagnoses · 67
| Field |
Type |
Details |
can_edit
required
|
boolean |
|
code_system
required
|
constant |
always http://hl7.org/fhir/sid/icd-10-cm
|
diagnoses
required
|
array of EncounterDiagnosis |
items ≤ 20
|
code
required
|
string |
pattern ^[A-Z][A-Z0-9]{2}(\.[A-Z0-9]{1,4})?$
|
display
required
|
string |
|
id
required
|
string (uuid) |
Retained while the canonical code remains in the list.
|
rank
required
|
integer |
value 1–20
|
catalog_release_id
|
string (uuid) |
|
catalog_snapshot
|
TerminologySelectionSnapshot |
Canonical catalog entry. Effective dates are the intersection of release and code dates. Syntax alone does not establish assignment, billability, coverage or licensing. ICD-10-CM permits an alphanumeric second character, including FY2027 QA0 codes; CPT supports numeric, F, T, U and M suffixes.
|
active
required
|
boolean |
|
billable
required
|
boolean |
|
code
required
|
string |
length ≤ 8
|
display
required
|
string |
Publisher description, bounded to 10000 UTF-8 bytes.
|
edition
required
|
string |
|
effective_end
required
|
string or null |
|
effective_start
required
|
string (date) |
|
metadata
required
|
object |
Publisher metadata, at most 4096 serialized UTF-8 bytes.
|
release_id
required
|
string (uuid) |
|
service_date
required
|
string (date) |
|
short_display
required
|
string or null |
|
source_name
required
|
string |
|
source_sha256
required
|
string |
pattern ^[0-9a-f]{64}$
|
source_url
required
|
string (uri) |
|
system
required
|
string |
one of ICD-10-CM, ICD-10-PCS, HCPCS, CPT
|
history
required
|
array of VisitDiagnosisRevision |
items ≤ 100
|
actor_id
required
|
string (uuid) |
|
created_at
required
|
string (date-time) |
|
id
required
|
string (uuid) |
|
reason
required
|
string |
|
snapshot
required
|
array of EncounterDiagnosis |
|
code
required
|
string |
pattern ^[A-Z][A-Z0-9]{2}(\.[A-Z0-9]{1,4})?$
|
display
required
|
string |
|
id
required
|
string (uuid) |
Retained while the canonical code remains in the list.
|
rank
required
|
integer |
value 1–20
|
catalog_release_id
|
string (uuid) |
|
catalog_snapshot
|
TerminologySelectionSnapshot |
Canonical catalog entry. Effective dates are the intersection of release and code dates. Syntax alone does not establish assignment, billability, coverage or licensing. ICD-10-CM permits an alphanumeric second character, including FY2027 QA0 codes; CPT supports numeric, F, T, U and M suffixes.
|
active
required
|
boolean |
|
billable
required
|
boolean |
|
code
required
|
string |
length ≤ 8
|
display
required
|
string |
Publisher description, bounded to 10000 UTF-8 bytes.
|
edition
required
|
string |
|
effective_end
required
|
string or null |
|
effective_start
required
|
string (date) |
|
metadata
required
|
object |
Publisher metadata, at most 4096 serialized UTF-8 bytes.
|
release_id
required
|
string (uuid) |
|
service_date
required
|
string (date) |
|
short_display
required
|
string or null |
|
source_name
required
|
string |
|
source_sha256
required
|
string |
pattern ^[0-9a-f]{64}$
|
source_url
required
|
string (uri) |
|
system
required
|
string |
one of ICD-10-CM, ICD-10-PCS, HCPCS, CPT
|
visit_version
required
|
integer |
|
actor_label
|
string or null |
Current staff display name or email when available; actor_id retains stable attribution.
|
history_truncated
required
|
boolean |
|
service_date
required
|
string (date) |
Encounter service date in the booking timezone, frozen by the earliest catalog selection and retained through immutable revisions.
|
version
required
|
integer |
|
visit
required
|
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
{
"can_edit": true,
"code_system": "http://hl7.org/fhir/sid/icd-10-cm",
"diagnoses": [
{
"code": "string",
"display": "string",
"id": "00000000-0000-4000-8000-000000000000",
"rank": 1,
"catalog_release_id": "00000000-0000-4000-8000-000000000000",
"catalog_snapshot": {
"active": true,
"billable": true,
"code": "string",
"display": "string",
"edition": "string",
"effective_end": "2026-01-15",
"effective_start": "2026-01-15",
"metadata": {},
"release_id": "00000000-0000-4000-8000-000000000000",
"service_date": "2026-01-15",
"short_display": "string",
"source_name": "string",
"source_sha256": "string",
"source_url": "https://app.example.test/callback",
"system": "ICD-10-CM"
}
}
],
"history": [
{
"actor_id": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"reason": "string",
"snapshot": [
{
"code": null,
"display": null,
"id": null,
"rank": null,
"catalog_release_id": null,
"catalog_snapshot": null
}
],
"visit_version": 1,
"actor_label": "string"
}
],
"history_truncated": true,
"service_date": "2026-01-15",
"version": 1,
"visit": {
"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": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"support": true
},
"started_from": {
"sections": [
"subjective"
],
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000",
"visit_date": "2026-01-15T15:30:00Z"
}
},
"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
-
401
Authentication required
-
403
Role or scope denied
-
404
Resource not found in tenant
-
409
State or version conflict
-
428
Current quoted resource version required
-
500
Atomic operation failed
Example call
curl -X PUT "$EHR_URL/api/v1/visits/{id}/diagnoses" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Save note
PUT
/api/v1/visits/{id}/note
While the visit is in progress, the practice's clinical staff may save the note: the assigned clinician, any other clinician, the owner, and an enabled nurse or medical assistant. Front desk and read-only staff may not, and a custom access policy without clinical edit blocks it. A delegated support session may save a draft. The visit does not have to be assigned to the writer. Replaces the whole note; If-Match must carry the current visit version, so two writers cannot overwrite each other. The server records who saved in saved_by. procedure is optional. started_from may name an earlier signed visit of the same patient whose text the note was started from; it is verified, completed with that visit's date and audited once.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Current quoted visit version, for example "1". Missing: 428. Stale: 409. |
Request body
application/json · required
Fields SoapNote · 15
| Field |
Type |
Details |
assessment
required
|
string |
length 1–10000
|
objective
required
|
string |
length 1–10000
|
plan
required
|
string |
length 1–10000
|
subjective
required
|
string |
length 1–10000
|
procedure
|
string |
Optional fifth section shown after Plan. Empty or blank text is not stored, so the field is absent on notes that do not use it and on every note written before it existed.
length ≤ 10000
|
saved_by
|
NoteSaved |
Who last saved the note, set by the server on every save. Values sent by a client are ignored.
|
at
required
|
string (date-time) |
|
id
required
|
string (uuid) |
|
name
required
|
string |
Display name when saved; empty when the practice has no record of the person. A delegated support session is named Support staff.
|
support
|
boolean |
Present and true when a delegated support session saved the note.
|
started_from
|
NoteSource |
Recorded on an in-progress note whose text was started from an earlier signed note of the same patient. The earlier note is only read. Kept with the note when it is signed.
|
sections
required
|
array of string |
Sections whose text was brought in. Stored in note order.
items 1–5
|
version
required
|
integer |
Version of the earlier visit when its text was brought in; not above its current version.
value ≥ 1
|
visit_id
required
|
string (uuid) |
Earlier signed visit of the same patient in this practice; anything else is rejected with 400.
|
visit_date
|
string (date-time) |
Service date of the earlier visit. Set by the server; a submitted value is ignored.
|
Example request body placeholder values
{
"assessment": "string",
"objective": "string",
"plan": "string",
"subjective": "string",
"procedure": "string",
"saved_by": {
"at": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"support": true
},
"started_from": {
"sections": [
"subjective"
],
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000",
"visit_date": "2026-01-15T15:30:00Z"
}
}
Responses
-
200
Success
application/json
-
Fields Visit · 10
| Field |
Type |
Details |
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
{
"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": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"support": true
},
"started_from": {
"sections": [
"subjective"
],
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000",
"visit_date": "2026-01-15T15:30:00Z"
}
},
"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 -X PUT "$EHR_URL/api/v1/visits/{id}/note" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Who wrote, signed and corrected a visit note
GET
/api/v1/visits/{id}/note-authorship
Staff-only, tenant-scoped. Names the assigned clinician, who last saved the note, who signed it and who wrote each amendment, and says whether the caller may draft, sign or amend, with the caller's custom access policy applied. Returns no note text. The read is audited.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields NoteAuthorship · 18
| Field |
Type |
Details |
amendments
required
|
array of object |
|
author_id
required
|
string (uuid) |
|
author_name
required
|
string |
|
created_at
required
|
string (date-time) |
|
id
required
|
string (uuid) |
|
assigned
required
|
object |
|
id
required
|
string (uuid) |
|
name
required
|
string |
Provider or staff display name; empty when none is recorded.
|
can_amend
required
|
boolean |
|
can_draft
required
|
boolean |
|
can_sign
required
|
boolean |
|
delegated
required
|
boolean |
The caller is a delegated support session. It may draft but never sign or amend.
|
is_assigned
required
|
boolean |
The visit is assigned to the caller.
|
last_saved
required
|
NoteSaved or null |
|
signed
required
|
object or null |
The person who actually signed. May differ from assigned.
|
status
required
|
string |
one of in_progress, signed
|
version
required
|
integer |
value ≥ 1
|
visit_id
required
|
string (uuid) |
|
Example response placeholder values
{
"amendments": [
{
"author_id": "00000000-0000-4000-8000-000000000000",
"author_name": "string",
"created_at": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000"
}
],
"assigned": {
"id": "00000000-0000-4000-8000-000000000000",
"name": "string"
},
"can_amend": true,
"can_draft": true,
"can_sign": true,
"delegated": true,
"is_assigned": true,
"last_saved": {
"at": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"support": true
},
"signed": {
"at": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string"
},
"status": "in_progress",
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000"
}
-
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 |
|
-
500
Internal error
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
Example call
curl "$EHR_URL/api/v1/visits/{id}/note-authorship" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Text of the most recent earlier signed note
GET
/api/v1/visits/{id}/previous-note
Anyone who may save this visit's note may read this (the same rule). Returns the note text of the patient's most recent signed visit dated on or before this one: the assigned clinician's own note when one exists, otherwise the most recent by any clinician in the practice. Unsigned notes, other patients and other practices are never returned. source is null when there is no earlier signed note. Read-only: the earlier visit is not changed; the read is audited.
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields PreviousNote · 1
| Field |
Type |
Details |
source
required
|
PreviousNoteSource or null |
|
Example response placeholder values
{
"source": {
"clinician_id": "00000000-0000-4000-8000-000000000000",
"clinician_name": "string",
"note": {
"assessment": "string",
"objective": "string",
"plan": "string",
"procedure": "string",
"subjective": "string"
},
"own": true,
"same_clinician": true,
"signed_at": "2026-01-15T15:30:00Z",
"version": 1,
"visit_date": "2026-01-15T15:30:00Z",
"visit_id": "00000000-0000-4000-8000-000000000000"
}
}
-
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 |
|
-
500
Internal error
application/json
-
Fields Error · 2
| Field |
Type |
Details |
error
required
|
string |
|
message
required
|
string |
|
Example call
curl "$EHR_URL/api/v1/visits/{id}/previous-note" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read intake, current visit version and attributed rooming/vitals history
GET
/api/v1/visits/{id}/rooming
Access
OAuth 2.0 access tokenclinical.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success; tenant-scoped attributed data, no credentials
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Resource not found in tenant
-
409
State or version conflict
-
428
Current quoted resource version required
-
500
Atomic operation failed
Example call
curl "$EHR_URL/api/v1/visits/{id}/rooming" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Save delegated intake with shared encounter version
PUT
/api/v1/visits/{id}/rooming
Enabled tenant nurse/medical_assistant, the assigned clinician, or another clinician or the owner covering the visit, before signing. A delegated support session cannot. Ready requires nonblank chief complaint and both review attestations. Shares Visit.version with SOAP/vitals; returns visit and latest100history revisions. Does not update longitudinal clinical lists or grant signature authority.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current resource version. Missing/malformed returns428; stale returns409. |
Request body
application/json · required
Fields RoomingIntake · 5
| Field |
Type |
Details |
allergies_reviewed
required
|
boolean |
|
chief_complaint
required
|
string |
length ≤ 2000
|
intake_notes
required
|
string |
length ≤ 10000
|
medications_reviewed
required
|
boolean |
|
status
required
|
string |
one of in_progress, ready
|
Example request body placeholder values
{
"allergies_reviewed": true,
"chief_complaint": "string",
"intake_notes": "string",
"medications_reviewed": true,
"status": "in_progress"
}
Responses
-
200
Success; tenant-scoped attributed data, no credentials
-
400
Invalid input
-
401
Authentication required
-
403
Role or scope denied
-
404
Resource not found in tenant
-
409
State or version conflict
-
428
Current quoted resource version required
-
500
Atomic operation failed
Example call
curl -X PUT "$EHR_URL/api/v1/visits/{id}/rooming" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Sign the visit note
POST
/api/v1/visits/{id}/sign
A clinician or the owner signs: the assigned clinician, or another clinician or the owner covering the visit. Nurses, medical assistants and delegated support sessions can never sign. signed_by records the person who actually signed. The visit's clinician_id is not changed: fee lookups and eligibility checks keep using the assigned clinician. The signed note and vitals are immutable afterwards.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Current quoted visit version, for example "1". Missing: 428. Stale: 409. |
Responses
-
200
Success
application/json
-
Fields Visit · 10
| Field |
Type |
Details |
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
{
"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": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"support": true
},
"started_from": {
"sections": [
"subjective"
],
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000",
"visit_date": "2026-01-15T15:30:00Z"
}
},
"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 -X POST "$EHR_URL/api/v1/visits/{id}/sign" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Save vitals
PUT
/api/v1/visits/{id}/vitals
Enabled nurse/medical_assistant, the assigned clinician, or another clinician or the owner covering the visit, before signing. Shares Visit.version; each save is recorded with its author.
Access
OAuth 2.0 access tokenclinical.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Current quoted visit version, for example "1". Missing: 428. Stale: 409. |
Request body
application/json · required
Fields Vitals · 7
| Field |
Type |
Details |
diastolic_mm_hg
required
|
integer |
value 10–250
|
heart_rate_bpm
required
|
integer |
value 10–350
|
height_cm
required
|
number |
value 10–300
|
oxygen_saturation_pct
required
|
number |
value 0–100
|
systolic_mm_hg
required
|
integer |
value 30–350
|
temperature_c
required
|
number |
value 20–50
|
weight_kg
required
|
number |
value 0.1–700
|
Example request body placeholder values
{
"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
}
Responses
-
200
Success
application/json
-
Fields Visit · 10
| Field |
Type |
Details |
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
{
"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": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"name": "string",
"support": true
},
"started_from": {
"sections": [
"subjective"
],
"version": 1,
"visit_id": "00000000-0000-4000-8000-000000000000",
"visit_date": "2026-01-15T15:30:00Z"
}
},
"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 -X PUT "$EHR_URL/api/v1/visits/{id}/vitals" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
No endpoint matches that filter.