Skip to content

← 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

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/schedulesList schedules (own facility)

Operation ID: OHN_54_API_002

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/schedulesPublish a schedule and generate slots

Operation ID: OHN_54_API_003

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/schedules/{id}/retireRetire a schedule

Operation ID: OHN_54_API_004

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

  • application/json: Step

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/servicesBookable services and facilities

Operation ID: OHN_54_API_005

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/slotsSearch slots

Operation ID: OHN_54_API_006

Authentication: bearer

Parameters

NameInTypeRequiredDescription
service_typequerystringno
facility_idquerystring (uuid)no
datequerystring (date)no
modequery"in_person" | "video"no

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/slots/{id}/blockClose or reopen a slot

Operation ID: OHN_54_API_007

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/dayFacility day view

Operation ID: OHN_54_API_008

Authentication: bearer

Parameters

NameInTypeRequiredDescription
datequerystring (date)yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/mineMy appointments

Operation ID: OHN_54_API_009

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointmentsBook

Operation ID: OHN_54_API_010

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

  • application/json: Book

Responses

CodeDescriptionMedia type
200Appointment
application/json: Appointment
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/{id}Appointment

Operation ID: OHN_54_API_011

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200Appointment
application/json: Appointment
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/{id}/historyAppointment history

Operation ID: OHN_54_API_012

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/{id}/rescheduleReschedule

Operation ID: OHN_54_API_013

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Appointment
application/json: Appointment
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/{id}/cancelCancel

Operation ID: OHN_54_API_014

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Appointment
application/json: Appointment
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/{id}/check-inCheck in

Operation ID: OHN_54_API_015

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

  • application/json: Step

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/{id}/no-showRecord no-show

Operation ID: OHN_54_API_016

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

  • application/json: Step

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/{id}/completeComplete

Operation ID: OHN_54_API_017

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

  • application/json: Step

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/{id}/encounterLink OHN-09 encounter

Operation ID: OHN_54_API_018

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/waitlistWaiting list

Operation ID: OHN_54_API_019

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/waitlistJoin waiting list

Operation ID: OHN_54_API_020

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/waitlist/{id}/withdrawWithdraw

Operation ID: OHN_54_API_021

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

  • application/json: Step

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/reports/{rid}Report

Operation ID: OHN_54_API_022

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ridpath"OHN-54-R001" | "OHN-54-R002"yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/reports/{rid}/exportSigned CSV

Operation ID: OHN_54_API_023

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ridpath"OHN-54-R001" | "OHN-54-R002"yes

Responses

CodeDescriptionMedia type
200CSV, header X-OHN54-Signature: hmac-sha256=<hex>
text/csv: string
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/auditAudit trail

Operation ID: OHN_54_API_024

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/appointments/synthetic-tokenSynthetic sign-in (non-production)

Operation ID: OHN_54_API_025

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/teleconsult/rooms/{id}Room state

Operation ID: OHN_54_API_026

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/teleconsult/rooms/{id}/consentRecord video consent

Operation ID: OHN_54_API_027

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/teleconsult/rooms/{id}/joinEnter waiting room

Operation ID: OHN_54_API_028

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/teleconsult/rooms/{id}/leaveLeave

Operation ID: OHN_54_API_029

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/teleconsult/rooms/{id}/admitAdmit patient

Operation ID: OHN_54_API_030

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/teleconsult/rooms/{id}/endEnd call

Operation ID: OHN_54_API_031

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/teleconsult/rooms/{id}/signalsPoll signalling

Operation ID: OHN_54_API_032

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
afterqueryintegerno

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/teleconsult/rooms/{id}/signalsSend signalling

Operation ID: OHN_54_API_033

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringno

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/teleconsult/rooms/{id}/notesNotes

Operation ID: OHN_54_API_034

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
POST/api/ohn/v1/teleconsult/rooms/{id}/notesAdd note

Operation ID: OHN_54_API_035

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

  • application/json: Note

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/health/ohn-54Health

Operation ID: OHN_54_API_036

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy—
404Not found or not in scope—
409Version conflict, invalid transition, slot full, outside change window—
422Validation failed—
GET/api/ohn/v1/appointments/booking-settingsBooking mode settings of the own facility (staff)

Operation ID: OHN_54_API_037

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

CodeDescriptionMedia type
200OK—
201Created—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-19 unavailable (dependant path)—
GET/api/ohn/v1/appointments/requests/{id}One request

Operation ID: OHN_54_API_041

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-19 unavailable (dependant path)—
GET/api/ohn/v1/appointments/requests/{id}/historyRequest history (append-only)

Operation ID: OHN_54_API_042

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Request body (required)

  • application/json: Step

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-19 unavailable (dependant path)—
POST/api/ohn/v1/appointments/requests/{id}/withdrawPatient withdraws the request

Operation ID: OHN_54_API_049

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

