← Tous les contrats
OHN-36 Multi-Country Federation and Sovereignty
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-36/api/openapi.yaml- Serveurs
https://opeshealthnetwork.com
- Authentification
bearerAuth: http bearer (JWT)
Télécharger le contrat (YAML)
Les contrats sont rédigés en anglais.
Bilateral federation agreements (W001 establishment, W003 revocation), cross-border disclosure decisions with accounting (W002), residency bindings and violations. Every POST requires an Idempotency-Key. Errors use {error, message, details}: 401 unauthenticated, 403 policy_denied / separation_of_duties, 404 not disclosed, 409 stale_version / invalid_transition / downstream_pending, 422 validation and domain refusals, 429 with Retry-After, 503 jurisdiction_unavailable / dependency_unavailable. Patient references are never returned.
Opérations
Health
GET/health/ohn-36Liveness and database check
Identifiant d’opération: ohn36_health
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
404 | Not found or not disclosed | |
Synthetic
POST/api/ohn/v1/federation/synthetic-tokenIssue a synthetic token (TypeScript baseline, synthetic mode only; the Java module never issues tokens and answers 404)
Identifiant d’opération: ohn36_syntheticToken
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
404 | Not found or not disclosed | |
POST/api/ohn/v1/federation/synthetic/setupConfigure the synthetic upstream fakes (synthetic mode only)
Identifiant d’opération: ohn36_syntheticSetup
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Federation
GET/api/ohn/v1/federation/contextCaller principal and permitted actions
Identifiant d’opération: ohn36_context
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/federation/vocabularyControlled vocabularies used by forms
Identifiant d’opération: ohn36_vocabulary
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Agreements
GET/api/ohn/v1/federation/agreementsAgreements visible to either country of the pair
Identifiant d’opération: ohn36_listAgreements
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
partner | query | string (uuid) | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreementsPropose a federation agreement (F001)
Identifiant d’opération: ohn36_proposeAgreement
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/federation/agreements/{id}Agreement with history and routing-policy status
Identifiant d’opération: ohn36_getAgreement
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreements/{id}/submitproposal -> legal_review (origin country)
Identifiant d’opération: ohn36_submitAgreement
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreements/{id}/withdrawWithdraw before activation (origin country)
Identifiant d’opération: ohn36_withdrawAgreement
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreements/{id}/legal-reviewlegal_review -> technical_attestation or rejected; lawful basis verified with OHN-20
Identifiant d’opération: ohn36_legalReview
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreements/{id}/attesttechnical_attestation -> bilateral_approval; accreditation (OHN-39) and trust anchor (OHN-45) checked
Identifiant d’opération: ohn36_attestAgreement
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreements/{id}/approveRecord the caller country approval (each side once, never the proposer)
Identifiant d’opération: ohn36_approveAgreement
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreements/{id}/activatebilateral_approval -> active; caches the routing policy
Identifiant d’opération: ohn36_activateAgreement
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreements/{id}/suspendactive -> suspension_approved; revokes grants and undelivered approvals
Identifiant d’opération: ohn36_suspendAgreement
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreements/{id}/revoke-trustsuspension_approved -> trust_keys_revoked (OHN-45); retries a pending confirmation
Identifiant d’opération: ohn36_revokeTrust
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreements/{id}/invalidate-sessionstrust_keys_revoked -> sessions_invalidated (OHN-38); retries a pending confirmation
Identifiant d’opération: ohn36_invalidateSessions
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/agreements/{id}/closesessions_invalidated -> closed, only when nothing is pending downstream
Identifiant d’opération: ohn36_closeAgreement
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/federation/trust-statusPer partner: agreement, accreditation and trust-anchor status
Identifiant d’opération: ohn36_trustStatus
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/federation/topologyCountries and agreements as a graph
Identifiant d’opération: ohn36_topology
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/federation/trust-policiesCached routing policies (CountryTrustPolicy)
Identifiant d’opération: ohn36_trustPolicies
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Disclosure
GET/api/ohn/v1/federation/requestsCross-border requests decided by this country (patient masked)
Identifiant d’opération: ohn36_listRequests
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
state | query | string | non | |
decision | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/requestsDecide a cross-border disclosure request (F002, W002); 202 when held for a dependency
Identifiant d’opération: ohn36_submitRequest
Authentification: bearerAuth
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 | Success | application/json: object
|
202 | Held (evaluation_pending) because a dependency is unavailable; nothing was disclosed | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/requests/simulateEvaluate a request without storing it (P004)
Identifiant d’opération: ohn36_simulateRequest
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/federation/requests/{id}Request with decision trace and history (patient masked)
Identifiant d’opération: ohn36_getRequest
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/requests/{id}/re-evaluateRe-run a held request
Identifiant d’opération: ohn36_reEvaluateRequest
Authentification: bearerAuth
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 | Success | application/json: object
|
202 | Held (evaluation_pending) because a dependency is unavailable; nothing was disclosed | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/requests/{id}/reviewPrivacy officer review of a sensitive request (not the requester)
Identifiant d’opération: ohn36_reviewRequest
Authentification: bearerAuth
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 | Success | application/json: object
|
202 | Held (evaluation_pending) because a dependency is unavailable; nothing was disclosed | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Residency
GET/api/ohn/v1/federation/residency/bindingsResidency bindings of the caller jurisdiction
Identifiant d’opération: ohn36_listBindings
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/residency/bindingsCreate or update a residency binding (F003)
Identifiant d’opération: ohn36_upsertBinding
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/residency/observationsRecord an observed data placement; 201 when it is a violation
Identifiant d’opération: ohn36_recordObservation
Authentification: bearerAuth
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 | Placement allowed; no violation recorded | application/json: object
|
201 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/federation/residency/violationsResidency violations
Identifiant d’opération: ohn36_listViolations
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
mitigated | query | string | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/residency/violations/{id}/mitigateRecord mitigation
Identifiant d’opération: ohn36_mitigateViolation
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Harness
GET/api/ohn/v1/federation/harness/casesCross-border policy test cases (patient hidden)
Identifiant d’opération: ohn36_listHarnessCases
Authentification: bearerAuth
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/harness/casesAdd a test case with its expected decision
Identifiant d’opération: ohn36_createHarnessCase
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/harness/cases/{id}/retireRetire a test case
Identifiant d’opération: ohn36_retireHarnessCase
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/harness/runRun every active case through the evaluator (nothing stored)
Identifiant d’opération: ohn36_runHarness
Authentification: bearerAuth
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 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Reports
GET/api/ohn/v1/federation/reports/{reportId}Run OHN-36-R001..R003
Identifiant d’opération: ohn36_runReport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-36-R001" | "OHN-36-R002" | "OHN-36-R003" | oui | |
origin | query | string (uuid) | non | |
destination | query | string (uuid) | non | |
status | query | string | non | |
country_pair | query | string | non | |
jurisdiction | query | string (uuid) | non | |
severity | query | string | non | |
from | query | string (date-time) | non | |
to | query | string (date-time) | non | |
cursor | query | string | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | application/json: object
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
POST/api/ohn/v1/federation/reports/{reportId}/exportCreate a signed, 5-minute, owner-only CSV or PDF export
Identifiant d’opération: ohn36_exportReport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-36-R001" | "OHN-36-R002" | "OHN-36-R003" | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Success | application/json: object
|
400 | Malformed request or missing Idempotency-Key | |
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
409 | Stale version, invalid transition, already approved, downstream pending or reused idempotency key | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
GET/api/ohn/v1/federation/exports/{token}Download an export (audited)
Identifiant d’opération: ohn36_downloadExport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
token | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Success | text/csv: string
application/pdf: string (binary)
|
401 | Unauthenticated | |
403 | Denied by policy (audited) | |
404 | Not found or not disclosed | |
422 | Validation failure or domain refusal | |
429 | Rate limited; see Retry-After | |
503 | Jurisdiction service or another dependency unavailable; nothing changed | |
Schémas
Error
| Nom | Type | Obligatoire | Description |
|---|
error | string | oui | |
message | string | non | |
details | any | non | |
Document
JSON document; shapes are listed in modules/OHN-36/data/schema.md
object
Receipt
| Nom | Type | Obligatoire | Description |
|---|
receipt_id | string (uuid) | oui | |
committed_at | string (date-time) | oui | |
aggregate_id | string (uuid) | oui | |
aggregate_type | string | oui | |
version | integer | oui | |
status | "committed" | "denied" | "pending" | oui | |
CommandResult
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | non | |
delivery | "committed" | "pending_downstream_confirmation" | non | |
Versioned
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
Reasoned
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
reason | string | oui | |
AgreementCreate
OHN-36-F001 Federation country agreement
| Nom | Type | Obligatoire | Description |
|---|
origin_country | string (uuid) | oui | Must be the caller jurisdiction |
partner_country | string (uuid) | oui | |
authorized_data_classes | string | oui | Comma- or newline-separated record classes: patient_summary, immunization, laboratory, imaging, medication, encounter, mental_health, sexual_reproductive, substance_use, genetic |
lawful_basis_ref | string (uuid) | oui | |
agreement_version | string | oui | |
expiry_date | string (date) | oui | |
LegalReview
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
decision | "approve" | "reject" | oui | |
reason | string | oui | |
Attest
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
attestation_ref | string (uuid) | oui | |
trust_anchor_ref | string (uuid) | oui | |
CrossBorderRequest
OHN-36-F002 Cross-border request review
| Nom | Type | Obligatoire | Description |
|---|
requesting_country | string (uuid) | oui | |
source_country | string (uuid) | oui | Must be the caller jurisdiction |
patient_ref | string (uuid) | oui | Restricted; never returned |
record_class | "patient_summary" | "immunization" | "laboratory" | "imaging" | "medication" | "encounter" | "mental_health" | "sexual_reproductive" | "substance_use" | "genetic" | oui | |
purpose | "emergency_care" | "treatment" | "care_coordination" | "public_health" | "legal_obligation" | oui | |
legal_authority_ref | string (uuid) | oui | |
RequestReview
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
decision | "approve" | "deny" | oui | |
reason | string | oui | |
Binding
OHN-36-F003 Residency binding configuration
| Nom | Type | Obligatoire | Description |
|---|
jurisdiction_id | string (uuid) | oui | |
resource_category | "clinical_records" | "identity_data" | "audit_logs" | "backups" | "observability" | "analytics" | oui | |
primary_region | string | oui | |
backup_region | string | oui | |
transfer_policy | "in_country_only" | "agreement_required" | "adequacy_and_agreement" | oui | |
expected_version | integer | non | Required to update an existing binding |
Observation
| Nom | Type | Obligatoire | Description |
|---|
resource_category | "clinical_records" | "identity_data" | "audit_logs" | "backups" | "observability" | "analytics" | oui | |
source_region | string | oui | |
destination_region | string | oui | |
detected_at | string (date-time) | non | |
Mitigate
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
mitigation | string | oui | |
HarnessCase
| Nom | Type | Obligatoire | Description |
|---|
name | string | oui | |
input | CrossBorderRequest | oui | OHN-36-F002 Cross-border request review |
expected_decision | "approved" | "denied" | "review_required" | oui | |
Export
| Nom | Type | Obligatoire | Description |
|---|
format | "csv" | "pdf" | oui | |
filters | object | non | |
SyntheticToken
| Nom | Type | Obligatoire | Description |
|---|
principal_id | string (uuid) | oui | |
role | "federation_officer" | "privacy_officer" | "federation_gateway" | "unauthorized_viewer" | oui | |
jurisdiction | string (uuid) | oui | |
organization_id | string (uuid) | oui | |
purpose | "federation_governance" | "privacy_oversight" | "emergency_care" | "treatment" | "care_coordination" | "public_health" | oui | |
SyntheticSetup
| Nom | Type | Obligatoire | Description |
|---|
countries | object | non | |
unaccredited | array of string (uuid) | non | |
revoked_anchors | array of string (uuid) | non | |
invalid_authorities | array of string (uuid) | non | |
deny_patients | array of string (uuid) | non | |
adequacy | array of string | non | |
down | array of "OHN-01" | "OHN-16" | "OHN-20" | "OHN-38" | "OHN-39" | "OHN-45" | non | |
reset | boolean | non | |