Skip to content

← All contracts

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)

Download the contract (YAML)

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

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

Operation ID: OHN_61_API_001

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
activequerybooleanno

Responses

CodeDescriptionMedia type
200OK
application/json: array of Department
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/departmentsCreate a department (facility configuration)

Operation ID: OHN_61_API_002

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes
facility_idquerystring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Department
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409conflict: duplicate code or ticket_prefix in the facility
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/departments/{department_id}Get one department (also used by OHN-62 to verify a binding)

Operation ID: OHN_61_API_003

Authentication: bearer

Parameters

NameInTypeRequiredDescription
department_idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: Department
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
PUT/api/ohn/v1/triage/departments/{department_id}Update a department (expected_version required)

Operation ID: OHN_61_API_004

Authentication: bearer

Parameters

NameInTypeRequiredDescription
department_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Department
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/scalesList triage scale versions of the jurisdiction

Operation ID: OHN_61_API_005

Authentication: bearer

Parameters

NameInTypeRequiredDescription
jurisdiction_idquerystring (uuid)yes
statequery"draft" | "active" | "retired"no

Responses

CodeDescriptionMedia type
200OK
application/json: array of TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/scalesLoad a scale version as draft (validated: unique level codes and ranks, every rule/discriminator level exists, inputs are known vitals/discriminators)

Operation ID: OHN_61_API_006

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes
jurisdiction_idquerystring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/scales/activeThe active scale of the caller's jurisdiction. 1.3.6: cashier may read it (purpose triage_billing, read-only) to show the pilot banner from synthetic_demo and clinically_approved

Operation ID: OHN_61_API_007

Authentication: bearer

Parameters

NameInTypeRequiredDescription
jurisdiction_idquerystring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
503not_configured: no active, approved triage scale for the jurisdiction (fail closed)
application/json: Error
GET/api/ohn/v1/triage/scales/{scale_id}Get one scale version

Operation ID: OHN_61_API_008

Authentication: bearer

Parameters

NameInTypeRequiredDescription
scale_idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/scales/{scale_id}/activateActivate a draft (retires the previous active version of the jurisdiction)

Operation ID: OHN_61_API_009

Authentication: bearer

Parameters

NameInTypeRequiredDescription
scale_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed, or scale_not_approved: a real scale cannot use the demo approval_ref
application/json: Error
POST/api/ohn/v1/triage/scales/{scale_id}/retireRetire a version (no active scale afterwards means 503 not_configured for acuity)

Operation ID: OHN_61_API_010

Authentication: bearer

Parameters

NameInTypeRequiredDescription
scale_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/scales/load-demoLoad the SYNTHETIC demo scale (NOT clinically approved). Served only when OHN61_ALLOW_DEMO_CONFIG=true and the profile is not production

Operation ID: OHN_61_API_011

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes
jurisdiction_idquerystring (uuid)yes

Responses

CodeDescriptionMedia type
201OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404demo_config_disabled (the route does not exist in production)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/scales/load-referenceLoad the reference SATS triage scale (South African Triage Scale adult chart, SATS Training Manual 2012, with WHO ETAT 2016 emergency and priority signs for children; every item cited, see modules/OHN-61/docs/sats-reference-scale.md) as a draft with synthetic_demo false. It is never activated here; clinical governance verifies it and activates it with its own approval reference, so clinically_approved stays false until then. Served in every profile.

Operation ID: OHN_61_API_105

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes
jurisdiction_idquerystring (uuid)yes

Responses

CodeDescriptionMedia type
201OK
application/json: TriageScaleVersion
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found (another jurisdiction)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/ticketsCheck in: create a queue ticket (walk-in or OHN-54 appointment)

Verifies the patient with OHN-03 (GET /api/ohn/v1/mpi/patients/{id}); for an appointment, verifies it with OHN-54 and calls its check-in (POST /api/ohn/v1/appointments/{id}/check-in). Attaches pre-consultation answers through OHN-62 (POST /api/ohn/v1/pre-consult/tickets/{ticket_id}/attach); if OHN-62 is unavailable the ticket is still created with preconsult.state=unknown. Ticket number = department prefix + daily sequence.

Operation ID: OHN_61_API_012

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Created; public_token returned once
application/json: CheckInResult
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409conflict: patient already has an open ticket in this department (details.ticket_id), or appointment already checked in
application/json: Error
422validation_failed, patient_not_identified (unidentified only where allows_unidentified), appointment_mismatch (other patient/facility/day), department_inactive; emergency_bypass never fails on identity, questionnaire or payment
application/json: Error
502upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed)
application/json: Error
GET/api/ohn/v1/triage/tickets/{ticket_id}Get a ticket

Response depends on the caller role: triage_service (OHN-62 service token) receives TicketServiceProjection (ids and states only: id, ticket_number, facility_id, department_id, patient_id, state, financial_state, version); receptionist, triage_officer and clinician receive the full Ticket.

Operation ID: OHN_61_API_013

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket | TicketServiceProjection
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/queueLive queue of one department: triage view (waiting/called/in_triage) or consultation view (triaged/consult_called/in_consultation)

Order: untriaged tickets by priority_flag (configured OHN-62 red flags) then arrival time; triaged tickets by acuity rank (1 first) then arrival time. waiting_minutes, target_breached and reassessment_overdue are computed at read time from the active scale. Receptionists see no vitals or complaint, only ticket, name, wait and acuity colour.

Operation ID: OHN_61_API_014

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
department_idquerystring (uuid)yes
viewquery"triage" | "consultation" | "nurse_ready"yes

Responses

CodeDescriptionMedia type
200OK
application/json: QueueView
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/departments/{department_id}/call-nextCall the next ticket of the view (first in queue order)

waiting -> called (triage view) or triaged -> consult_called (consultation view). Increments call_count, updates the waiting-room displays and, when notify_opt_in, asks OHN-53 to send the call by SMS/USSD.

Operation ID: OHN_61_API_015

Authentication: bearer

Parameters

NameInTypeRequiredDescription
department_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404nothing_to_call
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch; payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse)
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/callCall (or re-call) a specific ticket. 1.3.7 (consultation view, role clinician): if the calling clinician has no active care_team relationship for this ticket's patient, it is registered first, best effort: a failure is audited and does not stop this action (see POST /handover: OHN-61 (its own service identity, OHN-16 role care_team_registrar (OHN-16 1.3.0: care_team only, at most 72 h, revokes only its own), purpose relationship_registration) registers POST /api/ohn/v1/access/relationships with relationship_type care_team, actor_ref = the clinician's OHN-06 practitioner id, patient_ref = the linked patient, facility_ref = the ticket's facility, evidence_ref = ticket_id, valid_from = now - 1 minute, expires_at = valid_from + the facility's care_team_relationship_hours (default 24, max 72); nothing is registered while an assertion for the same practitioner, patient and facility is still active. Audited (care_relationship.register), announced (triage.care_team.registered))

Operation ID: OHN_61_API_016

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

  • application/json: Call

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch; payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse)
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/missedPatient did not answer the call: back to the queue, or no_show once call_count reaches max_calls_before_no_show

Operation ID: OHN_61_API_017

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/start-triagecalled -> in_triage (opens the OHN-09 triage encounter when the patient is identified)

Operation ID: OHN_61_API_018

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch; claimed_by_other (another user holds the claim); payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse)
application/json: Error
422validation_failed (details per field)
application/json: Error
502upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/link-patientLink an unidentified ticket to an OHN-03 patient (after search or quick registration); flushes pending vitals to OHN-10

Operation ID: OHN_61_API_019

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
502upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed)
application/json: Error
GET/api/ohn/v1/triage/tickets/{ticket_id}/vitalsVital sign sets of a ticket

Operation ID: OHN_61_API_020

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: array of VitalSet
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/vitalsRecord a vital sign set (state in_triage or triaged). Each value becomes an OHN-10 observation coded with LOINC (validated via OHN-23); pending until the patient is identified or OHN-10 accepts

Operation ID: OHN_61_API_021

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: VitalSet
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch; claimed_by_other (another user holds the claim); payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse)
application/json: Error
422validation_failed: unit/type errors, values outside the configured input_limits, diastolic >= systolic, measured_at in the future
application/json: Error
POST/api/ohn/v1/triage/acuity/evaluatePreview the acuity the active scale computes for vitals and discriminators (no write)

Operation ID: OHN_61_API_022

Authentication: bearer

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Evaluation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
503not_configured: no active, approved triage scale for the jurisdiction (fail closed)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/assessmentComplete triage: computed level (+ optional override with reason), presenting complaint; in_triage -> triaged and into the consultation queue of handover_department_id (default: same department). 1.3.7: a handover_department_id of another department is a handover for care_team access: it ends the previous department's assertions (re_handover); no receiving clinician is named here, so the lazy path applies (see POST /handover)

Operation ID: OHN_61_API_023

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Assessment
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch; claimed_by_other (another user holds the claim)
application/json: Error
422validation_failed, override_reason_required, unknown level or discriminator, or downgrade not allowed by the scale; missing_vital_reason_required
application/json: Error
502upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed)
application/json: Error
503not_configured: no active, approved triage scale for the jurisdiction (fail closed)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/reassessmentsReassess a triaged ticket (new vitals set + level); resets the reassessment timer

Operation ID: OHN_61_API_024

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Assessment
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch; claimed_by_other (another user holds the claim)
application/json: Error
422validation_failed, missing_vital_reason_required, override_reason_required, downgrade_requires_lead (a reassessment never lowers the level automatically: a lower computed level is shown as a suggestion and the previous level is kept unless a triage_lead overrides with a reason)
application/json: Error
503not_configured: no active, approved triage scale for the jurisdiction (fail closed)
application/json: Error
GET/api/ohn/v1/triage/tickets/{ticket_id}/assessmentsAssessments of a ticket, oldest first

