Skip to content

SunCharts EHR API

Appointment reminders

EHR API as of 26.11.11.41 11 operations openapi.json ↓

# Read appointment reminder definitions and outcomes

GET /api/v1/appointments/{appointment_id}/reminders

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
appointment_id required path string (uuid)

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

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

# Create an idempotent custom appointment reminder

POST /api/v1/appointments/{appointment_id}/reminders

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
appointment_id required path string (uuid)
If-Match required header string Quoted current version; 0 only for initial preferences/settings.

Request body application/json · required

Fields AppointmentReminderCreate · 3
Field Type Details
before_minutes required integer value 1–525600
reason required string length 1–1000
request_id required string (uuid)
Example request body placeholder values
{
  "before_minutes": 1,
  "reason": "string",
  "request_id": "00000000-0000-4000-8000-000000000000"
}

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

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

# Read current reminder permission and immutable history

GET /api/v1/patients/{patient_id}/reminder-preferences

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
patient_id required path string (uuid)

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

curl "$EHR_URL/api/v1/patients/{patient_id}/reminder-preferences" -H "Authorization: Bearer $ACCESS_TOKEN"

# Record explicit patient permission and current destination verification

PUT /api/v1/patients/{patient_id}/reminder-preferences

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
patient_id required path string (uuid)
If-Match required header string Quoted current version; 0 only for initial preferences/settings.

Request body application/json · required

Fields ReminderPreferenceSave · 6
Field Type Details
automatic_email required boolean
channel required string one of email, phone
consented required boolean
destination required string length ≤ 254
reason required string length 1–1000
verified required boolean
Example request body placeholder values
{
  "automatic_email": true,
  "channel": "email",
  "consented": true,
  "destination": "string",
  "reason": "string",
  "verified": true
}

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

curl -X PUT "$EHR_URL/api/v1/patients/{patient_id}/reminder-preferences" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json

# Owner: read redacted sender configuration

GET /api/v1/schedule/reminder-settings

Access OAuth 2.0 access tokenclinical.read

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

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

# Owner: choose managed Connect email or save an encrypted own-account sender; sending paused

PUT /api/v1/schedule/reminder-settings

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
If-Match required header string Quoted current version; 0 only for initial preferences/settings.

Request body application/json · required

Fields ReminderSenderSave · 3
Field Type Details
api_key string Resend key; omit/blank retains the current key. Never returned.
delivery_mode string Managed SunCharts email or own Resend account. Omission preserves existing own-account API compatibility. one of suncharts_connect, own_resend
from_email string (email)
Example request body placeholder values
{
  "api_key": "string",
  "delivery_mode": "suncharts_connect",
  "from_email": "[email protected]"
}

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

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

# Owner: explicitly enable or disable verified automatic email

POST /api/v1/schedule/reminder-settings/activation

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
If-Match required header string Quoted current version; 0 only for initial preferences/settings.

Request body application/json · required

Fields ReminderSenderActivation · 1
Field Type Details
enabled required boolean
Example request body placeholder values
{
  "enabled": true
}

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

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

# Owner: authenticate and verify the saved sender domain without sending email

POST /api/v1/schedule/reminder-settings/test

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
If-Match required header string Quoted current version; 0 only for initial preferences/settings.

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

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

# Read tenant reminder worklist; due excludes terminal or elapsed appointments

GET /api/v1/schedule/reminders

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
state query string
after query string (uuid)

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

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

# Read reminder and attributed event history

GET /api/v1/schedule/reminders/{reminder_id}

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
reminder_id required path string (uuid)

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

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

# Record allowed versioned staff outcome or request reconciliation

POST /api/v1/schedule/reminders/{reminder_id}/actions

Access OAuth 2.0 access tokenclinical.read

Parameters

Name In Type Details
reminder_id required path string (uuid)
If-Match required header string Quoted current version; 0 only for initial preferences/settings.

Request body application/json · required

Fields AppointmentReminderAction · 2
Field Type Details
action required string one of cancel, manual_contacted, manual_no_answer, manual_failed, retry, refresh_delivery
reason required string length 1–1000
Example request body placeholder values
{
  "action": "cancel",
  "reason": "string"
}

Responses

200 Tenant-scoped result; provider acceptance is not delivery
403 Role not permitted
404 Tenant-scoped resource not found
409 Stale version, changed idempotent request or unavailable action

Example call

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