Aller au contenu

← 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

NomEmplacementTypeObligatoireDescription
cursorquerystringnonOpaque page cursor (next_cursor of the previous page)
statequerystringnon
standardquerystringnon

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: createSuite

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: getSuite

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: publishSuite

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: approveMigration

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: listRuns

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
cursorquerystringnonOpaque page cursor (next_cursor of the previous page)
partnerquerystring (uuid)non
statusquerystringnon

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: startRun

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

  • application/json: Run

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: getRun

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: reviewRun

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: listAssessments

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
cursorquerystringnonOpaque page cursor (next_cursor of the previous page)
statequerystringnon
partnerquerystring (uuid)non

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: getAssessment

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: decide

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: suspend

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
idpathstring (uuid)oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: listFixtures

Authentification: bearer

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: readPolicy

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: writePolicy

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: listCodes

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
listpath"execution_environment" | "capability_level"oui

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: upsertCodes

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
listpath"execution_environment" | "capability_level"oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: expirySweep

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: drainOutbox

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
Idempotency-Keyheaderstringoui

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: reportCatalog

Authentification: bearer

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: runReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpath"OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003"oui
cursorquerystringnonOpaque page cursor (next_cursor of the previous page)
partnerquerystring (uuid)non
standardquerystringnon
releasequerystringnon
statusquery"approved" | "retest_due" | "expired" | "suspended" | "rejected" | "pending"nonR003 only
period_fromquerystring (date)non
period_toquerystring (date)non

Réponses

CodeDescriptionType de média
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

Identifiant d’opération: createExport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpath"OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003"oui
Idempotency-Keyheaderstringoui

Corps de la requête (obligatoire)

Réponses

CodeDescriptionType de média
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)

Identifiant d’opération: fetchExport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
tokenpathstringoui

Réponses

CodeDescriptionType de média
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)—

Autres opérations

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

Identifiant d’opération: health

Réponses

CodeDescriptionType de média
200ok—
503unavailable—

Schémas

Error

NomTypeObligatoireDescription
errorstringoui
messagestringnon
detailsanynon

Suite

NomTypeObligatoireDescription
standard_namestringoui
standard_versionstringoui
profile_packagestring (uuid)oui
test_set_refstring (uuid)oui
required_scenariosstringouiJSON: [{"scenario":"code","level":"capability_level code"}]; levels must be configured
jurisdiction_idstring (uuid)ouiMust equal the caller's jurisdiction
terminology_versionstringnon

Publish

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

Run

NomTypeObligatoireDescription
partner_orgstring (uuid)oui
endpoint_refstring (uuid)oui
suite_idstring (uuid)oui
synthetic_fixture_setstring (uuid)ouiMust be a catalogued, certified synthetic set
execution_environmentstringoui
renews_assessment_idstring (uuid)non

Review

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

Decision

NomTypeObligatoireDescription
decision"approved" | "rejected"oui
granted_levelstringnon
scope_statementstringnonRequired for an approval: states exactly what the result covers
failed_testsstringnon
exceptionsstringnon
semantics_review_notestringnonRequired when the granted level requires a clinical-semantics review
expires_atstring (date)oui
reasonstringoui
expected_versionintegeroui

Suspend

NomTypeObligatoireDescription
reasonstringoui
expected_versionintegeroui

Policy

NomTypeObligatoireDescription
max_validity_daysinteger | nulloui
renewal_window_daysinteger | nulloui
approval_referencestringoui

CodeListUpsert

NomTypeObligatoireDescription
entriesarray of CodeListUpsert.entries.itemoui

ExportCommand

NomTypeObligatoireDescription
format"csv" | "pdf"oui
filtersExportCommand.filtersnon

RunView

NomTypeObligatoireDescription
idstring (uuid)non
status"executed" | "reviewed" | "approved" | "rejected"non
pass_countintegernon
fail_countintegernon
highest_passed_levelstring | nullnon
result_scopeobjectnonAlways states suite, environment, production_like and level; certification is always false until an assessment is approved

Report

NomTypeObligatoireDescription
report_id"OHN-46-R001" | "OHN-46-R002" | "OHN-46-R003"non
titlestringnon
columnsarray of anynon
rowsarray of anynon
summaryobjectnon
state"rendered" | "no_authorized_data"non
generated_atstring (date-time)non

get-conformance-fixtures.response-200 défini sur place

NomTypeObligatoireDescription
contractVersionstringoui
catalogue"synthetic" | "unconfigured" | "live"ouiWhere the catalogue comes from: live test data service, the built-in test catalogue, or not connected.
itemsarray of get-conformance-fixtures.response-200.items.itemoui

get-conformance-fixtures.response-200.items.item défini sur place

NomTypeObligatoireDescription
idstringoui
namestringoui
syntheticbooleanoui

CodeListUpsert.entries.item défini sur place

NomTypeObligatoireDescription
codestringoui
label_enstringoui
label_frstringoui
activebooleannon
attrsobjectnoncapability_level: {rank, requires_production_like, requires_clinical_review}; execution_environment: {production_like}

ExportCommand.filters défini sur place

NomTypeObligatoireDescription
partnerstring (uuid)non
standardstringnon
releasestringnon
status"approved" | "retest_due" | "expired" | "suspended" | "rejected" | "pending"non
period_fromstring (date)non
period_tostring (date)non