← All contracts
OHN-54 Appointments and Teleconsultation
- Version
- 1.1.1
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-54/api/openapi.yaml- Servers
https://opeshealthnetwork.com
- Authentication
bearer: http bearer (JWT)
Download the contract (YAML)
Contracts are written in English.
Schedules, slots, booking, waiting list, attendance, video rooms and WebRTC signalling. Tokens from the platform gateway (module key appointments). Request bodies and queries are strict: an unknown key or a bad value is 422 domain_validation_failed with zod-style details.details {formErrors, fieldErrors}. Idempotency-Key is required on every write except signalling. The TypeScript-only synthetic sign-in is not served; the gateway issues tokens.
Operations
Other operations
GET/api/ohn/v1/appointments/policyConfigured policy
Operation ID: OHN_54_API_001
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/schedulesList schedules (own facility)
Operation ID: OHN_54_API_002
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/schedulesPublish a schedule and generate slots
Operation ID: OHN_54_API_003
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/schedules/{id}/retireRetire a schedule
Operation ID: OHN_54_API_004
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/servicesBookable services and facilities
Operation ID: OHN_54_API_005
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/slotsSearch slots
Operation ID: OHN_54_API_006
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
service_type | query | string | no | |
facility_id | query | string (uuid) | no | |
date | query | string (date) | no | |
mode | query | "in_person" | "video" | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/slots/{id}/blockClose or reopen a slot
Operation ID: OHN_54_API_007
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/dayFacility day view
Operation ID: OHN_54_API_008
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
date | query | string (date) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/mineMy appointments
Operation ID: OHN_54_API_009
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointmentsBook
Operation ID: OHN_54_API_010
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Appointment | |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/{id}Appointment
Operation ID: OHN_54_API_011
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Appointment | |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/{id}/historyAppointment history
Operation ID: OHN_54_API_012
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/{id}/rescheduleReschedule
Operation ID: OHN_54_API_013
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Appointment | |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/{id}/cancelCancel
Operation ID: OHN_54_API_014
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Appointment | |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/{id}/check-inCheck in
Operation ID: OHN_54_API_015
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/{id}/no-showRecord no-show
Operation ID: OHN_54_API_016
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/{id}/completeComplete
Operation ID: OHN_54_API_017
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/{id}/encounterLink OHN-09 encounter
Operation ID: OHN_54_API_018
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/waitlistWaiting list
Operation ID: OHN_54_API_019
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/waitlistJoin waiting list
Operation ID: OHN_54_API_020
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/waitlist/{id}/withdrawWithdraw
Operation ID: OHN_54_API_021
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/reports/{rid}Report
Operation ID: OHN_54_API_022
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
rid | path | "OHN-54-R001" | "OHN-54-R002" | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/reports/{rid}/exportSigned CSV
Operation ID: OHN_54_API_023
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
rid | path | "OHN-54-R001" | "OHN-54-R002" | yes | |
Responses
| Code | Description | Media type |
|---|
200 | CSV, header X-OHN54-Signature: hmac-sha256=<hex> | text/csv: string
|
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/auditAudit trail
Operation ID: OHN_54_API_024
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/appointments/synthetic-tokenSynthetic sign-in (non-production)
Operation ID: OHN_54_API_025
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/teleconsult/rooms/{id}Room state
Operation ID: OHN_54_API_026
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/teleconsult/rooms/{id}/consentRecord video consent
Operation ID: OHN_54_API_027
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/teleconsult/rooms/{id}/joinEnter waiting room
Operation ID: OHN_54_API_028
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/teleconsult/rooms/{id}/leaveLeave
Operation ID: OHN_54_API_029
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/teleconsult/rooms/{id}/admitAdmit patient
Operation ID: OHN_54_API_030
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/teleconsult/rooms/{id}/endEnd call
Operation ID: OHN_54_API_031
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/teleconsult/rooms/{id}/signalsPoll signalling
Operation ID: OHN_54_API_032
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
after | query | integer | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/teleconsult/rooms/{id}/signalsSend signalling
Operation ID: OHN_54_API_033
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | no | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/teleconsult/rooms/{id}/notesNotes
Operation ID: OHN_54_API_034
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
POST/api/ohn/v1/teleconsult/rooms/{id}/notesAdd note
Operation ID: OHN_54_API_035
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/health/ohn-54Health
Operation ID: OHN_54_API_036
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy | — |
404 | Not found or not in scope | — |
409 | Version conflict, invalid transition, slot full, outside change window | — |
422 | Validation failed | — |
GET/api/ohn/v1/appointments/booking-settingsBooking mode settings of the own facility (staff)
Operation ID: OHN_54_API_037
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/booking-settingsSet the booking mode (instant | request) for the facility (*) or a service
Operation ID: OHN_54_API_038
Authentication: bearer
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/requestsRequests: own and dependants (patient) or the facility (staff); ?state=open|requested|...&practitioner_id=
Operation ID: OHN_54_API_040
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/requestsPatient (or guardian for a dependant) requests a slot or a preferred window
Operation ID: OHN_54_API_039
Authentication: bearer
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
201 | Created | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/requests/{id}One request
Operation ID: OHN_54_API_041
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/requests/{id}/historyRequest history (append-only)
Operation ID: OHN_54_API_042
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/requests/{id}/slotsFree slots fitting the request (staff)
Operation ID: OHN_54_API_043
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/requests/{id}/acceptAccept: the held or a chosen slot is booked at once (staff)
Operation ID: OHN_54_API_044
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/requests/{id}/declineDecline with a reason (staff)
Operation ID: OHN_54_API_045
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/requests/{id}/proposePropose another time; the slot is held for the patient (staff)
Operation ID: OHN_54_API_046
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/requests/{id}/confirmPatient confirms the proposed time
Operation ID: OHN_54_API_047
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/requests/{id}/reject-proposalPatient turns the proposal down; the request waits for a new answer
Operation ID: OHN_54_API_048
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/requests/{id}/withdrawPatient withdraws the request
Operation ID: OHN_54_API_049
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/follow-upsFollow-ups: own and dependants (patient) or the facility (staff); ?state=open|overdue|booked|completed|cancelled
Operation ID: OHN_54_API_051
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/follow-upsClinician asks to see the patient again within a window (optional held slot, OHN-55 enrolment link)
Operation ID: OHN_54_API_050
Authentication: bearer
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
201 | Created | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/follow-ups/{id}One follow-up
Operation ID: OHN_54_API_052
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/follow-ups/{id}/historyFollow-up history (append-only)
Operation ID: OHN_54_API_053
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/follow-ups/{id}/slotsFree slots inside the follow-up window
Operation ID: OHN_54_API_054
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/follow-ups/{id}/bookBook a slot for the follow-up (patient, guardian or staff)
Operation ID: OHN_54_API_055
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/follow-ups/{id}/cancelCancel an open follow-up with a reason (staff)
Operation ID: OHN_54_API_056
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/specialtiesSpecialties offered (declared on schedules)
Operation ID: OHN_54_API_057
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/directoryClinicians by specialty, service and mode with booking mode and next free time
Operation ID: OHN_54_API_058
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/dependantsDependants the signed-in guardian may act for (OHN-19)
Operation ID: OHN_54_API_059
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
GET/api/ohn/v1/appointments/clinician/inboxMy appointments: requests to answer, today, follow-ups due (staff; ?practitioner_id=&date=)
Operation ID: OHN_54_API_060
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
POST/api/ohn/v1/appointments/maintenance/expireExpire lapsed requests and proposals now (staff; also runs lazily)
Operation ID: OHN_54_API_061
Authentication: bearer
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | — |
401 | Unauthenticated | |
403 | Denied by policy, or representation_denied (OHN-19) | — |
404 | Not found or not in scope | — |
409 | version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired | — |
422 | Validation failed | — |
503 | OHN-19 unavailable (dependant path) | — |
Schemas
Error
| Name | Type | Required | Description |
|---|
error | string | yes | |
message | string | no | |
details | any | no | |
Schedule
| Name | Type | Required | Description |
|---|
facility_name | string | yes | |
practitioner_id | string (uuid) | yes | |
practitioner_name | string | yes | |
service_type | string | yes | |
mode | "in_person" | "video" | yes | |
slot_minutes | integer | yes | |
from_date | string (date) | yes | |
to_date | string (date) | yes | |
weekdays | array of integer | yes | |
day_start | string | yes | |
day_end | string | yes | |
Book
| Name | Type | Required | Description |
|---|
slot_id | string (uuid) | yes | |
patient_id | string (uuid) | no | |
reason | string | no | |
overbook | boolean | no | |
waitlist_id | string (uuid) | no | |
Reschedule
| Name | Type | Required | Description |
|---|
slot_id | string (uuid) | yes | |
expected_version | integer | yes | |
Cancel
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
Step
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
Block
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
blocked | boolean | yes | |
Waitlist
| Name | Type | Required | Description |
|---|
organization_id | string (uuid) | yes | |
patient_id | string (uuid) | no | |
service_type | string | yes | |
mode | "in_person" | "video" | no | |
earliest | string (date) | yes | |
latest | string (date) | yes | |
EncounterLink
| Name | Type | Required | Description |
|---|
encounter_id | string (uuid) | yes | |
Consent
| Name | Type | Required | Description |
|---|
statement_version | "OHN-54-VC-1.0" | yes | |
agree | true | yes | |
Signal
| Name | Type | Required | Description |
|---|
kind | "offer" | "answer" | "ice" | "hangup" | yes | |
payload | object | yes | SDP {type,sdp} or ICE candidate; at most 16 KB |
Note
| Name | Type | Required | Description |
|---|
body | string | yes | |
SyntheticToken
| Name | Type | Required | Description |
|---|
principal_id | string (uuid) | yes | |
role | "patient" | "clinician" | "scheduler" | yes | |
jurisdiction | string (uuid) | yes | |
organization_id | string (uuid) | yes | |
purpose | string | yes | |
Appointment
| Name | Type | Required | Description |
|---|
id | string (uuid) | no | |
organization_id | string (uuid) | no | |
facility_name | string | no | |
practitioner_id | string (uuid) | no | |
practitioner_name | string | no | |
service_type | string | no | |
mode | "in_person" | "video" | no | |
start_at | string (date-time) | no | |
end_at | string (date-time) | no | |
slot_id | string (uuid) | no | |
patient_id | string (uuid) | no | |
reason | string | null | no | |
state | "booked" | "checked_in" | "in_consultation" | "completed" | "cancelled" | "no_show" | no | |
overbooked | boolean | no | |
encounter_id | string | null | no | |
reminder_status | "none" | "scheduled" | "event_only" | "failed" | no | |
room_state | string | null | no | |
version | integer | no | |
patient_can_change | boolean | no | |
BookingSetting
| Name | Type | Required | Description |
|---|
service_type | string | yes | * for every service, or a service code |
booking_mode | "instant" | "request" | yes | |
request_expiry_hours | integer | no | |
RequestAccept
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
slot_id | string (uuid) | no | |
note | string | no | |
RequestDecline
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
RequestPropose
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
slot_id | string (uuid) | yes | |
note | string | no | |
RequestPatientStep
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | no | |
FollowUpBook
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
slot_id | string (uuid) | yes | |
FollowUpCancel
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |