Skip to content

SunCharts EHR API

Scheduling

EHR API as of 26.11.11.41 19 operations openapi.json ↓

# Book appointment

POST /api/v1/appointments

Book with an active native provider. Optional request_id gives safe retry matching, source_history_id links a staff-reviewed imported appointment. Enforces provider, patient, room and block conflicts atomically. Existing minimal booking fields remain supported.

Access OAuth 2.0 access tokenclinical.write

Request body application/json · required

Fields NewAppointment · 12
Field Type Details
clinician_id required string (uuid)
ends_at required string (date-time)
patient_id required string (uuid)
starts_at required string (date-time)
category string length 1–100
facility string length 0–200
notes string length 0–2000
reason string length 1–1000
request_id string or null
room string length 0–100
source_history_id string or null
title string length 1–200
Example request body placeholder values
{
  "clinician_id": "00000000-0000-4000-8000-000000000000",
  "ends_at": "2026-01-15T15:30:00Z",
  "patient_id": "00000000-0000-4000-8000-000000000000",
  "starts_at": "2026-01-15T15:30:00Z",
  "category": "string",
  "facility": "string",
  "notes": "string",
  "reason": "string"
}

Responses

201 Success application/json
Fields Appointment · 13
Field Type Details
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
Example response placeholder values
{
  "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
}
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/appointments" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json

# Read appointment

GET /api/v1/appointments/{id}

Read tenant appointment.

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
id required path string (uuid)

Responses

200 Success application/json
Fields Appointment · 13
Field Type Details
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
Example response placeholder values
{
  "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
}
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/appointments/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"

# Edit appointment

PUT /api/v1/appointments/{id}

Edit/reschedule booked appointments only. Serializes provider/patient/room/block conflicts.

Access OAuth 2.0 access tokenclinical.write

Parameters

Name In Type Details
id required path string (uuid)
If-Match required header string Quoted current appointment/block version

Request body application/json · required

Fields EditAppointment · 9
Field Type Details
category required string length 1–100
clinician_id required string (uuid)
ends_at required string (date-time)
facility required string length 0–200
notes required string length 0–2000
reason required string length 1–1000
room required string length 0–100
starts_at required string (date-time)
title required string length 1–200
Example request body placeholder values
{
  "category": "string",
  "clinician_id": "00000000-0000-4000-8000-000000000000",
  "ends_at": "2026-01-15T15:30:00Z",
  "facility": "string",
  "notes": "string",
  "reason": "string",
  "room": "string",
  "starts_at": "2026-01-15T15:30:00Z",
  "title": "string"
}

Responses

200 Success application/json
Fields Appointment · 13
Field Type Details
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
Example response placeholder values
{
  "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
}
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 -X PUT "$EHR_URL/api/v1/appointments/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json

# Appointment action

POST /api/v1/appointments/{id}/actions

Check in booked appointments; cancel booked/checked-in; mark no-show only after start. Terminal appointments are preserved; no DELETE.

Access OAuth 2.0 access tokenclinical.write

Parameters

Name In Type Details
id required path string (uuid)
If-Match required header string Quoted current appointment/block version

Request body application/json · required

Fields AppointmentAction · 2
Field Type Details
action required string one of check_in, cancel, no_show
reason required string length 1–1000
Example request body placeholder values
{
  "action": "check_in",
  "reason": "string"
}

Responses

200 Success application/json
Fields Appointment · 13
Field Type Details
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
Example response placeholder values
{
  "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
}
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 -X POST "$EHR_URL/api/v1/appointments/{id}/actions" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json

# Check in

POST /api/v1/appointments/{id}/check-in

Access OAuth 2.0 access tokenclinical.write

Parameters

Name In Type Details
id required path string (uuid)

Responses

200 Success application/json
Fields Appointment · 13
Field Type Details
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
Example response placeholder values
{
  "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
}
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/appointments/{id}/check-in" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json

# Appointment history

GET /api/v1/appointments/{id}/history

Append-only versions including check-in, encounter start and signed completion.

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
id required path string (uuid)

Responses

200 Success application/json
Fields AppointmentHistory · 19
Field Type Details
items required array of object
actor_id required string (uuid)
created_at required string (date-time)
reason required string length 1–1000
snapshot required 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
version required integer
Example response placeholder values
{
  "items": [
    {
      "actor_id": "00000000-0000-4000-8000-000000000000",
      "created_at": "2026-01-15T15:30:00Z",
      "reason": "string",
      "snapshot": {
        "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
      },
      "version": 1
    }
  ]
}
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/appointments/{id}/history" -H "Authorization: Bearer $ACCESS_TOKEN"

# Issue the practice's default intake form for an appointment

POST /api/v1/appointments/{id}/intake-packet

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
id required path string (uuid)

Responses

201 Form issued: packet_id, one-time intake_url, secret_shown_once and expires_at. A practice with no saved form gets the standard form.
409 The appointment already has a form that is not cancelled

Example call

curl -X POST "$EHR_URL/api/v1/appointments/{id}/intake-packet" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json

# Get appointment series membership

GET /api/v1/appointments/{id}/series

Staff read. Existing ordinary nonmember returns series:null; unknown tenant appointment returns404.

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
id required path string (uuid)

Responses

200 Success application/json
Fields object · 1
Field Type Details
series required RecurringAppointmentSeries or null
Example response placeholder values
{
  "series": {
    "cancellable_count": 1,
    "clinician_id": "00000000-0000-4000-8000-000000000000",
    "created_at": "2026-01-15T15:30:00Z",
    "created_by": "00000000-0000-4000-8000-000000000000",
    "events": [
      {
        "action": "create",
        "actor_id": "00000000-0000-4000-8000-000000000000",
        "created_at": "2026-01-15T15:30:00Z",
        "details": {},
        "reason": "string",
        "version": 1
      }
    ],
    "frequency": "string",
    "id": "00000000-0000-4000-8000-000000000000",
    "interval": 1,
    "mrn": "string",
    "occurrences": [
      {
        "appointment_id": "00000000-0000-4000-8000-000000000000",
        "changed_from_plan": true,
        "ends_at": "2026-01-15T15:30:00Z",
        "id": "00000000-0000-4000-8000-000000000000",
        "planned": {
          "ends_at": null,
          "local_end": null,
          "local_start": null,
          "starts_at": null,
          "utc_offset_minutes": null
        },
        "position": 1,
        "starts_at": "2026-01-15T15:30:00Z",
        "status": "string",
        "version": 1
      }
    ],
    "patient_id": "00000000-0000-4000-8000-000000000000",
    "patient_name": "string",
    "provider_label": "string",
    "status": "active",
    "timezone": "string",
    "title": "string",
    "updated_at": "2026-01-15T15:30:00Z",
    "version": 1
  }
}
400 Invalid cadence, timezone metadata or input
401 Authentication required
403 Actor role disallowed
404 Tenant-scoped record not found
409 Booking conflict, stale version, changed idempotent request or invalid action state

Example call

curl "$EHR_URL/api/v1/appointments/{id}/series" -H "Authorization: Bearer $ACCESS_TOKEN"

# Schedule agenda

GET /api/v1/schedule

Staff schedule; UTC half-open overlap range up to 31 days. At most 1000 appointments and 1000 blocks; narrow query if exceeded. Browser shows its local timezone.

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
start required query string (date-time)
end required query string (date-time)
clinician_id query string (uuid)

Responses

200 Success application/json
Fields Schedule · 25
Field Type Details
appointments required array of ScheduleAppointment
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)
mrn required string length 0–64
notes required string length 0–2000
patient_id required string (uuid)
patient_name required string length 0–201
provider_label required string length 0–320
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
blocks required array of ScheduleBlock
active required boolean
clinician_id required string (uuid)
ends_at required string (date-time)
id required string (uuid)
label required string length 1–200
starts_at required string (date-time)
version required integer value ≥ 1
Example response placeholder values
{
  "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",
      "mrn": "string",
      "notes": "string",
      "patient_id": "00000000-0000-4000-8000-000000000000",
      "patient_name": "string",
      "provider_label": "string",
      "room": "string",
      "source_history_id": "00000000-0000-4000-8000-000000000000",
      "starts_at": "2026-01-15T15:30:00Z",
      "status": "booked",
      "title": "string",
      "version": 1
    }
  ],
  "blocks": [
    {
      "active": true,
      "clinician_id": "00000000-0000-4000-8000-000000000000",
      "ends_at": "2026-01-15T15:30:00Z",
      "id": "00000000-0000-4000-8000-000000000000",
      "label": "string",
      "starts_at": "2026-01-15T15:30:00Z",
      "version": 1
    }
  ]
}
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/schedule" -H "Authorization: Bearer $ACCESS_TOKEN"

# Block provider time

POST /api/v1/schedule/blocks

Scheduling role; request_id retries are idempotent. Rejects overlapping blocks or appointments. No recurrence.

Access OAuth 2.0 access tokenclinical.write

Request body application/json · required

Fields NewScheduleBlock · 5
Field Type Details
clinician_id required string (uuid)
ends_at required string (date-time)
label required string length 1–200
request_id required string (uuid)
starts_at required string (date-time)
Example request body placeholder values
{
  "clinician_id": "00000000-0000-4000-8000-000000000000",
  "ends_at": "2026-01-15T15:30:00Z",
  "label": "string",
  "request_id": "00000000-0000-4000-8000-000000000000",
  "starts_at": "2026-01-15T15:30:00Z"
}

Responses

200 Success application/json
Fields ScheduleBlock · 7
Field Type Details
active required boolean
clinician_id required string (uuid)
ends_at required string (date-time)
id required string (uuid)
label required string length 1–200
starts_at required string (date-time)
version required integer value ≥ 1
Example response placeholder values
{
  "active": true,
  "clinician_id": "00000000-0000-4000-8000-000000000000",
  "ends_at": "2026-01-15T15:30:00Z",
  "id": "00000000-0000-4000-8000-000000000000",
  "label": "string",
  "starts_at": "2026-01-15T15:30:00Z",
  "version": 1
}
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 -X POST "$EHR_URL/api/v1/schedule/blocks" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json

# Cancel provider block

POST /api/v1/schedule/blocks/{id}/cancel

Retains block and cancellation reason; version required.

Access OAuth 2.0 access tokenclinical.write

Parameters

Name In Type Details
id required path string (uuid)
If-Match required header string Quoted current appointment/block version

Request body application/json · required

Fields object · 1
Field Type Details
reason required string length 1–1000
Example request body placeholder values
{
  "reason": "string"
}

Responses

200 Success application/json
Fields object · 1
Field Type Details
cancelled required boolean
Example response placeholder values
{
  "cancelled": true
}
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 -X POST "$EHR_URL/api/v1/schedule/blocks/{id}/cancel" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json

# Read enabled facility and room choices

GET /api/v1/schedule/locations

Staff read; active facility/room names. Up to1000facilities and10000rooms; has_more reports truncation. Existing location text snapshots remain supported.

Access OAuth 2.0 access tokenclinical.read

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/schedule/locations" -H "Authorization: Bearer $ACCESS_TOKEN"

# Schedule markers

GET /api/v1/schedule/markers

What each appointment overlapping a UTC half-open range of up to 31 days still needs: intake form state, insurance eligibility for the coverage that pays first, copay, patient balance, note and charge state, and whether it is the patient's first appointment. Read with a fixed number of queries. Requires the same access as the schedule. Insurance, copay, balance and charge facts are omitted when the staff member's access policy hides patient billing (insurance also needs claims access); note state is omitted without clinical access.

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
from required query string (date-time)
to required query string (date-time)
provider query string (uuid)

Responses

200 Success application/json
Fields ScheduleMarkers · 22
Field Type Details
billing required boolean
clinical required boolean
insurance required boolean
items required array of object items ≤ 1000
appointment_id required string (uuid)
forms required object or null
packet_id required string (uuid)
status required string one of sent, in_progress, submitted, reviewed
new_patient required boolean
patient_id required string (uuid)
visit_id required string or null
balance_cents integer value ≥ 0
charges string or null one of none, draft, posted, null
copay object or null
due_cents required integer value ≥ 0
paid_cents required integer value ≥ 0
test_paid_cents required integer value ≥ 0
insurance object
status required string one of active, not_active, not_checked, check_failed, self_pay
checked_at string (date-time)
coverage_id string (uuid)
note string or null one of not_started, in_progress, signed, null
Example response placeholder values
{
  "billing": true,
  "clinical": true,
  "insurance": true,
  "items": [
    {
      "appointment_id": "00000000-0000-4000-8000-000000000000",
      "forms": {
        "packet_id": "00000000-0000-4000-8000-000000000000",
        "status": "sent"
      },
      "new_patient": true,
      "patient_id": "00000000-0000-4000-8000-000000000000",
      "visit_id": "00000000-0000-4000-8000-000000000000",
      "balance_cents": 0,
      "charges": "none",
      "copay": {
        "due_cents": 0,
        "paid_cents": 0,
        "test_paid_cents": 0
      }
    }
  ]
}
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/schedule/markers" -H "Authorization: Bearer $ACCESS_TOKEN"