CodeDescriptionMedia type
200OK—
201Created—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-19 unavailable (dependant path)—
GET/api/ohn/v1/appointments/follow-ups/{id}One follow-up

Operation ID: OHN_54_API_052

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

NameInTypeRequiredDescription
idpathstring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-19 unavailable (dependant path)—
GET/api/ohn/v1/appointments/specialtiesSpecialties offered (declared on schedules)

Operation ID: OHN_54_API_057

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-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

CodeDescriptionMedia type
200OK—
401Unauthenticated
application/json: Error
403Denied by policy, or representation_denied (OHN-19)—
404Not found or not in scope—
409version_conflict, invalid_transition, slot_full, slot_unavailable, request_required, instant_booking, already_requested, already_open, request_expired—
422Validation failed—
503OHN-19 unavailable (dependant path)—

Schemas

Error

NameTypeRequiredDescription
errorstringyes
messagestringno
detailsanyno

Schedule

NameTypeRequiredDescription
facility_namestringyes
practitioner_idstring (uuid)yes
practitioner_namestringyes
service_typestringyes
mode"in_person" | "video"yes
slot_minutesintegeryes
from_datestring (date)yes
to_datestring (date)yes
weekdaysarray of integeryes
day_startstringyes
day_endstringyes

Book

NameTypeRequiredDescription
slot_idstring (uuid)yes
patient_idstring (uuid)no
reasonstringno
overbookbooleanno
waitlist_idstring (uuid)no

Reschedule

NameTypeRequiredDescription
slot_idstring (uuid)yes
expected_versionintegeryes

Cancel

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

Step

NameTypeRequiredDescription
expected_versionintegeryes

Block

NameTypeRequiredDescription
expected_versionintegeryes
blockedbooleanyes

Waitlist

NameTypeRequiredDescription
organization_idstring (uuid)yes
patient_idstring (uuid)no
service_typestringyes
mode"in_person" | "video"no
earlieststring (date)yes
lateststring (date)yes

Signal

NameTypeRequiredDescription
kind"offer" | "answer" | "ice" | "hangup"yes
payloadobjectyesSDP {type,sdp} or ICE candidate; at most 16 KB

Note

NameTypeRequiredDescription
bodystringyes

Empty

object

SyntheticToken

NameTypeRequiredDescription
principal_idstring (uuid)yes
role"patient" | "clinician" | "scheduler"yes
jurisdictionstring (uuid)yes
organization_idstring (uuid)yes
purposestringyes

Appointment

NameTypeRequiredDescription
idstring (uuid)no
organization_idstring (uuid)no
facility_namestringno
practitioner_idstring (uuid)no
practitioner_namestringno
service_typestringno
mode"in_person" | "video"no
start_atstring (date-time)no
end_atstring (date-time)no
slot_idstring (uuid)no
patient_idstring (uuid)no
reasonstring | nullno
state"booked" | "checked_in" | "in_consultation" | "completed" | "cancelled" | "no_show"no
overbookedbooleanno
encounter_idstring | nullno
reminder_status"none" | "scheduled" | "event_only" | "failed"no
room_statestring | nullno
versionintegerno
patient_can_changebooleanno

BookingSetting

NameTypeRequiredDescription
service_typestringyes* for every service, or a service code
booking_mode"instant" | "request"yes
request_expiry_hoursintegerno

AppointmentRequestInput

NameTypeRequiredDescription
slot_idstring (uuid)no
organization_idstring (uuid)no
service_typestringno
mode"in_person" | "video"no
practitioner_idstring (uuid)no
preferred_fromstring (date)no
preferred_tostring (date)no
time_of_day"any" | "morning" | "afternoon"no
patient_idstring (uuid)noa dependant (OHN-19 permit required)
reasonstringno

RequestAccept

NameTypeRequiredDescription
expected_versionintegeryes
slot_idstring (uuid)no
notestringno

RequestDecline

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

RequestPropose

NameTypeRequiredDescription
expected_versionintegeryes
slot_idstring (uuid)yes
notestringno

RequestPatientStep

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringno

FollowUpInput

NameTypeRequiredDescription
patient_idstring (uuid)yes
service_typestringyes
mode"in_person" | "video"yes
reasonstringyes
due_fromstring (date)yes
due_tostring (date)yes
practitioner_idstring (uuid)no
practitioner_namestringno
facility_namestringno
same_clinicianbooleanno
slot_idstring (uuid)no
source_appointment_idstring (uuid)no
source_encounter_idstring (uuid)no
programme_enrolment_idstring (uuid)noOHN-55 enrolment (read through the OHN-55 API)
programme_codestringno
programme_next_visit_duestring (date)no

FollowUpBook

NameTypeRequiredDescription
expected_versionintegeryes
slot_idstring (uuid)yes

FollowUpCancel

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes