Aller au contenu

← 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/patients/{id}/ips/generateCompose and validate a summary snapshot (F001, W001)

Identifiant d’opération: generateIps

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
GET/documentsSummary documents

Identifiant d’opération: listDocuments

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequerystringnon
patient_idquerystring (uuid)non
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
GET/documents/{id}Document with completeness, validation and gap acknowledgments

Identifiant d’opération: getDocument

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/documents/{id}/releaseRelease (and optionally sign) a validated summary

Identifiant d’opération: releaseDocument

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/documents/{id}/gap-acknowledgmentsAcknowledge a missing required section (F003)

Identifiant d’opération: acknowledgeGap

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
GET/exportsExport access history

Identifiant d’opération: listExports

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
patient_idquerystring (uuid)non
recipientquerystring (uuid)non
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/exportsExport the current summary to a recipient (F002)

Identifiant d’opération: createExport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
GET/exports/{id}/packageRead an export package (counted and audited)

Identifiant d’opération: readExportPackage

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
GET/emergency-requestsEmergency accesses (own, or the review queue for reviewers)

Identifiant d’opération: listEmergency

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reviewquery"pending"non
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/emergency-requestsIssue a limited emergency view (W002)

Identifiant d’opération: requestEmergencyView

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
410Expired or already consumed—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/emergency-records/{id}/reviewReview an emergency disclosure

Identifiant d’opération: reviewEmergency

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
GET/propagationsPropagation cases

Identifiant d’opération: listPropagations

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/propagationsOpen an amendment propagation case (W003)

Identifiant d’opération: openPropagation

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/propagations/{id}/transitionsAdvance a propagation case

Identifiant d’opération: stepPropagation

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
GET/policyJurisdiction IPS and emergency policy

Identifiant d’opération: getPolicy

Authentification: bearer

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/policySet the jurisdiction policy

Identifiant d’opération: setPolicy

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/maintenance/drain-outboxReport pending outbox events (no sink: nothing claimed delivered)

Identifiant d’opération: drainOutbox

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
GET/report-catalogAvailable reports

Identifiant d’opération: reportCatalog

Authentification: bearer

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
GET/reports/{reportId}Run report R001..R003

Identifiant d’opération: runReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpath"OHN-14-R001" | "OHN-14-R002" | "OHN-14-R003"oui
profilequerystringnon
statusquerystringnon
recipientquerystringnon
jurisdictionquerystringnon
organizationquerystringnon
period_fromquerystringnon
period_toquerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
POST/reports/{reportId}/exportCreate a signed single-use report export

Identifiant d’opération: exportReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpath"OHN-14-R001" | "OHN-14-R002" | "OHN-14-R003"oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—
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
200CSV or PDF, once
text/csv: string (binary)
application/pdf: string (binary)
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy—
404Not found / not disclosed—
409Version conflict, illegal transition or idempotency mismatch—
410Expired or already consumed—
422Domain validation failed or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fail closed)—

Schémas

GenerateCommand

NomTypeObligatoireDescription
clinical_contextstring (uuid)oui
purpose"continuity_of_care" | "emergency_preparedness" | "cross_border" | "referral"oui
language"en" | "fr"oui
include_sectionsarray of "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | …oui

ReleaseCommand

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui
signbooleannon

GapCommand

NomTypeObligatoireDescription
patient_refstring (uuid)oui
missing_section"allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | …oui
responsible_clinicianstring (uuid)oui
acknowledgmentstringoui

ExportRequest

NomTypeObligatoireDescription
patient_idstring (uuid)oui
recipient_orgstring (uuid)oui
export_profile_versionstringoui
consent_or_basis_refstring (uuid)oui
reasonstringoui

EmergencyCommand

NomTypeObligatoireDescription
patient_idstring (uuid)oui
reasonstringoui

ReviewCommand

NomTypeObligatoireDescription
outcome"appropriate" | "inappropriate"oui
expected_versionintegeroui
reasonstringoui

PropagationOpenCommand

NomTypeObligatoireDescription
document_idstring (uuid)oui
source_refstringoui
reasonstringoui

PropagationStepCommand

NomTypeObligatoireDescription
to_state"snapshot_expired" | "new_snapshot_built" | "recipient_notice"oui
expected_versionintegeroui
reasonstringoui

PolicyCommand

NomTypeObligatoireDescription
required_sectionsarray of "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | …oui
emergency_sectionsarray of "allergies" | "medications" | "problems" | "immunizations" | "results" | "procedures" | "devices" | "vital_signs" | "plan_of_care" | "history_of_illness" | "pregnancy" | "social_history" | …oui
emergency_window_minutesintegeroui
export_profile_versionstringoui
require_signaturebooleanoui
approval_referencestringoui
expected_versionintegernon

ExportCommand

NomTypeObligatoireDescription
format"csv" | "pdf"oui
filtersobjectnonReport filters (profile, status, recipient, jurisdiction, organization, period_from, period_to); unknown keys are refused with 422

Error

NomTypeObligatoireDescription
errorstringnon
messagestringnon
detailsobjectnon