← 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
| Name | In | Type | Required | Description |
|---|
cursor | query | string | no | Opaque page cursor (next_cursor of the previous page) |
state | query | string | no | |
standard | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
POST/conformance/suitesRegister a conformance suite (F001)
Operation ID: createSuite
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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/suites/{id}Suite with migration impact and history
Operation ID: getSuite
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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency 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
| 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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
POST/conformance/suites/{id}/migration/approveApprove a version migration once every affected partner is retested
Operation ID: approveMigration
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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/runsRuns (partner, status)
Operation ID: listRuns
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
cursor | query | string | no | Opaque page cursor (next_cursor of the previous page) |
partner | query | string (uuid) | no | |
status | query | string | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
POST/conformance/runsRun a partner conformance test with synthetic fixtures (API-001; F002; W001)
Operation ID: startRun
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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/runs/{id}Run with per-scenario results, scope and history (API-002)
Operation ID: getRun
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string (uuid) | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | |
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency 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
| 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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/assessmentsAssessments (state, partner)
Operation ID: listAssessments
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
cursor | query | string | no | Opaque page cursor (next_cursor of the previous page) |
state | query | string | no | |
partner | query | string (uuid) | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/assessments/{id}Assessment with run and history
Operation ID: getAssessment
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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency 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
| 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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
POST/conformance/assessments/{id}/suspendSuspend an approved assessment
Operation ID: suspend
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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/fixturesSynthetic fixture catalogue
Operation ID: listFixtures
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | |
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/policyRead policy (unset = fail closed)
Operation ID: readPolicy
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
POST/conformance/policyWrite policy
Operation ID: writePolicy
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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/code-lists/{list}Read code list
Operation ID: listCodes
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
list | path | "execution_environment" | "capability_level" | yes | |
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
POST/conformance/code-lists/{list}Upsert code list entries (levels and environments carry attributes)
Operation ID: upsertCodes
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
list | path | "execution_environment" | "capability_level" | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
POST/conformance/maintenance/expiry-sweepEnd approvals past their expiry
Operation ID: expirySweep
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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
POST/conformance/maintenance/drain-outboxDrain outbox (no sink => nothing marked 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 / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/report-catalogReport catalog
Operation ID: reportCatalog
Authentication: bearer
Responses
| Code | Description | Media type |
|---|
200 | OK | application/json: object
|
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/reports/{reportId}Run report
Operation ID: runReport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | "OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003" | yes | |
cursor | query | string | no | Opaque page cursor (next_cursor of the previous page) |
partner | query | string (uuid) | no | |
standard | query | string | no | |
release | query | string | no | |
status | query | "approved" | "retest_due" | "expired" | "suspended" | "rejected" | "pending" | no | R003 only |
period_from | query | string (date) | no | |
period_to | query | string (date) | no | |
Responses
| Code | Description | Media type |
|---|
200 | OK | |
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
POST/conformance/reports/{reportId}/exportCreate signed single-use export
Operation ID: createExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
reportId | path | "OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003" | yes | |
Idempotency-Key | header | string | yes | |
Request body (required)
Responses
| Code | Description | Media type |
|---|
201 | OK | application/json: object
|
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
409 | Version conflict, illegal transition or idempotency mismatch | |
413 | Request body larger than 256 KB | — |
422 | Validation or domain refusal | |
429 | Rate limited | — |
503 | Dependency unavailable (fails closed) | — |
GET/conformance/exports/{token}Download export (owner only, single use, 5 min)
Operation ID: fetchExport
Authentication: bearer
Parameters
| Name | In | Type | Required | Description |
|---|
token | path | string | yes | |
Responses
| Code | Description | Media type |
|---|
200 | The export file | text/csv: string
application/pdf: string (binary)
|
400 | Malformed / missing Idempotency-Key | — |
401 | Unauthenticated | — |
403 | Role/purpose denied, jurisdiction mismatch, or separation of duties | — |
404 | Not found / out of scope | — |
410 | Export expired (export_expired) or already downloaded (export_consumed) | |
422 | Validation or domain refusal | |
429 | Rate limited | — |
500 | Export failed its integrity check (export_integrity_failed) | — |
503 | Dependency unavailable (fails closed) | — |
Other operations
GET/health/ohn-46Liveness incl. DB and dependency modes
Operation ID: health
Responses
| Code | Description | Media type |
|---|
200 | ok | — |
503 | unavailable | — |
Schemas
Error
| Name | Type | Required | Description |
|---|
error | string | yes | |
message | string | no | |
details | any | no | |
Suite
| Name | Type | Required | Description |
|---|
standard_name | string | yes | |
standard_version | string | yes | |
profile_package | string (uuid) | yes | |
test_set_ref | string (uuid) | yes | |
required_scenarios | string | yes | JSON: [{"scenario":"code","level":"capability_level code"}]; levels must be configured |
jurisdiction_id | string (uuid) | yes | Must equal the caller's jurisdiction |
terminology_version | string | no | |
Publish
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
Run
| Name | Type | Required | Description |
|---|
partner_org | string (uuid) | yes | |
endpoint_ref | string (uuid) | yes | |
suite_id | string (uuid) | yes | |
synthetic_fixture_set | string (uuid) | yes | Must be a catalogued, certified synthetic set |
execution_environment | string | yes | |
renews_assessment_id | string (uuid) | no | |
Review
| Name | Type | Required | Description |
|---|
expected_version | integer | yes | |
reason | string | yes | |
Decision
| Name | Type | Required | Description |
|---|
decision | "approved" | "rejected" | yes | |
granted_level | string | no | |
scope_statement | string | no | Required for an approval: states exactly what the result covers |
failed_tests | string | no | |
exceptions | string | no | |
semantics_review_note | string | no | Required when the granted level requires a clinical-semantics review |
expires_at | string (date) | yes | |
reason | string | yes | |
expected_version | integer | yes | |
Suspend
| Name | Type | Required | Description |
|---|
reason | string | yes | |
expected_version | integer | yes | |
Policy
| Name | Type | Required | Description |
|---|
max_validity_days | integer | null | yes | |
renewal_window_days | integer | null | yes | |
approval_reference | string | yes | |
RunView
| Name | Type | Required | Description |
|---|
id | string (uuid) | no | |
status | "executed" | "reviewed" | "approved" | "rejected" | no | |
pass_count | integer | no | |
fail_count | integer | no | |
highest_passed_level | string | null | no | |
result_scope | object | no | Always states suite, environment, production_like and level; certification is always false until an assessment is approved |
Report
| Name | Type | Required | Description |
|---|
report_id | "OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003" | no | |
title | string | no | |
columns | array of any | no | |
rows | array of any | no | |
summary | object | no | |
state | "rendered" | "no_authorized_data" | no | |
generated_at | string (date-time) | no | |
CodeListUpsert.entries.item defined inline
| Name | Type | Required | Description |
|---|
code | string | yes | |
label_en | string | yes | |
label_fr | string | yes | |
active | boolean | no | |
attrs | object | no | capability_level: {rank, requires_production_like, requires_clinical_review}; execution_environment: {production_like} |
ExportCommand.filters defined inline
| Name | Type | Required | Description |
|---|
partner | string (uuid) | no | |
standard | string | no | |
release | string | no | |
status | "approved" | "retest_due" | "expired" | "suspended" | "rejected" | "pending" | no | |
period_from | string (date) | no | |
period_to | string (date) | no | |