← All contracts
OHN-14 International Patient Summary and Emergency View
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-14/api/openapi.json- Servers
https://opeshealthnetwork.com/api/ohn/v1/ips
- Authentication
bearer: http bearer
Download the contract (JSON)
Contracts are written in English.
Server paths are under /api/ohn/v1/ips. Default deny: role AND purpose must match. Inventory paths OHN-14-API-001..003 are mapped to this disjoint prefix (see ADR-0001).
Operations
OHN-14
GET/patients/{id}/ipsCurrent released International Patient Summary
Operation ID: getCurrentIps
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/patients/{id}/critical-infoCritical health information (blood group, Rh, haemoglobin genotype, allergies, active problems) read live from OHN-10; also embedded in the emergency view
Operation ID: getCriticalInfo
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/patients/{id}/ips/generateCompose and validate a summary snapshot (F001, W001)
Operation ID: generateIps
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/documentsSummary documents
Operation ID: listDocuments
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | string | no | |
patient_id | query | string (uuid) | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/documents/{id}Document with completeness, validation and gap acknowledgments
Operation ID: getDocument
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/documents/{id}/releaseRelease (and optionally sign) a validated summary
Operation ID: releaseDocument
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/documents/{id}/gap-acknowledgmentsAcknowledge a missing required section (F003)
Operation ID: acknowledgeGap
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/exportsExport access history
Operation ID: listExports
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
patient_id | query | string (uuid) | no | |
recipient | query | string (uuid) | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/exportsExport the current summary to a recipient (F002)
Operation ID: createExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/exports/{id}/packageRead an export package (counted and audited)
Operation ID: readExportPackage
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/emergency-requestsEmergency accesses (own, or the review queue for reviewers)
Operation ID: listEmergency
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
review | query | "pending" | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/emergency-requestsIssue a limited emergency view (W002)
Operation ID: requestEmergencyView
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/emergency-records/{id}Emergency record; the limited view only to the requester inside the window
Operation ID: getEmergencyRecord
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
410 | Expired or already consumed | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/emergency-records/{id}/reviewReview an emergency disclosure
Operation ID: reviewEmergency
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/propagationsPropagation cases
Operation ID: listPropagations
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
state | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/propagationsOpen an amendment propagation case (W003)
Operation ID: openPropagation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/propagations/{id}/transitionsAdvance a propagation case
Operation ID: stepPropagation
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/policyJurisdiction IPS and emergency policy
Operation ID: getPolicy
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/policySet the jurisdiction policy
Operation ID: setPolicy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/maintenance/drain-outboxReport pending outbox events (no sink: nothing claimed delivered)
Operation ID: drainOutbox
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/report-catalogAvailable reports
Operation ID: reportCatalog
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
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 | "OHN-14-R001" | "OHN-14-R002" | "OHN-14-R003" | yes | |
profile | query | string | no | |
status | query | string | no | |
recipient | query | string | no | |
jurisdiction | query | string | no | |
organization | query | string | no | |
period_from | query | string | no | |
period_to | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
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 | "OHN-14-R001" | "OHN-14-R002" | "OHN-14-R003" | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
422 | Domain validation failed or domain refusal | |
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 | CSV or PDF, once | text/csv: string (binary)
application/pdf: string (binary)
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition or idempotency mismatch | — |
410 | Expired or already consumed | — |
422 | Domain validation failed or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
Schemas
GenerateCommand
| Name | Type | Required | Description |
|---|
clinical_context | string (uuid) | yes | |
purpose | "continuity_of_care" | "emergency_preparedness" | "cross_border" | "referral" | yes | |
language | "en" | "fr" | yes | |
include_sections | array of "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | … | yes | |
ReleaseCommand
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
sign | boolean | no | |
GapCommand
| Name | Type | Required | Description |
|---|
patient_ref | string (uuid) | yes | |
missing_section | "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | … | yes | |
responsible_clinician | string (uuid) | yes | |
acknowledgment | string | yes | |
ExportRequest
| Name | Type | Required | Description |
|---|
patient_id | string (uuid) | yes | |
recipient_org | string (uuid) | yes | |
export_profile_version | string | yes | |
consent_or_basis_ref | string (uuid) | yes | |
reason | string | yes | |
EmergencyCommand
| Name | Type | Required | Description |
|---|
patient_id | string (uuid) | yes | |
reason | string | yes | |
ReviewCommand
| Name | Type | Required | Description |
|---|
outcome | "appropriate" | "inappropriate" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
PropagationOpenCommand
| Name | Type | Required | Description |
|---|
document_id | string (uuid) | yes | |
source_ref | string | yes | |
reason | string | yes | |
PropagationStepCommand
| Name | Type | Required | Description |
|---|
to_state | "snapshot_expired" | "new_snapshot_built" | "recipient_notice" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
PolicyCommand
| Name | Type | Required | Description |
|---|
required_sections | array of "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | … | yes | |
emergency_sections | array of "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | … | yes | |
emergency_window_minutes | integer | yes | |
export_profile_version | string | yes | |
require_signature | boolean | yes | |
approval_reference | string | yes | |
expected_version | integer | no | |
ExportCommand
| Name | Type | Required | Description |
|---|
format | "csv" | "pdf" | yes | |
filters | object | no | Report filters (profile, status, recipient, jurisdiction, organization, period_from, period_to); unknown keys are refused with 422 |
Error
| Name | Type | Required | Description |
|---|
error | string | no | |
message | string | no | |
details | object | no | |