← All contracts
OHN-44 Clinical Safety and Information Integrity
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source in the repository
modules/OHN-44/api/openapi.json- Servers
https://opeshealthnetwork.com/api/ohn/v1/clinical-safety
- Authentication
bearer: http bearer
Download the contract (JSON)
Contracts are written in English.
Server paths are under /api/ohn/v1/clinical-safety. Default deny: role AND purpose must match. Inventory paths OHN-44-API-001..003 are mapped to this disjoint prefix (see ADR-0001).
Operations
OHN-44
GET/hazardsClinical safety board
Operation ID: listHazards
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
module | query | string | no | |
severity | query | string | no | |
state | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/hazardsRegister a clinical hazard (F001, W001)
Operation ID: registerHazard
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/hazards/{id}Hazard case with requirements and evidence
Operation ID: getHazard
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/hazards/{id}/transitionsAdvance hazard management; residual-risk decisions by a reviewer who is not owner or registrant
Operation ID: stepHazard
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/hazards/{id}/requirementsAdd a safety requirement (F002)
Operation ID: addRequirement
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/requirements/{id}/evidenceRecord a test result reviewed by a clinician other than the author
Operation ID: addEvidence
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/evidenceSafety evidence register
Operation ID: listEvidence
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
module | query | string | no | |
hazard_id | query | string (uuid) | no | |
release | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/incidentsIncidents
Operation ID: listIncidents
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
module | query | string | no | |
state | query | string | no | |
severity | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/incidentsReport a clinical safety incident (W002)
Operation ID: reportIncident
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/incidents/{id}/transitionsAdvance an incident; remediation verified by a reviewer who is not the reporter
Operation ID: stepIncident
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/releasesReleases
Operation ID: listReleases
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
module | query | string | no | |
state | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/releasesSubmit a build to the clinical release gate (W003)
Operation ID: submitRelease
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/releases/{id}Release with blockers
Operation ID: getRelease
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/releases/{id}/transitionsCheck hazards (computes blockers) or send to clinical review
Operation ID: stepRelease
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/releases/{id}/approveApprove or block a release (F003); approval with blockers is refused
Operation ID: decideRelease
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/safety-case/{moduleId}Safety case for a module with a content digest
Operation ID: exportSafetyCase
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
moduleId | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/code-lists/{list}Controlled list (severity, likelihood, residual_risk)
Operation ID: getCodeList
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
list | path | "severity" | "likelihood" | "residual_risk" | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/code-lists/{list}Upsert controlled list entries
Operation ID: upsertCodeList
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
list | path | "severity" | "likelihood" | "residual_risk" | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/policyRelease-blocking policy
Operation ID: getPolicy
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/policySet the release-blocking policy
Operation ID: setPolicy
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/maintenance/drain-outboxReport pending outbox events (no sink: nothing claimed delivered)
Operation ID: drainOutbox
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
Idempotency-Key | header | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/report-catalogAvailable reports
Operation ID: reportCatalog
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/reports/{reportId}Run report R001..R003
Operation ID: runReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | string | yes | |
module | query | string | no | |
severity | query | string | no | |
release | query | string | no | |
jurisdiction | query | string | no | |
period_from | query | string | no | |
period_to | query | string | no | |
cursor | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
POST/reports/{reportId}/exportCreate a signed single-use report export
Operation ID: exportReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | string | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
GET/report-exports/{token}Download a report export once
Operation ID: downloadReportExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
token | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed request or missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, separation of duties or role not permitted for the step | — |
404 | Not found / not disclosed | — |
409 | Version conflict, illegal transition, duplicate release or idempotency mismatch | |
422 | Domain validation failed | |
429 | Rate limited | — |
503 | Dependency unavailable (fail closed) | — |
Schemas
HazardCommand
| Name | Type | Required | Description |
|---|
module_id | string | yes | |
hazard_description | string | yes | |
severity | string | yes | |
likelihood | string | yes | |
hazard_owner | string | yes | |
affected_user_story | string | yes | |
HazardStepCommand
| Name | Type | Required | Description |
|---|
to_state | "severity_assessed" | "control_defined" | "tested" | "residual_risk_accepted_or_rejected" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
severity | string | no | |
likelihood | string | no | |
residual_risk | string | no | |
decision | "accepted" | "rejected" | no | |
RequirementCommand
| Name | Type | Required | Description |
|---|
mitigation_requirement | string | yes | |
residual_risk | string | yes | |
EvidenceCommand
| Name | Type | Required | Description |
|---|
test_ref | string | yes | |
result | "pass" | "fail" | yes | |
release_ref | string | no | |
IncidentCommand
| Name | Type | Required | Description |
|---|
module_id | string | yes | |
hazard_id | string | no | |
description | string | yes | |
severity | string | yes | |
clinical_impact | string | yes | |
IncidentStepCommand
| Name | Type | Required | Description |
|---|
to_state | "clinical_triage" | "containment" | "root_cause" | "verified_remediation" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
containment | string | no | |
root_cause | string | no | |
remediation_ref | string | no | |
ReleaseSubmitCommand
| Name | Type | Required | Description |
|---|
module_id | string | yes | |
release_ref | string | yes | |
ReleaseStepCommand
| Name | Type | Required | Description |
|---|
to_state | "hazards_checked" | "clinical_review" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
ReleaseDecisionCommand
| Name | Type | Required | Description |
|---|
hazard_closure_evidence | string | yes | |
unresolved_issues | string | yes | |
clinical_signoff | string | yes | |
decision | "approve" | "block" | yes | |
expected_version | integer | yes | |
reason | string | yes | |
PolicyCommand
| Name | Type | Required | Description |
|---|
blocking_severities | array of string | yes | |
blocking_residual_risks | array of string | yes | |
approval_reference | string | yes | |
expected_version | integer | no | |
Error
| Name | Type | Required | Description |
|---|
error | string | no | |
message | string | no | |
details | object | no | |
CodeListBody.entries.item defined inline
| Name | Type | Required | Description |
|---|
code | string | yes | |
label | string | yes | |
rank | integer | yes | |
active | boolean | no | |
ExportCommand.filters defined inline
| Name | Type | Required | Description |
|---|
module | string | no | |
severity | string | no | |
release | string | no | |
jurisdiction | string | no | |
period_from | string | no | |
period_to | string | no | |