# Schedule providers

GET /api/v1/schedule/providers

Active native owner/clinician accounts in the authenticated practice. No imported account impersonation.

Access OAuth 2.0 access tokenclinical.read

Responses

200 Success application/json
Fields ScheduleProviders · 7
Field Type Details
items required array of object
id required string (uuid)
label required string length 0–320
hours object or null The practice's opening hours for online booking, when set. Times are local to the time zone given.
end required string pattern ^[0-2][0-9]:[0-5][0-9]$
start required string pattern ^[0-2][0-9]:[0-5][0-9]$
timezone required string length 1–100
Example response placeholder values
{
  "items": [
    {
      "id": "00000000-0000-4000-8000-000000000000",
      "label": "string"
    }
  ],
  "hours": {
    "end": "string",
    "start": "string",
    "timezone": "string"
  }
}
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/schedule/providers" -H "Authorization: Bearer $ACCESS_TOKEN"

# List recurring appointment series

GET /api/v1/schedule/series

Staff read; newest 100 tenant series, optionally patient-filtered.

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
patient_id query string (uuid)

Responses

200 Success application/json
Fields object · 15
Field Type Details
has_more required boolean
items required array of RecurringAppointmentSummary
clinician_id required string (uuid)
created_at required string (date-time)
frequency required string
id required string (uuid)
interval required integer
mrn required string
occurrence_count required integer
patient_id required string (uuid)
patient_name required string
status required string one of active, cancelled
timezone required string
title required string
version required integer
Example response placeholder values
{
  "has_more": true,
  "items": [
    {
      "clinician_id": "00000000-0000-4000-8000-000000000000",
      "created_at": "2026-01-15T15:30:00Z",
      "frequency": "string",
      "id": "00000000-0000-4000-8000-000000000000",
      "interval": 1,
      "mrn": "string",
      "occurrence_count": 1,
      "patient_id": "00000000-0000-4000-8000-000000000000",
      "patient_name": "string",
      "status": "active",
      "timezone": "string",
      "title": "string",
      "version": 1
    }
  ]
}
400 Invalid cadence, timezone metadata or input
401 Authentication required
403 Actor role disallowed
404 Tenant-scoped record not found
409 Booking conflict, stale version, changed idempotent request or invalid action state

Example call

curl "$EHR_URL/api/v1/schedule/series" -H "Authorization: Bearer $ACCESS_TOKEN"

# Create recurring appointment series

POST /api/v1/schedule/series

Owner, clinician or front desk. Atomic all-occurrence create with normal appointment history and audit; exact request retry returns persisted series.

Access OAuth 2.0 access tokenclinical.read

Request body application/json · required

Fields RecurringAppointmentPlan · 18
Field Type Details
category required string
clinician_id required string (uuid)
facility required string
frequency required string one of daily, weekly, monthly
interval required integer value 1–12
notes required string
occurrences required array of RecurringOccurrencePlan items 2–52
ends_at required string (date-time)
local_end required string
local_start required string Timezone-free local timestamp YYYY-MM-DDTHH:MM:SS, whole-minute.
starts_at required string (date-time)
utc_offset_minutes required integer UTC offset at start; validated using named timezone. value -840–840
patient_id required string (uuid)
reason required string
request_id required string (uuid)
room required string
timezone required string length ≤ 100
title required string
Example request body placeholder values
{
  "category": "string",
  "clinician_id": "00000000-0000-4000-8000-000000000000",
  "facility": "string",
  "frequency": "daily",
  "interval": 1,
  "notes": "string",
  "occurrences": [
    {
      "ends_at": "2026-01-15T15:30:00Z",
      "local_end": "string",
      "local_start": "string",
      "starts_at": "2026-01-15T15:30:00Z",
      "utc_offset_minutes": -840
    }
  ],
  "patient_id": "00000000-0000-4000-8000-000000000000",
  "reason": "string",
  "request_id": "00000000-0000-4000-8000-000000000000",
  "room": "string",
  "timezone": "string",
  "title": "string"
}

Responses