Operation ID: OHN_61_API_025

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: array of Assessment
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/handoverMove a triaged ticket to another department's consultation queue. 1.3.7 (owner decision): the receiving department's clinicians get a time-limited OHN-16 care_team relationship. The shift roster holds platform user ids, not practitioner ids, so the main path is lazy: a clinician who calls the ticket (consultation view), starts its consultation, acknowledges the handover or opens its summary is registered with the practitioner_id of their own token. At call, start-consultation and acknowledge this is best effort: a missing practitioner_id or a failed registration is audited (care_relationship.register, outcome no_practitioner or failed) and the call, start or receipt still succeeds. GET /summary, the patient-data read, fails closed: no practitioner_id answers 403 forbidden (audit reason no_practitioner, as in 1.3.6) and a failed registration answers 503 dependency_unavailable (audited), before OHN-16 is asked for the read decision. Here, at the handover itself, each receiving_practitioner_ids entry in the body is registered at once (through the outbox; it never blocks or fails the handover). OHN-61 (its own service identity, OHN-16 role care_team_registrar (OHN-16 1.3.0: care_team only, at most 72 h, revokes only its own), purpose relationship_registration) registers POST /api/ohn/v1/access/relationships with relationship_type care_team, actor_ref = the clinician's OHN-06 practitioner id, patient_ref = the linked patient, facility_ref = the ticket's facility, evidence_ref = ticket_id, valid_from = now - 1 minute, expires_at = valid_from + the facility's care_team_relationship_hours (default 24, max 72); nothing is registered while an assertion for the same practitioner, patient and facility is still active. Audited (care_relationship.register), announced (triage.care_team.registered). A ticket without a linked patient registers nothing until link-patient. A handover to another department first revokes the assertions registered for the previous one (re_handover). Ticket.care_team_access shows the state

Operation ID: OHN_61_API_026

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/signalsService call from OHN-62: a configured red-flag rule fired for this ticket's pre-consultation answers

Operation ID: OHN_61_API_027

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Signal
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409ticket closed
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/signals/{signal_id}/acknowledgeOfficer acknowledges a red-flag signal

Operation ID: OHN_61_API_028

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
signal_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Signal
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/start-consultationconsult_called -> in_consultation (clinician; records consultation_started_at). 1.3.7: if the calling clinician has no active care_team relationship for this ticket's patient, it is registered first, best effort: a failure is audited and does not stop this action (see POST /handover: OHN-61 (its own service identity, OHN-16 role care_team_registrar (OHN-16 1.3.0: care_team only, at most 72 h, revokes only its own), purpose relationship_registration) registers POST /api/ohn/v1/access/relationships with relationship_type care_team, actor_ref = the clinician's OHN-06 practitioner id, patient_ref = the linked patient, facility_ref = the ticket's facility, evidence_ref = ticket_id, valid_from = now - 1 minute, expires_at = valid_from + the facility's care_team_relationship_hours (default 24, max 72); nothing is registered while an assertion for the same practitioner, patient and facility is still active. Audited (care_relationship.register), announced (triage.care_team.registered))

Operation ID: OHN_61_API_029

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/completein_consultation -> completed. 1.3.7: closing the ticket revokes every care_team assertion still active for it in OHN-16 (POST /access/relationships/{id}/revoke, reason 'triage ticket closed: <state>'; 409 already_revoked counts as done), through the outbox; audited (care_relationship.revoke) and announced (triage.care_team.ended)

Operation ID: OHN_61_API_030

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/outcomeClose without consultation: left_without_being_seen, transferred, referred (OHN-27 referral verified) or cancelled (entered in error, before triage only). 1.3.7: closing the ticket revokes every care_team assertion still active for it in OHN-16 (POST /access/relationships/{id}/revoke, reason 'triage ticket closed: <state>'; 409 already_revoked counts as done), through the outbox; audited (care_relationship.revoke) and announced (triage.care_team.ended)

Operation ID: OHN_61_API_031

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed or referral_mismatch
application/json: Error
502upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed)
application/json: Error
GET/api/ohn/v1/triage/tickets/{ticket_id}/summaryTriage summary for the clinician: vitals, assessments, overrides, signals, pre-consult response ids, state history (audited read). 1.3.7 (role clinician): if the clinician has no active care_team relationship for this ticket's patient, it is registered before the OHN-16 read decision, failing closed: no practitioner_id is 403 forbidden (audit reason no_practitioner), a failed registration is 503 dependency_unavailable (audited). See POST /handover

Operation ID: OHN_61_API_032

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: TriageSummary
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/displaysWaiting-room displays of the facility

Operation ID: OHN_61_API_033

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: array of Display
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/displaysRegister a display (returns a display id; a device token is issued by the platform for role display_device)

Operation ID: OHN_61_API_034

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes
facility_idquerystring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Display
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
PUT/api/ohn/v1/triage/displays/{display_id}Update a display

Operation ID: OHN_61_API_035

Authentication: bearer

Parameters

NameInTypeRequiredDescription
display_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Display
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/displays/{display_id}/feedCalls to show on the screen (poll every 3-5 s; ETag/If-None-Match supported, 304 when unchanged)

Operation ID: OHN_61_API_036

Authentication: bearer

Parameters

NameInTypeRequiredDescription
display_idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: DisplayFeed
304Not modified
application/json: Error
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/reports/{report_id}Run a report (daily_attendance, triage_queue_times, assessment_completion, emergency_escalations, doctor_handoffs, access_and_privacy, flow_and_capacity; OHN-61-R001..R003 are 1.0 aliases)

Operation ID: OHN_61_API_037

Authentication: bearer

Parameters

NameInTypeRequiredDescription
report_idpath"daily_attendance" | "triage_queue_times" | "assessment_completion" | "emergency_escalations" | "doctor_handoffs" | "access_and_privacy" | "flow_and_capacity" | "OHN-61-R001" | "OHN-61-R002" | "OHN-61-R003" | "sync_health" | "payment_gate_audit" | …yes
facility_idquerystring (uuid)yes
fromquerystring (date)yes
toquerystring (date)yes
department_idquerystring (uuid)no
group_byqueryarray of "facility" | "department" | "date" | "shift" | "acuity" | "staff_role" | "time" | "protocol_version" | "destination" | "day" | "zone" | "hour" | …nodimensions, comma-separated; default the report's documented default
shift_idquerystring (uuid)no

Responses

CodeDescriptionMedia type
200OK
application/json: Report
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed: range over 366 days or to < from
application/json: Error
POST/api/ohn/v1/triage/reports/{report_id}/exportExport CSV or PDF, watermarked through OHN-16 marks (resource type report_export); counts under 5 suppressed

Operation ID: OHN_61_API_038

Authentication: bearer

Parameters

NameInTypeRequiredDescription
report_idpath"daily_attendance" | "triage_queue_times" | "assessment_completion" | "emergency_escalations" | "doctor_handoffs" | "access_and_privacy" | "flow_and_capacity" | "OHN-61-R001" | "OHN-61-R002" | "OHN-61-R003" | "sync_health" | "payment_gate_audit" | …yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200File with X-OHN-Mark-Id header
text/csv: string
application/pdf: string (binary)
401Unauthenticated
application/json: Error
403export_not_allowed by OHN-16
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
502upstream_unavailable (OHN-03/09/54 dependency failed; nothing was changed)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/claimClaim the ticket (lease of claim_ttl_minutes, renewed by claiming again). Required for start-triage, vitals, assessment and reassessment

Operation ID: OHN_61_API_039

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409claimed_by_other (details.claimed_by, details.claim_expires_at), version_conflict, invalid_transition; payment_required (routine ticket not R_CLEAR or E_BYPASS under pay_before_nurse)
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/releaseRelease own claim (or triage_lead releases any; audited)

Operation ID: OHN_61_API_040

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/recallRecall: call a called/consult_called ticket again (call_count+1), or reinstate a no_show into the queue at its original arrival time within no_show_reinstate_minutes (reason required)

Operation ID: OHN_61_API_041

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed or reinstate_window_passed
application/json: Error
GET/api/ohn/v1/triage/escalationsEmergency tracking: escalations of the facility (open first, by raised_at)

Operation ID: OHN_61_API_042

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
statequery"open" | "acknowledged" | "handed_off" | "cancelled"no
department_idquerystring (uuid)no

Responses

CodeDescriptionMedia type
200OK
application/json: array of Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/escalationsRaise an emergency escalation by staff (automatic escalations come from scale levels/rules marked emergency/escalate)

Operation ID: OHN_61_API_043

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409an open escalation exists (details.escalation_id)
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/escalations/{escalation_id}Get one escalation

Operation ID: OHN_61_API_044

Authentication: bearer

Parameters

NameInTypeRequiredDescription
escalation_idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/escalations/{escalation_id}/acknowledgeStaff acknowledgement (one per user; state acknowledged once every required_ack_role has acknowledged)

Operation ID: OHN_61_API_045

Authentication: bearer

Parameters

NameInTypeRequiredDescription
escalation_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409escalation_closed or already acknowledged by this user
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/escalations/{escalation_id}/handoffHand off to the receiving department/clinician; records handoff latency

Operation ID: OHN_61_API_046

Authentication: bearer

Parameters

NameInTypeRequiredDescription
escalation_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/escalations/{escalation_id}/cancelCancel an escalation raised in error (triage_lead, reason)

Operation ID: OHN_61_API_047

Authentication: bearer

Parameters

NameInTypeRequiredDescription
escalation_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Escalation
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/self-check-inPatient self check-in at /p/triage (kiosk device or logged-in patient): Health ID + date of birth, appointment QR, or access card

Operation ID: OHN_61_API_048

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: CheckInResult
401Unauthenticated
application/json: Error
403self check-in disabled for the facility
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed, token_invalid, card_revoked (identification failures are generic and audited as public_token.fail)
application/json: Error
429rate limited (10/min per device, 5 failures lock the device for 5 min)
application/json: Error
GET/api/ohn/v1/triage/public/tickets/{token}Privacy-safe live ticket status for /p/triage/ticket (no login; no name, Health ID, acuity or clinical data)

Operation ID: OHN_61_API_049

Parameters

NameInTypeRequiredDescription
tokenpathstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: PublicTicketStatus
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
410token expired or ticket closed for more than 1 h
application/json: Error
422validation_failed (bad query)
application/json: Error
429rate limited
application/json: Error
GET/api/ohn/v1/triage/tickets/{ticket_id}/slipPrintable ticket slip (ticket number, department, QR of the public status link); the public token is re-issued and the old one revoked

Operation ID: OHN_61_API_050

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
formatquery"pdf" | "escpos"yes

Responses

CodeDescriptionMedia type
200Slip
application/pdf: string (binary)
application/octet-stream: string (binary)
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/access-cardsIssue a facility access card for a patient (QR + number); replaces an older card

Operation ID: OHN_61_API_051

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: AccessCard
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/access-cards/lookupResolve a scanned card to its patient (receptionist; audited)

Operation ID: OHN_61_API_052

Authentication: bearer

Parameters

NameInTypeRequiredDescription
card_numberquerystringyes

Responses

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

Operation ID: OHN_61_API_053

Authentication: bearer

Parameters

NameInTypeRequiredDescription
card_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: AccessCard
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/settingsFacility triage settings

Operation ID: OHN_61_API_054

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: FacilitySettings
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
PUT/api/ohn/v1/triage/settingsUpdate facility triage settings (operating rules). 1.3.7: care_team_relationship_hours (1-72, default 24) applies to registrations made after the change; existing assertions keep their expiry

Operation ID: OHN_61_API_055

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes
facility_idquerystring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: FacilitySettings
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/roomsRooms of the facility

Operation ID: OHN_61_API_056

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
department_idquerystring (uuid)no

Responses

CodeDescriptionMedia type
200OK
application/json: array of Room
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/roomsCreate a room

Operation ID: OHN_61_API_057

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes
facility_idquerystring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Room
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
PUT/api/ohn/v1/triage/rooms/{room_id}Update a room

Operation ID: OHN_61_API_058

Authentication: bearer

Parameters

NameInTypeRequiredDescription
room_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Room
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/shiftsShifts with staff assignments (roster)

Operation ID: OHN_61_API_059

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
fromquerystring (date-time)yes
toquerystring (date-time)yes

Responses

CodeDescriptionMedia type
200OK
application/json: array of Shift
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/shiftsCreate a shift with assignments

Operation ID: OHN_61_API_060

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes
facility_idquerystring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: Shift
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed: ends_at <= starts_at, over 24 h, unknown room, user not a member of the facility
application/json: Error
PUT/api/ohn/v1/triage/shifts/{shift_id}Replace a shift and its assignments

Operation ID: OHN_61_API_061

Authentication: bearer

Parameters

NameInTypeRequiredDescription
shift_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Shift
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/sync/batchesOffline sync from an OHN-26 edge node or offline tablet: apply queued operations in performed_at order; per-operation result

Authorization is per operation: each operation is checked against the roles its online endpoint admits. A signed-in user uploads only their own work: an operation whose performed_by is someone else is rejected with performer_mismatch. An edge_sync node relays only the work of a person on a shift of the facility that covers performed_at; the operation then runs with that person's shift role. Otherwise it is rejected with performer_not_on_shift, or forbidden when the shift role is not admitted by the online endpoint. These are per-operation errors in SyncResult.results[].error, not a failure of the batch. Each operation is applied exactly once, atomically with its idempotency record (client_op_id); a resend returns duplicate. An offline assessment or reassessment may set payload.vital_set_id to the client_op_id of a vitals operation from the same device; the server maps it to the vital set it created.

Operation ID: OHN_61_API_062

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: SyncResult
401Unauthenticated
application/json: Error
403offline_allowed is false for the facility
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/sync/statusSync state of a device

Operation ID: OHN_61_API_063

Authentication: bearer

Parameters

NameInTypeRequiredDescription
device_idquerystringyes

Responses

CodeDescriptionMedia type
200OK
application/json: SyncStatus
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/sync/conflictsOpen/resolved sync conflicts of the facility

Operation ID: OHN_61_API_064

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
statequery"open" | "resolved"no

Responses

CodeDescriptionMedia type
200OK
application/json: array of SyncConflict
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/sync/conflicts/{conflict_id}/resolveResolve a conflict (keep_server, apply_client, apply_as_reassessment, discard); clinical data is never silently discarded: discard needs a reason and keeps the payload in the audit

Resolution is serialized: once a conflict is resolved, a second resolver gets 409 invalid_transition (this conflict is already resolved) and the first resolution stands; the request carries no expected_version.

Operation ID: OHN_61_API_065

Authentication: bearer

Parameters

NameInTypeRequiredDescription
conflict_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: SyncConflict
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409invalid_transition: the conflict is already resolved
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/auditImmutable, scoped triage audit log (hash-chained; reads, mutations, denials, break-glass, public-token failures)

Operation ID: OHN_61_API_066

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
fromquerystring (date-time)yes
toquerystring (date-time)yes
ticket_idquerystring (uuid)no
actorquerystringno
actionquerystringno
outcomequery"allowed" | "denied" | "failed"no
cursorquerystringno
limitqueryintegerno

Responses

CodeDescriptionMedia type
200OK
application/json: array of AuditEntry
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/audit/verifyVerify the hash chain for a range (returns first broken seq or ok)

Operation ID: OHN_61_API_067

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
fromquerystring (date-time)yes
toquerystring (date-time)yes

Responses

CodeDescriptionMedia type
200OK
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/assignAssign a room and/or the receiving clinician (must be on a current shift of the department, else 422 clinician_not_on_shift)

Operation ID: OHN_61_API_068

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed or clinician_not_on_shift
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/handover/acknowledgeReceiving clinician acknowledges the handover (handover_state pending_ack -> acknowledged); unacknowledged after the facility's escalation_ack_within_seconds becomes failed, stays visible and can be re-sent with POST /handover. 1.3.7: if the calling clinician has no active care_team relationship for this ticket's patient, it is registered first, best effort: a failure is audited and does not stop this action (see POST /handover: OHN-61 (its own service identity, OHN-16 role care_team_registrar (OHN-16 1.3.0: care_team only, at most 72 h, revokes only its own), purpose relationship_registration) registers POST /api/ohn/v1/access/relationships with relationship_type care_team, actor_ref = the clinician's OHN-06 practitioner id, patient_ref = the linked patient, facility_ref = the ticket's facility, evidence_ref = ticket_id, valid_from = now - 1 minute, expires_at = valid_from + the facility's care_team_relationship_hours (default 24, max 72); nothing is registered while an assertion for the same practitioner, patient and facility is still active. Audited (care_relationship.register), announced (triage.care_team.registered))

Operation ID: OHN_61_API_069

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409handover_not_pending or version_conflict
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/payment-policyThe facility's active payment policy (read-only for admins; signed revision)

Operation ID: OHN_61_API_070

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: PaymentPolicy
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
PUT/api/ohn/v1/triage/payment-policySet a new signed policy revision (approval_ref required). mode none keeps the 1.2 flow; pay_before_nurse turns the routine gate on. 1.3.6: a triage_admin (purpose triage_administration) signs only for the facility of its token's organization_id, another facility answers 404; triage_governance_admin (purpose triage_governance) keeps every facility of the jurisdiction

Operation ID: OHN_61_API_071

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes
facility_idquerystring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: PaymentPolicy
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed or policy_not_signed
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/first-lookImmediate trained-staff safety first-look, before any payment. Outcome emergency authorizes the emergency bypass at once (no billing call)

Operation ID: OHN_61_API_072

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403receptionist may record only if the facility trained-staff list includes them
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/billing-intentAsk the facility billing system (FacilityBillingPort; OHN-58 billing sandbox now, real hospital billing or mobile money later through the same port) to create the consultation invoice for this visit; stores the invoice reference only

Operation ID: OHN_61_API_073

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: FinancialState
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
502billing_unavailable: the ticket stays payment_pending with a human resolution route
application/json: Error
GET/api/ohn/v1/triage/tickets/{ticket_id}/financial-stateSafe payment gate state of a ticket (staff). The patient reads their own payment details through GET /public/tickets/{token}/payment

Operation ID: OHN_61_API_074

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: FinancialState
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/billing/payment-verificationsServer-to-server from the authoritative billing system (service role billing_service, mutually authenticated). Idempotent per finance_event_id. OHN-61 re-queries the ledger; only a settled, exact match clears the gate and recomputes the nurse-ready queue. Client callbacks, receipt photos and unverified webhooks are never accepted, except a cashier's audited manual confirmation (OHN_61_API_104)

Operation ID: OHN_61_API_075

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: PaymentVerificationResult
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409mismatch (visit, facility, invoice, amount or currency differ)
application/json: Error
422validation_failed (details per field)
application/json: Error
502billing_unavailable
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/emergency-bypassEmergency-only bypass after check-in: no identity, payment, billing or network dependency; records reason, authorizer and authorizer role, and the immediate destination; charges are deferred, never marked paid or waived. A cashier bypass (waiting-area deterioration) also raises an escalation that clinical staff must acknowledge at once (handover to clinical staff)

Operation ID: OHN_61_API_076

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: Ticket
401Unauthenticated
application/json: Error
403role not in the policy's bypass_roles
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/deferred-chargesRecord deferred billing for a bypassed ticket (for later lawful processing); does not change clinical state

Operation ID: OHN_61_API_077

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: FinancialState
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/queues/payment-pendingRegister of routine tickets awaiting payment, by original arrival_seq (with first-look status; reassessment access stays open)

Operation ID: OHN_61_API_078

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
department_idquerystring (uuid)no

Responses

CodeDescriptionMedia type
200OK
application/json: array of PaymentPendingEntry
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/queues/nurse-readyEligible nurse queue only: tickets with no gate (financial_state not_applicable, policy none), R_CLEAR or E_BYPASS; emergency first, then acuity, then original arrival_seq; claimed/called/in-service tickets are never displaced

Operation ID: OHN_61_API_079

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
department_idquerystring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: QueueView
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/queues/revisionsAudited queue position revisions (queue_reprioritizations report source)

Operation ID: OHN_61_API_080

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
department_idquerystring (uuid)yes
fromquerystring (date-time)yes
toquerystring (date-time)yes

Responses

CodeDescriptionMedia type
200OK
application/json: array of QueueRevision
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/external-systemsRegistered third-party triage systems

Operation ID: OHN_61_API_081

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: array of ExternalSystem
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/external-systemsRegister a third-party triage system and its acuity code map (governance)

Operation ID: OHN_61_API_082

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: ExternalSystem
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
PUT/api/ohn/v1/triage/external-systems/{system_id}Update or suspend a third-party triage system

Operation ID: OHN_61_API_083

Authentication: bearer

Parameters

NameInTypeRequiredDescription
system_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: ExternalSystem
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
POST/api/ohn/v1/triage/external/encountersInbound triage from a registered third-party system: a FHIR R4 Bundle mapped to a ticket and assessment with Provenance; idempotent per Bundle.identifier; unmapped acuity stored as external_unmapped (never assigned); Flags raise the normal escalation path

Operation ID: OHN_61_API_084

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: ExternalIntakeResult
401Unauthenticated
application/json: Error
403external_system_unknown or suspended, or facility not allowed
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422bundle_invalid (details per entry)
application/json: Error
GET/api/ohn/v1/triage/patients/{patient_id}/triage-historyTriage history of a patient for the chart (OHN-08): every ticket, final level, encounter, vitals and preconsult documents, internal or external (OHN-16 decision purpose treatment; audited)

Operation ID: OHN_61_API_085

Authentication: bearer

Parameters

NameInTypeRequiredDescription
patient_idpathstring (uuid)yes
fromquerystring (date-time)no
cursorquerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: array of TriageHistoryItem
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/EncounterFHIR R4 search Encounter (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource

Operation ID: OHN_61_API_086

Authentication: bearer

Parameters

NameInTypeRequiredDescription
patientquerystringno
encounterquerystringno
datequerystringno
_countqueryintegerno

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/Encounter/{resource_id}FHIR R4 read Encounter

Operation ID: OHN_61_API_087

Authentication: bearer

Parameters

NameInTypeRequiredDescription
resource_idpathstringyes

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/ObservationFHIR R4 search Observation (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource

Operation ID: OHN_61_API_088

Authentication: bearer

Parameters

NameInTypeRequiredDescription
patientquerystringno
encounterquerystringno
datequerystringno
_countqueryintegerno

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/Observation/{resource_id}FHIR R4 read Observation

Operation ID: OHN_61_API_089

Authentication: bearer

Parameters

NameInTypeRequiredDescription
resource_idpathstringyes

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/QuestionnaireResponseFHIR R4 search QuestionnaireResponse (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource

Operation ID: OHN_61_API_090

Authentication: bearer

Parameters

NameInTypeRequiredDescription
patientquerystringno
encounterquerystringno
datequerystringno
_countqueryintegerno

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/QuestionnaireResponse/{resource_id}FHIR R4 read QuestionnaireResponse

Operation ID: OHN_61_API_091

Authentication: bearer

Parameters

NameInTypeRequiredDescription
resource_idpathstringyes

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/FlagFHIR R4 search Flag (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource

Operation ID: OHN_61_API_092

Authentication: bearer

Parameters

NameInTypeRequiredDescription
patientquerystringno
encounterquerystringno
datequerystringno
_countqueryintegerno

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/Flag/{resource_id}FHIR R4 read Flag

Operation ID: OHN_61_API_093

Authentication: bearer

Parameters

NameInTypeRequiredDescription
resource_idpathstringyes

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/TaskFHIR R4 search Task (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource

Operation ID: OHN_61_API_094

Authentication: bearer

Parameters

NameInTypeRequiredDescription
patientquerystringno
encounterquerystringno
datequerystringno
_countqueryintegerno

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/Task/{resource_id}FHIR R4 read Task

Operation ID: OHN_61_API_095

Authentication: bearer

Parameters

NameInTypeRequiredDescription
resource_idpathstringyes

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/ProvenanceFHIR R4 search Provenance (patient, encounter, date, status, _lastUpdated); read-only facade over OHN-61 data; OHN-16 evaluated per resource

Operation ID: OHN_61_API_096

Authentication: bearer

Parameters

NameInTypeRequiredDescription
patientquerystringno
encounterquerystringno
datequerystringno
_countqueryintegerno

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/Provenance/{resource_id}FHIR R4 read Provenance

Operation ID: OHN_61_API_097

Authentication: bearer

Parameters

NameInTypeRequiredDescription
resource_idpathstringyes

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/fhir/R4/metadataFHIR R4 CapabilityStatement of the triage facade (public, no data)

Operation ID: OHN_61_API_098

Responses

CodeDescriptionMedia type
200FHIR R4 resource or searchset Bundle
application/fhir+json: object
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/public/tickets/{token}/paymentThe patient's own payment details for /p/triage/payment, by ticket token (no login; own ticket only). Shows 'verified_paid' only after billing verification; emergency_care never shows an amount due. Kept separate from the public status projection, which never carries payment data. Token failures are audited and rate-limited like /public/tickets/{token}

Operation ID: OHN_61_API_099

Parameters

NameInTypeRequiredDescription
tokenpathstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: PublicPaymentStatus
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
410token expired or ticket closed
application/json: Error
422validation_failed (bad query)
application/json: Error
429rate limited
application/json: Error
GET/api/ohn/v1/triage/public/departmentsDepartments a patient may choose at self check-in (/p/triage self check-in). Returns only active departments of a facility whose self_check_in_enabled is true. kiosk_device: facility_id must equal the token's facility (else 403). patient: any facility of the token's jurisdiction. 404 when the facility is unknown or self check-in is off. Every call is audited (actor, facility, result count). Since 1.3.4 each entry has name (the real name; null for sensitive departments), kind (null for sensitive) and public_label (what to display).

Operation ID: OHN_61_API_100

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: array of PublicDepartment
401Unauthenticated
application/json: Error
403forbidden: kiosk_device token for another facility, or patient token for another jurisdiction
application/json: Error
404not_found: unknown facility, or self check-in is off for it
application/json: Error
422validation_failed (bad query)
application/json: Error
GET/api/ohn/v1/triage/tariffsThe facility's price list (past and future entries) with its version

Operation ID: OHN_61_API_101

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: TariffSchedule
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
PUT/api/ohn/v1/triage/tariffsReplace the facility's price list (versioned and audited, same pattern as PUT /settings). Entries already in effect cannot be changed or removed (422 tariff_in_past); duplicate service_code + effective_from is 422 validation_failed

Operation ID: OHN_61_API_102

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes
facility_idquerystring (uuid)yes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: TariffSchedule
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409version_conflict, invalid_transition or idempotency_mismatch
application/json: Error
422validation_failed (details per field)
application/json: Error
GET/api/ohn/v1/triage/tariffs/effectiveThe price in effect for a facility service at an instant (default now). 404 when none: the gate then never clears by itself and the cashier confirms payment by hand

Operation ID: OHN_61_API_103

Authentication: bearer

Parameters

NameInTypeRequiredDescription
facility_idquerystring (uuid)yes
service_codequerystringyes
atquerystring (date-time)no

Responses

CodeDescriptionMedia type
200OK
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
422validation_failed (bad query)
application/json: Error
POST/api/ohn/v1/triage/tickets/{ticket_id}/payment-confirmationsA cashier confirms payment by hand when no automatic billing match exists (owner decision). Allowed only while the ticket is payment_pending with an outstanding financial_state under facility policy pay_before_nurse. If the visit has a charge (fixed charge, else the listed price in effect at billing intent, else the configured tariff), amount_minor and currency must equal it, else 409 payment_not_verified with details.outcome mismatch. If the visit is unpriced (no price was in effect at billing intent: the case TariffSchedule leaves to the cashier), the confirmed amount and currency become the visit's charge (FinancialState.charge_source cashier_entered); note is then required (at least 5 characters, the basis of the amount), else 422 validation_failed, and the audit action is payment.manual_confirm_unpriced. A visit never has its charge changed once set. On success the gate clears exactly as a verified payment does: financial_state becomes manually_confirmed_by_cashier, the ticket moves to waiting or triaged, the nurse-ready queue is recomputed, receipt_ref and the cashier are stored, triage.payment.confirmed is emitted with method manual, and audit action payment.manual_confirm is written

Operation ID: OHN_61_API_104

Authentication: bearer

Parameters

NameInTypeRequiredDescription
ticket_idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: PaymentVerificationResult
401Unauthenticated
application/json: Error
403Role or OHN-16 policy denies
application/json: Error
404Not found or outside the caller's facility (never discloses existence)
application/json: Error
409payment_not_verified (details.outcome mismatch), invalid_transition (not outstanding) or version_conflict
application/json: Error
422validation_failed (for an unpriced visit, note with the basis of the amount is required)
application/json: Error
GET/health/ohn-61Liveness/readiness of the module

Operation ID: OHN_61_HEALTH

Responses

CodeDescriptionMedia type
200OK—

Schemas

Error

NameTypeRequiredDescription
errorstringyesStable 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)
messagestringno
detailsanyno

I18nText

NameTypeRequiredDescription
enstringyes
frstringyes

Department

NameTypeRequiredDescription
idstring (uuid)yes
facility_idstring (uuid)yes
codestringyes
kind"emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | …yes
nameI18nTextyes
ticket_prefixstringyes
max_calls_before_no_showintegeryes
triage_requiredbooleannofalse: check-in goes straight to the consultation queue (no acuity); default true
allows_unidentifiedbooleannotrue only for kind emergency: tickets may start without an OHN-03 patient
roomsarray of stringnodeprecated in 1.1.0: use /rooms
activebooleanyes
versionintegeryes
sensitivebooleannotrue 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_labelI18nTextnoneutral label shown publicly when sensitive (required then), e.g. 'Clinic B'
safety_screen_requiredbooleannodefault true: the universal danger-sign screen (OHN-62 kind safety_screen) runs before department questions at check-in

DepartmentWrite

NameTypeRequiredDescription
codestringyes
kind"emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | …yes
nameI18nTextyes
ticket_prefixstringyes
max_calls_before_no_showintegeryes
triage_requiredbooleanno
allows_unidentifiedbooleanno
roomsarray of stringno
activebooleanno
expected_versionintegernorequired on update
sensitivebooleannotrue 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_labelI18nTextnoneutral label shown publicly when sensitive (required then), e.g. 'Clinic B'
safety_screen_requiredbooleannodefault true: the universal danger-sign screen (OHN-62 kind safety_screen) runs before department questions at check-in

ScaleLevel

NameTypeRequiredDescription
codestringyes
rankintegeryes1 = most urgent
labelI18nTextyes
colourstringyes
target_minutes_to_clinicianinteger | nullyesfrom the approved scale; null = no target
reassess_every_minutesinteger | nullyes
emergencybooleannoassigning this level raises an emergency escalation automatically

ScaleCondition

NameTypeRequiredDescription
inputstringyesvital 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
valueanyno
value2anyno

ScaleRule

NameTypeRequiredDescription
idstringyes
type"level_if_all" | "level_if_any" | "score"yes
applies_toScaleRule.applies_tono
conditionsarray of ScaleConditionno
assign_levelstringno
score_componentsarray of ScaleRule.score_components.itemno
level_by_scorearray of ScaleRule.level_by_score.itemno
explanationI18nTextno
escalatebooleannothis rule firing raises an emergency escalation (emergency sign), whatever the level

Discriminator

NameTypeRequiredDescription
idstringyes
labelI18nTextyes
levelstringnolevel code assigned when ticked; may be absent when only used by rules
applies_toDiscriminator.applies_tono

TriageScaleDocument

NameTypeRequiredDescription
codestringyese.g. SATS, ESI, MTS or a ministry code
nameI18nTextyes
source_referencestringno
levelsarray of ScaleLevelyes
discriminatorsarray of Discriminatoryes
rulesarray of ScaleRuleyes
default_level_when_no_rulestring | nullyeslevel code, or null = the officer must choose (override with reason)
allow_downgrade_overridebooleanno
input_limitsobjectnoper vital {min,max} plausibility limits; only these are enforced beyond units
required_inputsarray of stringnovitals that must be recorded or given a missing reason before an assessment (422 missing_vital_reason_required)

TriageScaleVersion

NameTypeRequiredDescription
idstring (uuid)yes
jurisdiction_idstring (uuid)yes
codestringyes
versionintegeryes
state"draft" | "active" | "retired"yes
approval_refstring | nullno
synthetic_demobooleanyes
clinically_approvedbooleannofalse for the synthetic demo scale
activated_atstring | null (date-time)no
activated_bystring | nullno
documentTriageScaleDocumentyes
row_versionintegerno

ScaleActivate

NameTypeRequiredDescription
approval_refstringyes
expected_versionintegeryes

UnidentifiedPatient

NameTypeRequiredDescription
sex"female" | "male" | "unknown"no
approx_age_yearsintegerno
descriptionstringyes

CheckIn

NameTypeRequiredDescription
facility_idstring (uuid)yes
department_idstring (uuid)yes
arrival_source"walk_in" | "appointment" | "referral_in" | "transfer_in" | "ambulance"yes
patient_idstring (uuid)noOHN-03 patient id; required unless unidentified is given
unidentifiedUnidentifiedPatientno
appointment_idstring (uuid)norequired when arrival_source = appointment
referral_idstring (uuid)no
arrived_atstring (date-time)nodefault now; not in the future, not more than 12 h back
presenting_complaintComplaintRefno
notify_opt_inbooleannocall notification by SMS/USSD via OHN-53 (verified contact only)
language"en" | "fr"no
identificationCheckIn.identificationno
room_idstring (uuid)no
emergency_bypassCheckIn.emergency_bypassnostaff-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

NameTypeRequiredDescription
code_system"snomed_ct" | "local"no
codestringno
textstringno

Signal

NameTypeRequiredDescription
idstring (uuid)no
source"OHN-62" | "staff"yes
kind"flag_officer" | "raise_priority" | "urgent_review" | "screen_incomplete"yes
rule_idstringno
response_idstring (uuid)no
messageI18nTextyes
raised_atstring (date-time)no
acknowledged_atstring | null (date-time)no

SignalCreate

NameTypeRequiredDescription
source"OHN-62"yes
kind"flag_officer" | "raise_priority" | "urgent_review" | "screen_incomplete"yes
rule_idstringyes
response_idstring (uuid)yes
definition_versionintegerno
messageI18nTextyes

Ticket

NameTypeRequiredDescription
idstring (uuid)yes
ticket_numberstringyes<prefix>-<seq>, sequence per department per local day, e.g. E-014
facility_idstring (uuid)yes
department_idstring (uuid)yes
patient_idstring | null (uuid)no
health_idstring | nullnomasked except for roles with triage_assessment/triage_consultation
display_namestring | nullno
unidentifiedUnidentifiedPatient | nullno
arrival_sourcestringno
appointment_idstring | null (uuid)no
referral_idstring | 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_atstring (date-time)yes
triage_started_atstring | null (date-time)no
triaged_atstring | null (date-time)no
consultation_started_atstring | null (date-time)no
closed_atstring | null (date-time)no
acuityAcuityRef | nullno
priority_flagbooleanno
signalsarray of Signalno
call_countintegeryes
last_called_atstring | null (date-time)no
called_tostring | nullno
waiting_minutesintegerno
target_breachedbooleanno
reassessment_due_atstring | null (date-time)no
reassessment_overduebooleanno
handover_department_idstring | null (uuid)no
encounter_idstring | null (uuid)noOHN-09 triage encounter
preconsultTicket.preconsultno
outcomestring | nullno
outcome_reasonstring | nullno
notify_opt_inbooleanno
versionintegeryes
claimed_bystring | nullnouser id holding the claim lock
claim_expires_atstring | null (date-time)no
open_escalation_idstring | null (uuid)no
identification_method"health_id" | "search" | "qr" | "access_card" | "unidentified"no
room_idstring | null (uuid)no
shift_idstring | null (uuid)no
sync_origin"online" | "offline"no
offline_numberstring | nullnoticket number printed offline before sync
emergencybooleannoemergency 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_idstring | null (uuid)no
assigned_clinicianstring | nullnouser id of the clinician the patient is handed to
handover_state"none" | "pending_ack" | "acknowledged" | "failed"no
handover_acknowledged_atstring | 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" | …nopayment 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_seqintegernooriginal check-in rank within the department and day; kept while payment is pending and used as the tie-break after acuity
first_lookTicket.first_look.option-1 | nullno
queue_positioninteger | nullno1-based position in the nurse-ready queue; null while not eligible or once claimed/called/in service
source_systemstring | nullnoexternal triage system id when the assessment came in through the interop surface
bypassTicket.bypass.option-1 | nullnowho authorized the emergency bypass (audited)
care_team_accessCareTeamAccess | nullno1.3.7: null before any handover

AcuityRef

NameTypeRequiredDescription
levelstringyes
rankintegeryes
colourstringyes
labelI18nTextyes
source"computed" | "override"yes
scale_version_idstring (uuid)yes
synthetic_demobooleanno
target_minutes_to_clinicianinteger | nullno

QueueView

NameTypeRequiredDescription
facility_idstring (uuid)yes
department_idstring (uuid)yes
view"triage" | "consultation" | "nurse_ready"yes
generated_atstring (date-time)yes
scaleQueueView.scale.option-1 | nullyesnull = no approved scale (acuity cannot be assigned)
countsobjectno
entriesarray of Ticketyes
revisionintegernoqueue revision; changes on every recompute

Call

NameTypeRequiredDescription
roomstringno
expected_versionintegeryes

CallNext

NameTypeRequiredDescription
view"triage" | "consultation"yes
roomstringno

Versioned

NameTypeRequiredDescription
expected_versionintegeryes

Reasoned

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

Vitals

NameTypeRequiredDescription
temperature_cnumberno
heart_rate_bpmintegerno
respiratory_rate_bpmintegerno
systolic_mmhgintegerno
diastolic_mmhgintegerno
spo2_pctintegerno
on_oxygenbooleanno
weight_kgnumberno
height_cmnumberno
bminumbernocomputed weight/height^2 when both are present
blood_glucose_mmol_lnumberno
pain_scoreintegerno
avpu"A" | "V" | "P" | "U"no
gcsVitals.gcsno
paediatricVitals.paediatricno
pregnantboolean | nullno
mobility"walking" | "assisted" | "stretcher"no

VitalsCreate

NameTypeRequiredDescription
vitalsVitalsyes
measured_atstring (date-time)yes
expected_versionintegeryes
not_takenarray of VitalsCreate.not_taken.itemnoreason 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"nofirst_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

NameTypeRequiredDescription
idstring (uuid)yes
ticket_idstring (uuid)yes
vitalsVitalsyes
measured_atstring (date-time)yes
recorded_bystringyes
record_sync"pending_patient_link" | "pending_upstream" | "synced" | "failed"yes
observation_idsarray of string (uuid)noOHN-10 observation ids once synced
not_takenarray of VitalSet.not_taken.itemnoreason 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

NameTypeRequiredDescription
ticket_idstring (uuid)yes
vitalsVitalsno
discriminator_idsarray of stringno

Evaluation

NameTypeRequiredDescription
scale_version_idstring (uuid)yes
computed_levelstring | nullyesnull when no rule fired and default_level_when_no_rule is null
fired_rulesarray of Evaluation.fired_rules.itemyes
missing_inputsarray of stringyes
synthetic_demobooleanyes
disclaimerstring | nullnoset for the demo scale: NOT CLINICALLY APPROVED

AssessmentCreate

NameTypeRequiredDescription
vital_set_idstring (uuid)yes
presenting_complaintComplaintRefyes
discriminator_idsarray of stringno
notesstringno
overrideAssessmentCreate.overrideno
handover_department_idstring (uuid)no
expected_versionintegeryes
escalatebooleannoofficer raises an emergency escalation with this assessment

Assessment

NameTypeRequiredDescription
idstring (uuid)yes
ticket_idstring (uuid)yes
kind"initial" | "reassessment"yes
scale_version_idstring (uuid)yes
vital_set_idstring (uuid)no
computed_levelstring | nullyes
final_levelstringyes
overrideAssessment.override.option-1 | nullno
fired_rulesarray of stringno
discriminator_idsarray of stringno
presenting_complaintComplaintRefno
notesstring | nullno
assessed_bystringyes
assessed_atstring (date-time)yes
encounter_idstring | null (uuid)no

Handover

NameTypeRequiredDescription
department_idstring (uuid)yes
notestringno
expected_versionintegeryes
receiving_practitioner_idsarray of string (uuid)no1.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

NameTypeRequiredDescription
outcome"left_without_being_seen" | "transferred" | "referred" | "cancelled"yes
reasonstringyes
referral_idstring (uuid)norequired for referred: an OHN-27 referral of the same patient
destination_facility_idstring (uuid)norequired for transferred
expected_versionintegeryes

LinkPatient

NameTypeRequiredDescription
patient_idstring (uuid)yes
expected_versionintegeryes

TriageSummary

NameTypeRequiredDescription
ticketTicketyes
patientTriageSummary.patientno
vital_setsarray of VitalSetyes
assessmentsarray of Assessmentyes
signalsarray of Signalyes
preconsult_response_idsarray of string (uuid)no
historyarray of TriageSummary.history.itemno

Display

NameTypeRequiredDescription
idstring (uuid)yes
facility_idstring (uuid)yes
namestringyes
department_idsarray of string (uuid)yes
language"en" | "fr" | "en_fr"no
activebooleanyes
versionintegerno

DisplayWrite

NameTypeRequiredDescription
namestringyes
department_idsarray of string (uuid)yes
language"en" | "fr" | "en_fr"no
activebooleanno
expected_versionintegerno

DisplayFeed

NameTypeRequiredDescription
display_idstring (uuid)yes
generated_atstring (date-time)yes
callsarray of DisplayFeed.calls.itemyeslast 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)

NameTypeRequiredDescription
datestring (date)no
department_idstring (uuid)no
arrivalsintegerno
triagedintegerno
median_minutes_to_triagenumber | nullno
p90_minutes_to_triagenumber | nullno
median_minutes_to_cliniciannumber | nullno
p90_minutes_to_cliniciannumber | nullno
median_total_wait_minutesnumber | nullno
acuity_mixobjectno
lwbsintegerno
lwbs_ratenumber | nullno
no_showintegerno
target_breachesintegerno
target_breach_ratenumber | nullno
overridesintegerno

Report

NameTypeRequiredDescription
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
fromstring (date)yes
tostring (date)yes
facility_idstring (uuid)no
rowsarray of ReportRowyes
totalsReportRownoone row per combination of the requested dimensions; metric columns per report (module.md F009)
small_cell_suppressedbooleanno
dimensionsarray of "facility" | "department" | "date" | "shift" | "acuity" | "staff_role" | "time" | "protocol_version" | "destination" | "day" | "zone" | "hour" | …no

Page

NameTypeRequiredDescription
itemsarray of anyyes
next_cursorstring | nullno

ExportRequest

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

CheckInResult

NameTypeRequiredDescription
idstring (uuid)yes
ticket_numberstringyes<prefix>-<seq>, sequence per department per local day, e.g. E-014
facility_idstring (uuid)yes
department_idstring (uuid)yes
patient_idstring | null (uuid)no
health_idstring | nullnomasked except for roles with triage_assessment/triage_consultation
display_namestring | nullno
unidentifiedUnidentifiedPatient | nullno
arrival_sourcestringno
appointment_idstring | null (uuid)no
referral_idstring | 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_atstring (date-time)yes
triage_started_atstring | null (date-time)no
triaged_atstring | null (date-time)no
consultation_started_atstring | null (date-time)no
closed_atstring | null (date-time)no
acuityAcuityRef | nullno
priority_flagbooleanno
signalsarray of Signalno
call_countintegeryes
last_called_atstring | null (date-time)no
called_tostring | nullno
waiting_minutesintegerno
target_breachedbooleanno
reassessment_due_atstring | null (date-time)no
reassessment_overduebooleanno
handover_department_idstring | null (uuid)no
encounter_idstring | null (uuid)noOHN-09 triage encounter
preconsultCheckInResult.preconsultno
outcomestring | nullno
outcome_reasonstring | nullno
notify_opt_inbooleanno
versionintegeryes
claimed_bystring | nullnouser id holding the claim lock
claim_expires_atstring | null (date-time)no
open_escalation_idstring | null (uuid)no
identification_method"health_id" | "search" | "qr" | "access_card" | "unidentified"no
room_idstring | null (uuid)no
shift_idstring | null (uuid)no
sync_origin"online" | "offline"no
offline_numberstring | nullnoticket number printed offline before sync
emergencybooleannoemergency 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_idstring | null (uuid)no
assigned_clinicianstring | nullnouser id of the clinician the patient is handed to
handover_state"none" | "pending_ack" | "acknowledged" | "failed"no
handover_acknowledged_atstring | 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" | …nopayment 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_seqintegernooriginal check-in rank within the department and day; kept while payment is pending and used as the tie-break after acuity
first_lookCheckInResult.first_look.option-1 | nullno
queue_positioninteger | nullno1-based position in the nurse-ready queue; null while not eligible or once claimed/called/in service
source_systemstring | nullnoexternal triage system id when the assessment came in through the interop surface
bypassCheckInResult.bypass.option-1 | nullnowho authorized the emergency bypass (audited)
care_team_accessCareTeamAccess | nullno1.3.7: null before any handover
public_tokenstringnoreturned ONCE at check-in; 128-bit, stored hashed
qr_payloadstringnoURL /p/triage/ticket?t=<public_token>
safety_screen_definition_idstring | null (uuid)no

ClaimRequest

NameTypeRequiredDescription
expected_versionintegeryes
forcebooleannotriage_lead only: take over another user's claim (audited)

Recall

NameTypeRequiredDescription
expected_versionintegeryes
roomstringno
room_idstring (uuid)no
reasonstringno

Escalation

NameTypeRequiredDescription
idstring (uuid)yes
ticket_idstring (uuid)yes
facility_idstring (uuid)no
department_idstring (uuid)no
trigger"scale_level" | "scale_rule" | "preconsult_flag" | "staff" | "danger_screen" | "emergency_bypass"yes
rule_idstring | nullno
levelstring | nullno
scale_version_idstring | null (uuid)noprotocol_version dimension
state"open" | "acknowledged" | "handed_off" | "cancelled"yes
raised_atstring (date-time)yes
raised_bystringno
notestring | nullno
required_ack_rolesarray of "triage_officer" | "clinician" | "triage_lead"yes
ack_due_atstring (date-time)no
acknowledgementsarray of Escalation.acknowledgements.itemyes
handoffEscalation.handoff.option-1 | nullno
unacknowledged_alertedbooleanno
versionintegerno

EscalationCreate

NameTypeRequiredDescription
notestringyes
expected_versionintegeryesticket version

EscalationHandoff

NameTypeRequiredDescription
to_department_idstring (uuid)yes
expected_versionintegeryes

PublicTicketStatus

NameTypeRequiredDescription
ticket_numberstringyes
facility_namestringno
department_nameI18nTextno
status"waiting" | "called" | "being_seen" | "finished" | "closed"yes
people_aheadinteger | nullnoonly in the triage stage; null after triage (acuity order must not be inferable)
called_tostring | nullno
updated_atstring (date-time)yes

SelfCheckIn

NameTypeRequiredDescription
facility_idstring (uuid)yes
department_idstring (uuid)yes
identificationSelfCheckIn.identificationyes
language"en" | "fr"no
notify_opt_inbooleanno

AccessCard

NameTypeRequiredDescription
idstring (uuid)yes
card_numberstringyesprinted number + QR; random, not derived from the Health ID
patient_idstring (uuid)yes
facility_idstring (uuid)yes
state"active" | "revoked"yes
issued_atstring (date-time)yes
revoked_reasonstring | nullno

AccessCardIssue

NameTypeRequiredDescription
patient_idstring (uuid)yes
replaces_card_idstring (uuid)no

Room

NameTypeRequiredDescription
idstring (uuid)yes
department_idstring (uuid)yes
namestringyes
kind"triage" | "consultation" | "resuscitation" | "waiting"yes
capacityintegeryes
activebooleanyes
versionintegerno

RoomWrite

NameTypeRequiredDescription
department_idstring (uuid)yes
namestringyes
kind"triage" | "consultation" | "resuscitation" | "waiting"yes
capacityintegeryes
activebooleanno
expected_versionintegerno

Shift

NameTypeRequiredDescription
idstring (uuid)yes
facility_idstring (uuid)yes
department_idstring | null (uuid)no
namestringyes
starts_atstring (date-time)yes
ends_atstring (date-time)yes
requiredobjectnorole -> minimum staff (for shift_coverage)
assignmentsarray of Shift.assignments.itemyes
versionintegerno

ShiftWrite

NameTypeRequiredDescription
department_idstring (uuid)no
namestringyes
starts_atstring (date-time)yes
ends_atstring (date-time)yes
requiredobjectno
assignmentsarray of ShiftWrite.assignments.itemno
expected_versionintegerno

FacilitySettings

NameTypeRequiredDescription
facility_idstring (uuid)yes
claim_ttl_minutesintegeryes
no_show_reinstate_minutesintegeryes
escalation_ack_within_secondsintegeryesoperational acknowledgement window set by the facility, not a clinical threshold
escalation_ack_rolesarray of "triage_officer" | "clinician" | "triage_lead"no
missing_vital_reasonsarray of FacilitySettings.missing_vital_reasons.itemyes
public_status_enabledbooleanno
public_token_ttl_hoursintegerno
self_check_in_enabledbooleanno
offline_allowedbooleanno
operating_hoursarray of FacilitySettings.operating_hours.itemno
timezonestringno
versionintegeryes
care_team_relationship_hoursintegerno1.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

NameTypeRequiredDescription
claim_ttl_minutesintegeryes
no_show_reinstate_minutesintegeryes
escalation_ack_within_secondsintegeryesoperational acknowledgement window set by the facility, not a clinical threshold
escalation_ack_rolesarray of "triage_officer" | "clinician" | "triage_lead"no
missing_vital_reasonsarray of FacilitySettingsWrite.missing_vital_reasons.itemyes
public_status_enabledbooleanno
public_token_ttl_hoursintegerno
self_check_in_enabledbooleanno
offline_allowedbooleanno
operating_hoursarray of FacilitySettingsWrite.operating_hours.itemno
timezonestringno
expected_versionintegeryes
care_team_relationship_hoursintegerno1.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

NameTypeRequiredDescription
device_idstringyes
facility_idstring (uuid)yes
operationsarray of SyncBatch.operations.itemyes

SyncResult

NameTypeRequiredDescription
device_idstringyes
resultsarray of SyncResult.results.itemyes

SyncConflict

NameTypeRequiredDescription
idstring (uuid)yes
device_idstringyes
client_op_idstring (uuid)yes
op"check_in" | "call" | "missed" | "start_triage" | "vitals" | "assessment" | "reassessment" | "outcome" | "link_patient"yes
ticket_idstring | null (uuid)yes
reason"version_mismatch" | "invalid_transition_now" | "duplicate_patient_ticket" | "assessed_by_other" | "closed_on_server"yes
client_payloadobjectno
server_snapshotobjectno
state"open" | "resolved"yes
resolution"keep_server" | "apply_client" | "apply_as_reassessment" | "discard" | nullno
resolved_bystring | nullno
detected_atstring (date-time)yes
resolved_atstring | null (date-time)no

SyncResolve

NameTypeRequiredDescription
resolution"keep_server" | "apply_client" | "apply_as_reassessment" | "discard"yes
reasonstringyes

SyncStatus

NameTypeRequiredDescription
device_idstringyes
last_batch_atstring | null (date-time)yes
appliedintegerno
open_conflictsintegeryes

AuditEntry

NameTypeRequiredDescription
seqintegeryes
atstring (date-time)yes
actorstringyes
actor_rolestringyes
facility_idstring (uuid)no
actionstringyese.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_idstring | nullno
outcome"allowed" | "denied" | "failed"yes
purposestringno
break_glass_idstring | nullno
correlation_idstringno
hashstringyesSHA-256 over prev_hash + canonical entry
prev_hashstringyes

Assign

NameTypeRequiredDescription
room_idstring (uuid)no
clinician_user_idstringno
expected_versionintegeryes

PaymentPolicy

NameTypeRequiredDescription
facility_idstring (uuid)yes
mode"none" | "pay_before_nurse"yesowner decision 2026-11-29: default none; a facility opts in to pay_before_nurse
service_codestring | nullnofacility tariff/service catalogue code of the consultation charge (from the billing system; no fixed charge in OHN)
bypass_rolesarray of "triage_officer" | "triage_lead" | "emergency_clinician" | "cashier"noowner decision 2026-11-29: default all four; a facility may narrow it
remote_payment_allowedbooleanno
revisionintegeryes
state"draft" | "active" | "retired"yes
approval_refstring | nullno
signed_bystring | nullno
signed_atstring | null (date-time)no
versionintegerno

PaymentPolicyWrite

NameTypeRequiredDescription
mode"none" | "pay_before_nurse"yes
service_codestringno
bypass_rolesarray of "triage_officer" | "triage_lead" | "emergency_clinician" | "cashier"yes
remote_payment_allowedbooleanno
approval_refstringyes
expected_versionintegeryes

FirstLook

NameTypeRequiredDescription
outcome"routine" | "emergency"yes
notestringno
expected_versionintegeryes

FinancialState

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

NameTypeRequiredDescription
expected_versionintegeryes
payer"self" | "insurer" | "employer" | "other"no

PaymentVerification

NameTypeRequiredDescription
facility_idstring (uuid)yes
ticket_idstring (uuid)yes
invoice_refstringyes
finance_event_idstringyesidempotency 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

NameTypeRequiredDescription
ticket_idstring (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_positioninteger | nullno

EmergencyBypass

NameTypeRequiredDescription
reasonstringyes
destination_department_idstring (uuid)nooptional since 1.3.3; omitted means the ticket's own department
expected_versionintegeryes

DeferredCharges

NameTypeRequiredDescription
invoice_refstringno
notestringno
expected_versionintegeryes

PaymentPendingEntry

NameTypeRequiredDescription
ticket_idstring (uuid)yes
ticket_numberstringyes
arrival_seqintegeryes
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_minutesintegeryes
first_lookPaymentPendingEntry.first_look.option-1 | nullno
display_namestring | nullnoreception and cashier roles only
versionintegeryesthe ticket's version, for expected_version on billing-intent, deferred-charges and emergency-bypass (1.3.3)
department_idstring (uuid)yesthe ticket's department (1.3.3)

QueueRevision

NameTypeRequiredDescription
revisionintegeryes
atstring (date-time)yes
trigger"payment_verified" | "emergency_bypass" | "claimed" | "called" | "reassessment" | "no_show" | "cancelled" | "capacity_changed"yes
changesarray of QueueRevision.changes.itemyes

ExternalSystem

NameTypeRequiredDescription
idstring (uuid)yes
namestringyes
client_idstringyesplatform-registered OAuth client (role external_triage_system)
facility_idsarray of string (uuid)no
state"active" | "suspended"yes
acuity_code_mapobjectyesexternal acuity code -> level code of the active approved scale; unmapped codes are stored as external_unmapped and never assigned
versionintegerno

ExternalSystemWrite

NameTypeRequiredDescription
namestringyes
client_idstringyes
facility_idsarray of string (uuid)yes
acuity_code_mapobjectyes
state"active" | "suspended"no
expected_versionintegerno

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

NameTypeRequiredDescription
resourceType"Bundle"yes
type"collection" | "transaction"yes
identifierobjectno
entryarray of objectyes

ExternalIntakeResult

NameTypeRequiredDescription
outcome"created" | "updated" | "duplicate"yes
ticket_idstring (uuid)yes
assessment_idstring | null (uuid)no
acuity_mapping"mapped" | "external_unmapped" | "none"no
escalation_idstring | null (uuid)no
warningsarray of stringno

TriageHistoryItem

NameTypeRequiredDescription
ticket_idstring (uuid)yes
facility_idstring (uuid)yes
department_idstring (uuid)yes
arrived_atstring (date-time)yes
statestringyes
final_levelstring | nullno
scale_version_idstring | null (uuid)no
encounter_idstring | null (uuid)no
vital_set_idsarray of string (uuid)no
preconsult_document_idsarray of string (uuid)no
source_systemstring | nullno
synthetic_demobooleanno

PublicPaymentStatus

NameTypeRequiredDescription
ticket_numberstringyes
status"not_applicable" | "payment_required" | "payment_pending" | "verified_paid" | "emergency_care"yes
invoice_refstring | nullno
amount_due_minorinteger | nullno
currencystring | nullno
cashier_instructionI18nText | nullno
receipt_refstring | nullnoonly once the billing system verified full settlement
estimated_queue_position_when_eligibleinteger | nullno
updated_atstring (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.

NameTypeRequiredDescription
idstring (uuid)yes
ticket_numberstringyes<prefix>-<seq>, sequence per department per local day, e.g. E-014
facility_idstring (uuid)yes
department_idstring (uuid)yes
patient_idstring | 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" | …yespayment 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
versionintegeryes

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.

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

TariffEntry

NameTypeRequiredDescription
service_codestringyesthe billing system's service code, as in PaymentPolicy.service_code
labelI18nTextno
amount_minorintegeryesprice in minor units of currency
currencystringyesISO 4217
effective_fromstring (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.

NameTypeRequiredDescription
facility_idstring (uuid)yes
versionintegeryes
tariffsarray of TariffEntryyesall entries, past and future, ordered by service_code then effective_from
updated_atstring | null (date-time)no
updated_bystring | nullno
approval_refstring | nullno

TariffScheduleWrite

NameTypeRequiredDescription
expected_versionintegeryes0 for the first write
tariffsarray of TariffEntryyesthe 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_refstringyesfacility finance approval reference

ManualPaymentConfirmation

NameTypeRequiredDescription
receipt_refstringyesthe facility's own receipt number
amount_minorintegeryesmust equal the visit's charge; for an unpriced visit it becomes the charge
currencystringyes
method"cash" | "mobile_money" | "card" | "other"yes
notestringnorequired (5+ characters, the basis of the amount) when the visit is unpriced
expected_versionintegeryes

CareTeamAccess

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

NameTypeRequiredDescription
state"pending" | "active" | "failed" | "ended"yespending: OHN-16 registration queued (outbox) or the patient is not yet linked; active: at least one assertion registered; failed: OHN-16 refused or retries ran out (the handover itself stands); ended: revoked at close or re-handover
department_idstring (uuid)yesthe receiving department whose clinicians hold the relationship
clinician_countintegeryesclinicians with a registered assertion
expires_atstring | null (date-time)novalid_from + care_team_relationship_hours of the first registration
ended_reason"completed" | "left_without_being_seen" | "transferred" | "referred" | "cancelled" | "re_handover" | nullno

get-api-ohn-v1-triage-audit-verify.response-200 defined inline

NameTypeRequiredDescription
okbooleanyes
checkedintegerno
first_broken_seqinteger | nullno

get-api-ohn-v1-triage-tariffs-effective.response-200 defined inline

NameTypeRequiredDescription
facility_idstring (uuid)yes
service_codestringyes
amount_minorintegeryes
currencystringyes
effective_fromstring (date-time)yes
schedule_versionintegeryes

ScaleRule.applies_to defined inline

NameTypeRequiredDescription
age_min_monthsintegerno
age_max_monthsintegerno
department_kindsarray of "emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | …no

ScaleRule.score_components.item defined inline

NameTypeRequiredDescription
inputstringyes
bandsarray of ScaleRule.score_components.item.bands.itemyes

ScaleRule.score_components.item.bands.item defined inline

NameTypeRequiredDescription
minnumberno
maxnumberno
equalsanyno
pointsintegeryes

ScaleRule.level_by_score.item defined inline

NameTypeRequiredDescription
minintegeryes
maxintegerno
levelstringyes

Discriminator.applies_to defined inline

NameTypeRequiredDescription
age_min_monthsintegerno
age_max_monthsintegerno
department_kindsarray of "emergency" | "opd_general" | "eye" | "dental" | "maternity" | "paediatrics" | "cardiology" | "diabetes" | "ent" | "dermatology" | "mental_health" | "surgery" | …no

CheckIn.identification defined inline

NameTypeRequiredDescription
method"health_id" | "search" | "qr" | "access_card"yes
valuestringno
date_of_birthstring (date)nosecond 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

NameTypeRequiredDescription
reasonstringyes

Ticket.preconsult defined inline

NameTypeRequiredDescription
state"none_configured" | "not_started" | "in_progress" | "submitted" | "unknown"yes
response_idsarray of string (uuid)no
red_flag_countintegerno

Ticket.first_look.option-1 defined inline

NameTypeRequiredDescription
atstring (date-time)yes
bystringyes
outcome"routine" | "emergency"yes

Ticket.bypass.option-1 defined inline

NameTypeRequiredDescription
atstring (date-time)yes
bystringyes
by_role"triage_officer" | "triage_lead" | "emergency_clinician" | "cashier"yes
reasonstringyes
escalation_idstring | null (uuid)no

QueueView.scale.option-1 defined inline

NameTypeRequiredDescription
idstring (uuid)yes
codestringyes
versionintegeryes
synthetic_demobooleanyes

Vitals.gcs defined inline

NameTypeRequiredDescription
eyeintegeryes
verbalintegeryes
motorintegeryes
totalintegerno

Vitals.paediatric defined inline

NameTypeRequiredDescription
capillary_refill_snumberno
muac_mmintegerno
length_cmnumberno
head_circumference_cmnumberno
weight_for_age_notestringno

VitalsCreate.not_taken.item defined inline

NameTypeRequiredDescription
fieldstringyes
reason_codestringyes
notestringno

VitalSet.not_taken.item defined inline

NameTypeRequiredDescription
fieldstringyes
reason_codestringyes
notestringno

Evaluation.fired_rules.item defined inline

NameTypeRequiredDescription
rule_idstringyes
levelstringyes
scoreintegerno
explanationI18nTextno

AssessmentCreate.override defined inline

NameTypeRequiredDescription
levelstringyes
reasonstringyesrequired 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

NameTypeRequiredDescription
fromstring | nullyes
tostringyes
reasonstringyes

TriageSummary.patient defined inline

NameTypeRequiredDescription
patient_idstring (uuid)no
health_idstringno
display_namestringno
sexstringno
age_yearsintegerno

TriageSummary.history.item defined inline

NameTypeRequiredDescription
atstring (date-time)yes
fromstring | nullyes
tostringyes
bystringyes
reasonstring | nullno

DisplayFeed.calls.item defined inline

NameTypeRequiredDescription
ticket_numberstringyes
roomstring | nullyes
called_atstring (date-time)yes
department_codestringyes
department_nameI18nTextno

CheckInResult.preconsult defined inline

NameTypeRequiredDescription
state"none_configured" | "not_started" | "in_progress" | "submitted" | "unknown"yes
response_idsarray of string (uuid)no
red_flag_countintegerno

CheckInResult.first_look.option-1 defined inline

NameTypeRequiredDescription
atstring (date-time)yes
bystringyes
outcome"routine" | "emergency"yes

CheckInResult.bypass.option-1 defined inline

NameTypeRequiredDescription
atstring (date-time)yes
bystringyes
by_role"triage_officer" | "triage_lead" | "emergency_clinician" | "cashier"yes
reasonstringyes
escalation_idstring | null (uuid)no

Escalation.acknowledgements.item defined inline

NameTypeRequiredDescription
bystringyes
rolestringyes
atstring (date-time)yes

Escalation.handoff.option-1 defined inline

NameTypeRequiredDescription
to_department_idstring (uuid)yes
accepted_bystringyes
atstring (date-time)yes
latency_secondsintegeryeshandoff.at - raised_at

SelfCheckIn.identification defined inline

NameTypeRequiredDescription
method"health_id" | "search" | "qr" | "access_card"yes
valuestringno
date_of_birthstring (date)nosecond factor for health_id at self check-in

Shift.assignments.item defined inline

NameTypeRequiredDescription
user_idstringyes
role"receptionist" | "triage_officer" | "triage_lead" | "clinician"yes
room_idstring | null (uuid)no

ShiftWrite.assignments.item defined inline

NameTypeRequiredDescription
user_idstringyes
role"receptionist" | "triage_officer" | "triage_lead" | "clinician"yes
room_idstring (uuid)no

FacilitySettings.missing_vital_reasons.item defined inline

NameTypeRequiredDescription
codestringyes
labelI18nTextyes

FacilitySettings.operating_hours.item defined inline

NameTypeRequiredDescription
day"mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun"yes
openstringyes
closestringyes

FacilitySettingsWrite.missing_vital_reasons.item defined inline

NameTypeRequiredDescription
codestringyes
labelI18nTextyes

FacilitySettingsWrite.operating_hours.item defined inline

NameTypeRequiredDescription
day"mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun"yes
openstringyes
closestringyes

SyncBatch.operations.item defined inline

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

NameTypeRequiredDescription
client_op_idstring (uuid)yes
outcome"applied" | "duplicate" | "conflict" | "rejected"yes
ticket_idstring | null (uuid)no
conflict_idstring | null (uuid)no
errorstring | nullnoper-operation error code, e.g. performer_mismatch, performer_not_on_shift, forbidden, validation_failed, sync_conflict

PaymentPendingEntry.first_look.option-1 defined inline

NameTypeRequiredDescription
atstring (date-time)yes
bystringyes
outcome"routine" | "emergency"yes

QueueRevision.changes.item defined inline

NameTypeRequiredDescription
ticket_idstring (uuid)yes
frominteger | nullyes
tointeger | nullyes