← Tous les contrats
OHN-46 Integration Certification and Testing
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-46/api/openapi.json- Serveurs
https://opeshealthnetwork.com/api/ohn/v1
- Authentification
bearer: http bearer
Télécharger le contrat (JSON)
Les contrats sont rédigés en anglais.
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.
Opérations
OHN-46
GET/conformance/suitesSuites (state, standard)
Identifiant d’opération: listSuites
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
cursor | query | string | non | Opaque page cursor (next_cursor of the previous page) |
state | query | string | non | |
standard | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: createSuite
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getSuite
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: publishSuite
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: approveMigration
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: listRuns
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
cursor | query | string | non | Opaque page cursor (next_cursor of the previous page) |
partner | query | string (uuid) | non | |
status | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: startRun
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: getRun
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: reviewRun
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: listAssessments
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
cursor | query | string | non | Opaque page cursor (next_cursor of the previous page) |
state | query | string | non | |
partner | query | string (uuid) | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: getAssessment
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: decide
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: suspend
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listFixtures
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: readPolicy
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: writePolicy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: listCodes
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
list | path | "execution_environment" | "capability_level" | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: upsertCodes
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
list | path | "execution_environment" | "capability_level" | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: expirySweep
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: drainOutbox
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: reportCatalog
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: runReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003" | oui | |
cursor | query | string | non | Opaque page cursor (next_cursor of the previous page) |
partner | query | string (uuid) | non | |
standard | query | string | non | |
release | query | string | non | |
status | query | "approved" | "retest_due" | "expired" | "suspended" | "rejected" | "pending" | non | R003 only |
period_from | query | string (date) | non | |
period_to | query | string (date) | non | |
Réponses
| Code | Description | Type de média |
|---|
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
Identifiant d’opération: createExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003" | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
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)
Identifiant d’opération: fetchExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
token | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
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) | — |
Autres opérations
GET/health/ohn-46Liveness incl. DB and dependency modes
Identifiant d’opération: health
Réponses
| Code | Description | Type de média |
|---|
200 | ok | — |
503 | unavailable | — |
Schémas
Error
| Nom | Type | Obligatoire | Description |
|---|
error | string | oui | |
message | string | non | |
details | any | non | |
Suite
| Nom | Type | Obligatoire | Description |
|---|
standard_name | string | oui | |
standard_version | string | oui | |
profile_package | string (uuid) | oui | |
test_set_ref | string (uuid) | oui | |
required_scenarios | string | oui | JSON: [{"scenario":"code","level":"capability_level code"}]; levels must be configured |
jurisdiction_id | string (uuid) | oui | Must equal the caller's jurisdiction |
terminology_version | string | non | |
Publish
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
Run
| Nom | Type | Obligatoire | Description |
|---|
partner_org | string (uuid) | oui | |
endpoint_ref | string (uuid) | oui | |
suite_id | string (uuid) | oui | |
synthetic_fixture_set | string (uuid) | oui | Must be a catalogued, certified synthetic set |
execution_environment | string | oui | |
renews_assessment_id | string (uuid) | non | |
Review
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
Decision
| Nom | Type | Obligatoire | Description |
|---|
decision | "approved" | "rejected" | oui | |
granted_level | string | non | |
scope_statement | string | non | Required for an approval: states exactly what the result covers |
failed_tests | string | non | |
exceptions | string | non | |
semantics_review_note | string | non | Required when the granted level requires a clinical-semantics review |
expires_at | string (date) | oui | |
reason | string | oui | |
expected_version | integer | oui | |
Suspend
| Nom | Type | Obligatoire | Description |
|---|
reason | string | oui | |
expected_version | integer | oui | |
Policy
| Nom | Type | Obligatoire | Description |
|---|
max_validity_days | integer | null | oui | |
renewal_window_days | integer | null | oui | |
approval_reference | string | oui | |
RunView
| Nom | Type | Obligatoire | Description |
|---|
id | string (uuid) | non | |
status | "executed" | "reviewed" | "approved" | "rejected" | non | |
pass_count | integer | non | |
fail_count | integer | non | |
highest_passed_level | string | null | non | |
result_scope | object | non | Always states suite, environment, production_like and level; certification is always false until an assessment is approved |
Report
| Nom | Type | Obligatoire | Description |
|---|
report_id | "OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003" | non | |
title | string | non | |
columns | array of any | non | |
rows | array of any | non | |
summary | object | non | |
state | "rendered" | "no_authorized_data" | non | |
generated_at | string (date-time) | non | |
CodeListUpsert.entries.item défini sur place
| Nom | Type | Obligatoire | Description |
|---|
code | string | oui | |
label_en | string | oui | |
label_fr | string | oui | |
active | boolean | non | |
attrs | object | non | capability_level: {rank, requires_production_like, requires_clinical_review}; execution_environment: {production_like} |
ExportCommand.filters défini sur place
| Nom | Type | Obligatoire | Description |
|---|
partner | string (uuid) | non | |
standard | string | non | |
release | string | non | |
status | "approved" | "retest_due" | "expired" | "suspended" | "rejected" | "pending" | non | |
period_from | string (date) | non | |
period_to | string (date) | non | |