Aller au contenu

← Tous les contrats

OHN-42 Sensitive Data Segmentation

Version
1.0.0
OpenAPI
3.1.0
Source dans le dépôt
modules/OHN-42/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 (sensitive_data_governance). Anything unlabeled, pending or unpolicied is withheld.

Opérations

OHN-42

GET/classification/decisionsDecisions (status, resource_ref)

Identifiant d’opération: listDecisions

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statusquerystringnon
resource_refquerystring (uuid)non
cursorquerystringnon

Réponses

CodeDescriptionType de média
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/decisionsClassify a resource against published policies (API-001; W001)

Identifiant d’opération: classify

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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/decisions/{id}Decision with history

Identifiant d’opération: getDecision

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, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/decisions/{id}/reviewClinical review of a held decision (not the classifier)

Identifiant d’opération: reviewDecision

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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/labelsLabels in force (status, patient_ref)

Identifiant d’opération: listLabels

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statusquerystringnon
patient_refquerystring (uuid)non
cursorquerystringnon

Réponses

CodeDescriptionType de média
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/labels/{id}Label inspector for a resource ref

Identifiant d’opération: getLabel

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, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/policiesSensitivity policies (API-002)

Identifiant d’opération: listPolicies

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequerystringnon
resource_categoryquerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/policiesDraft a sensitivity policy (F001)

Identifiant d’opération: createPolicy

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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/policies/{id}One policy

Identifiant d’opération: getPolicy

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, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/policies/{id}/publishPublish a policy (author cannot publish; API-003)

Identifiant d’opération: publishPolicy

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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/evaluationsEvaluate/enforce disclosure for resources (F002; W002)

Identifiant d’opération: evaluate

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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/exceptionsExceptions (state, sensitivity_type)

Identifiant d’opération: listExceptions

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
statequerystringnon
sensitivity_typequerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/exceptionsRequest a time-bounded exception (F003; W003)

Identifiant d’opération: requestException

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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/exceptions/{id}Exception with reviews and history

Identifiant d’opération: getException

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, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/exceptions/{id}/reviewsReview an exception; needs one approval per reviewer role

Identifiant d’opération: reviewException

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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/exceptions/{id}/revokeRevoke an approved exception (privacy officer)

Identifiant d’opération: revokeException

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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/settingsRead settings (unset = fail closed)

Identifiant d’opération: readSettings

Authentification: bearer

Réponses

CodeDescriptionType de média
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/settingsWrite settings

Identifiant d’opération: writeSettings

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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/code-lists/{list}Read code list

Identifiant d’opération: listCodes

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
listpath"resource_category" | "sensitivity_label" | "requester_role" | "purpose" | "exception_basis"oui

Réponses

CodeDescriptionType de média
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/code-lists/{list}Upsert code list entries

Identifiant d’opération: upsertCodes

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
listpath"resource_category" | "sensitivity_label" | "requester_role" | "purpose" | "exception_basis"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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/maintenance/expire-sweepRecord expiry of approved exceptions past their time limit

Identifiant d’opération: expireSweep

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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/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, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/reports/{reportId}Run report

Identifiant d’opération: runReport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpath"OHN-42-R001" | "OHN-42-R002" | "OHN-42-R003"oui
purposequerystringnon
labelquerystringnon
statusquerystringnon
sourcequerystringnon
period_fromquerystringnon
period_toquerystringnon
cursorquerystringnon

Réponses

CodeDescriptionType de média
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
POST/classification/reports/{reportId}/exportCreate signed single-use export

Identifiant d’opération: createExport

Authentification: bearer

Paramètres

NomEmplacementTypeObligatoireDescription
reportIdpath"OHN-42-R001" | "OHN-42-R002" | "OHN-42-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, patient out of scope, or separation of duties—
404Not found / out of scope—
409Version conflict, illegal transition or idempotency mismatch
application/json: Error
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—
GET/classification/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
200OK
application/json: object
400Malformed / missing Idempotency-Key—
401Unauthenticated—
403Role/purpose denied, patient out of scope, or separation of duties—
404Not found / out of scope—
422Validation or domain refusal
application/json: Error
429Rate limited—
503Dependency unavailable (fails closed)—

Autres opérations

GET/health/ohn-42Liveness 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

Policy

NomTypeObligatoireDescription
resource_categorystringoui
sensitivity_labelstringoui
matching_criteriastringouiJSON: {"codes":["system|code"],"code_prefixes":["system|prefix"]}; at least one entry
purpose_limitationsstringouiJSON: {"allowed_purposes":[...],"allowed_roles":[...],"on_restricted":"redact"|"deny"}; empty lists mean nobody
policy_versionstringoui

Publish

NomTypeObligatoireDescription
expected_versionintegeroui
reasonstringoui

Classify

NomTypeObligatoireDescription
resource_refstring (uuid)oui
resource_categorystringoui
source_systemstringoui
patient_refstring (uuid)non
codesarray of stringoui

ReviewDecision

NomTypeObligatoireDescription
labelsarray of stringoui
reasonstringoui
expected_versionintegeroui

Evaluation

NomTypeObligatoireDescription
patient_refstring (uuid)oui
requester_rolestringoui
purposestringoui
requested_categoriesarray of stringnon
mode"preview" | "enforce"nonenforce returns only allowed_resource_refs; no counts, labels or reasons, never cacheable
resourcesarray of string (uuid)oui

ExceptionRequest

NomTypeObligatoireDescription
patient_refstring (uuid)oui
sensitivity_typestringoui
exception_basisstringoui
requester_rolestringoui
purposestringoui
resource_refsarray of string (uuid)oui
reasonstringoui
expires_atstring (date-time)ouiMust be in the future and within the configured maximum; no indefinite exceptions

ExceptionReview

NomTypeObligatoireDescription
decision"approve" | "deny"oui
reasonstringoui
expected_versionintegeroui

ExceptionRevoke

NomTypeObligatoireDescription
reasonstringoui
expected_versionintegeroui

Settings

NomTypeObligatoireDescription
default_labelstring | nulloui
max_exception_daysinteger | nulloui
approval_referencestringoui

CodeListUpsert

NomTypeObligatoireDescription
entriesarray of CodeListUpsert.entries.itemoui

ExportCommand

NomTypeObligatoireDescription
format"csv" | "pdf"oui
filtersobjectnonReport filters (purpose, label, status, source, period_from, period_to); unknown keys are refused with 422

Report

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

CodeListUpsert.entries.item défini sur place

NomTypeObligatoireDescription
codestringoui
label_enstringoui
label_frstringoui
activebooleannon