Skip to content

← All contracts

OHN-47 Disaster Recovery and Business Continuity

Version
1.0.0
OpenAPI
3.1.0
Source in the repository
modules/OHN-47/api/openapi.yaml
Servers
https://opeshealthnetwork.com
Authentication
bearerAuth: http bearer (JWT)

Download the contract (YAML)

Contracts are written in English.

Records and verifies backups, restore drills, failovers, recovery objectives and continuity plans per jurisdiction. Synthetic records only: the service never performs real backups, restores or destructive actions. Recovery objectives (RPO/RTO) are approved records; drill interval and export signing are configuration (OHN47_DRILL_INTERVAL_DAYS, OHN47_EXPORT_SIGNING_KEY) and fail closed when unset. Every write needs an Idempotency-Key and returns an audit receipt; receipts are forwarded to OHN-18 when configured. Events published from ohn47_outbox: backup.failed, restore.drill.passed, failover.initiated.

Operations

Other operations

GET/api/ohn/v1/dr/health

Unauthenticated: status, export_signing_configured, drill_interval_configured, policy_version.

Operation ID: ohn47_health

Responses

CodeDescriptionMedia type
200Service health—
GET/health/ohn-47

Database probe and dependency modes (OHN-01

Operation ID: ohn47_platformHealth

Responses

CodeDescriptionMedia type
200Healthy—
503Database unavailable—
GET/api/ohn/v1/dr/code-lists

Operation ID: ohn47_getCodeLists

Authentication: bearerAuth

Responses

CodeDescriptionMedia type
200Versioned code lists and policy state—
GET/api/ohn/v1/dr/recovery-objectives

OHN-47-API-003

Operation ID: ohn47_listRecoveryObjectives

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
page_sizequeryintegerno
cursorquerystringno
statusquery"active" | "superseded" | "all"no
servicequerystring (uuid)no
data_classqueryDataClassno

Responses

CodeDescriptionMedia type
200Page of objectives—
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/recovery-objectives

OHN-47-F001-SUBMIT; incident_commander only; supersedes the active objective for the same service/data class.

Operation ID: ohn47_approveRecoveryObjective

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/recovery-objectives/{id}

Operation ID: ohn47_getRecoveryObjective

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200Objective with history—
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/backups

OHN-47-API-001; page plus KPIs

Operation ID: ohn47_listBackups

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
page_sizequeryintegerno
cursorquerystringno
statusquerystringno
servicequerystring (uuid)no

Responses

CodeDescriptionMedia type
200Backup monitor—
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/backups

Operation ID: ohn47_registerBackup

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/backups/{id}

Operation ID: ohn47_getBackup

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200Backup with history—
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/backups/{id}/transitions

Workflow OHN-47-W001.

Operation ID: ohn47_transitionBackup

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/restore-drills

Operation ID: ohn47_listRestoreDrills

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
page_sizequeryintegerno
cursorquerystringno
statusquerystringno
servicequerystring (uuid)no

Responses

CodeDescriptionMedia type
200Page of drills—
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/restore-drills

OHN-47-API-002 / OHN-47-F002-SUBMIT; idempotent; needs a hash-verified backup and an approved objective (503 not_configured otherwise).

Operation ID: ohn47_requestRestoreDrill

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/restore-drills/{id}

Operation ID: ohn47_getRestoreDrill

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200Drill with history—
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/restore-drills/{id}/evidence

Operation ID: ohn47_getRestoreDrillEvidence

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200Drill—
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/restore-drills/{id}/transitions

Workflow OHN-47-W002; signed_off requires incident_commander.

Operation ID: ohn47_transitionRestoreDrill

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/failovers

Operation ID: ohn47_listFailovers

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
page_sizequeryintegerno
cursorquerystringno
statusquerystringno
servicequerystring (uuid)no

Responses

CodeDescriptionMedia type
200Page of failovers—
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/failovers

Operation ID: ohn47_declareFailover

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/failovers/{id}

Operation ID: ohn47_getFailover

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200Failover with history and audit receipts—
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/failovers/{id}/decision

OHN-47-F003-SUBMIT; incident_commander only.

Operation ID: ohn47_decideFailover

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/failovers/{id}/transitions

Workflow OHN-47-W003.

Operation ID: ohn47_transitionFailover

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/continuity-plans

Operation ID: ohn47_listContinuityPlans

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
servicequerystring (uuid)no

Responses

CodeDescriptionMedia type
200Active plans—
POST/api/ohn/v1/dr/continuity-plans

Operation ID: ohn47_registerContinuityPlan

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/simulations/regional-data-loss

Read-only; writes nothing.

Operation ID: ohn47_simulateRegionalDataLoss

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
lost_regionquerystringyes
as_ofquerystring (date-time)no

Responses

CodeDescriptionMedia type
200Simulation—
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/audit-records

Operation ID: ohn47_listAuditRecords

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
page_sizequeryintegerno
cursorquerystringno
resource_idquerystring (uuid)no

Responses

CodeDescriptionMedia type
200Audit receipts in scope—
GET/api/ohn/v1/dr/events

Operation ID: ohn47_listOutboxEvents

Authentication: bearerAuth

Responses

CodeDescriptionMedia type
200Latest 100 outbox events in scope—
GET/api/ohn/v1/dr/reports/{id}

OHN-47-R001 | OHN-47-R002 | OHN-47-R003.

Operation ID: ohn47_getReport

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpath"OHN-47-R001" | "OHN-47-R002" | "OHN-47-R003"yes
jurisdictionquerystring (uuid)no
servicequerystring (uuid)no
period_fromquerystring (date-time)no
period_toquerystring (date-time)no
criticalityquery"critical" | "major" | "minor"no

Responses

CodeDescriptionMedia type
200Report with metrics—
defaultError (401 unauthenticated
application/json: Problem
POST/api/ohn/v1/dr/reports/{id}/export

Signed (HMAC) CSV/PDF; 503 not_configured without OHN47_EXPORT_SIGNING_KEY.

Operation ID: ohn47_createExport

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
idpathstringyes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201Committed with receipt (202 when the OHN-18 audit copy failed and is pending reconciliation)
defaultError (401 unauthenticated
application/json: Problem
GET/api/ohn/v1/dr/exports/{token}

One-time

Operation ID: ohn47_downloadExport

Authentication: bearerAuth

Parameters

NameInTypeRequiredDescription
tokenpathstringyes

Responses

CodeDescriptionMedia type
200File with X-OHN-Export-Signature—
404Error (401 unauthenticated
application/json: Problem

Schemas

Problem

Reference fields error, message and details (for 422 the first failing check per top-level field as a zod issue code: invalid_type, too_small, too_big, invalid_string, invalid_enum_value, invalid_union_discriminator; unknown keys under _ as unrecognized_keys) plus the platform problem+json superset.

NameTypeRequiredDescription
errorstringyes
messagestringno
detailsanyno
typestringno
titlestringno
statusintegerno
detailstringno
trace_idstringno

Receipt

NameTypeRequiredDescription
receipt_idstring (uuid)yes
committed_atstring (date-time)yes
aggregate_idstring (uuid)yes
aggregate_typestringyes
versionintegeryes
status"committed"yes
audit_forwarding"pending" | "forwarded" | "failed"yes
policy_versionstringyes

DataClass

"identity" | "clinical_record" | "consent" | "audit_log" | "cryptographic_material" | "operational_metadata"

Scenario

"full_restore" | "point_in_time_recovery" | "single_service_restore" | "regional_failover" | "ransomware_recovery" | "key_loss_recovery"

Sha256

string

TransitionBase

NameTypeRequiredDescription
expected_versionintegeryes
evidence_refstring (uuid)yes
reasonstringyes

RecoveryObjectiveCommand

OHN-47-F001 Recovery objective policy.

NameTypeRequiredDescription
servicestring (uuid)yes
data_classDataClassyes
rpo_secondsintegeryes
rto_minutesintegeryes
jurisdiction_idstring (uuid)yes
approval_refstring (uuid)yes

RestoreDrillCommand

OHN-47-F002 Restore drill request.

NameTypeRequiredDescription
servicestring (uuid)yes
backup_snapshot_refstring (uuid)yes
isolated_environmentstring (uuid)yes
scenarioScenarioyes
drill_ownerstring (uuid)yes

FailoverApprovalCommand

OHN-47-F003 Failover approval.

NameTypeRequiredDescription
incident_refstring (uuid)yes
target_regionstringyesTrimmed; must differ (case-insensitively) from the failed region.
data_loss_assessmentstringyes
decision"approve" | "reject"yes
approverstring (uuid)yesMust equal the authenticated incident commander.
expected_versionintegeryes

BackupRunCommand

NameTypeRequiredDescription
servicestring (uuid)yes
data_classDataClassyes
snapshot_refstring (uuid)yes
source_regionstringyes
storage_location_class"offsite" | "on_host_only"yes
content_hashSha256yes
backup_started_atstring (date-time)yesUTC with a trailing Z (zod datetime()).

FailoverDeclarationCommand

NameTypeRequiredDescription
servicestring (uuid)yes
data_classDataClassyes
incident_refstring (uuid)yesOne failover per incident and service.
source_regionstringyes
is_exercisebooleanyes
outage_detected_atstring (date-time)yes

ContinuityPlanCommand

NameTypeRequiredDescription
servicestring (uuid)yes
scenarioScenarioyes
titlestringyes
playbook_refstring (uuid)yes
drill_ownerstring (uuid)yes
isolated_environmentstring (uuid)no
backup_snapshot_refstring (uuid)no
review_due_atstring (date-time)yes

BackupTransition

to_state: encrypted (encryption_key_ref, checked active in OHN-45) | offsite_written (offsite_region != source, offsite_location_ref; on_host_only refused) | hash_verified (observed_hash; mismatch moves to failed) | recoverability_sampled (restore_drill_ref of a signed-off passed drill) | failed.

NameTypeRequiredDescription
expected_versionintegeryes
evidence_refstring (uuid)yes
reasonstringyes

DrillTransition

to_state: isolated_restore (restore_started_at) | data_integrity_checked (restore_completed_at, identity_check, consent_check, record_integrity_check) | rto_rpo_measured (measured_rpo_seconds, measured_rto_minutes >= observed restore, issue_count, issues) | signed_off (sign_off_decision passed|failed; incident commander, not the requester; passed only when all checks pass within objective) | failed.

NameTypeRequiredDescription
expected_versionintegeryes
evidence_refstring (uuid)yes
reasonstringyes

FailoverTransition

to_state: failover (requires approved decision) | consistency_reconciled (acknowledged_issuance_count must equal reconciled_issuance_count, measured_rpo_seconds, measured_rto_minutes, issue_count) | service_reopened.

NameTypeRequiredDescription
expected_versionintegeryes
evidence_refstring (uuid)yes
reasonstringyes

post-api-ohn-v1-dr-recovery-objectives.response-201 defined inline

NameTypeRequiredDescription
receiptReceiptyes

post-api-ohn-v1-dr-backups.response-201 defined inline

NameTypeRequiredDescription
receiptReceiptyes

post-api-ohn-v1-dr-backups-id-transitions.response-200 defined inline

NameTypeRequiredDescription
receiptReceiptyes

post-api-ohn-v1-dr-restore-drills.response-201 defined inline

NameTypeRequiredDescription
receiptReceiptyes

post-api-ohn-v1-dr-restore-drills-id-transitions.response-200 defined inline

NameTypeRequiredDescription
receiptReceiptyes

post-api-ohn-v1-dr-failovers.response-201 defined inline

NameTypeRequiredDescription
receiptReceiptyes

post-api-ohn-v1-dr-failovers-id-decision.response-200 defined inline

NameTypeRequiredDescription
receiptReceiptyes

post-api-ohn-v1-dr-failovers-id-transitions.response-200 defined inline

NameTypeRequiredDescription
receiptReceiptyes

post-api-ohn-v1-dr-continuity-plans.response-201 defined inline

NameTypeRequiredDescription
receiptReceiptyes

post-api-ohn-v1-dr-reports-id-export.request defined inline

NameTypeRequiredDescription
format"csv" | "pdf"yes

post-api-ohn-v1-dr-reports-id-export.response-201 defined inline

NameTypeRequiredDescription
receiptReceiptyes