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