200 Success application/json
Fields RecurringAppointmentSeries · 49
Field Type Details
cancellable_count required integer
clinician_id required string (uuid)
created_at required string (date-time)
created_by required string (uuid)
events required array of RecurringAppointmentEvent
action required string one of create, cancel_upcoming
actor_id required string (uuid)
created_at required string (date-time)
details required object
reason required string
version required integer
frequency required string
id required string (uuid)
interval required integer
mrn required string
occurrences required array of RecurringAppointmentInstance
appointment_id required string (uuid)
changed_from_plan required boolean
ends_at required string (date-time)
id required string (uuid)
planned required RecurringOccurrencePlan
ends_at required string (date-time)
local_end required string
local_start required string Timezone-free local timestamp YYYY-MM-DDTHH:MM:SS, whole-minute.
starts_at required string (date-time)
utc_offset_minutes required integer UTC offset at start; validated using named timezone. value -840–840
position required integer
starts_at required string (date-time)
status required string
version required integer
category string
clinician_id string (uuid)
facility string
notes string
patient_id string (uuid)
room string
title string
patient_id required string (uuid)
patient_name required string
provider_label required string
status required string one of active, cancelled
timezone required string
title required string
updated_at required string (date-time)
version required integer
category string
facility string
notes string
room string
Example response placeholder values
{
  "cancellable_count": 1,
  "clinician_id": "00000000-0000-4000-8000-000000000000",
  "created_at": "2026-01-15T15:30:00Z",
  "created_by": "00000000-0000-4000-8000-000000000000",
  "events": [
    {
      "action": "create",
      "actor_id": "00000000-0000-4000-8000-000000000000",
      "created_at": "2026-01-15T15:30:00Z",
      "details": {},
      "reason": "string",
      "version": 1
    }
  ],
  "frequency": "string",
  "id": "00000000-0000-4000-8000-000000000000",
  "interval": 1,
  "mrn": "string",
  "occurrences": [
    {
      "appointment_id": "00000000-0000-4000-8000-000000000000",
      "changed_from_plan": true,
      "ends_at": "2026-01-15T15:30:00Z",
      "id": "00000000-0000-4000-8000-000000000000",
      "planned": {
        "ends_at": "2026-01-15T15:30:00Z",
        "local_end": "string",
        "local_start": "string",
        "starts_at": "2026-01-15T15:30:00Z",
        "utc_offset_minutes": -840
      },
      "position": 1,
      "starts_at": "2026-01-15T15:30:00Z",
      "status": "string",
      "version": 1
    }
  ],
  "patient_id": "00000000-0000-4000-8000-000000000000",
  "patient_name": "string",
  "provider_label": "string",
  "status": "active",
  "timezone": "string",
  "title": "string",
  "updated_at": "2026-01-15T15:30:00Z",
  "version": 1
}
400 Invalid cadence, timezone metadata or input
401 Authentication required
403 Actor role disallowed
404 Tenant-scoped record not found
409 Booking conflict, stale version, changed idempotent request or invalid action state

Example call

curl -X POST "$EHR_URL/api/v1/schedule/series" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json

# Preview recurring appointment series

POST /api/v1/schedule/series/preview

Owner, clinician or front desk. Point-in-time availability, no reservations.

Access OAuth 2.0 access tokenclinical.read

Request body application/json · required

Fields RecurringAppointmentPlan · 18
Field Type Details
category required string
clinician_id required string (uuid)
facility required string
frequency required string one of daily, weekly, monthly
interval required integer value 1–12
notes required string
occurrences required array of RecurringOccurrencePlan items 2–52
ends_at required string (date-time)
local_end required string
local_start required string Timezone-free local timestamp YYYY-MM-DDTHH:MM:SS, whole-minute.
starts_at required string (date-time)
utc_offset_minutes required integer UTC offset at start; validated using named timezone. value -840–840
patient_id required string (uuid)
reason required string
request_id required string (uuid)
room required string
timezone required string length ≤ 100
title required string
Example request body placeholder values
{
  "category": "string",
  "clinician_id": "00000000-0000-4000-8000-000000000000",
  "facility": "string",
  "frequency": "daily",
  "interval": 1,
  "notes": "string",
  "occurrences": [
    {
      "ends_at": "2026-01-15T15:30:00Z",
      "local_end": "string",
      "local_start": "string",
      "starts_at": "2026-01-15T15:30:00Z",
      "utc_offset_minutes": -840
    }
  ],
  "patient_id": "00000000-0000-4000-8000-000000000000",
  "reason": "string",
  "request_id": "00000000-0000-4000-8000-000000000000",
  "room": "string",
  "timezone": "string",
  "title": "string"
}

Responses

200 Success application/json
Fields RecurringAppointmentPreview · 16
Field Type Details
count required integer
existing_series_id required string or null
frequency required string
interval required integer
occurrences required array of RecurringPreviewOccurrence
available required boolean
conflict required string or null
ends_at required string (date-time)
local_end required string
local_start required string Timezone-free local timestamp YYYY-MM-DDTHH:MM:SS, whole-minute.
position required integer
starts_at required string (date-time)
utc_offset_minutes required integer UTC offset at start; validated using named timezone. value -840–840
preview_only required constant always true
ready_to_create required boolean
timezone required string
Example response placeholder values
{
  "count": 1,
  "existing_series_id": "00000000-0000-4000-8000-000000000000",
  "frequency": "string",
  "interval": 1,
  "occurrences": [
    {
      "available": true,
      "conflict": "string",
      "ends_at": "2026-01-15T15:30:00Z",
      "local_end": "string",
      "local_start": "string",
      "position": 1,
      "starts_at": "2026-01-15T15:30:00Z",
      "utc_offset_minutes": -840
    }
  ],
  "preview_only": true,
  "ready_to_create": true,
  "timezone": "string"
}
400 Invalid cadence, timezone metadata or input
401 Authentication required
403 Actor role disallowed
404 Tenant-scoped record not found
409 Booking conflict, stale version, changed idempotent request or invalid action state

Example call

curl -X POST "$EHR_URL/api/v1/schedule/series/preview" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json

# Get recurring appointment series

GET /api/v1/schedule/series/{id}

Staff read of original plan, current instances and immutable series events.

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
id required path string (uuid)

Responses

200 Success application/json
Fields RecurringAppointmentSeries · 49
Field Type Details
cancellable_count required integer
clinician_id required string (uuid)
created_at required string (date-time)
created_by required string (uuid)
events required array of RecurringAppointmentEvent
action required string one of create, cancel_upcoming
actor_id required string (uuid)
created_at required string (date-time)
details required object
reason required string
version required integer
frequency required string
id required string (uuid)
interval required integer
mrn required string
occurrences required array of RecurringAppointmentInstance
appointment_id required string (uuid)
changed_from_plan required boolean
ends_at required string (date-time)
id required string (uuid)
planned required RecurringOccurrencePlan
ends_at required string (date-time)
local_end required string
local_start required string Timezone-free local timestamp YYYY-MM-DDTHH:MM:SS, whole-minute.
starts_at required string (date-time)
utc_offset_minutes required integer UTC offset at start; validated using named timezone. value -840–840
position required integer
starts_at required string (date-time)
status required string
version required integer
category string
clinician_id string (uuid)
facility string
notes string
patient_id string (uuid)
room string
title string
patient_id required string (uuid)
patient_name required string
provider_label required string
status required string one of active, cancelled
timezone required string
title required string
updated_at required string (date-time)
version required integer
category string
facility string
notes string
room string
Example response placeholder values
{
  "cancellable_count": 1,
  "clinician_id": "00000000-0000-4000-8000-000000000000",
  "created_at": "2026-01-15T15:30:00Z",
  "created_by": "00000000-0000-4000-8000-000000000000",
  "events": [
    {
      "action": "create",
      "actor_id": "00000000-0000-4000-8000-000000000000",
      "created_at": "2026-01-15T15:30:00Z",
      "details": {},
      "reason": "string",
      "version": 1
    }
  ],
  "frequency": "string",
  "id": "00000000-0000-4000-8000-000000000000",
  "interval": 1,
  "mrn": "string",
  "occurrences": [
    {
      "appointment_id": "00000000-0000-4000-8000-000000000000",
      "changed_from_plan": true,
      "ends_at": "2026-01-15T15:30:00Z",
      "id": "00000000-0000-4000-8000-000000000000",
      "planned": {
        "ends_at": "2026-01-15T15:30:00Z",
        "local_end": "string",
        "local_start": "string",
        "starts_at": "2026-01-15T15:30:00Z",
        "utc_offset_minutes": -840
      },
      "position": 1,
      "starts_at": "2026-01-15T15:30:00Z",
      "status": "string",
      "version": 1
    }
  ],
  "patient_id": "00000000-0000-4000-8000-000000000000",
  "patient_name": "string",
  "provider_label": "string",
  "status": "active",
  "timezone": "string",
  "title": "string",
  "updated_at": "2026-01-15T15:30:00Z",
  "version": 1
}
400 Invalid cadence, timezone metadata or input
401 Authentication required
403 Actor role disallowed
404 Tenant-scoped record not found
409 Booking conflict, stale version, changed idempotent request or invalid action state

