Aller au contenu

← Tous les contrats

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)

Télécharger le contrat (YAML)

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

GET/api/ohn/v1/triage/departmentsList departments of the caller's facility

Identifiant d’opération: OHN_61_API_001

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
activequerybooleannon

Réponses

CodeDescriptionType de média
200OK
application/json: array of Department
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui
facility_idquerystring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: Department
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409conflict: duplicate code or ticket_prefix in the facility
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
department_idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: Department
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
department_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Department
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
jurisdiction_idquerystring (uuid)oui
statequery"draft" | "active" | "retired"non

Réponses

CodeDescriptionType de média
200OK
application/json: array of TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui
jurisdiction_idquerystring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
jurisdiction_idquerystring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
503not_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

NomEmplacementTypeObligatoireDescription
scale_idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
scale_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
scale_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui
jurisdiction_idquerystring (uuid)oui

Réponses

CodeDescriptionType de média
201OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404demo_config_disabled (the route does not exist in production)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui
jurisdiction_idquerystring (uuid)oui

Réponses

CodeDescriptionType de média
201OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found (another jurisdiction)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Created; public_token returned once
application/json: CheckInResult
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409conflict: patient already has an open ticket in this department (details.ticket_id), or appointment already checked in
application/json: Error
422validation_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
502upstream_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket | TicketServiceProjection
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
department_idquerystring (uuid)oui
viewquery"triage" | "consultation" | "nurse_ready"oui

Réponses

CodeDescriptionType de média
200OK
application/json: QueueView
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
department_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404nothing_to_call
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch; payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: Call

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch; payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_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
422validation_failed (details per field)
application/json: Error
502upstream_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
502upstream_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: array of VitalSet
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: VitalSet
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_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
422validation_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)

Réponses

CodeDescriptionType de média
200OK
application/json: Evaluation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
503not_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: Assessment
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch; claimed_by_other (another user holds the claim)
application/json: Error
422validation_failed, override_reason_required, unknown level or discriminator, or downgrade not allowed by the scale; missing_vital_reason_required
application/json: Error
502upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed)
application/json: Error
503not_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: Assessment
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch; claimed_by_other (another user holds the claim)
application/json: Error
422validation_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
503not_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: array of Assessment
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: Signal
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409ticket closed
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
signal_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Signal
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed or referral_mismatch
application/json: Error
502upstream_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: TriageSummary
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: array of Display
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui
facility_idquerystring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: Display
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
display_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Display
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
display_idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: DisplayFeed
304Not modified
application/json: Error
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
report_idpath"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_idquerystring (uuid)oui
fromquerystring (date)oui
toquerystring (date)oui
department_idquerystring (uuid)non
group_byqueryarray of "facility" | "department" | "date" | "shift" | "acuity" | "staff_role" | "time" | "protocol_version" | "destination" | "day" | "zone" | "hour" | …nondimensions, comma-separated; default the report's documented default
shift_idquerystring (uuid)non

Réponses

CodeDescriptionType de média
200OK
application/json: Report
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
report_idpath"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-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200File with X-OHN-Mark-Id header
text/csv: string
application/pdf: string (binary)
401Unauthenticated
application/json: Error
403export_not_allowed by OHN-16
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
502upstream_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409claimed_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
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
statequery"open" | "acknowledged" | "handed_off" | "cancelled"non
department_idquerystring (uuid)non

Réponses

CodeDescriptionType de média
200OK
application/json: array of Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409an open escalation exists (details.escalation_id)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
escalation_idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
escalation_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409escalation_closed or already acknowledged by this user
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
escalation_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
escalation_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: CheckInResult
401Unauthenticated
application/json: Error
403self check-in disabled for the facility
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed, token_invalid, card_revoked (identification failures are generic and audited as public_token.fail)
application/json: Error
429rate 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

NomEmplacementTypeObligatoireDescription
tokenpathstringoui

Réponses

CodeDescriptionType de média
200OK
application/json: PublicTicketStatus
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
410token expired or ticket closed for more than 1 h
application/json: Error
422validation_failed (bad query)
application/json: Error
429rate 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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
formatquery"pdf" | "escpos"oui

Réponses

CodeDescriptionType de média
200Slip
application/pdf: string (binary)
application/octet-stream: string (binary)
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: AccessCard
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
card_numberquerystringoui

Réponses

CodeDescriptionType de média
200OK
application/json: AccessCard
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404unknown card
application/json: Error
410card_revoked
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/access-cards/{card_id}/revokeRevoke a card

Identifiant d’opération: OHN_61_API_053

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
card_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: AccessCard
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: FacilitySettings
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui
facility_idquerystring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: FacilitySettings
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
department_idquerystring (uuid)non

Réponses

CodeDescriptionType de média
200OK
application/json: array of Room
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui
facility_idquerystring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: Room
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
room_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Room
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
fromquerystring (date-time)oui
toquerystring (date-time)oui

Réponses

CodeDescriptionType de média
200OK
application/json: array of Shift
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui
facility_idquerystring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: Shift
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
shift_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Shift
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: SyncResult
401Unauthenticated
application/json: Error
403offline_allowed is false for the facility
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
device_idquerystringoui

Réponses

CodeDescriptionType de média
200OK
application/json: SyncStatus
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
statequery"open" | "resolved"non

Réponses

CodeDescriptionType de média
200OK
application/json: array of SyncConflict
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
conflict_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: SyncConflict
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409invalid_transition: the conflict is already resolved
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
fromquerystring (date-time)oui
toquerystring (date-time)oui
ticket_idquerystring (uuid)non
actorquerystringnon
actionquerystringnon
outcomequery"allowed" | "denied" | "failed"non
cursorquerystringnon
limitqueryintegernon

Réponses

CodeDescriptionType de média
200OK
application/json: array of AuditEntry
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
fromquerystring (date-time)oui
toquerystring (date-time)oui

Réponses

CodeDescriptionType de média
200OK
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409handover_not_pending or version_conflict
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: PaymentPolicy
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui
facility_idquerystring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: PaymentPolicy
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403receptionist may record only if the facility trained-staff list includes them
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: FinancialState
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
502billing_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: FinancialState
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: PaymentVerificationResult
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409mismatch (visit, facility, invoice, amount or currency differ)
application/json: Error
422validation_failed (details per field)
application/json: Error
502billing_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403role not in the policy's bypass_roles
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: FinancialState
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
department_idquerystring (uuid)non

Réponses

CodeDescriptionType de média
200OK
application/json: array of PaymentPendingEntry
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
department_idquerystring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: QueueView
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
department_idquerystring (uuid)oui
fromquerystring (date-time)oui
toquerystring (date-time)oui

Réponses

CodeDescriptionType de média
200OK
application/json: array of QueueRevision
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

CodeDescriptionType de média
200OK
application/json: array of ExternalSystem
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201OK
application/json: ExternalSystem
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
system_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: ExternalSystem
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: ExternalIntakeResult
401Unauthenticated
application/json: Error
403external_system_unknown or suspended, or facility not allowed
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422bundle_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

NomEmplacementTypeObligatoireDescription
patient_idpathstring (uuid)oui
fromquerystring (date-time)non
cursorquerystringnon

Réponses

CodeDescriptionType de média
200OK
application/json: array of TriageHistoryItem
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
patientquerystringnon
encounterquerystringnon
datequerystringnon
_countqueryintegernon

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
resource_idpathstringoui

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
patientquerystringnon
encounterquerystringnon
datequerystringnon
_countqueryintegernon

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
resource_idpathstringoui

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
patientquerystringnon
encounterquerystringnon
datequerystringnon
_countqueryintegernon

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
resource_idpathstringoui

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
patientquerystringnon
encounterquerystringnon
datequerystringnon
_countqueryintegernon

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
resource_idpathstringoui

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
patientquerystringnon
encounterquerystringnon
datequerystringnon
_countqueryintegernon

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
resource_idpathstringoui

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
patientquerystringnon
encounterquerystringnon
datequerystringnon
_countqueryintegernon

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
resource_idpathstringoui

Réponses

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

CodeDescriptionType de média
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
tokenpathstringoui

Réponses

CodeDescriptionType de média
200OK
application/json: PublicPaymentStatus
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
410token expired or ticket closed
application/json: Error
422validation_failed (bad query)
application/json: Error
429rate 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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: array of PublicDepartment
401Unauthenticated
application/json: Error
403forbidden: kiosk_device token for another facility, or patient token for another jurisdiction
application/json: Error
404not_found: unknown facility, or self check-in is off for it
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui

Réponses

CodeDescriptionType de média
200OK
application/json: TariffSchedule
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui
facility_idquerystring (uuid)oui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: TariffSchedule
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
facility_idquerystring (uuid)oui
service_codequerystringoui
atquerystring (date-time)non

Réponses

CodeDescriptionType de média
200OK
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_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

NomEmplacementTypeObligatoireDescription
ticket_idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200OK
application/json: PaymentVerificationResult
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409payment_not_verified (details.outcome mismatch), invalid_transition (not outstanding) or version_conflict
application/json: Error
422validation_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

CodeDescriptionType de média
200OK—

Schémas

Error

NomTypeObligatoireDescription
errorstringouiStable 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)
messagestringnon
detailsanynon

I18nText

NomTypeObligatoireDescription
enstringoui
frstringoui

Department

NomTypeObligatoireDescription
idstring (uuid)oui
facility_idstring (uuid)oui
codestringoui
kind"emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | …oui
nameI18nTextoui
ticket_prefixstringoui
max_calls_before_no_showintegeroui
triage_requiredbooleannonfalse: check-in goes straight to the consultation queue (no acuity); default true
allows_unidentifiedbooleannontrue only for kind emergency: tickets may start without an OHN-03 patient
roomsarray of stringnondeprecated in 1.1.0: use /rooms
activebooleanoui
versionintegeroui
sensitivebooleannontrue 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_labelI18nTextnonneutral label shown publicly when sensitive (required then), e.g. 'Clinic B'
safety_screen_requiredbooleannondefault true: the universal danger-sign screen (OHN-62 kind safety_screen) runs before department questions at check-in

DepartmentWrite

NomTypeObligatoireDescription
codestringoui
kind"emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | …oui
nameI18nTextoui
ticket_prefixstringoui
max_calls_before_no_showintegeroui
triage_requiredbooleannon
allows_unidentifiedbooleannon
roomsarray of stringnon
activebooleannon
expected_versionintegernonrequired on update
sensitivebooleannontrue 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_labelI18nTextnonneutral label shown publicly when sensitive (required then), e.g. 'Clinic B'
safety_screen_requiredbooleannondefault true: the universal danger-sign screen (OHN-62 kind safety_screen) runs before department questions at check-in

ScaleLevel

NomTypeObligatoireDescription
codestringoui
rankintegeroui1 = most urgent
labelI18nTextoui
colourstringoui
target_minutes_to_clinicianinteger | nullouifrom the approved scale; null = no target
reassess_every_minutesinteger | nulloui
emergencybooleannonassigning this level raises an emergency escalation automatically

ScaleCondition

NomTypeObligatoireDescription
inputstringouivital 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
valueanynon
value2anynon

ScaleRule

NomTypeObligatoireDescription
idstringoui
type"level_if_all" | "level_if_any" | "score"oui
applies_toScaleRule.applies_tonon
conditionsarray of ScaleConditionnon
assign_levelstringnon
score_componentsarray of ScaleRule.score_components.itemnon
level_by_scorearray of ScaleRule.level_by_score.itemnon
explanationI18nTextnon
escalatebooleannonthis rule firing raises an emergency escalation (emergency sign), whatever the level

Discriminator

NomTypeObligatoireDescription
idstringoui
labelI18nTextoui
levelstringnonlevel code assigned when ticked; may be absent when only used by rules
applies_toDiscriminator.applies_tonon

TriageScaleDocument

NomTypeObligatoireDescription
codestringouie.g. SATS, ESI, MTS or a ministry code
nameI18nTextoui
source_referencestringnon
levelsarray of ScaleLeveloui
discriminatorsarray of Discriminatoroui
rulesarray of ScaleRuleoui
default_level_when_no_rulestring | nullouilevel code, or null = the officer must choose (override with reason)
allow_downgrade_overridebooleannon
input_limitsobjectnonper vital {min,max} plausibility limits; only these are enforced beyond units
required_inputsarray of stringnonvitals that must be recorded or given a missing reason before an assessment (422 missing_vital_reason_required)

