Aller au contenu

← Tous les contrats

OHN-54 Appointments and Teleconsultation

Version
1.1.1
OpenAPI
3.1.0
Source dans le dépôt
modules/OHN-54/api/openapi.yaml
Serveurs
https://opeshealthnetwork.com
Authentification
bearer: http bearer (JWT)

Télécharger le contrat (YAML)

Les contrats sont rédigés en anglais.

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.

Opérations

Autres opérations

GET/api/ohn/v1/appointments/policyConfigured policy

Identifiant d’opération: OHN_54_API_001

Authentification: bearer

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_002

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_003

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_004

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: Step

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_005

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_006

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
service_typequerystringnon
facility_idquerystring (uuid)non
datequerystring (date)non
modequery"in_person" | "video"non

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_007

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_008

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
datequerystring (date)oui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_009

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_010

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: Book

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_011

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_012

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_013

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_014

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_015

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: Step

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_016

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: Step

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_017

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: Step

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_018

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_019

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_020

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_021

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: Step

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_022

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
ridpath"OHN-54-R001" | "OHN-54-R002"oui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_023

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
ridpath"OHN-54-R001" | "OHN-54-R002"oui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_024

Authentification: bearer

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_025

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_026

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_027

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_028

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_029

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_030

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_031

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_032

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
afterqueryintegernon

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_033

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringnon

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_034

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_035

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: Note

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_036

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_037

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_038

Authentification: bearer

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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=

Identifiant d’opération: OHN_54_API_040

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_039

Authentification: bearer

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_041

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_042

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_043

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_044

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_045

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_046

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_047

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Corps de la requête (obligatoire)

  • application/json: Step

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_048

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_049

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_051

Authentification: bearer

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_050

Authentification: bearer

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_052

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_053

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_054

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_055

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_056

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_057

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: OHN_54_API_058

Authentification: bearer

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_059

Authentification: bearer

Réponses

CodeDescriptionType de média
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=)

Identifiant d’opération: OHN_54_API_060

Authentification: bearer

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: OHN_54_API_061

Authentification: bearer

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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)—

Schémas

Error

NomTypeObligatoireDescription
errorstringoui
messagestringnon
detailsanynon

Schedule

NomTypeObligatoireDescription
facility_namestringoui
practitioner_idstring (uuid)oui
practitioner_namestringoui
service_typestringoui
mode"in_person" | "video"oui
slot_minutesintegeroui
from_datestring (date)oui
to_datestring (date)oui
weekdaysarray of integeroui
day_startstringoui
day_endstringoui

Book

NomTypeObligatoireDescription
slot_idstring (uuid)oui
patient_idstring (uuid)non
reasonstringnon
overbookbooleannon
waitlist_idstring (uuid)non

Reschedule

NomTypeObligatoireDescription
slot_idstring (uuid)oui
expected_versionintegeroui

Cancel

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

Step

NomTypeObligatoireDescription
expected_versionintegeroui

Block

NomTypeObligatoireDescription
expected_versionintegeroui
blockedbooleanoui

Waitlist

NomTypeObligatoireDescription
organization_idstring (uuid)oui
patient_idstring (uuid)non
service_typestringoui
mode"in_person" | "video"non
earlieststring (date)oui
lateststring (date)oui

Signal

NomTypeObligatoireDescription
kind"offer" | "answer" | "ice" | "hangup"oui
payloadobjectouiSDP {type,sdp} or ICE candidate; at most 16 KB

Note

NomTypeObligatoireDescription
bodystringoui

Empty

object

SyntheticToken

NomTypeObligatoireDescription
principal_idstring (uuid)oui
role"patient" | "clinician" | "scheduler"oui
jurisdictionstring (uuid)oui
organization_idstring (uuid)oui
purposestringoui

Appointment

NomTypeObligatoireDescription
idstring (uuid)non
organization_idstring (uuid)non
facility_namestringnon
practitioner_idstring (uuid)non
practitioner_namestringnon
service_typestringnon
mode"in_person" | "video"non
start_atstring (date-time)non
end_atstring (date-time)non
slot_idstring (uuid)non
patient_idstring (uuid)non
reasonstring | nullnon
state"booked" | "checked_in" | "in_consultation" | "completed" | "cancelled" | "no_show"non
overbookedbooleannon
encounter_idstring | nullnon
reminder_status"none" | "scheduled" | "event_only" | "failed"non
room_statestring | nullnon
versionintegernon
patient_can_changebooleannon

BookingSetting

NomTypeObligatoireDescription
service_typestringoui* for every service, or a service code
booking_mode"instant" | "request"oui
request_expiry_hoursintegernon

AppointmentRequestInput

NomTypeObligatoireDescription
slot_idstring (uuid)non
organization_idstring (uuid)non
service_typestringnon
mode"in_person" | "video"non
practitioner_idstring (uuid)non
preferred_fromstring (date)non
preferred_tostring (date)non
time_of_day"any" | "morning" | "afternoon"non
patient_idstring (uuid)nona dependant (OHN-19 permit required)
reasonstringnon

RequestAccept

NomTypeObligatoireDescription
expected_versionintegeroui
slot_idstring (uuid)non
notestringnon

RequestDecline

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

RequestPropose

NomTypeObligatoireDescription
expected_versionintegeroui
slot_idstring (uuid)oui
notestringnon

RequestPatientStep

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringnon

FollowUpInput

NomTypeObligatoireDescription
patient_idstring (uuid)oui
service_typestringoui
mode"in_person" | "video"oui
reasonstringoui
due_fromstring (date)oui
due_tostring (date)oui
practitioner_idstring (uuid)non
practitioner_namestringnon
facility_namestringnon
same_clinicianbooleannon
slot_idstring (uuid)non
source_appointment_idstring (uuid)non
source_encounter_idstring (uuid)non
programme_enrolment_idstring (uuid)nonOHN-55 enrolment (read through the OHN-55 API)
programme_codestringnon
programme_next_visit_duestring (date)non

FollowUpBook

NomTypeObligatoireDescription
expected_versionintegeroui
slot_idstring (uuid)oui

FollowUpCancel

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui