← Tous les contrats
OHN-11 Diagnostics Results Exchange
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-11/api/openapi.json- Serveurs
https://opeshealthnetwork.com/api/ohn/v1/diagnostics
- 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/diagnostics. Default deny: role AND purpose must match. Inventory paths OHN-11-API-001..003 are mapped to this disjoint prefix (see ADR-0001). Reconciled with the observed behaviour of backend/modules/ohn-11 (docs/program/java/ohn-11-contract-changes.md).
Opérations
OHN-11
GET/patients/{id}/observationsPublished observation lines for one patient by code (system|code), every version flagged is_current, with source report provenance
Identifiant d’opération: listPatientObservations
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
code | query | array of string | non | system|code, repeatable or comma separated (1-20) |
include_superseded | query | boolean | 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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/patients/{id}/patient-viewOwn published results of the patient for the OHN-31 patient chart (role patient under purpose patient_access; own record only, otherwise 404; OHN-16 decision; every read audited)
Identifiant d’opération: patientResultView
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/patients/{id}/resultsResults for one patient (current versions; clinicians see published only)
Identifiant d’opération: listPatientResults
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
include_superseded | query | boolean | non | |
report_type | 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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/results/ingestImport a diagnostic report as received
Identifiant d’opération: ingestResult
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 | Created | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/resultsResults inbox
Identifiant d’opération: listResults
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
report_type | query | string | non | |
critical | query | boolean | non | |
patient_ref | query | string (uuid) | non | |
source_facility | query | string (uuid) | non | |
current_only | query | boolean | 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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/results/compareCompare two reports of one patient
Identifiant d’opération: compareResults
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
left | query | string (uuid) | oui | |
right | query | 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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/results/{id}Report with observations, imaging references and critical case
Identifiant d’opération: getResult
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/results/{id}/provenanceSource, custody, history and audit of a report
Identifiant d’opération: getProvenance
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/results/{id}/versionsAll versions of a report
Identifiant d’opération: getVersions
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/results/{id}/transitionsAdvance the publication workflow (W001)
Identifiant d’opération: transitionResult
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/critical-resultsEscalation board
Identifiant d’opération: listCriticalResults
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
overdue | query | boolean | non | |
facility | 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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/critical-results/{id}Critical result with receipts
Identifiant d’opération: getCriticalResult
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/critical-results/{id}/notifyNotify the responsible clinician
Identifiant d’opération: notifyCriticalResult
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/critical-results/{id}/ackAcknowledge with read-back
Identifiant d’opération: acknowledgeCriticalResult
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/critical-results/{id}/escalateEscalate an overdue critical result
Identifiant d’opération: escalateCriticalResult
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/critical-results/{id}/closeClose an acknowledged critical result
Identifiant d’opération: closeCriticalResult
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/amendmentsAmendments
Identifiant d’opération: listAmendments
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
report_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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/amendmentsSubmit a report amendment for review (F003)
Identifiant d’opération: submitAmendment
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 | Created | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/amendments/{id}/transitionsAdvance an amendment (W003)
Identifiant d’opération: transitionAmendment
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/code-lists/{list}Controlled code list
Identifiant d’opération: getCodeList
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
list | path | "report_type" | "clinical_responsibility" | "imaging_modality" | 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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/code-lists/{list}Upsert code list entries
Identifiant d’opération: upsertCodeList
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
list | path | "report_type" | "clinical_responsibility" | "imaging_modality" | 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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/policyJurisdiction critical-result 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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/policySet the jurisdiction critical-result 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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/maintenance/drain-outboxReport pending outbox events (no sink configured: nothing is 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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
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, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/reports/{reportId}Run report R001..R003
Identifiant d’opération: runReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-11-R001" | "OHN-11-R002" | "OHN-11-R003" | oui | |
facility | query | string (uuid) | non | |
severity | query | "critical" | non | |
result_type | query | string | non | |
patient_scope | query | string (uuid) | non | |
jurisdiction | query | string (uuid) | non | |
period_from | query | string | non | |
period_to | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
POST/reports/{reportId}/exportCreate a signed single-use export
Identifiant d’opération: exportReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-11-R001" | "OHN-11-R002" | "OHN-11-R003" | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Created | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
GET/exports/{token}Download an export once
Identifiant d’opération: downloadExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
token | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | The export file (single use, five minutes) | text/csv: string (binary)
application/pdf: string (binary)
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Denied by policy, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress | — |
410 | Export expired or already downloaded | — |
422 | domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block | — |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed): dependency_unavailable with details.dependency | — |
Schémas
IngestCommand
| Nom | Type | Obligatoire | Description |
|---|
patient_ref | string (uuid) | oui | |
source_facility | string (uuid) | oui | |
specimen_ref | string (uuid) | non | |
report_type | string | oui | |
report_status | "registered" | "partial" | "preliminary" | "final" | "amended" | "corrected" | "appended" | "cancelled" | "entered_in_error" | oui | |
issued_at | string (date-time) | oui | |
file_or_payload | string (uuid) | oui | |
payload_sha256 | string | non | |
source_report_id | string | oui | |
ordering_org | string (uuid) | non | |
replaces_report_id | string (uuid) | non | |
source_interpretation | string | non | |
critical_declared | boolean | non | |
observations | array of IngestCommand.observations.item | non | |
imaging_studies | array of IngestCommand.imaging_studies.item | non | |
TransitionCommand
| Nom | Type | Obligatoire | Description |
|---|
to_state | "validated" | "patient_matched" | "released" | "available" | "rejected" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
NotifyCommand
| Nom | Type | Obligatoire | Description |
|---|
responsible_clinician | string (uuid) | oui | |
expected_version | integer | oui | |
reason | string | oui | |
AckCommand
| Nom | Type | Obligatoire | Description |
|---|
result_ref | string (uuid) | non | |
acknowledged_by | string (uuid) | non | |
acknowledged_at | string (date-time) | non | |
readback_notes | string | oui | |
clinical_responsibility | string | oui | |
expected_version | integer | oui | |
EscalateCommand
| Nom | Type | Obligatoire | Description |
|---|
escalate_to | string (uuid) | oui | |
expected_version | integer | oui | |
reason | string | oui | |
CloseCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
AmendmentCommand
| Nom | Type | Obligatoire | Description |
|---|
original_report_id | string (uuid) | oui | |
replacement_report_id | string (uuid) | oui | |
amendment_reason | string | oui | |
reviewer | string (uuid) | oui | |
AmendmentTransitionCommand
| Nom | Type | Obligatoire | Description |
|---|
to_state | "version_linked" | "prior_version_marked" | "notified" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
PolicyCommand
| Nom | Type | Obligatoire | Description |
|---|
critical_ack_window_minutes | integer | oui | |
max_escalation_level | integer | oui | |
approval_reference | string | oui | |
expected_version | integer | non | |
IngestCommand.observations.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
code_system | "loinc" | "snomed_ct" | "local" | oui | |
code | string | oui | |
code_display | string | non | |
value_number | number | non | |
value_text | string | non | |
unit | string | non | |
ref_low | number | non | |
ref_high | number | non | |
source_flag | "normal" | "abnormal" | "critical_low" | "critical_high" | "critical" | "unknown" | non | |
IngestCommand.imaging_studies.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
study_instance_uid | string | oui | |
accession_number | string | non | |
modality | string | oui | |
locator_ref | string (uuid) | oui | |
series_count | integer | non | |
ExportCommand.filters défini sur place
| Nom | Type | Obligatoire | Description |
|---|
facility | string (uuid) | non | |
severity | "critical" | non | |
result_type | string | non | |
patient_scope | string (uuid) | non | |
jurisdiction | string (uuid) | non | |
period_from | string | non | |
period_to | string | non | |
CodeListCommand.entries.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
code | string | oui | |
label | string | oui | |
active | boolean | non | |