Aller au contenu

← 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
codequeryarray of stringnonsystem|code, repeatable or comma separated (1-20)
include_supersededquerybooleannon

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
include_supersededquerybooleannon
report_typequerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Created
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—
GET/resultsResults inbox

Identifiant d’opération: listResults

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequerystringnon
report_typequerystringnon
criticalquerybooleannon
patient_refquerystring (uuid)non
source_facilityquerystring (uuid)non
current_onlyquerybooleannon
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
leftquerystring (uuid)oui
rightquerystring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—
GET/critical-resultsEscalation board

Identifiant d’opération: listCriticalResults

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequerystringnon
overduequerybooleannon
facilityquerystring (uuid)non
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—
GET/amendmentsAmendments

Identifiant d’opération: listAmendments

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequerystringnon
report_idquerystring (uuid)non
cursorquerystringnon

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Created
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—
POST/amendments/{id}/transitionsAdvance an amendment (W003)

Identifiant d’opération: transitionAmendment

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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—
GET/code-lists/{list}Controlled code list

Identifiant d’opération: getCodeList

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
listpath"report_type" | "clinical_responsibility" | "imaging_modality"oui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
listpath"report_type" | "clinical_responsibility" | "imaging_modality"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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—
GET/policyJurisdiction critical-result 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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—
POST/policySet the jurisdiction critical-result 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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
200Success
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—
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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—
GET/reports/{reportId}Run report R001..R003

Identifiant d’opération: runReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpath"OHN-11-R001" | "OHN-11-R002" | "OHN-11-R003"oui
facilityquerystring (uuid)non
severityquery"critical"non
result_typequerystringnon
patient_scopequerystring (uuid)non
jurisdictionquerystring (uuid)non
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, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency 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

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

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
201Created
application/json: object
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—
GET/exports/{token}Download an export once

Identifiant d’opération: downloadExport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
tokenpathstringoui

Réponses

CodeDescriptionType de média
200The export file (single use, five minutes)
text/csv: string (binary)
application/pdf: string (binary)
400Malformed request or missing Idempotency-Key—
401Unauthenticated—
403Denied by policy, separation of duties or role not permitted for the step—
404Not found / not disclosed—
409version_conflict, invalid_transition, not_overdue, max_escalation_reached, report_not_ready, duplicate_source_report, duplicate_amendment, idempotency_key_reused or request_in_progress—
410Export expired or already downloaded—
422domain_validation_failed (details per field), code_list_not_configured, policy_not_configured, amendment_mismatch, different_patients, report_not_publishable, safety_block—
429Rate limited—
503Dependency unavailable (fail closed): dependency_unavailable with details.dependency—

Schémas

IngestCommand

NomTypeObligatoireDescription
patient_refstring (uuid)oui
source_facilitystring (uuid)oui
specimen_refstring (uuid)non
report_typestringoui
report_status"registered" | "partial" | "preliminary" | "final" | "amended" | "corrected" | "appended" | "cancelled" | "entered_in_error"oui
issued_atstring (date-time)oui
file_or_payloadstring (uuid)oui
payload_sha256stringnon
source_report_idstringoui
ordering_orgstring (uuid)non
replaces_report_idstring (uuid)non
source_interpretationstringnon
critical_declaredbooleannon
observationsarray of IngestCommand.observations.itemnon
imaging_studiesarray of IngestCommand.imaging_studies.itemnon

TransitionCommand

NomTypeObligatoireDescription
to_state"validated" | "patient_matched" | "released" | "available" | "rejected"oui
expected_versionintegeroui
reasonstringoui

NotifyCommand

NomTypeObligatoireDescription
responsible_clinicianstring (uuid)oui
expected_versionintegeroui
reasonstringoui

AckCommand

NomTypeObligatoireDescription
result_refstring (uuid)non
acknowledged_bystring (uuid)non
acknowledged_atstring (date-time)non
readback_notesstringoui
clinical_responsibilitystringoui
expected_versionintegeroui

EscalateCommand

NomTypeObligatoireDescription
escalate_tostring (uuid)oui
expected_versionintegeroui
reasonstringoui

CloseCommand

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

AmendmentCommand

NomTypeObligatoireDescription
original_report_idstring (uuid)oui
replacement_report_idstring (uuid)oui
amendment_reasonstringoui
reviewerstring (uuid)oui

AmendmentTransitionCommand

NomTypeObligatoireDescription
to_state"version_linked" | "prior_version_marked" | "notified"oui
expected_versionintegeroui
reasonstringoui

PolicyCommand

NomTypeObligatoireDescription
critical_ack_window_minutesintegeroui
max_escalation_levelintegeroui
approval_referencestringoui
expected_versionintegernon

ExportCommand

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

CodeListCommand

NomTypeObligatoireDescription
entriesarray of CodeListCommand.entries.itemoui

IngestCommand.observations.item défini sur place

NomTypeObligatoireDescription
code_system"loinc" | "snomed_ct" | "local"oui
codestringoui
code_displaystringnon
value_numbernumbernon
value_textstringnon
unitstringnon
ref_lownumbernon
ref_highnumbernon
source_flag"normal" | "abnormal" | "critical_low" | "critical_high" | "critical" | "unknown"non

IngestCommand.imaging_studies.item défini sur place

NomTypeObligatoireDescription
study_instance_uidstringoui
accession_numberstringnon
modalitystringoui
locator_refstring (uuid)oui
series_countintegernon

ExportCommand.filters défini sur place

NomTypeObligatoireDescription
facilitystring (uuid)non
severity"critical"non
result_typestringnon
patient_scopestring (uuid)non
jurisdictionstring (uuid)non
period_fromstringnon
period_tostringnon

CodeListCommand.entries.item défini sur place

NomTypeObligatoireDescription
codestringoui
labelstringoui
activebooleannon