← All contracts
OHN-27 Referral and Care Transition Exchange
- Version
- 1.0.1
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-27/api/openapi.json- Servers
https://opeshealthnetwork.com/api/ohn/v1/referral-exchange
- Authentication
bearer: http bearer
Download the contract (JSON)
Contracts are written in English.
Server paths are under /api/ohn/v1/referral-exchange. Default deny: role AND purpose must match. Inventory paths OHN-27-API-001..003 are mapped to this disjoint prefix (see ADR-0001). A referral is visible only to its sending and receiving facility (404 otherwise). Behaviour reconciled with the TypeScript reference and the Java service (docs/program/java/ohn-27-contract-changes.md). Tokens come from the platform gateway (ES256, audience ohn-27); the TypeScript-only synthetic-token endpoint is not part of this contract.
Operations
Other operations
GET/referralsReferral worklist: inbox, outbox, overdue
Operation ID: listReferrals
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
box | query | "inbox" | "outbox" | no | |
state | query | string | no | |
priority | query | string | no | |
overdue | query | "true" | no | |
patient_ref | query | string (uuid) | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/referralsCreate a draft referral from the acting facility (F001)
Operation ID: createReferral
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/referrals/{id}Referral with escalations; visible to the sending and receiving facility only
Operation ID: getReferral
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/referrals/{id}/timelineStatus timeline from workflow history
Operation ID: referralTimeline
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/referrals/{id}/submitSend the referral (W001); sets the response deadline when one is configured
Operation ID: submitReferral
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/referrals/{id}/acknowledgeReceiving facility: received, accepted, declined or completed (F002)
Operation ID: acknowledgeReferral
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/referrals/{id}/cancellationCancellation steps request, notify, finalize (W003)
Operation ID: cancelReferral
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/referrals/{id}/escalateEscalate an overdue unanswered referral (append-only levels)
Operation ID: escalateReferral
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/transfersCare transitions of the acting facility
Operation ID: listTransfers
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/transfersCreate a care transition handover (F003, W002)
Operation ID: createTransfer
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/transfers/{id}Transfer with its history
Operation ID: getTransfer
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/transfers/{id}/transitionsConfirm, deliver or acknowledge a transfer; acknowledger differs from creator
Operation ID: stepTransfer
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/destinationsReferral directory: active OHN-05 sites in the jurisdiction (own site flagged); configured=false without a live registry
Operation ID: listDestinations
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/code-lists/{list}Controlled list (priority, requested_service)
Operation ID: getCodeList
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
list | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/code-lists/{list}Add or change a code list entry
Operation ID: upsertCodeEntry
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
list | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/slaResponse deadlines per priority
Operation ID: getSla
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/slaSet a response deadline (approval reference required)
Operation ID: setSla
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/maintenance/drain-outboxReport pending outbox events (the platform relay publishes them)
Operation ID: drainOutbox
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/report-catalogAvailable reports
Operation ID: reportCatalog
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/reports/{reportId}Run report R001..R003
Operation ID: runReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | string | yes | |
facility | query | string (uuid) | no | |
priority | query | string | no | |
status | query | string | no | R002 only: `overdue` keeps the overdue rows; R003: a transfer state |
jurisdiction | query | string (uuid) | no | Another jurisdiction yields no_authorized_data, never its data |
country | query | string (uuid) | no | |
period_from | query | string | no | |
period_to | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
POST/reports/{reportId}/exportCreate a signed single-use report export
Operation ID: exportReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | |
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
409 | Version conflict, illegal transition or idempotency key reused with a different payload | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/report-exports/{token}Download a report export once
Operation ID: downloadReportExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
token | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | The export, once (text/csv or application/pdf) | text/csv: string (binary)
application/pdf: string (binary)
|
400 | Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-]) | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
410 | export_expired (5 minutes) or export_consumed (single use) | — |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
500 | export_integrity_failed (the stored content no longer matches its HMAC tag) | — |
503 | Dependency unavailable (fail closed) | |
GET/patients/{id}/patient-viewThe patient's own referrals (OHN-31 patient chart); own record only
Operation ID: patientReferralView
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | The patient's own OHN-03 id (must equal the token subject) |
Responses
| Code | Description | Media type |
|---|
200 | Success | |
401 | Unauthenticated (no/invalid token, or claims that are not uuids) | |
403 | Denied by policy (role AND purpose), wrong facility side, separation of duties | |
404 | Not found / not disclosed (also: any route outside this contract, once authenticated) | |
422 | Domain validation failed (details: field -> code), unconfigured code list, unmet precondition | |
429 | Rate limited | |
503 | Dependency unavailable (fail closed) | |
GET/health/ohn-27Public liveness; reports how each dependency is wired
Operation ID: health
Responses
| Code | Description | Media type |
|---|
200 | Database reachable | |
503 | Database unreachable | — |
Schemas
ReferralCommand
| Name | Type | Required | Description |
|---|
patient_ref | string (uuid) | yes | |
source_facility | string (uuid) | yes | |
destination_facility | string (uuid) | yes | |
referral_reason | string | yes | Trimmed before the length check |
priority | string | yes | A code of the jurisdiction's active `priority` list |
relevant_summary_ref | string (uuid) | yes | |
requested_service | string | yes | A code of the jurisdiction's active `requested_service` list |
SubmitCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
AcknowledgeCommand
accepted and declined need receiving_clinician and response_notes (422 details `required_for_decision`); declined takes no expected_date (`not_for_decline`).
| Name | Type | Required | Description |
|---|
action | "received" | "accepted" | "declined" | "completed" | yes | |
expected_version | integer | yes | |
receiving_clinician | string (uuid) | no | |
response_notes | string | no | |
expected_date | string | no | A real calendar date, YYYY-MM-DD |
CancelCommand
| Name | Type | Required | Description |
|---|
step | "request" | "notify" | "finalize" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
EscalateCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
TransferCommand
| Name | Type | Required | Description |
|---|
referral_id | string (uuid) | no | |
patient_ref | string (uuid) | yes | |
source_encounter | string (uuid) | yes | |
handover_summary | string (uuid) | yes | |
recipient_org | string (uuid) | yes | |
handover_time | string (date-time) | yes | |
TransferStepCommand
| Name | Type | Required | Description |
|---|
to_state | "recipient_confirmed" | "document_delivered" | "receipt_acknowledged" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
CodeListEntryCommand
| Name | Type | Required | Description |
|---|
code | string | yes | |
label | string | yes | |
active | boolean | no | |
SlaCommand
| Name | Type | Required | Description |
|---|
priority | string | yes | |
response_minutes | integer | yes | |
approval_reference | string | yes | |
Problem
application/problem+json carrying the legacy fields error/message/details; details are `{field: zod-issue-code | custom message}` for 422.
| Name | Type | Required | Description |
|---|
type | string | no | |
title | string | no | |
status | integer | no | |
detail | string | no | |
error | string | yes | |
message | string | no | |
trace_id | string | no | |
details | object | no | |
Receipt
| Name | Type | Required | Description |
|---|
receipt_id | string (uuid) | yes | |
committed_at | string (date-time) | yes | |
aggregate_id | string | yes | |
version | integer | yes | |
status | "committed" | yes | |
Referral
| Name | Type | Required | Description |
|---|
id | string (uuid) | no | |
patient_ref | string (uuid) | no | |
source_facility | string (uuid) | no | |
destination_facility | string (uuid) | no | |
referral_reason | string | no | |
priority | string | no | |
relevant_summary_ref | string (uuid) | no | |
requested_service | string | no | |
state | "draft" | "submitted" | "received" | "accepted_or_declined" | "completed_or_cancelled" | no | |
outcome | "accepted" | "declined" | "completed" | "cancelled" | null | no | |
cancellation_state | "cancellation_requested" | "recipient_notified" | "cancelled" | null | no | |
cancellation_reason | string | null | no | |
receiving_clinician | string | null (uuid) | no | |
response_notes | string | null | no | |
expected_date | string | null | no | |
created_by | string (uuid) | no | |
submitted_at | string | null (date-time) | no | |
received_at | string | null (date-time) | no | |
first_response_at | string | null (date-time) | no | |
completed_at | string | null (date-time) | no | |
due_at | string | null (date-time) | no | |
overdue | boolean | no | |
escalation_count | integer | no | |
created_at | string (date-time) | no | |
version | integer | no | |
Transfer
| Name | Type | Required | Description |
|---|
id | string (uuid) | no | |
referral_id | string | null (uuid) | no | |
patient_ref | string (uuid) | no | |
source_encounter | string (uuid) | no | |
handover_summary | string (uuid) | no | |
source_org | string (uuid) | no | |
recipient_org | string (uuid) | no | |
handover_time | string (date-time) | no | |
state | "transfer_created" | "recipient_confirmed" | "document_delivered" | "receipt_acknowledged" | no | |
created_by | string (uuid) | no | |
confirmed_by | string | null (uuid) | no | |
delivery_ref | string | null | no | |
acknowledged_by | string | null (uuid) | no | |
acknowledged_at | string | null (date-time) | no | |
created_at | string (date-time) | no | |
version | integer | no | |
ReferralList
| Name | Type | Required | Description |
|---|
items | array of Referral | no | |
next_cursor | string | null | no | |
TransferList
| Name | Type | Required | Description |
|---|
items | array of Transfer | no | |
next_cursor | string | null | no | |
Destinations
configured=false (empty items) while no live OHN-05 registry is wired.
CodeList
| Name | Type | Required | Description |
|---|
list | "priority" | "requested_service" | no | |
configured | boolean | no | |
items | array of CodeList.items.item | no | |
DrainResult
The platform relay publishes events; this call never claims delivery (delivered is 0) and reports the pending count.
| Name | Type | Required | Description |
|---|
delivered | integer | no | |
pending | integer | no | |
Report
| Name | Type | Required | Description |
|---|
report_id | string | no | |
title | string | no | |
columns | array of string | no | |
rows | array of object | no | |
summary | object | no | |
state | "rendered" | "no_authorized_data" | no | |
generated_at | string (date-time) | no | |
next_cursor | string | null | no | |
ExportReceipt
| Name | Type | Required | Description |
|---|
export_id | string (uuid) | no | |
report_id | string | no | |
format | "csv" | "pdf" | no | |
rows | integer | no | |
expires_at | string (date-time) | no | |
single_use | true | no | |
download_path | string | no | |
receipt | Receipt | no | |
PatientView
Drafts and the receiving team's response notes are not included.
| Name | Type | Required | Description |
|---|
patient_ref | string (uuid) | no | |
as_of | string (date-time) | no | |
receipt_id | string (uuid) | no | |
items | array of PatientView.items.item | no | |
Health
| Name | Type | Required | Description |
|---|
status | string | no | |
module | string | no | |
dependencies | object | no | |
ExportCommand.filters defined inline
| Name | Type | Required | Description |
|---|
facility | string (uuid) | no | |
priority | string | no | |
status | string | no | |
jurisdiction | string (uuid) | no | |
country | string (uuid) | no | |
period_from | string | no | A real calendar date, YYYY-MM-DD |
period_to | string | no | A real calendar date, YYYY-MM-DD |
EscalationResult.escalation defined inline
| Name | Type | Required | Description |
|---|
level | integer | no | |
overdue_minutes | integer | no | |
ReferralDetail.escalations.item defined inline
| Name | Type | Required | Description |
|---|
level | integer | no | |
escalated_by | string (uuid) | no | |
reason | string | no | |
overdue_minutes | integer | no | |
at | string (date-time) | no | |
Timeline.items.item defined inline
| Name | Type | Required | Description |
|---|
workflow_id | "OHN-27-W001" | "OHN-27-W002" | "OHN-27-W003" | no | |
from_state | string | null | no | |
to_state | string | no | |
version | integer | no | |
actor_id | string (uuid) | no | |
reason | string | no | |
at | string (date-time) | no | |
TransferDetail.history.item defined inline
| Name | Type | Required | Description |
|---|
from_state | string | null | no | |
to_state | string | no | |
actor_id | string (uuid) | no | |
reason | string | no | |
at | string (date-time) | no | |
Destinations.items.item defined inline
| Name | Type | Required | Description |
|---|
id | string | no | |
name | string | no | |
site_type | string | null | no | |
own | boolean | no | |
CodeList.items.item defined inline
| Name | Type | Required | Description |
|---|
code | string | no | |
label | string | no | |
active | boolean | no | |
CodeListWriteResult.item defined inline
| Name | Type | Required | Description |
|---|
code | string | no | |
label | string | no | |
active | boolean | no | |
SlaList.items.item defined inline
| Name | Type | Required | Description |
|---|
priority | string | no | |
response_minutes | integer | no | |
approval_reference | string | no | |
SlaWriteResult.item defined inline
| Name | Type | Required | Description |
|---|
priority | string | no | |
response_minutes | integer | no | |
approval_reference | string | no | |
ReportCatalog.reports.item defined inline
| Name | Type | Required | Description |
|---|
id | "OHN-27-R001" | "OHN-27-R002" | "OHN-27-R003" | no | |
title | string | no | |
PatientView.items.item defined inline
| Name | Type | Required | Description |
|---|
id | string (uuid) | no | |
source_facility | string (uuid) | no | |
destination_facility | string (uuid) | no | |
referral_reason | string | no | |
requested_service | string | no | |
priority | string | no | |
state | string | no | |
outcome | string | null | no | |
expected_date | string | null | no | |
submitted_at | string | null (date-time) | no | |
completed_at | string | null (date-time) | no | |
created_at | string (date-time) | no | |