← Tous les contrats
OHN-27 Referral and Care Transition Exchange
- Version
- 1.0.1
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-27/api/openapi.json- Serveurs
https://opeshealthnetwork.com/api/ohn/v1/referral-exchange
- Authentification
bearer: http bearer
Télécharger le contrat (JSON)
Les contrats sont rédigés en anglais.
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.
Opérations
Autres opérations
GET/referralsReferral worklist: inbox, outbox, overdue
Identifiant d’opération: listReferrals
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
box | query | "inbox" | "outbox" | non | |
state | query | string | non | |
priority | query | string | non | |
overdue | query | "true" | non | |
patient_ref | query | string (uuid) | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: createReferral
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getReferral
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: referralTimeline
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: submitReferral
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: acknowledgeReferral
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: cancelReferral
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: escalateReferral
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listTransfers
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: createTransfer
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getTransfer
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: stepTransfer
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listDestinations
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: getCodeList
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
list | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: upsertCodeEntry
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
list | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getSla
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: setSla
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: drainOutbox
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: reportCatalog
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: runReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | string | oui | |
facility | query | string (uuid) | non | |
priority | query | string | non | |
status | query | string | non | R002 only: `overdue` keeps the overdue rows; R003: a transfer state |
jurisdiction | query | string (uuid) | non | Another jurisdiction yields no_authorized_data, never its data |
country | query | string (uuid) | non | |
period_from | query | string | non | |
period_to | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: exportReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | string | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: downloadReportExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
token | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: patientReferralView
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | The patient's own OHN-03 id (must equal the token subject) |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: health
Réponses
| Code | Description | Type de média |
|---|
200 | Database reachable | |
503 | Database unreachable | — |
Schémas
ReferralCommand
| Nom | Type | Obligatoire | Description |
|---|
patient_ref | string (uuid) | oui | |
source_facility | string (uuid) | oui | |
destination_facility | string (uuid) | oui | |
referral_reason | string | oui | Trimmed before the length check |
priority | string | oui | A code of the jurisdiction's active `priority` list |
relevant_summary_ref | string (uuid) | oui | |
requested_service | string | oui | A code of the jurisdiction's active `requested_service` list |
SubmitCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
AcknowledgeCommand
accepted and declined need receiving_clinician and response_notes (422 details `required_for_decision`); declined takes no expected_date (`not_for_decline`).
| Nom | Type | Obligatoire | Description |
|---|
action | "received" | "accepted" | "declined" | "completed" | oui | |
expected_version | integer | oui | |
receiving_clinician | string (uuid) | non | |
response_notes | string | non | |
expected_date | string | non | A real calendar date, YYYY-MM-DD |
CancelCommand
| Nom | Type | Obligatoire | Description |
|---|
step | "request" | "notify" | "finalize" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
EscalateCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
TransferCommand
| Nom | Type | Obligatoire | Description |
|---|
referral_id | string (uuid) | non | |
patient_ref | string (uuid) | oui | |
source_encounter | string (uuid) | oui | |
handover_summary | string (uuid) | oui | |
recipient_org | string (uuid) | oui | |
handover_time | string (date-time) | oui | |
TransferStepCommand
| Nom | Type | Obligatoire | Description |
|---|
to_state | "recipient_confirmed" | "document_delivered" | "receipt_acknowledged" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
CodeListEntryCommand
| Nom | Type | Obligatoire | Description |
|---|
code | string | oui | |
label | string | oui | |
active | boolean | non | |
SlaCommand
| Nom | Type | Obligatoire | Description |
|---|
priority | string | oui | |
response_minutes | integer | oui | |
approval_reference | string | oui | |
Problem
application/problem+json carrying the legacy fields error/message/details; details are `{field: zod-issue-code | custom message}` for 422.
| Nom | Type | Obligatoire | Description |
|---|
type | string | non | |
title | string | non | |
status | integer | non | |
detail | string | non | |
error | string | oui | |
message | string | non | |
trace_id | string | non | |
details | object | non | |
Receipt
| Nom | Type | Obligatoire | Description |
|---|
receipt_id | string (uuid) | oui | |
committed_at | string (date-time) | oui | |
aggregate_id | string | oui | |
version | integer | oui | |
status | "committed" | oui | |
Referral
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
patient_ref | string (uuid) | non | |
source_facility | string (uuid) | non | |
destination_facility | string (uuid) | non | |
referral_reason | string | non | |
priority | string | non | |
relevant_summary_ref | string (uuid) | non | |
requested_service | string | non | |
state | "draft" | "submitted" | "received" | "accepted_or_declined" | "completed_or_cancelled" | non | |
outcome | "accepted" | "declined" | "completed" | "cancelled" | null | non | |
cancellation_state | "cancellation_requested" | "recipient_notified" | "cancelled" | null | non | |
cancellation_reason | string | null | non | |
receiving_clinician | string | null (uuid) | non | |
response_notes | string | null | non | |
expected_date | string | null | non | |
created_by | string (uuid) | non | |
submitted_at | string | null (date-time) | non | |
received_at | string | null (date-time) | non | |
first_response_at | string | null (date-time) | non | |
completed_at | string | null (date-time) | non | |
due_at | string | null (date-time) | non | |
overdue | boolean | non | |
escalation_count | integer | non | |
created_at | string (date-time) | non | |
version | integer | non | |
Transfer
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
referral_id | string | null (uuid) | non | |
patient_ref | string (uuid) | non | |
source_encounter | string (uuid) | non | |
handover_summary | string (uuid) | non | |
source_org | string (uuid) | non | |
recipient_org | string (uuid) | non | |
handover_time | string (date-time) | non | |
state | "transfer_created" | "recipient_confirmed" | "document_delivered" | "receipt_acknowledged" | non | |
created_by | string (uuid) | non | |
confirmed_by | string | null (uuid) | non | |
delivery_ref | string | null | non | |
acknowledged_by | string | null (uuid) | non | |
acknowledged_at | string | null (date-time) | non | |
created_at | string (date-time) | non | |
version | integer | non | |
ReferralList
| Nom | Type | Obligatoire | Description |
|---|
items | array of Referral | non | |
next_cursor | string | null | non | |
TransferList
| Nom | Type | Obligatoire | Description |
|---|
items | array of Transfer | non | |
next_cursor | string | null | non | |
Destinations
configured=false (empty items) while no live OHN-05 registry is wired.
CodeList
| Nom | Type | Obligatoire | Description |
|---|
list | "priority" | "requested_service" | non | |
configured | boolean | non | |
items | array of CodeList.items.item | non | |
DrainResult
The platform relay publishes events; this call never claims delivery (delivered is 0) and reports the pending count.
| Nom | Type | Obligatoire | Description |
|---|
delivered | integer | non | |
pending | integer | non | |
Report
| Nom | Type | Obligatoire | Description |
|---|
report_id | string | non | |
title | string | non | |
columns | array of string | non | |
rows | array of object | non | |
summary | object | non | |
state | "rendered" | "no_authorized_data" | non | |
generated_at | string (date-time) | non | |
next_cursor | string | null | non | |
ExportReceipt
| Nom | Type | Obligatoire | Description |
|---|
export_id | string (uuid) | non | |
report_id | string | non | |
format | "csv" | "pdf" | non | |
rows | integer | non | |
expires_at | string (date-time) | non | |
single_use | true | non | |
download_path | string | non | |
receipt | Receipt | non | |
PatientView
Drafts and the receiving team's response notes are not included.
| Nom | Type | Obligatoire | Description |
|---|
patient_ref | string (uuid) | non | |
as_of | string (date-time) | non | |
receipt_id | string (uuid) | non | |
items | array of PatientView.items.item | non | |
Health
| Nom | Type | Obligatoire | Description |
|---|
status | string | non | |
module | string | non | |
dependencies | object | non | |
ExportCommand.filters défini sur place
| Nom | Type | Obligatoire | Description |
|---|
facility | string (uuid) | non | |
priority | string | non | |
status | string | non | |
jurisdiction | string (uuid) | non | |
country | string (uuid) | non | |
period_from | string | non | A real calendar date, YYYY-MM-DD |
period_to | string | non | A real calendar date, YYYY-MM-DD |
EscalationResult.escalation défini sur place
| Nom | Type | Obligatoire | Description |
|---|
level | integer | non | |
overdue_minutes | integer | non | |
ReferralDetail.escalations.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
level | integer | non | |
escalated_by | string (uuid) | non | |
reason | string | non | |
overdue_minutes | integer | non | |
at | string (date-time) | non | |
Timeline.items.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
workflow_id | "OHN-27-W001" | "OHN-27-W002" | "OHN-27-W003" | non | |
from_state | string | null | non | |
to_state | string | non | |
version | integer | non | |
actor_id | string (uuid) | non | |
reason | string | non | |
at | string (date-time) | non | |
TransferDetail.history.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
from_state | string | null | non | |
to_state | string | non | |
actor_id | string (uuid) | non | |
reason | string | non | |
at | string (date-time) | non | |
Destinations.items.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
id | string | non | |
name | string | non | |
site_type | string | null | non | |
own | boolean | non | |
CodeList.items.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
code | string | non | |
label | string | non | |
active | boolean | non | |
CodeListWriteResult.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
code | string | non | |
label | string | non | |
active | boolean | non | |
SlaList.items.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
priority | string | non | |
response_minutes | integer | non | |
approval_reference | string | non | |
SlaWriteResult.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
priority | string | non | |
response_minutes | integer | non | |
approval_reference | string | non | |
ReportCatalog.reports.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
id | "OHN-27-R001" | "OHN-27-R002" | "OHN-27-R003" | non | |
title | string | non | |
PatientView.items.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
source_facility | string (uuid) | non | |
destination_facility | string (uuid) | non | |
referral_reason | string | non | |
requested_service | string | non | |
priority | string | non | |
state | string | non | |
outcome | string | null | non | |
expected_date | string | null | non | |
submitted_at | string | null (date-time) | non | |
completed_at | string | null (date-time) | non | |
created_at | string (date-time) | non | |