Aller au contenu

← 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

NomEmplacementTypeObligatoireDescription
boxquery"inbox" | "outbox"non
statequerystringnon
priorityquerystringnon
overduequery"true"non
patient_refquerystring (uuid)non
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: ReferralList
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/referralsCreate a draft referral from the acting facility (F001)

Identifiant d’opération: createReferral

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: ReferralResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/referrals/{id}Referral with escalations; visible to the sending and receiving facility only

Identifiant d’opération: getReferral

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
200Success
application/json: ReferralDetail
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/referrals/{id}/timelineStatus timeline from workflow history

Identifiant d’opération: referralTimeline

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
200Success
application/json: Timeline
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/referrals/{id}/submitSend the referral (W001); sets the response deadline when one is configured

Identifiant d’opération: submitReferral

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Success
application/json: ReferralResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/referrals/{id}/acknowledgeReceiving facility: received, accepted, declined or completed (F002)

Identifiant d’opération: acknowledgeReferral

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Success
application/json: ReferralResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/referrals/{id}/cancellationCancellation steps request, notify, finalize (W003)

Identifiant d’opération: cancelReferral

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Success
application/json: ReferralResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/referrals/{id}/escalateEscalate an overdue unanswered referral (append-only levels)

Identifiant d’opération: escalateReferral

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: EscalationResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/transfersCare transitions of the acting facility

Identifiant d’opération: listTransfers

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: TransferList
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/transfersCreate a care transition handover (F003, W002)

Identifiant d’opération: createTransfer

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: TransferResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/transfers/{id}Transfer with its history

Identifiant d’opération: getTransfer

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui

Réponses

CodeDescriptionType de média
200Success
application/json: TransferDetail
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/transfers/{id}/transitionsConfirm, deliver or acknowledge a transfer; acknowledger differs from creator

Identifiant d’opération: stepTransfer

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Success
application/json: TransferResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
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

CodeDescriptionType de média
200Success
application/json: Destinations
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/code-lists/{list}Controlled list (priority, requested_service)

Identifiant d’opération: getCodeList

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
listpathstringoui

Réponses

CodeDescriptionType de média
200Success
application/json: CodeList
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/code-lists/{list}Add or change a code list entry

Identifiant d’opération: upsertCodeEntry

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
listpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: CodeListWriteResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/slaResponse deadlines per priority

Identifiant d’opération: getSla

Authentification: bearer

Réponses

CodeDescriptionType de média
200Success
application/json: SlaList
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/slaSet a response deadline (approval reference required)

Identifiant d’opération: setSla

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: SlaWriteResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/maintenance/drain-outboxReport pending outbox events (the platform relay publishes them)

Identifiant d’opération: drainOutbox

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
200Success
application/json: DrainResult
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/report-catalogAvailable reports

Identifiant d’opération: reportCatalog

Authentification: bearer

Réponses

CodeDescriptionType de média
200Success
application/json: ReportCatalog
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/reports/{reportId}Run report R001..R003

Identifiant d’opération: runReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpathstringoui
facilityquerystring (uuid)non
priorityquerystringnon
statusquerystringnonR002 only: `overdue` keeps the overdue rows; R003: a transfer state
jurisdictionquerystring (uuid)nonAnother jurisdiction yields no_authorized_data, never its data
countryquerystring (uuid)non
period_fromquerystringnon
period_toquerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: Report
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
POST/reports/{reportId}/exportCreate a signed single-use report export

Identifiant d’opération: exportReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpathstringoui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: ExportReceipt
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
409Version conflict, illegal transition or idempotency key reused with a different payload
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/report-exports/{token}Download a report export once

Identifiant d’opération: downloadReportExport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
tokenpathstringoui

Réponses

CodeDescriptionType de média
200The export, once (text/csv or application/pdf)
text/csv: string (binary)
application/pdf: string (binary)
400Malformed request or missing/invalid Idempotency-Key (8-128 characters of [A-Za-z0-9_.:-])
application/json: Problem
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
410export_expired (5 minutes) or export_consumed (single use)—
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
500export_integrity_failed (the stored content no longer matches its HMAC tag)—
503Dependency unavailable (fail closed)
application/json: Problem
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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)ouiThe patient's own OHN-03 id (must equal the token subject)

Réponses

CodeDescriptionType de média
200Success
application/json: PatientView
401Unauthenticated (no/invalid token, or claims that are not uuids)
application/json: Problem
403Denied by policy (role AND purpose), wrong facility side, separation of duties
application/json: Problem
404Not found / not disclosed (also: any route outside this contract, once authenticated)
application/json: Problem
422Domain validation failed (details: field -> code), unconfigured code list, unmet precondition
application/json: Problem
429Rate limited
application/json: Problem
503Dependency unavailable (fail closed)
application/json: Problem
GET/health/ohn-27Public liveness; reports how each dependency is wired

Identifiant d’opération: health

Réponses

CodeDescriptionType de média
200Database reachable
application/json: Health
503Database unreachable—

Schémas

ReferralCommand

NomTypeObligatoireDescription
patient_refstring (uuid)oui
source_facilitystring (uuid)oui
destination_facilitystring (uuid)oui
referral_reasonstringouiTrimmed before the length check
prioritystringouiA code of the jurisdiction's active `priority` list
relevant_summary_refstring (uuid)oui
requested_servicestringouiA code of the jurisdiction's active `requested_service` list

SubmitCommand

NomTypeObligatoireDescription
expected_versionintegeroui

AcknowledgeCommand

accepted and declined need receiving_clinician and response_notes (422 details `required_for_decision`); declined takes no expected_date (`not_for_decline`).

NomTypeObligatoireDescription
action"received" | "accepted" | "declined" | "completed"oui
expected_versionintegeroui
receiving_clinicianstring (uuid)non
response_notesstringnon
expected_datestringnonA real calendar date, YYYY-MM-DD

CancelCommand

NomTypeObligatoireDescription
step"request" | "notify" | "finalize"oui
expected_versionintegeroui
reasonstringoui

EscalateCommand

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

TransferCommand

NomTypeObligatoireDescription
referral_idstring (uuid)non
patient_refstring (uuid)oui
source_encounterstring (uuid)oui
handover_summarystring (uuid)oui
recipient_orgstring (uuid)oui
handover_timestring (date-time)oui

TransferStepCommand

NomTypeObligatoireDescription
to_state"recipient_confirmed" | "document_delivered" | "receipt_acknowledged"oui
expected_versionintegeroui
reasonstringoui

CodeListEntryCommand

NomTypeObligatoireDescription
codestringoui
labelstringoui
activebooleannon

SlaCommand

NomTypeObligatoireDescription
prioritystringoui
response_minutesintegeroui
approval_referencestringoui

ExportCommand

NomTypeObligatoireDescription
format"csv" | "pdf"oui
filtersExportCommand.filtersnon

Problem

application/problem+json carrying the legacy fields error/message/details; details are `{field: zod-issue-code | custom message}` for 422.

NomTypeObligatoireDescription
typestringnon
titlestringnon
statusintegernon
detailstringnon
errorstringoui
messagestringnon
trace_idstringnon
detailsobjectnon

Receipt

NomTypeObligatoireDescription
receipt_idstring (uuid)oui
committed_atstring (date-time)oui
aggregate_idstringoui
versionintegeroui
status"committed"oui

Referral

NomTypeObligatoireDescription
idstring (uuid)non
patient_refstring (uuid)non
source_facilitystring (uuid)non
destination_facilitystring (uuid)non
referral_reasonstringnon
prioritystringnon
relevant_summary_refstring (uuid)non
requested_servicestringnon
state"draft" | "submitted" | "received" | "accepted_or_declined" | "completed_or_cancelled"non
outcome"accepted" | "declined" | "completed" | "cancelled" | nullnon
cancellation_state"cancellation_requested" | "recipient_notified" | "cancelled" | nullnon
cancellation_reasonstring | nullnon
receiving_clinicianstring | null (uuid)non
response_notesstring | nullnon
expected_datestring | nullnon
created_bystring (uuid)non
submitted_atstring | null (date-time)non
received_atstring | null (date-time)non
first_response_atstring | null (date-time)non
completed_atstring | null (date-time)non
due_atstring | null (date-time)non
overduebooleannon
escalation_countintegernon
created_atstring (date-time)non
versionintegernon

Transfer

NomTypeObligatoireDescription
idstring (uuid)non
referral_idstring | null (uuid)non
patient_refstring (uuid)non
source_encounterstring (uuid)non
handover_summarystring (uuid)non
source_orgstring (uuid)non
recipient_orgstring (uuid)non
handover_timestring (date-time)non
state"transfer_created" | "recipient_confirmed" | "document_delivered" | "receipt_acknowledged"non
created_bystring (uuid)non
confirmed_bystring | null (uuid)non
delivery_refstring | nullnon
acknowledged_bystring | null (uuid)non
acknowledged_atstring | null (date-time)non
created_atstring (date-time)non
versionintegernon

ReferralResult

NomTypeObligatoireDescription
referralReferraloui
receiptReceiptoui

EscalationResult

NomTypeObligatoireDescription
referralReferralnon
escalationEscalationResult.escalationnon
receiptReceiptnon

ReferralDetail

NomTypeObligatoireDescription
referralReferralnon
escalationsarray of ReferralDetail.escalations.itemnon

ReferralList

NomTypeObligatoireDescription
itemsarray of Referralnon
next_cursorstring | nullnon

Timeline

NomTypeObligatoireDescription
itemsarray of Timeline.items.itemnon

TransferResult

NomTypeObligatoireDescription
transferTransfernon
receiptReceiptnon

TransferList

NomTypeObligatoireDescription
itemsarray of Transfernon
next_cursorstring | nullnon

TransferDetail

NomTypeObligatoireDescription
transferTransfernon
historyarray of TransferDetail.history.itemnon

Destinations

configured=false (empty items) while no live OHN-05 registry is wired.

NomTypeObligatoireDescription
configuredbooleannon
itemsarray of Destinations.items.itemnon

CodeList

NomTypeObligatoireDescription
list"priority" | "requested_service"non
configuredbooleannon
itemsarray of CodeList.items.itemnon

CodeListWriteResult

NomTypeObligatoireDescription
itemCodeListWriteResult.itemnon
receiptReceiptnon

SlaList

NomTypeObligatoireDescription
configuredbooleannon
itemsarray of SlaList.items.itemnon

SlaWriteResult

NomTypeObligatoireDescription
itemSlaWriteResult.itemnon
receiptReceiptnon

DrainResult

The platform relay publishes events; this call never claims delivery (delivered is 0) and reports the pending count.

NomTypeObligatoireDescription
deliveredintegernon
pendingintegernon

ReportCatalog

NomTypeObligatoireDescription
reportsarray of ReportCatalog.reports.itemnon

Report

NomTypeObligatoireDescription
report_idstringnon
titlestringnon
columnsarray of stringnon
rowsarray of objectnon
summaryobjectnon
state"rendered" | "no_authorized_data"non
generated_atstring (date-time)non
next_cursorstring | nullnon

ExportReceipt

NomTypeObligatoireDescription
export_idstring (uuid)non
report_idstringnon
format"csv" | "pdf"non
rowsintegernon
expires_atstring (date-time)non
single_usetruenon
download_pathstringnon
receiptReceiptnon

PatientView

Drafts and the receiving team's response notes are not included.

NomTypeObligatoireDescription
patient_refstring (uuid)non
as_ofstring (date-time)non
receipt_idstring (uuid)non
itemsarray of PatientView.items.itemnon

Health

NomTypeObligatoireDescription
statusstringnon
modulestringnon
dependenciesobjectnon

ExportCommand.filters défini sur place

NomTypeObligatoireDescription
facilitystring (uuid)non
prioritystringnon
statusstringnon
jurisdictionstring (uuid)non
countrystring (uuid)non
period_fromstringnonA real calendar date, YYYY-MM-DD
period_tostringnonA real calendar date, YYYY-MM-DD

EscalationResult.escalation défini sur place

NomTypeObligatoireDescription
levelintegernon
overdue_minutesintegernon

ReferralDetail.escalations.item défini sur place

NomTypeObligatoireDescription
levelintegernon
escalated_bystring (uuid)non
reasonstringnon
overdue_minutesintegernon
atstring (date-time)non

Timeline.items.item défini sur place

NomTypeObligatoireDescription
workflow_id"OHN-27-W001" | "OHN-27-W002" | "OHN-27-W003"non
from_statestring | nullnon
to_statestringnon
versionintegernon
actor_idstring (uuid)non
reasonstringnon
atstring (date-time)non

TransferDetail.history.item défini sur place

NomTypeObligatoireDescription
from_statestring | nullnon
to_statestringnon
actor_idstring (uuid)non
reasonstringnon
atstring (date-time)non

Destinations.items.item défini sur place

NomTypeObligatoireDescription
idstringnon
namestringnon
site_typestring | nullnon
ownbooleannon

CodeList.items.item défini sur place

NomTypeObligatoireDescription
codestringnon
labelstringnon
activebooleannon

CodeListWriteResult.item défini sur place

NomTypeObligatoireDescription
codestringnon
labelstringnon
activebooleannon

SlaList.items.item défini sur place

NomTypeObligatoireDescription
prioritystringnon
response_minutesintegernon
approval_referencestringnon

SlaWriteResult.item défini sur place

NomTypeObligatoireDescription
prioritystringnon
response_minutesintegernon
approval_referencestringnon

ReportCatalog.reports.item défini sur place

NomTypeObligatoireDescription
id"OHN-27-R001" | "OHN-27-R002" | "OHN-27-R003"non
titlestringnon

PatientView.items.item défini sur place

NomTypeObligatoireDescription
idstring (uuid)non
source_facilitystring (uuid)non
destination_facilitystring (uuid)non
referral_reasonstringnon
requested_servicestringnon
prioritystringnon
statestringnon
outcomestring | nullnon
expected_datestring | nullnon
submitted_atstring | null (date-time)non
completed_atstring | null (date-time)non
created_atstring (date-time)non