Skip to content

← All contracts

OHN-46 Integration Certification and Testing

Version
1.0.0
OpenAPI
3.1.0
Source in the repository
modules/OHN-46/api/openapi.json
Servers
https://opeshealthnetwork.com/api/ohn/v1
Authentication
bearer: http bearer

Download the contract (JSON)

Contracts are written in English.

Base path /api/ohn/v1. Every POST requires Idempotency-Key; mutations use expected_version. Routes default-deny on role AND purpose (conformance_testing). A run result states its scope and is never a certification on its own.

Operations

OHN-46

GET/conformance/suitesSuites (state, standard)

Operation ID: listSuites

Authentication: bearer

Parameters

NameInTypeRequiredDescription
cursorquerystringnoOpaque page cursor (next_cursor of the previous page)
statequerystringno
standardquerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/suitesRegister a conformance suite (F001)

Operation ID: createSuite

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/suites/{id}Suite with migration impact and history

Operation ID: getSuite

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/suites/{id}/publishPublish a suite (author cannot); supersedes the previous version and assesses impact (W002)

Operation ID: publishSuite

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/suites/{id}/migration/approveApprove a version migration once every affected partner is retested

Operation ID: approveMigration

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/runsRuns (partner, status)

Operation ID: listRuns

Authentication: bearer

Parameters

NameInTypeRequiredDescription
cursorquerystringnoOpaque page cursor (next_cursor of the previous page)
partnerquerystring (uuid)no
statusquerystringno

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/runsRun a partner conformance test with synthetic fixtures (API-001; F002; W001)

Operation ID: startRun

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

  • application/json: Run

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/runs/{id}Run with per-scenario results, scope and history (API-002)

Operation ID: getRun

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: RunView
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/runs/{id}/reviewRecord review of results (not the person who ran it); creates the pending assessment

Operation ID: reviewRun

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/assessmentsAssessments (state, partner)

Operation ID: listAssessments

Authentication: bearer

Parameters

NameInTypeRequiredDescription
cursorquerystringnoOpaque page cursor (next_cursor of the previous page)
statequerystringno
partnerquerystring (uuid)no

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/assessments/{id}Assessment with run and history

Operation ID: getAssessment

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/assessments/{id}/approveApprove or reject an assessment (F003; API-003); approver is not the reviewer

Operation ID: decide

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/assessments/{id}/suspendSuspend an approved assessment

Operation ID: suspend

Authentication: bearer

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/fixturesSynthetic fixture catalogue

Operation ID: listFixtures

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/policyRead policy (unset = fail closed)

Operation ID: readPolicy

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/policyWrite policy

Operation ID: writePolicy

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/code-lists/{list}Read code list

Operation ID: listCodes

Authentication: bearer

Parameters

NameInTypeRequiredDescription
listpath"execution_environment" | "capability_level"yes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/code-lists/{list}Upsert code list entries (levels and environments carry attributes)

Operation ID: upsertCodes

Authentication: bearer

Parameters

NameInTypeRequiredDescription
listpath"execution_environment" | "capability_level"yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/maintenance/expiry-sweepEnd approvals past their expiry

Operation ID: expirySweep

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/maintenance/drain-outboxDrain outbox (no sink => nothing marked delivered)

Operation ID: drainOutbox

Authentication: bearer

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/report-catalogReport catalog

Operation ID: reportCatalog

Authentication: bearer

Responses

CodeDescriptionMedia type
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/reports/{reportId}Run report

Operation ID: runReport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
reportIdpath"OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003"yes
cursorquerystringnoOpaque page cursor (next_cursor of the previous page)
partnerquerystring (uuid)no
standardquerystringno
releasequerystringno
statusquery"approved" | "retest_due" | "expired" | "suspended" | "rejected" | "pending"noR003 only
period_fromquerystring (date)no
period_toquerystring (date)no

Responses

CodeDescriptionMedia type
200OK
application/json: Report
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/conformance/reports/{reportId}/exportCreate signed single-use export

Operation ID: createExport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
reportIdpath"OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003"yes
Idempotency-Keyheaderstringyes

Request body (required)

Responses

CodeDescriptionMedia type
201OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
413Request body larger than 256 KB—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/conformance/exports/{token}Download export (owner only, single use, 5 min)

Operation ID: fetchExport

Authentication: bearer

Parameters

NameInTypeRequiredDescription
tokenpathstringyes

Responses

CodeDescriptionMedia type
200The export file
text/csv: string
application/pdf: string (binary)
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, jurisdiction mismatch, or separation of duties—
404Not found / out of scope—
410Export expired (export_expired) or already downloaded (export_consumed)
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
500Export failed its integrity check (export_integrity_failed)—
503Dependency unavailable (fails closed)—

Other operations

GET/health/ohn-46Liveness incl. DB and dependency modes

Operation ID: health

Responses

CodeDescriptionMedia type
200ok—
503unavailable—

Schemas

Error

NameTypeRequiredDescription
errorstringyes
messagestringno
detailsanyno

Suite

NameTypeRequiredDescription
standard_namestringyes
standard_versionstringyes
profile_packagestring (uuid)yes
test_set_refstring (uuid)yes
required_scenariosstringyesJSON: [{"scenario":"code","level":"capability_level code"}]; levels must be configured
jurisdiction_idstring (uuid)yesMust equal the caller's jurisdiction
terminology_versionstringno

Publish

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

Run

NameTypeRequiredDescription
partner_orgstring (uuid)yes
endpoint_refstring (uuid)yes
suite_idstring (uuid)yes
synthetic_fixture_setstring (uuid)yesMust be a catalogued, certified synthetic set
execution_environmentstringyes
renews_assessment_idstring (uuid)no

Review

NameTypeRequiredDescription
expected_versionintegeryes
reasonstringyes

Decision

NameTypeRequiredDescription
decision"approved" | "rejected"yes
granted_levelstringno
scope_statementstringnoRequired for an approval: states exactly what the result covers
failed_testsstringno
exceptionsstringno
semantics_review_notestringnoRequired when the granted level requires a clinical-semantics review
expires_atstring (date)yes
reasonstringyes
expected_versionintegeryes

Suspend

NameTypeRequiredDescription
reasonstringyes
expected_versionintegeryes

Policy

NameTypeRequiredDescription
max_validity_daysinteger | nullyes
renewal_window_daysinteger | nullyes
approval_referencestringyes

CodeListUpsert

NameTypeRequiredDescription
entriesarray of CodeListUpsert.entries.itemyes

ExportCommand

NameTypeRequiredDescription
format"csv" | "pdf"yes
filtersExportCommand.filtersno

RunView

NameTypeRequiredDescription
idstring (uuid)no
status"executed" | "reviewed" | "approved" | "rejected"no
pass_countintegerno
fail_countintegerno
highest_passed_levelstring | nullno
result_scopeobjectnoAlways states suite, environment, production_like and level; certification is always false until an assessment is approved

Report

NameTypeRequiredDescription
report_id"OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003"no
titlestringno
columnsarray of anyno
rowsarray of anyno
summaryobjectno
state"rendered" | "no_authorized_data"no
generated_atstring (date-time)no

get-conformance-fixtures.response-200 defined inline

NameTypeRequiredDescription
contractVersionstringyes
catalogue"synthetic" | "unconfigured" | "live"yesWhere the catalogue comes from: live test data service, the built-in test catalogue, or not connected.
itemsarray of get-conformance-fixtures.response-200.items.itemyes

get-conformance-fixtures.response-200.items.item defined inline

NameTypeRequiredDescription
idstringyes
namestringyes
syntheticbooleanyes

CodeListUpsert.entries.item defined inline

NameTypeRequiredDescription
codestringyes
label_enstringyes
label_frstringyes
activebooleanno
attrsobjectnocapability_level: {rank, requires_production_like, requires_clinical_review}; execution_environment: {production_like}

ExportCommand.filters defined inline

NameTypeRequiredDescription
partnerstring (uuid)no
standardstringno
releasestringno
status"approved" | "retest_due" | "expired" | "suspended" | "rejected" | "pending"no
period_fromstring (date)no
period_tostring (date)no