OHN-61 Triage and Patient Queue
- Version
- 1.3.7
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-61/api/openapi.yaml- Serveurs
https://opeshealthnetwork.com- Authentification
bearer: http bearer (JWT)
Les contrats sont rédigés en anglais.
Arrival/check-in, per-department live queues, call screens, vital signs, acuity on a configurable jurisdiction-approved triage scale (fail closed), reassessment timers, handover to consultation, outcomes and reports. Deployable: care-exchange. Module key: triage. Tables: ohn61_*. Every write needs Idempotency-Key (same key + same body replays the first answer; same key + other body is 409 idempotency_mismatch) and, on an existing aggregate, expected_version. Request bodies are strict: unknown keys are 422 validation_failed. Facility scope comes from the token (workspace facility); a ticket of another facility is 404.
Opérations
- Autres opérations (106)
Autres opérations
GET/api/ohn/v1/triage/departmentsList departments of the caller's facility
Identifiant d’opération: OHN_61_API_001
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
active | query | boolean | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of Department |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/departmentsCreate a department (facility configuration)
Identifiant d’opération: OHN_61_API_002
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui | |
facility_id | query | string (uuid) | oui |
Corps de la requête (obligatoire)
application/json:DepartmentWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Department |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | conflict: duplicate code or ticket_prefix in the facility | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/departments/{department_id}Get one department (also used by OHN-62 to verify a binding)
Identifiant d’opération: OHN_61_API_003
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
department_id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Department |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
PUT/api/ohn/v1/triage/departments/{department_id}Update a department (expected_version required)
Identifiant d’opération: OHN_61_API_004
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
department_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:DepartmentWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Department |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/scalesList triage scale versions of the jurisdiction
Identifiant d’opération: OHN_61_API_005
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
jurisdiction_id | query | string (uuid) | oui | |
state | query | "draft" | "active" | "retired" | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of TriageScaleVersion |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/scalesLoad a scale version as draft (validated: unique level codes and ranks, every rule/discriminator level exists, inputs are known vitals/discriminators)
Identifiant d’opération: OHN_61_API_006
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui | |
jurisdiction_id | query | string (uuid) | oui |
Corps de la requête (obligatoire)
application/json:TriageScaleDocument
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: TriageScaleVersion |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/scales/activeThe active scale of the caller's jurisdiction. 1.3.6: cashier may read it (purpose triage_billing, read-only) to show the pilot banner from synthetic_demo and clinically_approved
Identifiant d’opération: OHN_61_API_007
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
jurisdiction_id | query | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: TriageScaleVersion |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
503 | not_configured: no active, approved triage scale for the jurisdiction (fail closed) | application/json: Error |
GET/api/ohn/v1/triage/scales/{scale_id}Get one scale version
Identifiant d’opération: OHN_61_API_008
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
scale_id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: TriageScaleVersion |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/scales/{scale_id}/activateActivate a draft (retires the previous active version of the jurisdiction)
Identifiant d’opération: OHN_61_API_009
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
scale_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ScaleActivate
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: TriageScaleVersion |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed, or scale_not_approved: a real scale cannot use the demo approval_ref | application/json: Error |
POST/api/ohn/v1/triage/scales/{scale_id}/retireRetire a version (no active scale afterwards means 503 not_configured for acuity)
Identifiant d’opération: OHN_61_API_010
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
scale_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Reasoned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: TriageScaleVersion |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/scales/load-demoLoad the SYNTHETIC demo scale (NOT clinically approved). Served only when OHN61_ALLOW_DEMO_CONFIG=true and the profile is not production
Identifiant d’opération: OHN_61_API_011
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui | |
jurisdiction_id | query | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: TriageScaleVersion |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | demo_config_disabled (the route does not exist in production) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/scales/load-referenceLoad the reference SATS triage scale (South African Triage Scale adult chart, SATS Training Manual 2012, with WHO ETAT 2016 emergency and priority signs for children; every item cited, see modules/OHN-61/docs/sats-reference-scale.md) as a draft with synthetic_demo false. It is never activated here; clinical governance verifies it and activates it with its own approval reference, so clinically_approved stays false until then. Served in every profile.
Identifiant d’opération: OHN_61_API_105
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui | |
jurisdiction_id | query | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: TriageScaleVersion |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found (another jurisdiction) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/ticketsCheck in: create a queue ticket (walk-in or OHN-54 appointment)
Verifies the patient with OHN-03 (GET /api/ohn/v1/mpi/patients/{id}); for an appointment, verifies it with OHN-54 and calls its check-in (POST /api/ohn/v1/appointments/{id}/check-in). Attaches pre-consultation answers through OHN-62 (POST /api/ohn/v1/pre-consult/tickets/{ticket_id}/attach); if OHN-62 is unavailable the ticket is still created with preconsult.state=unknown. Ticket number = department prefix + daily sequence.
Identifiant d’opération: OHN_61_API_012
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:CheckIn
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Created; public_token returned once | application/json: CheckInResult |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | conflict: patient already has an open ticket in this department (details.ticket_id), or appointment already checked in | application/json: Error |
422 | validation_failed, patient_not_identified (unidentified only where allows_unidentified), appointment_mismatch (other patient/facility/day), department_inactive; emergency_bypass never fails on identity, questionnaire or payment | application/json: Error |
502 | upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed) | application/json: Error |
GET/api/ohn/v1/triage/tickets/{ticket_id}Get a ticket
Response depends on the caller role: triage_service (OHN-62 service token) receives TicketServiceProjection (ids and states only: id, ticket_number, facility_id, department_id, patient_id, state, financial_state, version); receptionist, triage_officer and clinician receive the full Ticket.
Identifiant d’opération: OHN_61_API_013
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket | TicketServiceProjection |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/queueLive queue of one department: triage view (waiting/called/in_triage) or consultation view (triaged/consult_called/in_consultation)
Order: untriaged tickets by priority_flag (configured OHN-62 red flags) then arrival time; triaged tickets by acuity rank (1 first) then arrival time. waiting_minutes, target_breached and reassessment_overdue are computed at read time from the active scale. Receptionists see no vitals or complaint, only ticket, name, wait and acuity colour.
Identifiant d’opération: OHN_61_API_014
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
department_id | query | string (uuid) | oui | |
view | query | "triage" | "consultation" | "nurse_ready" | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: QueueView |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/departments/{department_id}/call-nextCall the next ticket of the view (first in queue order)
waiting -> called (triage view) or triaged -> consult_called (consultation view). Increments call_count, updates the waiting-room displays and, when notify_opt_in, asks OHN-53 to send the call by SMS/USSD.
Identifiant d’opération: OHN_61_API_015
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
department_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:CallNext
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | nothing_to_call | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch; payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse) | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/callCall (or re-call) a specific ticket. 1.3.7 (consultation view, role clinician): if the calling clinician has no active care_team relationship for this ticket's patient, it is registered first, best effort: a failure is audited and does not stop this action (see POST /handover: OHN-61 (its own service identity, OHN-16 role care_team_registrar (OHN-16 1.3.0: care_team only, at most 72 h, revokes only its own), purpose relationship_registration) registers POST /api/ohn/v1/access/relationships with relationship_type care_team, actor_ref = the clinician's OHN-06 practitioner id, patient_ref = the linked patient, facility_ref = the ticket's facility, evidence_ref = ticket_id, valid_from = now - 1 minute, expires_at = valid_from + the facility's care_team_relationship_hours (default 24, max 72); nothing is registered while an assertion for the same practitioner, patient and facility is still active. Audited (care_relationship.register), announced (triage.care_team.registered))
Identifiant d’opération: OHN_61_API_016
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Call
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch; payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse) | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/missedPatient did not answer the call: back to the queue, or no_show once call_count reaches max_calls_before_no_show
Identifiant d’opération: OHN_61_API_017
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Versioned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/start-triagecalled -> in_triage (opens the OHN-09 triage encounter when the patient is identified)
Identifiant d’opération: OHN_61_API_018
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Versioned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch; claimed_by_other (another user holds the claim); payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse) | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
502 | upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/link-patientLink an unidentified ticket to an OHN-03 patient (after search or quick registration); flushes pending vitals to OHN-10
Identifiant d’opération: OHN_61_API_019
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:LinkPatient
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
502 | upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed) | application/json: Error |
GET/api/ohn/v1/triage/tickets/{ticket_id}/vitalsVital sign sets of a ticket
Identifiant d’opération: OHN_61_API_020
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of VitalSet |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/vitalsRecord a vital sign set (state in_triage or triaged). Each value becomes an OHN-10 observation coded with LOINC (validated via OHN-23); pending until the patient is identified or OHN-10 accepts
Identifiant d’opération: OHN_61_API_021
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:VitalsCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: VitalSet |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch; claimed_by_other (another user holds the claim); payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse) | application/json: Error |
422 | validation_failed: unit/type errors, values outside the configured input_limits, diastolic >= systolic, measured_at in the future | application/json: Error |
POST/api/ohn/v1/triage/acuity/evaluatePreview the acuity the active scale computes for vitals and discriminators (no write)
Identifiant d’opération: OHN_61_API_022
Authentification: bearer
Corps de la requête (obligatoire)
application/json:EvaluateRequest
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Evaluation |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
503 | not_configured: no active, approved triage scale for the jurisdiction (fail closed) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/assessmentComplete triage: computed level (+ optional override with reason), presenting complaint; in_triage -> triaged and into the consultation queue of handover_department_id (default: same department). 1.3.7: a handover_department_id of another department is a handover for care_team access: it ends the previous department's assertions (re_handover); no receiving clinician is named here, so the lazy path applies (see POST /handover)
Identifiant d’opération: OHN_61_API_023
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:AssessmentCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Assessment |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch; claimed_by_other (another user holds the claim) | application/json: Error |
422 | validation_failed, override_reason_required, unknown level or discriminator, or downgrade not allowed by the scale; missing_vital_reason_required | application/json: Error |
502 | upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed) | application/json: Error |
503 | not_configured: no active, approved triage scale for the jurisdiction (fail closed) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/reassessmentsReassess a triaged ticket (new vitals set + level); resets the reassessment timer
Identifiant d’opération: OHN_61_API_024
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:AssessmentCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Assessment |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch; claimed_by_other (another user holds the claim) | application/json: Error |
422 | validation_failed, missing_vital_reason_required, override_reason_required, downgrade_requires_lead (a reassessment never lowers the level automatically: a lower computed level is shown as a suggestion and the previous level is kept unless a triage_lead overrides with a reason) | application/json: Error |
503 | not_configured: no active, approved triage scale for the jurisdiction (fail closed) | application/json: Error |
GET/api/ohn/v1/triage/tickets/{ticket_id}/assessmentsAssessments of a ticket, oldest first
Identifiant d’opération: OHN_61_API_025
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of Assessment |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/handoverMove a triaged ticket to another department's consultation queue. 1.3.7 (owner decision): the receiving department's clinicians get a time-limited OHN-16 care_team relationship. The shift roster holds platform user ids, not practitioner ids, so the main path is lazy: a clinician who calls the ticket (consultation view), starts its consultation, acknowledges the handover or opens its summary is registered with the practitioner_id of their own token. At call, start-consultation and acknowledge this is best effort: a missing practitioner_id or a failed registration is audited (care_relationship.register, outcome no_practitioner or failed) and the call, start or receipt still succeeds. GET /summary, the patient-data read, fails closed: no practitioner_id answers 403 forbidden (audit reason no_practitioner, as in 1.3.6) and a failed registration answers 503 dependency_unavailable (audited), before OHN-16 is asked for the read decision. Here, at the handover itself, each receiving_practitioner_ids entry in the body is registered at once (through the outbox; it never blocks or fails the handover). OHN-61 (its own service identity, OHN-16 role care_team_registrar (OHN-16 1.3.0: care_team only, at most 72 h, revokes only its own), purpose relationship_registration) registers POST /api/ohn/v1/access/relationships with relationship_type care_team, actor_ref = the clinician's OHN-06 practitioner id, patient_ref = the linked patient, facility_ref = the ticket's facility, evidence_ref = ticket_id, valid_from = now - 1 minute, expires_at = valid_from + the facility's care_team_relationship_hours (default 24, max 72); nothing is registered while an assertion for the same practitioner, patient and facility is still active. Audited (care_relationship.register), announced (triage.care_team.registered). A ticket without a linked patient registers nothing until link-patient. A handover to another department first revokes the assertions registered for the previous one (re_handover). Ticket.care_team_access shows the state
Identifiant d’opération: OHN_61_API_026
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Handover
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/signalsService call from OHN-62: a configured red-flag rule fired for this ticket's pre-consultation answers
Identifiant d’opération: OHN_61_API_027
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:SignalCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Signal |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | ticket closed | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/signals/{signal_id}/acknowledgeOfficer acknowledges a red-flag signal
Identifiant d’opération: OHN_61_API_028
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
signal_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Versioned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Signal |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/start-consultationconsult_called -> in_consultation (clinician; records consultation_started_at). 1.3.7: if the calling clinician has no active care_team relationship for this ticket's patient, it is registered first, best effort: a failure is audited and does not stop this action (see POST /handover: OHN-61 (its own service identity, OHN-16 role care_team_registrar (OHN-16 1.3.0: care_team only, at most 72 h, revokes only its own), purpose relationship_registration) registers POST /api/ohn/v1/access/relationships with relationship_type care_team, actor_ref = the clinician's OHN-06 practitioner id, patient_ref = the linked patient, facility_ref = the ticket's facility, evidence_ref = ticket_id, valid_from = now - 1 minute, expires_at = valid_from + the facility's care_team_relationship_hours (default 24, max 72); nothing is registered while an assertion for the same practitioner, patient and facility is still active. Audited (care_relationship.register), announced (triage.care_team.registered))
Identifiant d’opération: OHN_61_API_029
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Versioned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/completein_consultation -> completed. 1.3.7: closing the ticket revokes every care_team assertion still active for it in OHN-16 (POST /access/relationships/{id}/revoke, reason 'triage ticket closed: <state>'; 409 already_revoked counts as done), through the outbox; audited (care_relationship.revoke) and announced (triage.care_team.ended)
Identifiant d’opération: OHN_61_API_030
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Versioned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/outcomeClose without consultation: left_without_being_seen, transferred, referred (OHN-27 referral verified) or cancelled (entered in error, before triage only). 1.3.7: closing the ticket revokes every care_team assertion still active for it in OHN-16 (POST /access/relationships/{id}/revoke, reason 'triage ticket closed: <state>'; 409 already_revoked counts as done), through the outbox; audited (care_relationship.revoke) and announced (triage.care_team.ended)
Identifiant d’opération: OHN_61_API_031
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Outcome
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed or referral_mismatch | application/json: Error |
502 | upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed) | application/json: Error |
GET/api/ohn/v1/triage/tickets/{ticket_id}/summaryTriage summary for the clinician: vitals, assessments, overrides, signals, pre-consult response ids, state history (audited read). 1.3.7 (role clinician): if the clinician has no active care_team relationship for this ticket's patient, it is registered before the OHN-16 read decision, failing closed: no practitioner_id is 403 forbidden (audit reason no_practitioner), a failed registration is 503 dependency_unavailable (audited). See POST /handover
Identifiant d’opération: OHN_61_API_032
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: TriageSummary |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/displaysWaiting-room displays of the facility
Identifiant d’opération: OHN_61_API_033
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of Display |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/displaysRegister a display (returns a display id; a device token is issued by the platform for role display_device)
Identifiant d’opération: OHN_61_API_034
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui | |
facility_id | query | string (uuid) | oui |
Corps de la requête (obligatoire)
application/json:DisplayWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Display |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
PUT/api/ohn/v1/triage/displays/{display_id}Update a display
Identifiant d’opération: OHN_61_API_035
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
display_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:DisplayWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Display |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/displays/{display_id}/feedCalls to show on the screen (poll every 3-5 s; ETag/If-None-Match supported, 304 when unchanged)
Identifiant d’opération: OHN_61_API_036
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
display_id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: DisplayFeed |
304 | Not modified | application/json: Error |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/reports/{report_id}Run a report (daily_attendance, triage_queue_times, assessment_completion, emergency_escalations, doctor_handoffs, access_and_privacy, flow_and_capacity; OHN-61-R001..R003 are 1.0 aliases)
Identifiant d’opération: OHN_61_API_037
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
report_id | path | "daily_attendance" | "triage_queue_times" | "assessment_completion" | "emergency_escalations" | "doctor_handoffs" | "access_and_privacy" | "flow_and_capacity" | "OHN-61-R001" | "OHN-61-R002" | "OHN-61-R003" | "sync_health" | "payment_gate_audit" | … | oui | |
facility_id | query | string (uuid) | oui | |
from | query | string (date) | oui | |
to | query | string (date) | oui | |
department_id | query | string (uuid) | non | |
group_by | query | array of "facility" | "department" | "date" | "shift" | "acuity" | "staff_role" | "time" | "protocol_version" | "destination" | "day" | "zone" | "hour" | … | non | dimensions, comma-separated; default the report's documented default |
shift_id | query | string (uuid) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Report |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed: range over 366 days or to < from | application/json: Error |
POST/api/ohn/v1/triage/reports/{report_id}/exportExport CSV or PDF, watermarked through OHN-16 marks (resource type report_export); counts under 5 suppressed
Identifiant d’opération: OHN_61_API_038
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
report_id | path | "daily_attendance" | "triage_queue_times" | "assessment_completion" | "emergency_escalations" | "doctor_handoffs" | "access_and_privacy" | "flow_and_capacity" | "OHN-61-R001" | "OHN-61-R002" | "OHN-61-R003" | "sync_health" | "payment_gate_audit" | … | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ExportRequest
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | File with X-OHN-Mark-Id header | text/csv: stringapplication/pdf: string (binary) |
401 | Unauthenticated | application/json: Error |
403 | export_not_allowed by OHN-16 | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
502 | upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/claimClaim the ticket (lease of claim_ttl_minutes, renewed by claiming again). Required for start-triage, vitals, assessment and reassessment
Identifiant d’opération: OHN_61_API_039
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ClaimRequest
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | claimed_by_other (details.claimed_by, details.claim_expires_at), version_conflict, invalid_transition; payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse) | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/releaseRelease own claim (or triage_lead releases any; audited)
Identifiant d’opération: OHN_61_API_040
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Versioned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/recallRecall: call a called/consult_called ticket again (call_count+1), or reinstate a no_show into the queue at its original arrival time within no_show_reinstate_minutes (reason required)
Identifiant d’opération: OHN_61_API_041
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Recall
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed or reinstate_window_passed | application/json: Error |
GET/api/ohn/v1/triage/escalationsEmergency tracking: escalations of the facility (open first, by raised_at)
Identifiant d’opération: OHN_61_API_042
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
state | query | "open" | "acknowledged" | "handed_off" | "cancelled" | non | |
department_id | query | string (uuid) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of Escalation |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/escalationsRaise an emergency escalation by staff (automatic escalations come from scale levels/rules marked emergency/escalate)
Identifiant d’opération: OHN_61_API_043
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:EscalationCreate
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Escalation |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | an open escalation exists (details.escalation_id) | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/escalations/{escalation_id}Get one escalation
Identifiant d’opération: OHN_61_API_044
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
escalation_id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Escalation |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/escalations/{escalation_id}/acknowledgeStaff acknowledgement (one per user; state acknowledged once every required_ack_role has acknowledged)
Identifiant d’opération: OHN_61_API_045
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
escalation_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Versioned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Escalation |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | escalation_closed or already acknowledged by this user | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/escalations/{escalation_id}/handoffHand off to the receiving department/clinician; records handoff latency
Identifiant d’opération: OHN_61_API_046
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
escalation_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:EscalationHandoff
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Escalation |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/escalations/{escalation_id}/cancelCancel an escalation raised in error (triage_lead, reason)
Identifiant d’opération: OHN_61_API_047
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
escalation_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Reasoned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Escalation |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/self-check-inPatient self check-in at /p/triage (kiosk device or logged-in patient): Health ID + date of birth, appointment QR, or access card
Identifiant d’opération: OHN_61_API_048
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:SelfCheckIn
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: CheckInResult |
401 | Unauthenticated | application/json: Error |
403 | self check-in disabled for the facility | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed, token_invalid, card_revoked (identification failures are generic and audited as public_token.fail) | application/json: Error |
429 | rate limited (10/min per device, 5 failures lock the device for 5 min) | application/json: Error |
GET/api/ohn/v1/triage/public/tickets/{token}Privacy-safe live ticket status for /p/triage/ticket (no login; no name, Health ID, acuity or clinical data)
Identifiant d’opération: OHN_61_API_049
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
token | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: PublicTicketStatus |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
410 | token expired or ticket closed for more than 1 h | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
429 | rate limited | application/json: Error |
GET/api/ohn/v1/triage/tickets/{ticket_id}/slipPrintable ticket slip (ticket number, department, QR of the public status link); the public token is re-issued and the old one revoked
Identifiant d’opération: OHN_61_API_050
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
format | query | "pdf" | "escpos" | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Slip | application/pdf: string (binary)application/octet-stream: string (binary) |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/access-cardsIssue a facility access card for a patient (QR + number); replaces an older card
Identifiant d’opération: OHN_61_API_051
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:AccessCardIssue
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: AccessCard |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/access-cards/lookupResolve a scanned card to its patient (receptionist; audited)
Identifiant d’opération: OHN_61_API_052
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
card_number | query | string | oui |
Réponses
POST/api/ohn/v1/triage/access-cards/{card_id}/revokeRevoke a card
Identifiant d’opération: OHN_61_API_053
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
card_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Reasoned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: AccessCard |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/settingsFacility triage settings
Identifiant d’opération: OHN_61_API_054
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: FacilitySettings |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
PUT/api/ohn/v1/triage/settingsUpdate facility triage settings (operating rules). 1.3.7: care_team_relationship_hours (1-72, default 24) applies to registrations made after the change; existing assertions keep their expiry
Identifiant d’opération: OHN_61_API_055
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui | |
facility_id | query | string (uuid) | oui |
Corps de la requête (obligatoire)
application/json:FacilitySettingsWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: FacilitySettings |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/roomsRooms of the facility
Identifiant d’opération: OHN_61_API_056
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
department_id | query | string (uuid) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of Room |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/roomsCreate a room
Identifiant d’opération: OHN_61_API_057
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui | |
facility_id | query | string (uuid) | oui |
Corps de la requête (obligatoire)
application/json:RoomWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Room |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
PUT/api/ohn/v1/triage/rooms/{room_id}Update a room
Identifiant d’opération: OHN_61_API_058
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
room_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:RoomWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Room |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/shiftsShifts with staff assignments (roster)
Identifiant d’opération: OHN_61_API_059
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
from | query | string (date-time) | oui | |
to | query | string (date-time) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of Shift |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/shiftsCreate a shift with assignments
Identifiant d’opération: OHN_61_API_060
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui | |
facility_id | query | string (uuid) | oui |
Corps de la requête (obligatoire)
application/json:ShiftWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: Shift |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed: ends_at <= starts_at, over 24 h, unknown room, user not a member of the facility | application/json: Error |
PUT/api/ohn/v1/triage/shifts/{shift_id}Replace a shift and its assignments
Identifiant d’opération: OHN_61_API_061
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
shift_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ShiftWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Shift |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/sync/batchesOffline sync from an OHN-26 edge node or offline tablet: apply queued operations in performed_at order; per-operation result
Authorization is per operation: each operation is checked against the roles its online endpoint admits. A signed-in user uploads only their own work: an operation whose performed_by is someone else is rejected with performer_mismatch. An edge_sync node relays only the work of a person on a shift of the facility that covers performed_at; the operation then runs with that person's shift role. Otherwise it is rejected with performer_not_on_shift, or forbidden when the shift role is not admitted by the online endpoint. These are per-operation errors in SyncResult.results[].error, not a failure of the batch. Each operation is applied exactly once, atomically with its idempotency record (client_op_id); a resend returns duplicate. An offline assessment or reassessment may set payload.vital_set_id to the client_op_id of a vitals operation from the same device; the server maps it to the vital set it created.
Identifiant d’opération: OHN_61_API_062
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:SyncBatch
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: SyncResult |
401 | Unauthenticated | application/json: Error |
403 | offline_allowed is false for the facility | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/sync/statusSync state of a device
Identifiant d’opération: OHN_61_API_063
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
device_id | query | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: SyncStatus |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/sync/conflictsOpen/resolved sync conflicts of the facility
Identifiant d’opération: OHN_61_API_064
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
state | query | "open" | "resolved" | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of SyncConflict |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/sync/conflicts/{conflict_id}/resolveResolve a conflict (keep_server, apply_client, apply_as_reassessment, discard); clinical data is never silently discarded: discard needs a reason and keeps the payload in the audit
Resolution is serialized: once a conflict is resolved, a second resolver gets 409 invalid_transition (this conflict is already resolved) and the first resolution stands; the request carries no expected_version.
Identifiant d’opération: OHN_61_API_065
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
conflict_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:SyncResolve
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: SyncConflict |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | invalid_transition: the conflict is already resolved | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/auditImmutable, scoped triage audit log (hash-chained; reads, mutations, denials, break-glass, public-token failures)
Identifiant d’opération: OHN_61_API_066
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
from | query | string (date-time) | oui | |
to | query | string (date-time) | oui | |
ticket_id | query | string (uuid) | non | |
actor | query | string | non | |
action | query | string | non | |
outcome | query | "allowed" | "denied" | "failed" | non | |
cursor | query | string | non | |
limit | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of AuditEntry |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/audit/verifyVerify the hash chain for a range (returns first broken seq or ok)
Identifiant d’opération: OHN_61_API_067
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
from | query | string (date-time) | oui | |
to | query | string (date-time) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: get-api-ohn-v1-triage-audit-verify.response-200 |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/assignAssign a room and/or the receiving clinician (must be on a current shift of the department, else 422 clinician_not_on_shift)
Identifiant d’opération: OHN_61_API_068
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Assign
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed or clinician_not_on_shift | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/handover/acknowledgeReceiving clinician acknowledges the handover (handover_state pending_ack -> acknowledged); unacknowledged after the facility's escalation_ack_within_seconds becomes failed, stays visible and can be re-sent with POST /handover. 1.3.7: if the calling clinician has no active care_team relationship for this ticket's patient, it is registered first, best effort: a failure is audited and does not stop this action (see POST /handover: OHN-61 (its own service identity, OHN-16 role care_team_registrar (OHN-16 1.3.0: care_team only, at most 72 h, revokes only its own), purpose relationship_registration) registers POST /api/ohn/v1/access/relationships with relationship_type care_team, actor_ref = the clinician's OHN-06 practitioner id, patient_ref = the linked patient, facility_ref = the ticket's facility, evidence_ref = ticket_id, valid_from = now - 1 minute, expires_at = valid_from + the facility's care_team_relationship_hours (default 24, max 72); nothing is registered while an assertion for the same practitioner, patient and facility is still active. Audited (care_relationship.register), announced (triage.care_team.registered))
Identifiant d’opération: OHN_61_API_069
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Versioned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | handover_not_pending or version_conflict | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/payment-policyThe facility's active payment policy (read-only for admins; signed revision)
Identifiant d’opération: OHN_61_API_070
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: PaymentPolicy |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
PUT/api/ohn/v1/triage/payment-policySet a new signed policy revision (approval_ref required). mode none keeps the 1.2 flow; pay_before_nurse turns the routine gate on. 1.3.6: a triage_admin (purpose triage_administration) signs only for the facility of its token's organization_id, another facility answers 404; triage_governance_admin (purpose triage_governance) keeps every facility of the jurisdiction
Identifiant d’opération: OHN_61_API_071
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui | |
facility_id | query | string (uuid) | oui |
Corps de la requête (obligatoire)
application/json:PaymentPolicyWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: PaymentPolicy |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed or policy_not_signed | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/first-lookImmediate trained-staff safety first-look, before any payment. Outcome emergency authorizes the emergency bypass at once (no billing call)
Identifiant d’opération: OHN_61_API_072
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:FirstLook
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | receptionist may record only if the facility trained-staff list includes them | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/billing-intentAsk the facility billing system (FacilityBillingPort; OHN-58 billing sandbox now, real hospital billing or mobile money later through the same port) to create the consultation invoice for this visit; stores the invoice reference only
Identifiant d’opération: OHN_61_API_073
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:BillingIntent
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: FinancialState |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
502 | billing_unavailable: the ticket stays payment_pending with a human resolution route | application/json: Error |
GET/api/ohn/v1/triage/tickets/{ticket_id}/financial-stateSafe payment gate state of a ticket (staff). The patient reads their own payment details through GET /public/tickets/{token}/payment
Identifiant d’opération: OHN_61_API_074
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: FinancialState |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/billing/payment-verificationsServer-to-server from the authoritative billing system (service role billing_service, mutually authenticated). Idempotent per finance_event_id. OHN-61 re-queries the ledger; only a settled, exact match clears the gate and recomputes the nurse-ready queue. Client callbacks, receipt photos and unverified webhooks are never accepted, except a cashier's audited manual confirmation (OHN_61_API_104)
Identifiant d’opération: OHN_61_API_075
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:PaymentVerification
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: PaymentVerificationResult |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | mismatch (visit, facility, invoice, amount or currency differ) | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
502 | billing_unavailable | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/emergency-bypassEmergency-only bypass after check-in: no identity, payment, billing or network dependency; records reason, authorizer and authorizer role, and the immediate destination; charges are deferred, never marked paid or waived. A cashier bypass (waiting-area deterioration) also raises an escalation that clinical staff must acknowledge at once (handover to clinical staff)
Identifiant d’opération: OHN_61_API_076
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:EmergencyBypass
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: Ticket |
401 | Unauthenticated | application/json: Error |
403 | role not in the policy's bypass_roles | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/deferred-chargesRecord deferred billing for a bypassed ticket (for later lawful processing); does not change clinical state
Identifiant d’opération: OHN_61_API_077
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:DeferredCharges
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: FinancialState |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/queues/payment-pendingRegister of routine tickets awaiting payment, by original arrival_seq (with first-look status; reassessment access stays open)
Identifiant d’opération: OHN_61_API_078
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
department_id | query | string (uuid) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of PaymentPendingEntry |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/queues/nurse-readyEligible nurse queue only: tickets with no gate (financial_state not_applicable, policy none), R_CLEAR or E_BYPASS; emergency first, then acuity, then original arrival_seq; claimed/called/in-service tickets are never displaced
Identifiant d’opération: OHN_61_API_079
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
department_id | query | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: QueueView |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/queues/revisionsAudited queue position revisions (queue_reprioritizations report source)
Identifiant d’opération: OHN_61_API_080
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
department_id | query | string (uuid) | oui | |
from | query | string (date-time) | oui | |
to | query | string (date-time) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of QueueRevision |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/external-systemsRegistered third-party triage systems
Identifiant d’opération: OHN_61_API_081
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of ExternalSystem |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/external-systemsRegister a third-party triage system and its acuity code map (governance)
Identifiant d’opération: OHN_61_API_082
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ExternalSystemWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | OK | application/json: ExternalSystem |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
PUT/api/ohn/v1/triage/external-systems/{system_id}Update or suspend a third-party triage system
Identifiant d’opération: OHN_61_API_083
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
system_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ExternalSystemWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: ExternalSystem |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
POST/api/ohn/v1/triage/external/encountersInbound triage from a registered third-party system: a FHIR R4 Bundle mapped to a ticket and assessment with Provenance; idempotent per Bundle.identifier; unmapped acuity stored as external_unmapped (never assigned); Flags raise the normal escalation path
Identifiant d’opération: OHN_61_API_084
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:FhirBundle
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: ExternalIntakeResult |
401 | Unauthenticated | application/json: Error |
403 | external_system_unknown or suspended, or facility not allowed | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | bundle_invalid (details per entry) | application/json: Error |
GET/api/ohn/v1/triage/patients/{patient_id}/triage-historyTriage history of a patient for the chart (OHN-08): every ticket, final level, encounter, vitals and preconsult documents, internal or external (OHN-16 decision purpose treatment; audited)
Identifiant d’opération: OHN_61_API_085
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
patient_id | path | string (uuid) | oui | |
from | query | string (date-time) | non | |
cursor | query | string | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of TriageHistoryItem |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/EncounterFHIR R4 search Encounter (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource
Identifiant d’opération: OHN_61_API_086
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
patient | query | string | non | |
encounter | query | string | non | |
date | query | string | non | |
_count | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/Encounter/{resource_id}FHIR R4 read Encounter
Identifiant d’opération: OHN_61_API_087
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
resource_id | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/ObservationFHIR R4 search Observation (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource
Identifiant d’opération: OHN_61_API_088
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
patient | query | string | non | |
encounter | query | string | non | |
date | query | string | non | |
_count | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/Observation/{resource_id}FHIR R4 read Observation
Identifiant d’opération: OHN_61_API_089
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
resource_id | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/QuestionnaireResponseFHIR R4 search QuestionnaireResponse (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource
Identifiant d’opération: OHN_61_API_090
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
patient | query | string | non | |
encounter | query | string | non | |
date | query | string | non | |
_count | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/QuestionnaireResponse/{resource_id}FHIR R4 read QuestionnaireResponse
Identifiant d’opération: OHN_61_API_091
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
resource_id | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/FlagFHIR R4 search Flag (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource
Identifiant d’opération: OHN_61_API_092
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
patient | query | string | non | |
encounter | query | string | non | |
date | query | string | non | |
_count | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/Flag/{resource_id}FHIR R4 read Flag
Identifiant d’opération: OHN_61_API_093
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
resource_id | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/TaskFHIR R4 search Task (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource
Identifiant d’opération: OHN_61_API_094
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
patient | query | string | non | |
encounter | query | string | non | |
date | query | string | non | |
_count | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/Task/{resource_id}FHIR R4 read Task
Identifiant d’opération: OHN_61_API_095
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
resource_id | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/ProvenanceFHIR R4 search Provenance (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource
Identifiant d’opération: OHN_61_API_096
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
patient | query | string | non | |
encounter | query | string | non | |
date | query | string | non | |
_count | query | integer | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/Provenance/{resource_id}FHIR R4 read Provenance
Identifiant d’opération: OHN_61_API_097
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
resource_id | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/fhir/R4/metadataFHIR R4 CapabilityStatement of the triage facade (public, no data)
Identifiant d’opération: OHN_61_API_098
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | FHIR R4 resource or searchset Bundle | application/fhir+json: object |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/public/tickets/{token}/paymentThe patient's own payment details for /p/triage/payment, by ticket token (no login; own ticket only). Shows 'verified_paid' only after billing verification; emergency_care never shows an amount due. Kept separate from the public status projection, which never carries payment data. Token failures are audited and rate-limited like /public/tickets/{token}
Identifiant d’opération: OHN_61_API_099
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
token | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: PublicPaymentStatus |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
410 | token expired or ticket closed | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
429 | rate limited | application/json: Error |
GET/api/ohn/v1/triage/public/departmentsDepartments a patient may choose at self check-in (/p/triage self check-in). Returns only active departments of a facility whose self_check_in_enabled is true. kiosk_device: facility_id must equal the token's facility (else 403). patient: any facility of the token's jurisdiction. 404 when the facility is unknown or self check-in is off. Every call is audited (actor, facility, result count). Since 1.3.4 each entry has name (the real name; null for sensitive departments), kind (null for sensitive) and public_label (what to display).
Identifiant d’opération: OHN_61_API_100
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: array of PublicDepartment |
401 | Unauthenticated | application/json: Error |
403 | forbidden: kiosk_device token for another facility, or patient token for another jurisdiction | application/json: Error |
404 | not_found: unknown facility, or self check-in is off for it | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
GET/api/ohn/v1/triage/tariffsThe facility's price list (past and future entries) with its version
Identifiant d’opération: OHN_61_API_101
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: TariffSchedule |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
PUT/api/ohn/v1/triage/tariffsReplace the facility's price list (versioned and audited, same pattern as PUT /settings). Entries already in effect cannot be changed or removed (422 tariff_in_past); duplicate service_code + effective_from is 422 validation_failed
Identifiant d’opération: OHN_61_API_102
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui | |
facility_id | query | string (uuid) | oui |
Corps de la requête (obligatoire)
application/json:TariffScheduleWrite
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: TariffSchedule |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | version_conflict, invalid_transition or idempotency_mismatch | application/json: Error |
422 | validation_failed (details per field) | application/json: Error |
GET/api/ohn/v1/triage/tariffs/effectiveThe price in effect for a facility service at an instant (default now). 404 when none: the gate then never clears by itself and the cashier confirms payment by hand
Identifiant d’opération: OHN_61_API_103
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
facility_id | query | string (uuid) | oui | |
service_code | query | string | oui | |
at | query | string (date-time) | non |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: get-api-ohn-v1-triage-tariffs-effective.response-200 |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
422 | validation_failed (bad query) | application/json: Error |
POST/api/ohn/v1/triage/tickets/{ticket_id}/payment-confirmationsA cashier confirms payment by hand when no automatic billing match exists (owner decision). Allowed only while the ticket is payment_pending with an outstanding financial_state under facility policy pay_before_nurse. If the visit has a charge (fixed charge, else the listed price in effect at billing intent, else the configured tariff), amount_minor and currency must equal it, else 409 payment_not_verified with details.outcome mismatch. If the visit is unpriced (no price was in effect at billing intent: the case TariffSchedule leaves to the cashier), the confirmed amount and currency become the visit's charge (FinancialState.charge_source cashier_entered); note is then required (at least 5 characters, the basis of the amount), else 422 validation_failed, and the audit action is payment.manual_confirm_unpriced. A visit never has its charge changed once set. On success the gate clears exactly as a verified payment does: financial_state becomes manually_confirmed_by_cashier, the ticket moves to waiting or triaged, the nurse-ready queue is recomputed, receipt_ref and the cashier are stored, triage.payment.confirmed is emitted with method manual, and audit action payment.manual_confirm is written
Identifiant d’opération: OHN_61_API_104
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
ticket_id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:ManualPaymentConfirmation
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | application/json: PaymentVerificationResult |
401 | Unauthenticated | application/json: Error |
403 | Role or OHN-16 policy denies | application/json: Error |
404 | Not found or outside the caller's facility (never discloses existence) | application/json: Error |
409 | payment_not_verified (details.outcome mismatch), invalid_transition (not outstanding) or version_conflict | application/json: Error |
422 | validation_failed (for an unpriced visit, note with the basis of the amount is required) | application/json: Error |
GET/health/ohn-61Liveness/readiness of the module
Identifiant d’opération: OHN_61_HEALTH
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | OK | — |
Schémas
Error
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
error | string | oui | Stable code: unauthenticated, forbidden, not_found, validation_failed, idempotency_key_required, idempotency_mismatch, version_conflict, invalid_transition, not_configured, demo_config_disabled, scale_not_approved, patient_not_identified, appointment_mismatch, upstream_unavailable, nothing_to_call, department_inactive, call_limit_reached, override_reason_required, referral_mismatch, export_not_allowed, claimed_by_other, claim_required, missing_vital_reason_required, reinstate_window_passed, escalation_closed, sync_conflict, token_invalid, card_revoked, break_glass_invalid, downgrade_requires_lead, clinician_not_on_shift, handover_not_pending, payment_required, payment_not_verified, billing_unavailable, policy_not_signed, first_look_required, external_system_unknown, bundle_invalid, acuity_unmapped, conflict, tariff_in_past, performer_mismatch, performer_not_on_shift (1.3.6: payment_not_verified details.outcome is mismatch for a manual confirmation) |
message | string | non | |
details | any | non |
I18nText
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
en | string | oui | |
fr | string | oui |
Department
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
facility_id | string (uuid) | oui | |
code | string | oui | |
kind | "emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | … | oui | |
name | I18nText | oui | |
ticket_prefix | string | oui | |
max_calls_before_no_show | integer | oui | |
triage_required | boolean | non | false: check-in goes straight to the consultation queue (no acuity); default true |
allows_unidentified | boolean | non | true only for kind emergency: tickets may start without an OHN-03 patient |
rooms | array of string | non | deprecated in 1.1.0: use /rooms |
active | boolean | oui | |
version | integer | oui | |
sensitive | boolean | non | true for private services (default for hiv_art, mental_health, family_planning): public display, public status and SMS use public_label, never the department name; capture only in private rooms or by the patient's own device |
public_label | I18nText | non | neutral label shown publicly when sensitive (required then), e.g. 'Clinic B' |
safety_screen_required | boolean | non | default true: the universal danger-sign screen (OHN-62 kind safety_screen) runs before department questions at check-in |
DepartmentWrite
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
code | string | oui | |
kind | "emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | … | oui | |
name | I18nText | oui | |
ticket_prefix | string | oui | |
max_calls_before_no_show | integer | oui | |
triage_required | boolean | non | |
allows_unidentified | boolean | non | |
rooms | array of string | non | |
active | boolean | non | |
expected_version | integer | non | required on update |
sensitive | boolean | non | true for private services (default for hiv_art, mental_health, family_planning): public display, public status and SMS use public_label, never the department name; capture only in private rooms or by the patient's own device |
public_label | I18nText | non | neutral label shown publicly when sensitive (required then), e.g. 'Clinic B' |
safety_screen_required | boolean | non | default true: the universal danger-sign screen (OHN-62 kind safety_screen) runs before department questions at check-in |
ScaleLevel
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
code | string | oui | |
rank | integer | oui | 1 = most urgent |
label | I18nText | oui | |
colour | string | oui | |
target_minutes_to_clinician | integer | null | oui | from the approved scale; null = no target |
reassess_every_minutes | integer | null | oui | |
emergency | boolean | non | assigning this level raises an emergency escalation automatically |
ScaleCondition
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
input | string | oui | vital name (e.g. heart_rate_bpm), 'age_months', 'discriminator:<id>' or 'preconsult_flag:<rule_id>' |
op | "lt" | "lte" | "gt" | "gte" | "eq" | "neq" | "between" | "in" | "present" | "absent" | oui | |
value | any | non | |
value2 | any | non |
ScaleRule
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string | oui | |
type | "level_if_all" | "level_if_any" | "score" | oui | |
applies_to | ScaleRule.applies_to | non | |
conditions | array of ScaleCondition | non | |
assign_level | string | non | |
score_components | array of ScaleRule.score_components.item | non | |
level_by_score | array of ScaleRule.level_by_score.item | non | |
explanation | I18nText | non | |
escalate | boolean | non | this rule firing raises an emergency escalation (emergency sign), whatever the level |
Discriminator
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string | oui | |
label | I18nText | oui | |
level | string | non | level code assigned when ticked; may be absent when only used by rules |
applies_to | Discriminator.applies_to | non |
TriageScaleDocument
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
code | string | oui | e.g. SATS, ESI, MTS or a ministry code |
name | I18nText | oui | |
source_reference | string | non | |
levels | array of ScaleLevel | oui | |
discriminators | array of Discriminator | oui | |
rules | array of ScaleRule | oui | |
default_level_when_no_rule | string | null | oui | level code, or null = the officer must choose (override with reason) |
allow_downgrade_override | boolean | non | |
input_limits | object | non | per vital {min,max} plausibility limits; only these are enforced beyond units |
required_inputs | array of string | non | vitals that must be recorded or given a missing reason before an assessment (422 missing_vital_reason_required) |
TriageScaleVersion
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
jurisdiction_id | string (uuid) | oui | |
code | string | oui | |
version | integer | oui | |
state | "draft" | "active" | "retired" | oui | |
approval_ref | string | null | non | |
synthetic_demo | boolean | oui | |
clinically_approved | boolean | non | false for the synthetic demo scale |
activated_at | string | null (date-time) | non | |
activated_by | string | null | non | |
document | TriageScaleDocument | oui | |
row_version | integer | non |
ScaleActivate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
approval_ref | string | oui | |
expected_version | integer | oui |
UnidentifiedPatient
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
sex | "female" | "male" | "unknown" | non | |
approx_age_years | integer | non | |
description | string | oui |
CheckIn
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
department_id | string (uuid) | oui | |
arrival_source | "walk_in" | "appointment" | "referral_in" | "transfer_in" | "ambulance" | oui | |
patient_id | string (uuid) | non | OHN-03 patient id; required unless unidentified is given |
unidentified | UnidentifiedPatient | non | |
appointment_id | string (uuid) | non | required when arrival_source = appointment |
referral_id | string (uuid) | non | |
arrived_at | string (date-time) | non | default now; not in the future, not more than 12 h back |
presenting_complaint | ComplaintRef | non | |
notify_opt_in | boolean | non | call notification by SMS/USSD via OHN-53 (verified contact only) |
language | "en" | "fr" | non | |
identification | CheckIn.identification | non | |
room_id | string (uuid) | non | |
emergency_bypass | CheckIn.emergency_bypass | non | staff-declared emergency: identity optional for any department (ticket is unidentified until linked), no questionnaire, routed to the facility's emergency department unless department_id is itself emergency |
visit_type | "new" | "follow_up" | "review" | non |
ComplaintRef
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
code_system | "snomed_ct" | "local" | non | |
code | string | non | |
text | string | non |
Signal
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | non | |
source | "OHN-62" | "staff" | oui | |
kind | "flag_officer" | "raise_priority" | "urgent_review" | "screen_incomplete" | oui | |
rule_id | string | non | |
response_id | string (uuid) | non | |
message | I18nText | oui | |
raised_at | string (date-time) | non | |
acknowledged_at | string | null (date-time) | non |
SignalCreate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
source | "OHN-62" | oui | |
kind | "flag_officer" | "raise_priority" | "urgent_review" | "screen_incomplete" | oui | |
rule_id | string | oui | |
response_id | string (uuid) | oui | |
definition_version | integer | non | |
message | I18nText | oui |
Ticket
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
ticket_number | string | oui | <prefix>-<seq>, sequence per department per local day, e.g. E-014 |
facility_id | string (uuid) | oui | |
department_id | string (uuid) | oui | |
patient_id | string | null (uuid) | non | |
health_id | string | null | non | masked except for roles with triage_assessment/triage_consultation |
display_name | string | null | non | |
unidentified | UnidentifiedPatient | null | non | |
arrival_source | string | non | |
appointment_id | string | null (uuid) | non | |
referral_id | string | null (uuid) | non | |
state | "waiting" | "called" | "in_triage" | "triaged" | "consult_called" | "in_consultation" | "completed" | "no_show" | "left_without_being_seen" | "transferred" | "referred" | "cancelled" | … | oui | |
arrived_at | string (date-time) | oui | |
triage_started_at | string | null (date-time) | non | |
triaged_at | string | null (date-time) | non | |
consultation_started_at | string | null (date-time) | non | |
closed_at | string | null (date-time) | non | |
acuity | AcuityRef | null | non | |
priority_flag | boolean | non | |
signals | array of Signal | non | |
call_count | integer | oui | |
last_called_at | string | null (date-time) | non | |
called_to | string | null | non | |
waiting_minutes | integer | non | |
target_breached | boolean | non | |
reassessment_due_at | string | null (date-time) | non | |
reassessment_overdue | boolean | non | |
handover_department_id | string | null (uuid) | non | |
encounter_id | string | null (uuid) | non | OHN-09 triage encounter |
preconsult | Ticket.preconsult | non | |
outcome | string | null | non | |
outcome_reason | string | null | non | |
notify_opt_in | boolean | non | |
version | integer | oui | |
claimed_by | string | null | non | user id holding the claim lock |
claim_expires_at | string | null (date-time) | non | |
open_escalation_id | string | null (uuid) | non | |
identification_method | "health_id" | "search" | "qr" | "access_card" | "unidentified" | non | |
room_id | string | null (uuid) | non | |
shift_id | string | null (uuid) | non | |
sync_origin | "online" | "offline" | non | |
offline_number | string | null | non | ticket number printed offline before sync |
emergency | boolean | non | emergency bypass: sorted before every other ticket, skips questionnaires, identity and any administrative or payment prerequisite |
safety_screen | "not_configured" | "pending" | "negative" | "positive" | "incomplete" | non | |
assigned_room_id | string | null (uuid) | non | |
assigned_clinician | string | null | non | user id of the clinician the patient is handed to |
handover_state | "none" | "pending_ack" | "acknowledged" | "failed" | non | |
handover_acknowledged_at | string | null (date-time) | non | |
financial_state | "not_applicable" | "invoice_not_created" | "payment_required" | "payment_pending" | "payment_processing" | "payment_failed" | "partial_payment" | "refund_under_review" | "coverage_pending" | "insurance_eligible_unpaid" | "insurance_authorized_unpaid" | "invoice_paid_in_full_verified" | … | non | payment gate state. not_applicable when the facility payment_policy is none. Nurse-eligible: not_applicable (policy none: no gate, the 1.2 flow), invoice_paid_in_full_verified or manually_confirmed_by_cashier (R_CLEAR; 1.3.6: the second is a cashier's audited manual confirmation, kept distinct for auditors) or emergency_bypass_authorized (E_BYPASS); every other value is R_OUTSTANDING or terminal and is not eligible |
arrival_seq | integer | non | original check-in rank within the department and day; kept while payment is pending and used as the tie-break after acuity |
first_look | Ticket.first_look.option-1 | null | non | |
queue_position | integer | null | non | 1-based position in the nurse-ready queue; null while not eligible or once claimed/called/in service |
source_system | string | null | non | external triage system id when the assessment came in through the interop surface |
bypass | Ticket.bypass.option-1 | null | non | who authorized the emergency bypass (audited) |
care_team_access | CareTeamAccess | null | non | 1.3.7: null before any handover |
AcuityRef
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
level | string | oui | |
rank | integer | oui | |
colour | string | oui | |
label | I18nText | oui | |
source | "computed" | "override" | oui | |
scale_version_id | string (uuid) | oui | |
synthetic_demo | boolean | non | |
target_minutes_to_clinician | integer | null | non |
QueueView
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
department_id | string (uuid) | oui | |
view | "triage" | "consultation" | "nurse_ready" | oui | |
generated_at | string (date-time) | oui | |
scale | QueueView.scale.option-1 | null | oui | null = no approved scale (acuity cannot be assigned) |
counts | object | non | |
entries | array of Ticket | oui | |
revision | integer | non | queue revision; changes on every recompute |
Call
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
room | string | non | |
expected_version | integer | oui |
CallNext
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
view | "triage" | "consultation" | oui | |
room | string | non |
Versioned
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui |
Reasoned
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
reason | string | oui |
Vitals
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
temperature_c | number | non | |
heart_rate_bpm | integer | non | |
respiratory_rate_bpm | integer | non | |
systolic_mmhg | integer | non | |
diastolic_mmhg | integer | non | |
spo2_pct | integer | non | |
on_oxygen | boolean | non | |
weight_kg | number | non | |
height_cm | number | non | |
bmi | number | non | computed weight/height^2 when both are present |
blood_glucose_mmol_l | number | non | |
pain_score | integer | non | |
avpu | "A" | "V" | "P" | "U" | non | |
gcs | Vitals.gcs | non | |
paediatric | Vitals.paediatric | non | |
pregnant | boolean | null | non | |
mobility | "walking" | "assisted" | "stretcher" | non |
VitalsCreate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
vitals | Vitals | oui | |
measured_at | string (date-time) | oui | |
expected_version | integer | oui | |
not_taken | array of VitalsCreate.not_taken.item | non | reason code from the facility settings list missing_vital_reasons (default list: patient_declined, equipment_unavailable, not_measurable, not_indicated_by_scale, deferred_for_resuscitation); the list is configuration |
kind | "first_look" | "routine" | non | first_look vitals are allowed before payment when clinically necessary to identify an emergency; routine vitals need R_CLEAR or E_BYPASS (409 payment_required) |
VitalSet
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
ticket_id | string (uuid) | oui | |
vitals | Vitals | oui | |
measured_at | string (date-time) | oui | |
recorded_by | string | oui | |
record_sync | "pending_patient_link" | "pending_upstream" | "synced" | "failed" | oui | |
observation_ids | array of string (uuid) | non | OHN-10 observation ids once synced |
not_taken | array of VitalSet.not_taken.item | non | reason code from the facility settings list missing_vital_reasons (default list: patient_declined, equipment_unavailable, not_measurable, not_indicated_by_scale, deferred_for_resuscitation); the list is configuration |
kind | "initial" | "repeat" | "first_look" | non |
EvaluateRequest
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ticket_id | string (uuid) | oui | |
vitals | Vitals | non | |
discriminator_ids | array of string | non |
Evaluation
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
scale_version_id | string (uuid) | oui | |
computed_level | string | null | oui | null when no rule fired and default_level_when_no_rule is null |
fired_rules | array of Evaluation.fired_rules.item | oui | |
missing_inputs | array of string | oui | |
synthetic_demo | boolean | oui | |
disclaimer | string | null | non | set for the demo scale: NOT CLINICALLY APPROVED |
AssessmentCreate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
vital_set_id | string (uuid) | oui | |
presenting_complaint | ComplaintRef | oui | |
discriminator_ids | array of string | non | |
notes | string | non | |
override | AssessmentCreate.override | non | |
handover_department_id | string (uuid) | non | |
expected_version | integer | oui | |
escalate | boolean | non | officer raises an emergency escalation with this assessment |
Assessment
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
ticket_id | string (uuid) | oui | |
kind | "initial" | "reassessment" | oui | |
scale_version_id | string (uuid) | oui | |
vital_set_id | string (uuid) | non | |
computed_level | string | null | oui | |
final_level | string | oui | |
override | Assessment.override.option-1 | null | non | |
fired_rules | array of string | non | |
discriminator_ids | array of string | non | |
presenting_complaint | ComplaintRef | non | |
notes | string | null | non | |
assessed_by | string | oui | |
assessed_at | string (date-time) | oui | |
encounter_id | string | null (uuid) | non |
Handover
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
department_id | string (uuid) | oui | |
note | string | non | |
expected_version | integer | oui | |
receiving_practitioner_ids | array of string (uuid) | non | 1.3.7: optional OHN-06 practitioner ids of receiving clinicians the handover names; OHN-61 registers their care_team relationships at once. Everyone else is registered lazily when they take up the ticket |
Outcome
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
outcome | "left_without_being_seen" | "transferred" | "referred" | "cancelled" | oui | |
reason | string | oui | |
referral_id | string (uuid) | non | required for referred: an OHN-27 referral of the same patient |
destination_facility_id | string (uuid) | non | required for transferred |
expected_version | integer | oui |
LinkPatient
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
patient_id | string (uuid) | oui | |
expected_version | integer | oui |
TriageSummary
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ticket | Ticket | oui | |
patient | TriageSummary.patient | non | |
vital_sets | array of VitalSet | oui | |
assessments | array of Assessment | oui | |
signals | array of Signal | oui | |
preconsult_response_ids | array of string (uuid) | non | |
history | array of TriageSummary.history.item | non |
Display
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
facility_id | string (uuid) | oui | |
name | string | oui | |
department_ids | array of string (uuid) | oui | |
language | "en" | "fr" | "en_fr" | non | |
active | boolean | oui | |
version | integer | non |
DisplayWrite
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
name | string | oui | |
department_ids | array of string (uuid) | oui | |
language | "en" | "fr" | "en_fr" | non | |
active | boolean | non | |
expected_version | integer | non |
DisplayFeed
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
display_id | string (uuid) | oui | |
generated_at | string (date-time) | oui | |
calls | array of DisplayFeed.calls.item | oui | last 10 calls, newest first; ticket numbers only, never names, Health IDs or acuity |
ReportRow
one row per combination of the requested dimensions; metric columns per report (module.md F009)
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
date | string (date) | non | |
department_id | string (uuid) | non | |
arrivals | integer | non | |
triaged | integer | non | |
median_minutes_to_triage | number | null | non | |
p90_minutes_to_triage | number | null | non | |
median_minutes_to_clinician | number | null | non | |
p90_minutes_to_clinician | number | null | non | |
median_total_wait_minutes | number | null | non | |
acuity_mix | object | non | |
lwbs | integer | non | |
lwbs_rate | number | null | non | |
no_show | integer | non | |
target_breaches | integer | non | |
target_breach_rate | number | null | non | |
overrides | integer | non |
Report
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
report_id | "daily_attendance" | "triage_queue_times" | "assessment_completion" | "emergency_escalations" | "doctor_handoffs" | "access_and_privacy" | "flow_and_capacity" | "OHN-61-R001" | "OHN-61-R002" | "OHN-61-R003" | "sync_health" | "payment_gate_audit" | … | oui | |
from | string (date) | oui | |
to | string (date) | oui | |
facility_id | string (uuid) | non | |
rows | array of ReportRow | oui | |
totals | ReportRow | non | one row per combination of the requested dimensions; metric columns per report (module.md F009) |
small_cell_suppressed | boolean | non | |
dimensions | array of "facility" | "department" | "date" | "shift" | "acuity" | "staff_role" | "time" | "protocol_version" | "destination" | "day" | "zone" | "hour" | … | non |
Page
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
items | array of any | oui | |
next_cursor | string | null | non |
ExportRequest
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
from | string (date) | oui | |
to | string (date) | oui | |
department_id | string (uuid) | non | |
format | "csv" | "pdf" | oui | |
group_by | array of "facility" | "department" | "date" | "shift" | "acuity" | "staff_role" | "time" | "protocol_version" | "destination" | "day" | non |
CheckInResult
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
ticket_number | string | oui | <prefix>-<seq>, sequence per department per local day, e.g. E-014 |
facility_id | string (uuid) | oui | |
department_id | string (uuid) | oui | |
patient_id | string | null (uuid) | non | |
health_id | string | null | non | masked except for roles with triage_assessment/triage_consultation |
display_name | string | null | non | |
unidentified | UnidentifiedPatient | null | non | |
arrival_source | string | non | |
appointment_id | string | null (uuid) | non | |
referral_id | string | null (uuid) | non | |
state | "waiting" | "called" | "in_triage" | "triaged" | "consult_called" | "in_consultation" | "completed" | "no_show" | "left_without_being_seen" | "transferred" | "referred" | "cancelled" | … | oui | |
arrived_at | string (date-time) | oui | |
triage_started_at | string | null (date-time) | non | |
triaged_at | string | null (date-time) | non | |
consultation_started_at | string | null (date-time) | non | |
closed_at | string | null (date-time) | non | |
acuity | AcuityRef | null | non | |
priority_flag | boolean | non | |
signals | array of Signal | non | |
call_count | integer | oui | |
last_called_at | string | null (date-time) | non | |
called_to | string | null | non | |
waiting_minutes | integer | non | |
target_breached | boolean | non | |
reassessment_due_at | string | null (date-time) | non | |
reassessment_overdue | boolean | non | |
handover_department_id | string | null (uuid) | non | |
encounter_id | string | null (uuid) | non | OHN-09 triage encounter |
preconsult | CheckInResult.preconsult | non | |
outcome | string | null | non | |
outcome_reason | string | null | non | |
notify_opt_in | boolean | non | |
version | integer | oui | |
claimed_by | string | null | non | user id holding the claim lock |
claim_expires_at | string | null (date-time) | non | |
open_escalation_id | string | null (uuid) | non | |
identification_method | "health_id" | "search" | "qr" | "access_card" | "unidentified" | non | |
room_id | string | null (uuid) | non | |
shift_id | string | null (uuid) | non | |
sync_origin | "online" | "offline" | non | |
offline_number | string | null | non | ticket number printed offline before sync |
emergency | boolean | non | emergency bypass: sorted before every other ticket, skips questionnaires, identity and any administrative or payment prerequisite |
safety_screen | "not_configured" | "pending" | "negative" | "positive" | "incomplete" | non | |
assigned_room_id | string | null (uuid) | non | |
assigned_clinician | string | null | non | user id of the clinician the patient is handed to |
handover_state | "none" | "pending_ack" | "acknowledged" | "failed" | non | |
handover_acknowledged_at | string | null (date-time) | non | |
financial_state | "not_applicable" | "invoice_not_created" | "payment_required" | "payment_pending" | "payment_processing" | "payment_failed" | "partial_payment" | "refund_under_review" | "coverage_pending" | "insurance_eligible_unpaid" | "insurance_authorized_unpaid" | "invoice_paid_in_full_verified" | … | non | payment gate state. not_applicable when the facility payment_policy is none. Nurse-eligible: not_applicable (policy none: no gate, the 1.2 flow), invoice_paid_in_full_verified or manually_confirmed_by_cashier (R_CLEAR; 1.3.6: the second is a cashier's audited manual confirmation, kept distinct for auditors) or emergency_bypass_authorized (E_BYPASS); every other value is R_OUTSTANDING or terminal and is not eligible |
arrival_seq | integer | non | original check-in rank within the department and day; kept while payment is pending and used as the tie-break after acuity |
first_look | CheckInResult.first_look.option-1 | null | non | |
queue_position | integer | null | non | 1-based position in the nurse-ready queue; null while not eligible or once claimed/called/in service |
source_system | string | null | non | external triage system id when the assessment came in through the interop surface |
bypass | CheckInResult.bypass.option-1 | null | non | who authorized the emergency bypass (audited) |
care_team_access | CareTeamAccess | null | non | 1.3.7: null before any handover |
public_token | string | non | returned ONCE at check-in; 128-bit, stored hashed |
qr_payload | string | non | URL /p/triage/ticket?t=<public_token> |
safety_screen_definition_id | string | null (uuid) | non |
ClaimRequest
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
force | boolean | non | triage_lead only: take over another user's claim (audited) |
Recall
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
room | string | non | |
room_id | string (uuid) | non | |
reason | string | non |
Escalation
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
ticket_id | string (uuid) | oui | |
facility_id | string (uuid) | non | |
department_id | string (uuid) | non | |
trigger | "scale_level" | "scale_rule" | "preconsult_flag" | "staff" | "danger_screen" | "emergency_bypass" | oui | |
rule_id | string | null | non | |
level | string | null | non | |
scale_version_id | string | null (uuid) | non | protocol_version dimension |
state | "open" | "acknowledged" | "handed_off" | "cancelled" | oui | |
raised_at | string (date-time) | oui | |
raised_by | string | non | |
note | string | null | non | |
required_ack_roles | array of "triage_officer" | "clinician" | "triage_lead" | oui | |
ack_due_at | string (date-time) | non | |
acknowledgements | array of Escalation.acknowledgements.item | oui | |
handoff | Escalation.handoff.option-1 | null | non | |
unacknowledged_alerted | boolean | non | |
version | integer | non |
EscalationCreate
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
note | string | oui | |
expected_version | integer | oui | ticket version |
EscalationHandoff
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
to_department_id | string (uuid) | oui | |
expected_version | integer | oui |
PublicTicketStatus
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ticket_number | string | oui | |
facility_name | string | non | |
department_name | I18nText | non | |
status | "waiting" | "called" | "being_seen" | "finished" | "closed" | oui | |
people_ahead | integer | null | non | only in the triage stage; null after triage (acuity order must not be inferable) |
called_to | string | null | non | |
updated_at | string (date-time) | oui |
SelfCheckIn
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
department_id | string (uuid) | oui | |
identification | SelfCheckIn.identification | oui | |
language | "en" | "fr" | non | |
notify_opt_in | boolean | non |
AccessCard
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
card_number | string | oui | printed number + QR; random, not derived from the Health ID |
patient_id | string (uuid) | oui | |
facility_id | string (uuid) | oui | |
state | "active" | "revoked" | oui | |
issued_at | string (date-time) | oui | |
revoked_reason | string | null | non |
AccessCardIssue
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
patient_id | string (uuid) | oui | |
replaces_card_id | string (uuid) | non |
Room
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
department_id | string (uuid) | oui | |
name | string | oui | |
kind | "triage" | "consultation" | "resuscitation" | "waiting" | oui | |
capacity | integer | oui | |
active | boolean | oui | |
version | integer | non |
RoomWrite
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
department_id | string (uuid) | oui | |
name | string | oui | |
kind | "triage" | "consultation" | "resuscitation" | "waiting" | oui | |
capacity | integer | oui | |
active | boolean | non | |
expected_version | integer | non |
Shift
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
facility_id | string (uuid) | oui | |
department_id | string | null (uuid) | non | |
name | string | oui | |
starts_at | string (date-time) | oui | |
ends_at | string (date-time) | oui | |
required | object | non | role -> minimum staff (for shift_coverage) |
assignments | array of Shift.assignments.item | oui | |
version | integer | non |
ShiftWrite
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
department_id | string (uuid) | non | |
name | string | oui | |
starts_at | string (date-time) | oui | |
ends_at | string (date-time) | oui | |
required | object | non | |
assignments | array of ShiftWrite.assignments.item | non | |
expected_version | integer | non |
FacilitySettings
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
claim_ttl_minutes | integer | oui | |
no_show_reinstate_minutes | integer | oui | |
escalation_ack_within_seconds | integer | oui | operational acknowledgement window set by the facility, not a clinical threshold |
escalation_ack_roles | array of "triage_officer" | "clinician" | "triage_lead" | non | |
missing_vital_reasons | array of FacilitySettings.missing_vital_reasons.item | oui | |
public_status_enabled | boolean | non | |
public_token_ttl_hours | integer | non | |
self_check_in_enabled | boolean | non | |
offline_allowed | boolean | non | |
operating_hours | array of FacilitySettings.operating_hours.item | non | |
timezone | string | non | |
version | integer | oui | |
care_team_relationship_hours | integer | non | 1.3.7: hours a care_team relationship registered in OHN-16 at handover stays valid (default 24, at most 72; above 72 is 422 validation_failed). Operational setting of the facility, audited with the settings revision |
FacilitySettingsWrite
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
claim_ttl_minutes | integer | oui | |
no_show_reinstate_minutes | integer | oui | |
escalation_ack_within_seconds | integer | oui | operational acknowledgement window set by the facility, not a clinical threshold |
escalation_ack_roles | array of "triage_officer" | "clinician" | "triage_lead" | non | |
missing_vital_reasons | array of FacilitySettingsWrite.missing_vital_reasons.item | oui | |
public_status_enabled | boolean | non | |
public_token_ttl_hours | integer | non | |
self_check_in_enabled | boolean | non | |
offline_allowed | boolean | non | |
operating_hours | array of FacilitySettingsWrite.operating_hours.item | non | |
timezone | string | non | |
expected_version | integer | oui | |
care_team_relationship_hours | integer | non | 1.3.7: hours a care_team relationship registered in OHN-16 at handover stays valid (default 24, at most 72; above 72 is 422 validation_failed). Operational setting of the facility, audited with the settings revision |
SyncBatch
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
device_id | string | oui | |
facility_id | string (uuid) | oui | |
operations | array of SyncBatch.operations.item | oui |
SyncResult
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
device_id | string | oui | |
results | array of SyncResult.results.item | oui |
SyncConflict
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
device_id | string | oui | |
client_op_id | string (uuid) | oui | |
op | "check_in" | "call" | "missed" | "start_triage" | "vitals" | "assessment" | "reassessment" | "outcome" | "link_patient" | oui | |
ticket_id | string | null (uuid) | oui | |
reason | "version_mismatch" | "invalid_transition_now" | "duplicate_patient_ticket" | "assessed_by_other" | "closed_on_server" | oui | |
client_payload | object | non | |
server_snapshot | object | non | |
state | "open" | "resolved" | oui | |
resolution | "keep_server" | "apply_client" | "apply_as_reassessment" | "discard" | null | non | |
resolved_by | string | null | non | |
detected_at | string (date-time) | oui | |
resolved_at | string | null (date-time) | non |
SyncResolve
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
resolution | "keep_server" | "apply_client" | "apply_as_reassessment" | "discard" | oui | |
reason | string | oui |
SyncStatus
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
device_id | string | oui | |
last_batch_at | string | null (date-time) | oui | |
applied | integer | non | |
open_conflicts | integer | oui |
AuditEntry
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
seq | integer | oui | |
at | string (date-time) | oui | |
actor | string | oui | |
actor_role | string | oui | |
facility_id | string (uuid) | non | |
action | string | oui | e.g. ticket.read, ticket.claim, vitals.create, assessment.override, summary.read, escalation.acknowledge, public_token.fail, break_glass.use, export.create |
resource_type | "ticket" | "vital_set" | "assessment" | "escalation" | "scale" | "department" | "room" | "shift" | "settings" | "display" | "access_card" | "report" | … | oui | |
resource_id | string | null | non | |
outcome | "allowed" | "denied" | "failed" | oui | |
purpose | string | non | |
break_glass_id | string | null | non | |
correlation_id | string | non | |
hash | string | oui | SHA-256 over prev_hash + canonical entry |
prev_hash | string | oui |
Assign
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
room_id | string (uuid) | non | |
clinician_user_id | string | non | |
expected_version | integer | oui |
PaymentPolicy
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
mode | "none" | "pay_before_nurse" | oui | owner decision 2026-11-29: default none; a facility opts in to pay_before_nurse |
service_code | string | null | non | facility tariff/service catalogue code of the consultation charge (from the billing system; no fixed charge in OHN) |
bypass_roles | array of "triage_officer" | "triage_lead" | "emergency_clinician" | "cashier" | non | owner decision 2026-11-29: default all four; a facility may narrow it |
remote_payment_allowed | boolean | non | |
revision | integer | oui | |
state | "draft" | "active" | "retired" | oui | |
approval_ref | string | null | non | |
signed_by | string | null | non | |
signed_at | string | null (date-time) | non | |
version | integer | non |
PaymentPolicyWrite
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
mode | "none" | "pay_before_nurse" | oui | |
service_code | string | non | |
bypass_roles | array of "triage_officer" | "triage_lead" | "emergency_clinician" | "cashier" | oui | |
remote_payment_allowed | boolean | non | |
approval_ref | string | oui | |
expected_version | integer | oui |
FirstLook
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
outcome | "routine" | "emergency" | oui | |
note | string | non | |
expected_version | integer | oui |
FinancialState
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ticket_id | string (uuid) | oui | |
financial_state | "not_applicable" | "invoice_not_created" | "payment_required" | "payment_pending" | "payment_processing" | "payment_failed" | "partial_payment" | "refund_under_review" | "coverage_pending" | "insurance_eligible_unpaid" | "insurance_authorized_unpaid" | "invoice_paid_in_full_verified" | … | oui | |
gate | "R_OUTSTANDING" | "R_CLEAR" | "E_BYPASS" | "terminal" | "not_applicable" | oui | |
invoice_ref | string | null | non | billing-system invoice id (reference only) |
amount_due_minor | integer | null | non | |
currency | string | null | non | |
receipt_ref | string | null | non | |
verified_at | string | null (date-time) | non | |
policy_revision | integer | null | non | |
cashier_instruction | I18nText | null | non | |
version | integer | oui | the ticket's version, for expected_version on billing-intent, deferred-charges and emergency-bypass (1.3.3) |
confirmed_by | string | null | non | 1.3.6: the cashier who confirmed payment by hand (manually_confirmed_by_cashier); null otherwise |
confirmation_method | "billing_verified" | "manual" | null | non | 1.3.6: how the gate cleared; null while outstanding |
charge_source | "fixed" | "listed_price" | "configured_tariff" | "cashier_entered" | null | non | 1.3.6: where the visit's charge came from; cashier_entered when a cashier confirmed an unpriced visit by hand (audited as payment.manual_confirm_unpriced) |
BillingIntent
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
payer | "self" | "insurer" | "employer" | "other" | non |
PaymentVerification
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
ticket_id | string (uuid) | oui | |
invoice_ref | string | oui | |
finance_event_id | string | oui | idempotency key from the billing system; OHN-61 then re-queries the ledger and clears only on a settled, exact visit/facility/invoice/amount/currency match |
PaymentVerificationResult
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ticket_id | string (uuid) | oui | |
outcome | "cleared" | "not_settled" | "mismatch" | "duplicate" | "billing_unavailable" | oui | |
financial_state | "not_applicable" | "invoice_not_created" | "payment_required" | "payment_pending" | "payment_processing" | "payment_failed" | "partial_payment" | "refund_under_review" | "coverage_pending" | "insurance_eligible_unpaid" | "insurance_authorized_unpaid" | "invoice_paid_in_full_verified" | … | oui | |
queue_position | integer | null | non |
EmergencyBypass
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
reason | string | oui | |
destination_department_id | string (uuid) | non | optional since 1.3.3; omitted means the ticket's own department |
expected_version | integer | oui |
DeferredCharges
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
invoice_ref | string | non | |
note | string | non | |
expected_version | integer | oui |
PaymentPendingEntry
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ticket_id | string (uuid) | oui | |
ticket_number | string | oui | |
arrival_seq | integer | oui | |
financial_state | "not_applicable" | "invoice_not_created" | "payment_required" | "payment_pending" | "payment_processing" | "payment_failed" | "partial_payment" | "refund_under_review" | "coverage_pending" | "insurance_eligible_unpaid" | "insurance_authorized_unpaid" | "invoice_paid_in_full_verified" | … | oui | |
waiting_minutes | integer | oui | |
first_look | PaymentPendingEntry.first_look.option-1 | null | non | |
display_name | string | null | non | reception and cashier roles only |
version | integer | oui | the ticket's version, for expected_version on billing-intent, deferred-charges and emergency-bypass (1.3.3) |
department_id | string (uuid) | oui | the ticket's department (1.3.3) |
QueueRevision
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
revision | integer | oui | |
at | string (date-time) | oui | |
trigger | "payment_verified" | "emergency_bypass" | "claimed" | "called" | "reassessment" | "no_show" | "cancelled" | "capacity_changed" | oui | |
changes | array of QueueRevision.changes.item | oui |
ExternalSystem
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
name | string | oui | |
client_id | string | oui | platform-registered OAuth client (role external_triage_system) |
facility_ids | array of string (uuid) | non | |
state | "active" | "suspended" | oui | |
acuity_code_map | object | oui | external acuity code -> level code of the active approved scale; unmapped codes are stored as external_unmapped and never assigned |
version | integer | non |
ExternalSystemWrite
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
name | string | oui | |
client_id | string | oui | |
facility_ids | array of string (uuid) | oui | |
acuity_code_map | object | oui | |
state | "active" | "suspended" | non | |
expected_version | integer | non |
FhirBundle
FHIR R4 Bundle (type collection or transaction) with one Encounter, Observation(s) (vital-signs, LOINC/UCUM), optional QuestionnaireResponse and Flag(s); profiles listed in modules/OHN-61/conformance/README.md
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
resourceType | "Bundle" | oui | |
type | "collection" | "transaction" | oui | |
identifier | object | non | |
entry | array of object | oui |
ExternalIntakeResult
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
outcome | "created" | "updated" | "duplicate" | oui | |
ticket_id | string (uuid) | oui | |
assessment_id | string | null (uuid) | non | |
acuity_mapping | "mapped" | "external_unmapped" | "none" | non | |
escalation_id | string | null (uuid) | non | |
warnings | array of string | non |
TriageHistoryItem
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ticket_id | string (uuid) | oui | |
facility_id | string (uuid) | oui | |
department_id | string (uuid) | oui | |
arrived_at | string (date-time) | oui | |
state | string | oui | |
final_level | string | null | non | |
scale_version_id | string | null (uuid) | non | |
encounter_id | string | null (uuid) | non | |
vital_set_ids | array of string (uuid) | non | |
preconsult_document_ids | array of string (uuid) | non | |
source_system | string | null | non | |
synthetic_demo | boolean | non |
PublicPaymentStatus
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ticket_number | string | oui | |
status | "not_applicable" | "payment_required" | "payment_pending" | "verified_paid" | "emergency_care" | oui | |
invoice_ref | string | null | non | |
amount_due_minor | integer | null | non | |
currency | string | null | non | |
cashier_instruction | I18nText | null | non | |
receipt_ref | string | null | non | only once the billing system verified full settlement |
estimated_queue_position_when_eligible | integer | null | non | |
updated_at | string (date-time) | non |
TicketServiceProjection
ids-and-states view of a Ticket returned to triage_service (OHN-62 service token) on GET /tickets/{ticket_id}. No clinical, identity or timing fields.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
ticket_number | string | oui | <prefix>-<seq>, sequence per department per local day, e.g. E-014 |
facility_id | string (uuid) | oui | |
department_id | string (uuid) | oui | |
patient_id | string | null (uuid) | oui | |
state | "waiting" | "called" | "in_triage" | "triaged" | "consult_called" | "in_consultation" | "completed" | "no_show" | "left_without_being_seen" | "transferred" | "referred" | "cancelled" | … | oui | |
financial_state | "not_applicable" | "invoice_not_created" | "payment_required" | "payment_pending" | "payment_processing" | "payment_failed" | "partial_payment" | "refund_under_review" | "coverage_pending" | "insurance_eligible_unpaid" | "insurance_authorized_unpaid" | "invoice_paid_in_full_verified" | … | oui | payment gate state. not_applicable when the facility payment_policy is none. Nurse-eligible: not_applicable (policy none: no gate, the 1.2 flow), invoice_paid_in_full_verified or manually_confirmed_by_cashier (R_CLEAR; 1.3.6: the second is a cashier's audited manual confirmation, kept distinct for auditors) or emergency_bypass_authorized (E_BYPASS); every other value is R_OUTSTANDING or terminal and is not eligible |
version | integer | oui |
PublicDepartment
What a kiosk or patient may see of a department to choose it at self check-in (owner decision 7, contract 1.3.4). Non-sensitive department: name and kind set. Sensitive department: name and kind null; only the neutral public_label is shown. No code, ticket_prefix, counts or rooms.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
public_label | I18nText | oui | the label to display: the department name when not sensitive, its neutral public_label when sensitive |
kind | "emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | … | non | null for sensitive departments, so the list never reveals a private service |
name | I18nText | null | non | the department's real name (1.3.4); null or absent for sensitive departments. public_label already carries the name for non-sensitive departments |
TariffEntry
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
service_code | string | oui | the billing system's service code, as in PaymentPolicy.service_code |
label | I18nText | non | |
amount_minor | integer | oui | price in minor units of currency |
currency | string | oui | ISO 4217 |
effective_from | string (date-time) | oui |
TariffSchedule
The facility's consultation prices per service code. The price in effect for a service at an instant is its entry with the latest effective_from at or before that instant. A ticket's charge is fixed from the price in effect at billing intent and never changes afterwards. With no price in effect the gate never clears by itself: the cashier confirms payment by hand, as before.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
version | integer | oui | |
tariffs | array of TariffEntry | oui | all entries, past and future, ordered by service_code then effective_from |
updated_at | string | null (date-time) | non | |
updated_by | string | null | non | |
approval_ref | string | null | non |
TariffScheduleWrite
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | 0 for the first write |
tariffs | array of TariffEntry | oui | the full list. Entries whose effective_from is at or before now are history and must be sent back unchanged; only future entries may be added, changed or removed |
approval_ref | string | oui | facility finance approval reference |
ManualPaymentConfirmation
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
receipt_ref | string | oui | the facility's own receipt number |
amount_minor | integer | oui | must equal the visit's charge; for an unpriced visit it becomes the charge |
currency | string | oui | |
method | "cash" | "mobile_money" | "card" | "other" | oui | |
note | string | non | required (5+ characters, the basis of the amount) when the visit is unpriced |
expected_version | integer | oui |
CareTeamAccess
1.3.7: OHN-16 care_team access of the receiving clinicians. Patient references and assertion ids are not exposed
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
state | "pending" | "active" | "failed" | "ended" | oui | pending: OHN-16 registration queued (outbox) or the patient is not yet linked; active: at least one assertion registered; failed: OHN-16 refused or retries ran out (the handover itself stands); ended: revoked at close or re-handover |
department_id | string (uuid) | oui | the receiving department whose clinicians hold the relationship |
clinician_count | integer | oui | clinicians with a registered assertion |
expires_at | string | null (date-time) | non | valid_from + care_team_relationship_hours of the first registration |
ended_reason | "completed" | "left_without_being_seen" | "transferred" | "referred" | "cancelled" | "re_handover" | null | non |
get-api-ohn-v1-triage-audit-verify.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ok | boolean | oui | |
checked | integer | non | |
first_broken_seq | integer | null | non |
get-api-ohn-v1-triage-tariffs-effective.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
service_code | string | oui | |
amount_minor | integer | oui | |
currency | string | oui | |
effective_from | string (date-time) | oui | |
schedule_version | integer | oui |
ScaleRule.applies_to défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
age_min_months | integer | non | |
age_max_months | integer | non | |
department_kinds | array of "emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | … | non |
ScaleRule.score_components.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
input | string | oui | |
bands | array of ScaleRule.score_components.item.bands.item | oui |
ScaleRule.score_components.item.bands.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
min | number | non | |
max | number | non | |
equals | any | non | |
points | integer | oui |
ScaleRule.level_by_score.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
min | integer | oui | |
max | integer | non | |
level | string | oui |
Discriminator.applies_to défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
age_min_months | integer | non | |
age_max_months | integer | non | |
department_kinds | array of "emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | … | non |
CheckIn.identification défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
method | "health_id" | "search" | "qr" | "access_card" | oui | |
value | string | non | |
date_of_birth | string (date) | non | second factor for health_id at self check-in |
CheckIn.emergency_bypass défini sur place
staff-declared emergency: identity optional for any department (ticket is unidentified until linked), no questionnaire, routed to the facility's emergency department unless department_id is itself emergency
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
reason | string | oui |
Ticket.preconsult défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
state | "none_configured" | "not_started" | "in_progress" | "submitted" | "unknown" | oui | |
response_ids | array of string (uuid) | non | |
red_flag_count | integer | non |
Ticket.first_look.option-1 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
at | string (date-time) | oui | |
by | string | oui | |
outcome | "routine" | "emergency" | oui |
Ticket.bypass.option-1 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
at | string (date-time) | oui | |
by | string | oui | |
by_role | "triage_officer" | "triage_lead" | "emergency_clinician" | "cashier" | oui | |
reason | string | oui | |
escalation_id | string | null (uuid) | non |
QueueView.scale.option-1 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
id | string (uuid) | oui | |
code | string | oui | |
version | integer | oui | |
synthetic_demo | boolean | oui |
Vitals.gcs défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
eye | integer | oui | |
verbal | integer | oui | |
motor | integer | oui | |
total | integer | non |
Vitals.paediatric défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
capillary_refill_s | number | non | |
muac_mm | integer | non | |
length_cm | number | non | |
head_circumference_cm | number | non | |
weight_for_age_note | string | non |
VitalsCreate.not_taken.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
field | string | oui | |
reason_code | string | oui | |
note | string | non |
VitalSet.not_taken.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
field | string | oui | |
reason_code | string | oui | |
note | string | non |
Evaluation.fired_rules.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
rule_id | string | oui | |
level | string | oui | |
score | integer | non | |
explanation | I18nText | non |
AssessmentCreate.override défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
level | string | oui | |
reason | string | oui | required for any override; an override BELOW the previous final level of this ticket also needs role triage_lead (no automatic downgrade) |
Assessment.override.option-1 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
from | string | null | oui | |
to | string | oui | |
reason | string | oui |
TriageSummary.patient défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
patient_id | string (uuid) | non | |
health_id | string | non | |
display_name | string | non | |
sex | string | non | |
age_years | integer | non |
TriageSummary.history.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
at | string (date-time) | oui | |
from | string | null | oui | |
to | string | oui | |
by | string | oui | |
reason | string | null | non |
DisplayFeed.calls.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ticket_number | string | oui | |
room | string | null | oui | |
called_at | string (date-time) | oui | |
department_code | string | oui | |
department_name | I18nText | non |
CheckInResult.preconsult défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
state | "none_configured" | "not_started" | "in_progress" | "submitted" | "unknown" | oui | |
response_ids | array of string (uuid) | non | |
red_flag_count | integer | non |
CheckInResult.first_look.option-1 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
at | string (date-time) | oui | |
by | string | oui | |
outcome | "routine" | "emergency" | oui |
CheckInResult.bypass.option-1 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
at | string (date-time) | oui | |
by | string | oui | |
by_role | "triage_officer" | "triage_lead" | "emergency_clinician" | "cashier" | oui | |
reason | string | oui | |
escalation_id | string | null (uuid) | non |
Escalation.acknowledgements.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
by | string | oui | |
role | string | oui | |
at | string (date-time) | oui |
Escalation.handoff.option-1 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
to_department_id | string (uuid) | oui | |
accepted_by | string | oui | |
at | string (date-time) | oui | |
latency_seconds | integer | oui | handoff.at - raised_at |
SelfCheckIn.identification défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
method | "health_id" | "search" | "qr" | "access_card" | oui | |
value | string | non | |
date_of_birth | string (date) | non | second factor for health_id at self check-in |
Shift.assignments.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
user_id | string | oui | |
role | "receptionist" | "triage_officer" | "triage_lead" | "clinician" | oui | |
room_id | string | null (uuid) | non |
ShiftWrite.assignments.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
user_id | string | oui | |
role | "receptionist" | "triage_officer" | "triage_lead" | "clinician" | oui | |
room_id | string (uuid) | non |
FacilitySettings.missing_vital_reasons.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
code | string | oui | |
label | I18nText | oui |
FacilitySettings.operating_hours.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
day | "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun" | oui | |
open | string | oui | |
close | string | oui |
FacilitySettingsWrite.missing_vital_reasons.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
code | string | oui | |
label | I18nText | oui |
FacilitySettingsWrite.operating_hours.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
day | "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun" | oui | |
open | string | oui | |
close | string | oui |
SyncBatch.operations.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
client_op_id | string (uuid) | oui | idempotency per operation; applied once, atomically with its idempotency record |
op | "check_in" | "call" | "missed" | "start_triage" | "vitals" | "assessment" | "reassessment" | "outcome" | "link_patient" | oui | |
ticket_id | string (uuid) | non | |
client_ticket_ref | string | non | offline-created ticket reference, mapped to a server ticket id in the result |
base_version | integer | non | |
performed_at | string (date-time) | oui | |
performed_by | string | oui | the person who did the work; must be the signed-in user, or for edge_sync a person on a facility shift covering performed_at |
payload | object | oui | the online request body of the same operation. For an assessment or reassessment, vital_set_id may be the client_op_id of a vitals operation from the same device in this or an earlier batch |
SyncResult.results.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
client_op_id | string (uuid) | oui | |
outcome | "applied" | "duplicate" | "conflict" | "rejected" | oui | |
ticket_id | string | null (uuid) | non | |
conflict_id | string | null (uuid) | non | |
error | string | null | non | per-operation error code, e.g. performer_mismatch, performer_not_on_shift, forbidden, validation_failed, sync_conflict |
PaymentPendingEntry.first_look.option-1 défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
at | string (date-time) | oui | |
by | string | oui | |
outcome | "routine" | "emergency" | oui |
QueueRevision.changes.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
ticket_id | string (uuid) | oui | |
from | integer | null | oui | |
to | integer | null | oui |