Example call

curl "$EHR_URL/api/v1/schedule/series/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"

# Cancel upcoming recurring appointments

POST /api/v1/schedule/series/{id}/actions

Owner, clinician or front desk. Cancel only current future booked members; preserve past, arrived, started, completed and individually cancelled members. Current series and ALL ordered child versions required. No eligible member conflicts.

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
id required path string (uuid)
If-Match required header string Quoted positive current series version, e.g. "1".

Request body application/json · required

Fields RecurringAppointmentCancel · 5
Field Type Details
action required constant always cancel_upcoming
occurrence_versions required array of object All members in position order, including members that will be preserved. Any stale member conflicts. items 2–52
appointment_id required string (uuid)
version required integer value ≥ 1
reason required string length 1–1000
Example request body placeholder values
{
  "action": "cancel_upcoming",
  "occurrence_versions": [
    {
      "appointment_id": "00000000-0000-4000-8000-000000000000",
      "version": 1
    }
  ],
  "reason": "string"
}

Responses

200 Success application/json
Fields RecurringAppointmentSeries · 49
Field Type Details
cancellable_count required integer
clinician_id required string (uuid)
created_at required string (date-time)
created_by required string (uuid)
events required array of RecurringAppointmentEvent
action required string one of create, cancel_upcoming
actor_id required string (uuid)
created_at required string (date-time)
details required object
reason required string
version required integer
frequency required string
id required string (uuid)
interval required integer
mrn required string
occurrences required array of RecurringAppointmentInstance
appointment_id required string (uuid)
changed_from_plan required boolean
ends_at required string (date-time)
id required string (uuid)
planned required RecurringOccurrencePlan
ends_at required string (date-time)
local_end required string
local_start required string Timezone-free local timestamp YYYY-MM-DDTHH:MM:SS, whole-minute.
starts_at required string (date-time)
utc_offset_minutes required integer UTC offset at start; validated using named timezone. value -840–840
position required integer
starts_at required string (date-time)
status required string
version required integer
category string
clinician_id string (uuid)
facility string
notes string
patient_id string (uuid)
room string
title string
patient_id required string (uuid)
patient_name required string
provider_label required string
status required string one of active, cancelled
timezone required string
title required string
updated_at required string (date-time)
version required integer
category string
facility string
notes string
room string
Example response placeholder values
{
  "cancellable_count": 1,
  "clinician_id": "00000000-0000-4000-8000-000000000000",
  "created_at": "2026-01-15T15:30:00Z",
  "created_by": "00000000-0000-4000-8000-000000000000",
  "events": [
    {
      "action": "create",
      "actor_id": "00000000-0000-4000-8000-000000000000",
      "created_at": "2026-01-15T15:30:00Z",
      "details": {},
      "reason": "string",
      "version": 1
    }
  ],
  "frequency": "string",
  "id": "00000000-0000-4000-8000-000000000000",
  "interval": 1,
  "mrn": "string",
  "occurrences": [
    {
      "appointment_id": "00000000-0000-4000-8000-000000000000",
      "changed_from_plan": true,
      "ends_at": "2026-01-15T15:30:00Z",
      "id": "00000000-0000-4000-8000-000000000000",
      "planned": {
        "ends_at": "2026-01-15T15:30:00Z",
        "local_end": "string",
        "local_start": "string",
        "starts_at": "2026-01-15T15:30:00Z",
        "utc_offset_minutes": -840
      },
      "position": 1,
      "starts_at": "2026-01-15T15:30:00Z",
      "status": "string",
      "version": 1
    }
  ],
  "patient_id": "00000000-0000-4000-8000-000000000000",
  "patient_name": "string",
  "provider_label": "string",
  "status": "active",
  "timezone": "string",
  "title": "string",
  "updated_at": "2026-01-15T15:30:00Z",
  "version": 1
}
400 Invalid cadence, timezone metadata or input
401 Authentication required
403 Actor role disallowed
404 Tenant-scoped record not found
409 Booking conflict, stale version, changed idempotent request or invalid action state
428 Missing If-Match

Example call

curl -X POST "$EHR_URL/api/v1/schedule/series/{id}/actions" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json