TriageScaleVersion

NomTypeObligatoireDescription
idstring (uuid)oui
jurisdiction_idstring (uuid)oui
codestringoui
versionintegeroui
state"draft" | "active" | "retired"oui
approval_refstring | nullnon
synthetic_demobooleanoui
clinically_approvedbooleannonfalse for the synthetic demo scale
activated_atstring | null (date-time)non
activated_bystring | nullnon
documentTriageScaleDocumentoui
row_versionintegernon

ScaleActivate

NomTypeObligatoireDescription
approval_refstringoui
expected_versionintegeroui

UnidentifiedPatient

NomTypeObligatoireDescription
sex"female" | "male" | "unknown"non
approx_age_yearsintegernon
descriptionstringoui

CheckIn

NomTypeObligatoireDescription
facility_idstring (uuid)oui
department_idstring (uuid)oui
arrival_source"walk_in" | "appointment" | "referral_in" | "transfer_in" | "ambulance"oui
patient_idstring (uuid)nonOHN-03 patient id; required unless unidentified is given
unidentifiedUnidentifiedPatientnon
appointment_idstring (uuid)nonrequired when arrival_source = appointment
referral_idstring (uuid)non
arrived_atstring (date-time)nondefault now; not in the future, not more than 12 h back
presenting_complaintComplaintRefnon
notify_opt_inbooleannoncall notification by SMS/USSD via OHN-53 (verified contact only)
language"en" | "fr"non
identificationCheckIn.identificationnon
room_idstring (uuid)non
emergency_bypassCheckIn.emergency_bypassnonstaff-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

NomTypeObligatoireDescription
code_system"snomed_ct" | "local"non
codestringnon
textstringnon

Signal

NomTypeObligatoireDescription
idstring (uuid)non
source"OHN-62" | "staff"oui
kind"flag_officer" | "raise_priority" | "urgent_review" | "screen_incomplete"oui
rule_idstringnon
response_idstring (uuid)non
messageI18nTextoui
raised_atstring (date-time)non
acknowledged_atstring | null (date-time)non

SignalCreate

NomTypeObligatoireDescription
source"OHN-62"oui
kind"flag_officer" | "raise_priority" | "urgent_review" | "screen_incomplete"oui
rule_idstringoui
response_idstring (uuid)oui
definition_versionintegernon
messageI18nTextoui

Ticket

NomTypeObligatoireDescription
idstring (uuid)oui
ticket_numberstringoui<prefix>-<seq>, sequence per department per local day, e.g. E-014
facility_idstring (uuid)oui
department_idstring (uuid)oui
patient_idstring | null (uuid)non
health_idstring | nullnonmasked except for roles with triage_assessment/triage_consultation
display_namestring | nullnon
unidentifiedUnidentifiedPatient | nullnon
arrival_sourcestringnon
appointment_idstring | null (uuid)non
referral_idstring | 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_atstring (date-time)oui
triage_started_atstring | null (date-time)non
triaged_atstring | null (date-time)non
consultation_started_atstring | null (date-time)non
closed_atstring | null (date-time)non
acuityAcuityRef | nullnon
priority_flagbooleannon
signalsarray of Signalnon
call_countintegeroui
last_called_atstring | null (date-time)non
called_tostring | nullnon
waiting_minutesintegernon
target_breachedbooleannon
reassessment_due_atstring | null (date-time)non
reassessment_overduebooleannon
handover_department_idstring | null (uuid)non
encounter_idstring | null (uuid)nonOHN-09 triage encounter
preconsultTicket.preconsultnon
outcomestring | nullnon
outcome_reasonstring | nullnon
notify_opt_inbooleannon
versionintegeroui
claimed_bystring | nullnonuser id holding the claim lock
claim_expires_atstring | null (date-time)non
open_escalation_idstring | null (uuid)non
identification_method"health_id" | "search" | "qr" | "access_card" | "unidentified"non
room_idstring | null (uuid)non
shift_idstring | null (uuid)non
sync_origin"online" | "offline"non
offline_numberstring | nullnonticket number printed offline before sync
emergencybooleannonemergency 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_idstring | null (uuid)non
assigned_clinicianstring | nullnonuser id of the clinician the patient is handed to
handover_state"none" | "pending_ack" | "acknowledged" | "failed"non
handover_acknowledged_atstring | 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" | …nonpayment 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_seqintegernonoriginal check-in rank within the department and day; kept while payment is pending and used as the tie-break after acuity
first_lookTicket.first_look.option-1 | nullnon
queue_positioninteger | nullnon1-based position in the nurse-ready queue; null while not eligible or once claimed/called/in service
source_systemstring | nullnonexternal triage system id when the assessment came in through the interop surface
bypassTicket.bypass.option-1 | nullnonwho authorized the emergency bypass (audited)
care_team_accessCareTeamAccess | nullnon1.3.7: null before any handover

AcuityRef

NomTypeObligatoireDescription
levelstringoui
rankintegeroui
colourstringoui
labelI18nTextoui
source"computed" | "override"oui
scale_version_idstring (uuid)oui
synthetic_demobooleannon
target_minutes_to_clinicianinteger | nullnon

QueueView

NomTypeObligatoireDescription
facility_idstring (uuid)oui
department_idstring (uuid)oui
view"triage" | "consultation" | "nurse_ready"oui
generated_atstring (date-time)oui
scaleQueueView.scale.option-1 | nullouinull = no approved scale (acuity cannot be assigned)
countsobjectnon
entriesarray of Ticketoui
revisionintegernonqueue revision; changes on every recompute

Call

NomTypeObligatoireDescription
roomstringnon
expected_versionintegeroui

CallNext

NomTypeObligatoireDescription
view"triage" | "consultation"oui
roomstringnon

Versioned

NomTypeObligatoireDescription
expected_versionintegeroui

Reasoned

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

Vitals

