← 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
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_002
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_003
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_004
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_005
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_006
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
service_type | query | string | non | |
facility_id | query | string (uuid) | non | |
date | query | string (date) | non | |
mode | query | "in_person" | "video" | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_007
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_008
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
date | query | string (date) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_009
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_010
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_011
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_012
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_013
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_014
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_015
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_016
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_017
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_018
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_019
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_020
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_021
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_022
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
rid | path | "OHN-54-R001" | "OHN-54-R002" | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_023
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
rid | path | "OHN-54-R001" | "OHN-54-R002" | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_024
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_025
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_026
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_027
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_028
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_029
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_030
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_031
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_032
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
after | query | integer | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_033
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | non | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_034
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_035
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_036
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_037
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_038
Authentification: bearer
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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=
Identifiant d’opération: OHN_54_API_040
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_039
Authentification: bearer
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_041
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_042
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_043
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_044
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_045
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_046
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_047
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_048
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_049
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_051
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_050
Authentification: bearer
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_052
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_053
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_054
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_055
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_056
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_057
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: OHN_54_API_058
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_059
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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=)
Identifiant d’opération: OHN_54_API_060
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: OHN_54_API_061
Authentification: bearer
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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) | — |
Schémas
Error
| Nom | Type | Obligatoire | Description |
|---|
error | string | oui | |
message | string | non | |
details | any | non | |
Schedule
| Nom | Type | Obligatoire | Description |
|---|
facility_name | string | oui | |
practitioner_id | string (uuid) | oui | |
practitioner_name | string | oui | |
service_type | string | oui | |
mode | "in_person" | "video" | oui | |
slot_minutes | integer | oui | |
from_date | string (date) | oui | |
to_date | string (date) | oui | |
weekdays | array of integer | oui | |
day_start | string | oui | |
day_end | string | oui | |
Book
| Nom | Type | Obligatoire | Description |
|---|
slot_id | string (uuid) | oui | |
patient_id | string (uuid) | non | |
reason | string | non | |
overbook | boolean | non | |
waitlist_id | string (uuid) | non | |
Reschedule
| Nom | Type | Obligatoire | Description |
|---|
slot_id | string (uuid) | oui | |
expected_version | integer | oui | |
Cancel
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
Step
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
Block
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
blocked | boolean | oui | |
Waitlist
| Nom | Type | Obligatoire | Description |
|---|
organization_id | string (uuid) | oui | |
patient_id | string (uuid) | non | |
service_type | string | oui | |
mode | "in_person" | "video" | non | |
earliest | string (date) | oui | |
latest | string (date) | oui | |
EncounterLink
| Nom | Type | Obligatoire | Description |
|---|
encounter_id | string (uuid) | oui | |
Consent
| Nom | Type | Obligatoire | Description |
|---|
statement_version | "OHN-54-VC-1.0" | oui | |
agree | true | oui | |
Signal
| Nom | Type | Obligatoire | Description |
|---|
kind | "offer" | "answer" | "ice" | "hangup" | oui | |
payload | object | oui | SDP {type,sdp} or ICE candidate; at most 16 KB |
Note
| Nom | Type | Obligatoire | Description |
|---|
body | string | oui | |
SyntheticToken
| Nom | Type | Obligatoire | Description |
|---|
principal_id | string (uuid) | oui | |
role | "patient" | "clinician" | "scheduler" | oui | |
jurisdiction | string (uuid) | oui | |
organization_id | string (uuid) | oui | |
purpose | string | oui | |
Appointment
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
organization_id | string (uuid) | non | |
facility_name | string | non | |
practitioner_id | string (uuid) | non | |
practitioner_name | string | non | |
service_type | string | non | |
mode | "in_person" | "video" | non | |
start_at | string (date-time) | non | |
end_at | string (date-time) | non | |
slot_id | string (uuid) | non | |
patient_id | string (uuid) | non | |
reason | string | null | non | |
state | "booked" | "checked_in" | "in_consultation" | "completed" | "cancelled" | "no_show" | non | |
overbooked | boolean | non | |
encounter_id | string | null | non | |
reminder_status | "none" | "scheduled" | "event_only" | "failed" | non | |
room_state | string | null | non | |
version | integer | non | |
patient_can_change | boolean | non | |
BookingSetting
| Nom | Type | Obligatoire | Description |
|---|
service_type | string | oui | * for every service, or a service code |
booking_mode | "instant" | "request" | oui | |
request_expiry_hours | integer | non | |
RequestAccept
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
slot_id | string (uuid) | non | |
note | string | non | |
RequestDecline
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
RequestPropose
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
slot_id | string (uuid) | oui | |
note | string | non | |
RequestPatientStep
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | non | |
FollowUpBook
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
slot_id | string (uuid) | oui | |
FollowUpCancel
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |