← Tous les contrats
OHN-14 International Patient Summary and Emergency View
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-14/api/openapi.json- Serveurs
https://opeshealthnetwork.com/api/ohn/v1/ips
- 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/ips. Default deny: role AND purpose must match. Inventory paths OHN-14-API-001..003 are mapped to this disjoint prefix (see ADR-0001).
Opérations
OHN-14
GET/patients/{id}/ipsCurrent released International Patient Summary
Identifiant d’opération: getCurrentIps
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getCriticalInfo
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: generateIps
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listDocuments
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
patient_id | query | string (uuid) | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getDocument
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: releaseDocument
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: acknowledgeGap
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listExports
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
patient_id | query | string (uuid) | non | |
recipient | query | string (uuid) | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: createExport
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 | 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)
Identifiant d’opération: readExportPackage
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: listEmergency
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
review | query | "pending" | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: requestEmergencyView
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 | 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
Identifiant d’opération: getEmergencyRecord
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: reviewEmergency
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listPropagations
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 | 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)
Identifiant d’opération: openPropagation
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 | 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
Identifiant d’opération: stepPropagation
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getPolicy
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: setPolicy
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 |
|---|
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)
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 | 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
Identifiant d’opération: reportCatalog
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: runReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-14-R001" | "OHN-14-R002" | "OHN-14-R003" | oui | |
profile | query | string | non | |
status | query | string | non | |
recipient | query | string | non | |
jurisdiction | query | string | non | |
organization | query | string | 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 | 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
Identifiant d’opération: exportReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-14-R001" | "OHN-14-R002" | "OHN-14-R003" | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
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 | 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) | — |
Schémas
GenerateCommand
| Nom | Type | Obligatoire | Description |
|---|
clinical_context | string (uuid) | oui | |
purpose | "continuity_of_care" | "emergency_preparedness" | "cross_border" | "referral" | oui | |
language | "en" | "fr" | oui | |
include_sections | array of "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | … | oui | |
ReleaseCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
sign | boolean | non | |
GapCommand
| Nom | Type | Obligatoire | Description |
|---|
patient_ref | string (uuid) | oui | |
missing_section | "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | … | oui | |
responsible_clinician | string (uuid) | oui | |
acknowledgment | string | oui | |
ExportRequest
| Nom | Type | Obligatoire | Description |
|---|
patient_id | string (uuid) | oui | |
recipient_org | string (uuid) | oui | |
export_profile_version | string | oui | |
consent_or_basis_ref | string (uuid) | oui | |
reason | string | oui | |
EmergencyCommand
| Nom | Type | Obligatoire | Description |
|---|
patient_id | string (uuid) | oui | |
reason | string | oui | |
ReviewCommand
| Nom | Type | Obligatoire | Description |
|---|
outcome | "appropriate" | "inappropriate" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
PropagationOpenCommand
| Nom | Type | Obligatoire | Description |
|---|
document_id | string (uuid) | oui | |
source_ref | string | oui | |
reason | string | oui | |
PropagationStepCommand
| Nom | Type | Obligatoire | Description |
|---|
to_state | "snapshot_expired" | "new_snapshot_built" | "recipient_notice" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
PolicyCommand
| Nom | Type | Obligatoire | Description |
|---|
required_sections | array of "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | … | oui | |
emergency_sections | array of "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | … | oui | |
emergency_window_minutes | integer | oui | |
export_profile_version | string | oui | |
require_signature | boolean | oui | |
approval_reference | string | oui | |
expected_version | integer | non | |
ExportCommand
| Nom | Type | Obligatoire | Description |
|---|
format | "csv" | "pdf" | oui | |
filters | object | non | Report filters (profile, status, recipient, jurisdiction, organization, period_from, period_to); unknown keys are refused with 422 |
Error
| Nom | Type | Obligatoire | Description |
|---|
error | string | non | |
message | string | non | |
details | object | non | |