NomTypeObligatoireDescription
temperature_cnumbernon
heart_rate_bpmintegernon
respiratory_rate_bpmintegernon
systolic_mmhgintegernon
diastolic_mmhgintegernon
spo2_pctintegernon
on_oxygenbooleannon
weight_kgnumbernon
height_cmnumbernon
bminumbernoncomputed weight/height^2 when both are present
blood_glucose_mmol_lnumbernon
pain_scoreintegernon
avpu"A" | "V" | "P" | "U"non
gcsVitals.gcsnon
paediatricVitals.paediatricnon
pregnantboolean | nullnon
mobility"walking" | "assisted" | "stretcher"non

VitalsCreate

NomTypeObligatoireDescription
vitalsVitalsoui
measured_atstring (date-time)oui
expected_versionintegeroui
not_takenarray of VitalsCreate.not_taken.itemnonreason 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"nonfirst_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

NomTypeObligatoireDescription
idstring (uuid)oui
ticket_idstring (uuid)oui
vitalsVitalsoui
measured_atstring (date-time)oui
recorded_bystringoui
record_sync"pending_patient_link" | "pending_upstream" | "synced" | "failed"oui
observation_idsarray of string (uuid)nonOHN-10 observation ids once synced
not_takenarray of VitalSet.not_taken.itemnonreason 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

NomTypeObligatoireDescription
ticket_idstring (uuid)oui
vitalsVitalsnon
discriminator_idsarray of stringnon

Evaluation

NomTypeObligatoireDescription
scale_version_idstring (uuid)oui
computed_levelstring | nullouinull when no rule fired and default_level_when_no_rule is null
fired_rulesarray of Evaluation.fired_rules.itemoui
missing_inputsarray of stringoui
synthetic_demobooleanoui
disclaimerstring | nullnonset for the demo scale: NOT CLINICALLY APPROVED

AssessmentCreate

NomTypeObligatoireDescription
vital_set_idstring (uuid)oui
presenting_complaintComplaintRefoui
discriminator_idsarray of stringnon
notesstringnon
overrideAssessmentCreate.overridenon
handover_department_idstring (uuid)non
expected_versionintegeroui
escalatebooleannonofficer raises an emergency escalation with this assessment

Assessment

NomTypeObligatoireDescription
idstring (uuid)oui
ticket_idstring (uuid)oui
kind"initial" | "reassessment"oui
scale_version_idstring (uuid)oui
vital_set_idstring (uuid)non
computed_levelstring | nulloui
final_levelstringoui
overrideAssessment.override.option-1 | nullnon
fired_rulesarray of stringnon
discriminator_idsarray of stringnon
presenting_complaintComplaintRefnon
notesstring | nullnon
assessed_bystringoui
assessed_atstring (date-time)oui
encounter_idstring | null (uuid)non

Handover

NomTypeObligatoireDescription
department_idstring (uuid)oui
notestringnon
expected_versionintegeroui
receiving_practitioner_idsarray of string (uuid)non1.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

NomTypeObligatoireDescription
outcome"left_without_being_seen" | "transferred" | "referred" | "cancelled"oui
reasonstringoui
referral_idstring (uuid)nonrequired for referred: an OHN-27 referral of the same patient
destination_facility_idstring (uuid)nonrequired for transferred
expected_versionintegeroui

LinkPatient

NomTypeObligatoireDescription
patient_idstring (uuid)oui
expected_versionintegeroui

TriageSummary

NomTypeObligatoireDescription
ticketTicketoui
patientTriageSummary.patientnon
vital_setsarray of VitalSetoui
assessmentsarray of Assessmentoui
signalsarray of Signaloui
preconsult_response_idsarray of string (uuid)non
historyarray of TriageSummary.history.itemnon

Display

NomTypeObligatoireDescription
idstring (uuid)oui
facility_idstring (uuid)oui
namestringoui
department_idsarray of string (uuid)oui
language"en" | "fr" | "en_fr"non
activebooleanoui
versionintegernon

DisplayWrite

NomTypeObligatoireDescription
namestringoui
department_idsarray of string (uuid)oui
language"en" | "fr" | "en_fr"non
activebooleannon
expected_versionintegernon

DisplayFeed

NomTypeObligatoireDescription
display_idstring (uuid)oui
generated_atstring (date-time)oui
callsarray of DisplayFeed.calls.itemouilast 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)

NomTypeObligatoireDescription
datestring (date)non
department_idstring (uuid)non
arrivalsintegernon
triagedintegernon
median_minutes_to_triagenumber | nullnon
p90_minutes_to_triagenumber | nullnon
median_minutes_to_cliniciannumber | nullnon
p90_minutes_to_cliniciannumber | nullnon
median_total_wait_minutesnumber | nullnon
acuity_mixobjectnon
lwbsintegernon
lwbs_ratenumber | nullnon
no_showintegernon
target_breachesintegernon
target_breach_ratenumber | nullnon
overridesintegernon

Report

NomTypeObligatoireDescription
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
fromstring (date)oui
tostring (date)oui
facility_idstring (uuid)non
rowsarray of ReportRowoui
totalsReportRownonone row per combination of the requested dimensions; metric columns per report (module.md F009)
small_cell_suppressedbooleannon
dimensionsarray of "facility" | "department" | "date" | "shift" | "acuity" | "staff_role" | "time" | "protocol_version" | "destination" | "day" | "zone" | "hour" | …non

Page

NomTypeObligatoireDescription
itemsarray of anyoui
next_cursorstring | nullnon

ExportRequest

NomTypeObligatoireDescription
facility_idstring (uuid)oui
fromstring (date)oui
tostring (date)oui
department_idstring (uuid)non
format"csv" | "pdf"oui
group_byarray of "facility" | "department" | "date" | "shift" | "acuity" | "staff_role" | "time" | "protocol_version" | "destination" | "day"non

CheckInResult

NomTypeObligatoireDescription
idstring (uuid)oui
ticket_numberstringoui<prefix>-<seq>, sequence per department per local day, e.g. E-014
facility_idstring (uuid)oui
department_idstring (uuid)oui
patient_idstring | null (uuid)non
health_idstring | nullnonmasked except for roles with triage_assessment/triage_consultation
display_namestring | nullnon
unidentifiedUnidentifiedPatient | nullnon
arrival_sourcestringnon
appointment_idstring | null (uuid)non
referral_idstring | 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_atstring (date-time)oui
triage_started_atstring | null (date-time)non
triaged_atstring | null (date-time)non
consultation_started_atstring | null (date-time)non
closed_atstring | null (date-time)non
acuityAcuityRef | nullnon
priority_flagbooleannon
signalsarray of Signalnon
call_countintegeroui
last_called_atstring | null (date-time)non
called_tostring | nullnon
waiting_minutesintegernon
target_breachedbooleannon
reassessment_due_atstring | null (date-time)non
reassessment_overduebooleannon
handover_department_idstring | null (uuid)non
encounter_idstring | null (uuid)nonOHN-09 triage encounter
preconsultCheckInResult.preconsultnon
outcomestring | nullnon
outcome_reasonstring | nullnon
notify_opt_inbooleannon
versionintegeroui
claimed_bystring | nullnonuser id holding the claim lock
claim_expires_atstring | null (date-time)non
open_escalation_idstring | null (uuid)non
identification_method"health_id" | "search" | "qr" | "access_card" | "unidentified"non
room_idstring | null (uuid)non
shift_idstring | null (uuid)non
sync_origin"online" | "offline"non
offline_numberstring | nullnonticket number printed offline before sync
emergencybooleannonemergency 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_idstring | null (uuid)non
assigned_clinicianstring | nullnonuser id of the clinician the patient is handed to
handover_state"none" | "pending_ack" | "acknowledged" | "failed"non
handover_acknowledged_atstring | 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" | …nonpayment 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_seqintegernonoriginal check-in rank within the department and day; kept while payment is pending and used as the tie-break after acuity
first_lookCheckInResult.first_look.option-1 | nullnon
queue_positioninteger | nullnon1-based position in the nurse-ready queue; null while not eligible or once claimed/called/in service
source_systemstring | nullnonexternal triage system id when the assessment came in through the interop surface
bypassCheckInResult.bypass.option-1 | nullnonwho authorized the emergency bypass (audited)
care_team_accessCareTeamAccess | nullnon1.3.7: null before any handover
public_tokenstringnonreturned ONCE at check-in; 128-bit, stored hashed
qr_payloadstringnonURL /p/triage/ticket?t=<public_token>
safety_screen_definition_idstring | null (uuid)non

ClaimRequest

NomTypeObligatoireDescription
expected_versionintegeroui
forcebooleannontriage_lead only: take over another user's claim (audited)

Recall

NomTypeObligatoireDescription
expected_versionintegeroui
roomstringnon
room_idstring (uuid)non
reasonstringnon

Escalation

NomTypeObligatoireDescription
idstring (uuid)oui
ticket_idstring (uuid)oui
facility_idstring (uuid)non
department_idstring (uuid)non
trigger"scale_level" | "scale_rule" | "preconsult_flag" | "staff" | "danger_screen" | "emergency_bypass"oui
rule_idstring | nullnon
levelstring | nullnon
scale_version_idstring | null (uuid)nonprotocol_version dimension
state"open" | "acknowledged" | "handed_off" | "cancelled"oui
raised_atstring (date-time)oui
raised_bystringnon
notestring | nullnon
required_ack_rolesarray of "triage_officer" | "clinician" | "triage_lead"oui
ack_due_atstring (date-time)non
acknowledgementsarray of Escalation.acknowledgements.itemoui
handoffEscalation.handoff.option-1 | nullnon
unacknowledged_alertedbooleannon
versionintegernon

EscalationCreate

NomTypeObligatoireDescription
notestringoui
expected_versionintegerouiticket version

EscalationHandoff

NomTypeObligatoireDescription
to_department_idstring (uuid)oui
expected_versionintegeroui

PublicTicketStatus

NomTypeObligatoireDescription
ticket_numberstringoui
facility_namestringnon
department_nameI18nTextnon
status"waiting" | "called" | "being_seen" | "finished" | "closed"oui
people_aheadinteger | nullnononly in the triage stage; null after triage (acuity order must not be inferable)
called_tostring | nullnon
updated_atstring (date-time)oui

SelfCheckIn

NomTypeObligatoireDescription
facility_idstring (uuid)oui
department_idstring (uuid)oui
identificationSelfCheckIn.identificationoui
language"en" | "fr"non
notify_opt_inbooleannon

AccessCard

NomTypeObligatoireDescription
idstring (uuid)oui
card_numberstringouiprinted number + QR; random, not derived from the Health ID
patient_idstring (uuid)oui
facility_idstring (uuid)oui
state"active" | "revoked"oui
issued_atstring (date-time)oui
revoked_reasonstring | nullnon

AccessCardIssue

NomTypeObligatoireDescription
patient_idstring (uuid)oui
replaces_card_idstring (uuid)non

Room

NomTypeObligatoireDescription
idstring (uuid)oui
department_idstring (uuid)oui
namestringoui
kind"triage" | "consultation" | "resuscitation" | "waiting"oui
capacityintegeroui
activebooleanoui
versionintegernon

RoomWrite

NomTypeObligatoireDescription
department_idstring (uuid)oui
namestringoui
kind"triage" | "consultation" | "resuscitation" | "waiting"oui
capacityintegeroui
activebooleannon
expected_versionintegernon

Shift

NomTypeObligatoireDescription
idstring (uuid)oui
facility_idstring (uuid)oui
department_idstring | null (uuid)non
namestringoui
starts_atstring (date-time)oui
ends_atstring (date-time)oui
requiredobjectnonrole -> minimum staff (for shift_coverage)
assignmentsarray of Shift.assignments.itemoui
versionintegernon

ShiftWrite

NomTypeObligatoireDescription
department_idstring (uuid)non
namestringoui
starts_atstring (date-time)oui
ends_atstring (date-time)oui
requiredobjectnon
assignmentsarray of ShiftWrite.assignments.itemnon
expected_versionintegernon

FacilitySettings

NomTypeObligatoireDescription
facility_idstring (uuid)oui
claim_ttl_minutesintegeroui
no_show_reinstate_minutesintegeroui
escalation_ack_within_secondsintegerouioperational acknowledgement window set by the facility, not a clinical threshold
escalation_ack_rolesarray of "triage_officer" | "clinician" | "triage_lead"non
missing_vital_reasonsarray of FacilitySettings.missing_vital_reasons.itemoui
public_status_enabledbooleannon
public_token_ttl_hoursintegernon
self_check_in_enabledbooleannon
offline_allowedbooleannon
operating_hoursarray of FacilitySettings.operating_hours.itemnon
timezonestringnon
versionintegeroui
care_team_relationship_hoursintegernon1.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

NomTypeObligatoireDescription
claim_ttl_minutesintegeroui
no_show_reinstate_minutesintegeroui
escalation_ack_within_secondsintegerouioperational acknowledgement window set by the facility, not a clinical threshold
escalation_ack_rolesarray of "triage_officer" | "clinician" | "triage_lead"non
missing_vital_reasonsarray of FacilitySettingsWrite.missing_vital_reasons.itemoui
public_status_enabledbooleannon
public_token_ttl_hoursintegernon
self_check_in_enabledbooleannon
offline_allowedbooleannon
operating_hoursarray of FacilitySettingsWrite.operating_hours.itemnon
timezonestringnon
expected_versionintegeroui
care_team_relationship_hoursintegernon1.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

NomTypeObligatoireDescription
device_idstringoui
facility_idstring (uuid)oui
operationsarray of SyncBatch.operations.itemoui

SyncResult

NomTypeObligatoireDescription
device_idstringoui
resultsarray of SyncResult.results.itemoui

SyncConflict

NomTypeObligatoireDescription
idstring (uuid)oui
device_idstringoui
client_op_idstring (uuid)oui
op"check_in" | "call" | "missed" | "start_triage" | "vitals" | "assessment" | "reassessment" | "outcome" | "link_patient"oui
ticket_idstring | null (uuid)oui
reason"version_mismatch" | "invalid_transition_now" | "duplicate_patient_ticket" | "assessed_by_other" | "closed_on_server"oui
client_payloadobjectnon
server_snapshotobjectnon
state"open" | "resolved"oui
resolution"keep_server" | "apply_client" | "apply_as_reassessment" | "discard" | nullnon
resolved_bystring | nullnon
detected_atstring (date-time)oui
resolved_atstring | null (date-time)non

SyncResolve

NomTypeObligatoireDescription
resolution"keep_server" | "apply_client" | "apply_as_reassessment" | "discard"oui
reasonstringoui

SyncStatus

NomTypeObligatoireDescription
device_idstringoui
last_batch_atstring | null (date-time)oui
appliedintegernon
open_conflictsintegeroui

AuditEntry

NomTypeObligatoireDescription
seqintegeroui
atstring (date-time)oui
actorstringoui
actor_rolestringoui
facility_idstring (uuid)non
actionstringouie.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_idstring | nullnon
outcome"allowed" | "denied" | "failed"oui
purposestringnon
break_glass_idstring | nullnon
correlation_idstringnon
hashstringouiSHA-256 over prev_hash + canonical entry
prev_hashstringoui

Assign

NomTypeObligatoireDescription
room_idstring (uuid)non
clinician_user_idstringnon
expected_versionintegeroui

PaymentPolicy

NomTypeObligatoireDescription
facility_idstring (uuid)oui
mode"none" | "pay_before_nurse"ouiowner decision 2026-11-29: default none; a facility opts in to pay_before_nurse
service_codestring | nullnonfacility tariff/service catalogue code of the consultation charge (from the billing system; no fixed charge in OHN)
bypass_rolesarray of "triage_officer" | "triage_lead" | "emergency_clinician" | "cashier"nonowner decision 2026-11-29: default all four; a facility may narrow it
remote_payment_allowedbooleannon
revisionintegeroui
state"draft" | "active" | "retired"oui
approval_refstring | nullnon
signed_bystring | nullnon
signed_atstring | null (date-time)non
versionintegernon

PaymentPolicyWrite

NomTypeObligatoireDescription
mode"none" | "pay_before_nurse"oui
service_codestringnon
bypass_rolesarray of "triage_officer" | "triage_lead" | "emergency_clinician" | "cashier"oui
remote_payment_allowedbooleannon
approval_refstringoui
expected_versionintegeroui

FirstLook

NomTypeObligatoireDescription
outcome"routine" | "emergency"oui
notestringnon
expected_versionintegeroui

FinancialState

NomTypeObligatoireDescription
ticket_idstring (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_refstring | nullnonbilling-system invoice id (reference only)
amount_due_minorinteger | nullnon
currencystring | nullnon
receipt_refstring | nullnon
verified_atstring | null (date-time)non
policy_revisioninteger | nullnon
cashier_instructionI18nText | nullnon
versionintegerouithe ticket's version, for expected_version on billing-intent, deferred-charges and emergency-bypass (1.3.3)
confirmed_bystring | nullnon1.3.6: the cashier who confirmed payment by hand (manually_confirmed_by_cashier); null otherwise
confirmation_method"billing_verified" | "manual" | nullnon1.3.6: how the gate cleared; null while outstanding
charge_source"fixed" | "listed_price" | "configured_tariff" | "cashier_entered" | nullnon1.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

NomTypeObligatoireDescription
expected_versionintegeroui
payer"self" | "insurer" | "employer" | "other"non

PaymentVerification

NomTypeObligatoireDescription
facility_idstring (uuid)oui
ticket_idstring (uuid)oui
invoice_refstringoui
finance_event_idstringouiidempotency 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

NomTypeObligatoireDescription
ticket_idstring (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_positioninteger | nullnon

EmergencyBypass

NomTypeObligatoireDescription
reasonstringoui
destination_department_idstring (uuid)nonoptional since 1.3.3; omitted means the ticket's own department
expected_versionintegeroui

DeferredCharges

NomTypeObligatoireDescription
invoice_refstringnon
notestringnon
expected_versionintegeroui

PaymentPendingEntry

NomTypeObligatoireDescription
ticket_idstring (uuid)oui
ticket_numberstringoui
arrival_seqintegeroui
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_minutesintegeroui
first_lookPaymentPendingEntry.first_look.option-1 | nullnon
display_namestring | nullnonreception and cashier roles only
versionintegerouithe ticket's version, for expected_version on billing-intent, deferred-charges and emergency-bypass (1.3.3)
department_idstring (uuid)ouithe ticket's department (1.3.3)

QueueRevision

NomTypeObligatoireDescription
revisionintegeroui
atstring (date-time)oui
trigger"payment_verified" | "emergency_bypass" | "claimed" | "called" | "reassessment" | "no_show" | "cancelled" | "capacity_changed"oui
changesarray of QueueRevision.changes.itemoui

ExternalSystem

NomTypeObligatoireDescription
idstring (uuid)oui
namestringoui
client_idstringouiplatform-registered OAuth client (role external_triage_system)
facility_idsarray of string (uuid)non
state"active" | "suspended"oui
acuity_code_mapobjectouiexternal acuity code -> level code of the active approved scale; unmapped codes are stored as external_unmapped and never assigned
versionintegernon

ExternalSystemWrite

NomTypeObligatoireDescription
namestringoui
client_idstringoui
facility_idsarray of string (uuid)oui
acuity_code_mapobjectoui
state"active" | "suspended"non
expected_versionintegernon

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

NomTypeObligatoireDescription
resourceType"Bundle"oui
type"collection" | "transaction"oui
identifierobjectnon
entryarray of objectoui

ExternalIntakeResult

NomTypeObligatoireDescription
outcome"created" | "updated" | "duplicate"oui
ticket_idstring (uuid)oui
assessment_idstring | null (uuid)non
acuity_mapping"mapped" | "external_unmapped" | "none"non
escalation_idstring | null (uuid)non
warningsarray of stringnon

TriageHistoryItem

NomTypeObligatoireDescription
ticket_idstring (uuid)oui
facility_idstring (uuid)oui
department_idstring (uuid)oui
arrived_atstring (date-time)oui
statestringoui
final_levelstring | nullnon
scale_version_idstring | null (uuid)non
encounter_idstring | null (uuid)non
vital_set_idsarray of string (uuid)non
preconsult_document_idsarray of string (uuid)non
source_systemstring | nullnon
synthetic_demobooleannon

PublicPaymentStatus

NomTypeObligatoireDescription
ticket_numberstringoui
status"not_applicable" | "payment_required" | "payment_pending" | "verified_paid" | "emergency_care"oui
invoice_refstring | nullnon
amount_due_minorinteger | nullnon
currencystring | nullnon
cashier_instructionI18nText | nullnon
receipt_refstring | nullnononly once the billing system verified full settlement
estimated_queue_position_when_eligibleinteger | nullnon
updated_atstring (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.

NomTypeObligatoireDescription
idstring (uuid)oui
ticket_numberstringoui<prefix>-<seq>, sequence per department per local day, e.g. E-014
facility_idstring (uuid)oui
department_idstring (uuid)oui
patient_idstring | 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" | …ouipayment 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
versionintegeroui

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.

NomTypeObligatoireDescription
idstring (uuid)oui
public_labelI18nTextouithe 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" | …nonnull for sensitive departments, so the list never reveals a private service
nameI18nText | nullnonthe department's real name (1.3.4); null or absent for sensitive departments. public_label already carries the name for non-sensitive departments

TariffEntry

NomTypeObligatoireDescription
service_codestringouithe billing system's service code, as in PaymentPolicy.service_code
labelI18nTextnon
amount_minorintegerouiprice in minor units of currency
currencystringouiISO 4217
effective_fromstring (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.

NomTypeObligatoireDescription
facility_idstring (uuid)oui
versionintegeroui
tariffsarray of TariffEntryouiall entries, past and future, ordered by service_code then effective_from
updated_atstring | null (date-time)non
updated_bystring | nullnon
approval_refstring | nullnon

TariffScheduleWrite

NomTypeObligatoireDescription
expected_versionintegeroui0 for the first write
tariffsarray of TariffEntryouithe 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_refstringouifacility finance approval reference

ManualPaymentConfirmation

NomTypeObligatoireDescription
receipt_refstringouithe facility's own receipt number
amount_minorintegerouimust equal the visit's charge; for an unpriced visit it becomes the charge
currencystringoui
method"cash" | "mobile_money" | "card" | "other"oui
notestringnonrequired (5+ characters, the basis of the amount) when the visit is unpriced
expected_versionintegeroui

CareTeamAccess

1.3.7: OHN-16 care_team access of the receiving clinicians. Patient references and assertion ids are not exposed

NomTypeObligatoireDescription
state"pending" | "active" | "failed" | "ended"ouipending: 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_idstring (uuid)ouithe receiving department whose clinicians hold the relationship
clinician_countintegerouiclinicians with a registered assertion
expires_atstring | null (date-time)nonvalid_from + care_team_relationship_hours of the first registration
ended_reason"completed" | "left_without_being_seen" | "transferred" | "referred" | "cancelled" | "re_handover" | nullnon

get-api-ohn-v1-triage-audit-verify.response-200 défini sur place

NomTypeObligatoireDescription
okbooleanoui
checkedintegernon
first_broken_seqinteger | nullnon

get-api-ohn-v1-triage-tariffs-effective.response-200 défini sur place

NomTypeObligatoireDescription
facility_idstring (uuid)oui
service_codestringoui
amount_minorintegeroui
currencystringoui
effective_fromstring (date-time)oui
schedule_versionintegeroui

ScaleRule.applies_to défini sur place

NomTypeObligatoireDescription
age_min_monthsintegernon
age_max_monthsintegernon
department_kindsarray of "emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | …non

ScaleRule.score_components.item défini sur place

NomTypeObligatoireDescription
inputstringoui
bandsarray of ScaleRule.score_components.item.bands.itemoui

ScaleRule.score_components.item.bands.item défini sur place

NomTypeObligatoireDescription
minnumbernon
maxnumbernon
equalsanynon
pointsintegeroui

ScaleRule.level_by_score.item défini sur place

NomTypeObligatoireDescription
minintegeroui
maxintegernon
levelstringoui

Discriminator.applies_to défini sur place

NomTypeObligatoireDescription
age_min_monthsintegernon
age_max_monthsintegernon
department_kindsarray of "emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | …non

CheckIn.identification défini sur place

NomTypeObligatoireDescription
method"health_id" | "search" | "qr" | "access_card"oui
valuestringnon
date_of_birthstring (date)nonsecond 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

NomTypeObligatoireDescription
reasonstringoui

Ticket.preconsult défini sur place

NomTypeObligatoireDescription
state"none_configured" | "not_started" | "in_progress" | "submitted" | "unknown"oui
response_idsarray of string (uuid)non
red_flag_countintegernon

Ticket.first_look.option-1 défini sur place

NomTypeObligatoireDescription
atstring (date-time)oui
bystringoui
outcome"routine" | "emergency"oui

Ticket.bypass.option-1 défini sur place

NomTypeObligatoireDescription
atstring (date-time)oui
bystringoui
by_role"triage_officer" | "triage_lead" | "emergency_clinician" | "cashier"oui
reasonstringoui
escalation_idstring | null (uuid)non

QueueView.scale.option-1 défini sur place

NomTypeObligatoireDescription
idstring (uuid)oui
codestringoui
versionintegeroui
synthetic_demobooleanoui

Vitals.gcs défini sur place

NomTypeObligatoireDescription
eyeintegeroui
verbalintegeroui
motorintegeroui
totalintegernon

Vitals.paediatric défini sur place

NomTypeObligatoireDescription
capillary_refill_snumbernon
muac_mmintegernon
length_cmnumbernon
head_circumference_cmnumbernon
weight_for_age_notestringnon

VitalsCreate.not_taken.item défini sur place

NomTypeObligatoireDescription
fieldstringoui
reason_codestringoui
notestringnon

VitalSet.not_taken.item défini sur place

NomTypeObligatoireDescription
fieldstringoui
reason_codestringoui
notestringnon

Evaluation.fired_rules.item défini sur place

NomTypeObligatoireDescription
rule_idstringoui
levelstringoui
scoreintegernon
explanationI18nTextnon

AssessmentCreate.override défini sur place

NomTypeObligatoireDescription
levelstringoui
reasonstringouirequired 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

NomTypeObligatoireDescription
fromstring | nulloui
tostringoui
reasonstringoui

TriageSummary.patient défini sur place

NomTypeObligatoireDescription
patient_idstring (uuid)non
health_idstringnon
display_namestringnon
sexstringnon
age_yearsintegernon

TriageSummary.history.item défini sur place

NomTypeObligatoireDescription
atstring (date-time)oui
fromstring | nulloui
tostringoui
bystringoui
reasonstring | nullnon

DisplayFeed.calls.item défini sur place

NomTypeObligatoireDescription
ticket_numberstringoui
roomstring | nulloui
called_atstring (date-time)oui
department_codestringoui
department_nameI18nTextnon

CheckInResult.preconsult défini sur place

NomTypeObligatoireDescription
state"none_configured" | "not_started" | "in_progress" | "submitted" | "unknown"oui
response_idsarray of string (uuid)non
red_flag_countintegernon

CheckInResult.first_look.option-1 défini sur place

NomTypeObligatoireDescription
atstring (date-time)oui
bystringoui
outcome"routine" | "emergency"oui

CheckInResult.bypass.option-1 défini sur place

NomTypeObligatoireDescription
atstring (date-time)oui
bystringoui
by_role"triage_officer" | "triage_lead" | "emergency_clinician" | "cashier"oui
reasonstringoui
escalation_idstring | null (uuid)non

Escalation.acknowledgements.item défini sur place

NomTypeObligatoireDescription
bystringoui
rolestringoui
atstring (date-time)oui

Escalation.handoff.option-1 défini sur place

NomTypeObligatoireDescription
to_department_idstring (uuid)oui
accepted_bystringoui
atstring (date-time)oui
latency_secondsintegerouihandoff.at - raised_at

SelfCheckIn.identification défini sur place

NomTypeObligatoireDescription
method"health_id" | "search" | "qr" | "access_card"oui
valuestringnon
date_of_birthstring (date)nonsecond factor for health_id at self check-in

Shift.assignments.item défini sur place

NomTypeObligatoireDescription
user_idstringoui
role"receptionist" | "triage_officer" | "triage_lead" | "clinician"oui
room_idstring | null (uuid)non

ShiftWrite.assignments.item défini sur place

NomTypeObligatoireDescription
user_idstringoui
role"receptionist" | "triage_officer" | "triage_lead" | "clinician"oui
room_idstring (uuid)non

FacilitySettings.missing_vital_reasons.item défini sur place

NomTypeObligatoireDescription
codestringoui
labelI18nTextoui

FacilitySettings.operating_hours.item défini sur place

NomTypeObligatoireDescription
day"mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun"oui
openstringoui
closestringoui

FacilitySettingsWrite.missing_vital_reasons.item défini sur place

NomTypeObligatoireDescription
codestringoui
labelI18nTextoui

FacilitySettingsWrite.operating_hours.item défini sur place

NomTypeObligatoireDescription
day"mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun"oui
openstringoui
closestringoui

SyncBatch.operations.item défini sur place

NomTypeObligatoireDescription
client_op_idstring (uuid)ouiidempotency per operation; applied once, atomically with its idempotency record
op"check_in" | "call" | "missed" | "start_triage" | "vitals" | "assessment" | "reassessment" | "outcome" | "link_patient"oui
ticket_idstring (uuid)non
client_ticket_refstringnonoffline-created ticket reference, mapped to a server ticket id in the result
base_versionintegernon
performed_atstring (date-time)oui
performed_bystringouithe person who did the work; must be the signed-in user, or for edge_sync a person on a facility shift covering performed_at
payloadobjectouithe 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

NomTypeObligatoireDescription
client_op_idstring (uuid)oui
outcome"applied" | "duplicate" | "conflict" | "rejected"oui
ticket_idstring | null (uuid)non
conflict_idstring | null (uuid)non
errorstring | nullnonper-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

NomTypeObligatoireDescription
atstring (date-time)oui
bystringoui
outcome"routine" | "emergency"oui

QueueRevision.changes.item défini sur place

NomTypeObligatoireDescription
ticket_idstring (uuid)oui
frominteger | nulloui
tointeger | nulloui