OHN-26 Offline Synchronization and Edge Integration
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-26/api/openapi.yaml- Serveurs
https://opeshealthnetwork.com- Authentification
bearerAuth: http bearer (JWT)
Les contrats sont rédigés en anglais.
Default-deny, tenant-scoped edge sync API. Every POST requires Idempotency-Key. Errors use the Error schema; 401/403/404/409/422/429/503 map to UI states.
Opérations
- Autres opérations (36)
Autres opérations
GET/health/ohn-26Module health
POST/api/ohn/v1/edge/synthetic-tokenSynthetic sign-in of the TypeScript baseline (404 unless NODE_ENV!=production and OHN26_SYNTHETIC_AUTH=true). NOT SERVED by the Java service: tokens come from the platform gateway (ES256, issuer ohn-platform-gateway, audience ohn-26)
Identifiant d’opération: ohn26_syntheticToken
Corps de la requête (obligatoire)
application/json:SyntheticToken
Réponses
GET/api/ohn/v1/edge/contextCaller context, permissions and policy configuration
Identifiant d’opération: ohn26_context
Authentification: bearerAuth
Réponses
GET/api/ohn/v1/edge/vocabularyControlled vocabularies
Identifiant d’opération: ohn26_vocabulary
Authentification: bearerAuth
Réponses
GET/api/ohn/v1/edge/dashboardEdge fleet dashboard (P001)
Identifiant d’opération: ohn26_fleetDashboard
Authentification: bearerAuth
Réponses
GET/api/ohn/v1/edge/expirationOffline data expiration dashboard (P006)
Identifiant d’opération: ohn26_expirationDashboard
Authentification: bearerAuth
Réponses
GET/api/ohn/v1/edge/nodesList edge nodes
Identifiant d’opération: ohn26_listNodes
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
state | query | NodeState | non | |
facility | query | string (uuid) | non | |
cursor | query | string | non |
Réponses
POST/api/ohn/v1/edge/nodesRegister an edge node (OHN-26-F001-SUBMIT)
Identifiant d’opération: ohn26_registerNode
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:NodeRegistration
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
GET/api/ohn/v1/edge/nodes/{id}Edge node with cursor, grants, cases and history
Identifiant d’opération: ohn26_getNode
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
POST/api/ohn/v1/edge/nodes/{id}/transitionsAdvance enrollment (W001) or retire
Identifiant d’opération: ohn26_transitionNode
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)
application/json:NodeTransition
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
POST/api/ohn/v1/edge/nodes/{id}/compromiseReport device compromise (W003)
Identifiant d’opération: ohn26_reportCompromise
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)
application/json:Compromise
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
POST/api/ohn/v1/edge/nodes/{id}/wipe-confirmationDevice confirms remote wipe
Identifiant d’opération: ohn26_confirmWipe
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)
application/json:WipeConfirmation
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
POST/api/ohn/v1/edge/syncSubmit a signed offline delta batch (W002)
Identifiant d’opération: ohn26_submitSyncBatch
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:SyncBatch
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | A resend of an already accepted batch with identical content (same digest): the stored answer with duplicate true; nothing new is written. | — |
201 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
GET/api/ohn/v1/edge/cursorsList sync cursors
Identifiant d’opération: ohn26_listCursors
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
node | query | string (uuid) | non | |
cursor | query | string | non |
Réponses
GET/api/ohn/v1/edge/batchesSynchronization queue
Identifiant d’opération: ohn26_listBatches
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
status | query | BatchStatus | non | |
node | query | string (uuid) | non | |
facility | query | string (uuid) | non | |
sort | query | "received_desc" | "received_asc" | "seq_desc" | non | |
cursor | query | string | non |
Réponses
GET/api/ohn/v1/edge/batches/{id}Batch with item outcomes and history
Identifiant d’opération: ohn26_getBatch
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
POST/api/ohn/v1/edge/batches/{id}/revalidateRe-run revalidation for held items
Identifiant d’opération: ohn26_revalidateBatch
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)
application/json:Versioned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
POST/api/ohn/v1/edge/maintenance/expire-grantsExpire due offline grants
Identifiant d’opération: ohn26_expireGrants
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Empty
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
GET/api/ohn/v1/edge/conflictsList conflict cases
Identifiant d’opération: ohn26_listConflicts
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
status | query | ConflictStatus | non | |
entity_class | query | EntityClass | non | |
cursor | query | string | non |
Réponses
GET/api/ohn/v1/edge/conflicts/{id}Conflict case with both revisions
Identifiant d’opération: ohn26_getConflict
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
POST/api/ohn/v1/edge/conflicts/{id}/resolveResolve a conflict explicitly (OHN-26-F002-SUBMIT)
Identifiant d’opération: ohn26_resolveConflict
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)
application/json:ConflictResolution
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
GET/api/ohn/v1/edge/renewalsList renewal requests
Identifiant d’opération: ohn26_listRenewals
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
status | query | "requested" | "approved" | "rejected" | non | |
cursor | query | string | non |
Réponses
POST/api/ohn/v1/edge/renewalsRequest offline permission renewal (OHN-26-F003-SUBMIT)
Identifiant d’opération: ohn26_requestRenewal
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Renewal
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
GET/api/ohn/v1/edge/renewals/{id}Renewal request
Identifiant d’opération: ohn26_getRenewal
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
POST/api/ohn/v1/edge/renewals/{id}/decideApprove or reject a renewal (dual control)
Identifiant d’opération: ohn26_decideRenewal
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)
application/json:RenewalDecision
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
GET/api/ohn/v1/edge/device-casesList device compromise cases
Identifiant d’opération: ohn26_listDeviceCases
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
cursor | query | string | non |
Réponses
GET/api/ohn/v1/edge/device-cases/{id}Device case with quarantined batches
Identifiant d’opération: ohn26_getDeviceCase
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
id | path | string (uuid) | oui |
Réponses
POST/api/ohn/v1/edge/device-cases/{id}/advanceRetry pending key revocation
Identifiant d’opération: ohn26_advanceDeviceCase
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)
application/json:Reasoned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
POST/api/ohn/v1/edge/device-cases/{id}/request-wipeRequest remote wipe
Identifiant d’opération: ohn26_requestWipe
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)
application/json:Reasoned
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
GET/api/ohn/v1/edge/alertsSync-time authorization alerts
Identifiant d’opération: ohn26_listAlerts
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
type | query | AlertType | non | |
status | query | "open" | "acknowledged" | non | |
cursor | query | string | non |
Réponses
POST/api/ohn/v1/edge/alerts/{id}/acknowledgeAcknowledge an alert
Identifiant d’opération: ohn26_acknowledgeAlert
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)
application/json:Acknowledge
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
GET/api/ohn/v1/edge/reports/{reportId}Run report R001-R003
Strict filters per report; any other query key or an invalid value is 422 invalid_filter. R001: jurisdiction (uuid, another jurisdiction yields no rows), facility, status (NodeState); R002: facility, entity_class, status (ConflictStatus); R003: facility, from, to (date-time with offset). cursor (max 64) pages 100 rows.
Identifiant d’opération: ohn26_runReport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
reportId | path | "OHN-26-R001" | "OHN-26-R002" | "OHN-26-R003" | oui | |
jurisdiction | query | string (uuid) | non | |
facility | query | string (uuid) | non | |
status | query | string | non | |
entity_class | query | EntityClass | non | |
from | query | string (date-time) | non | |
to | query | string (date-time) | non | |
cursor | query | string | non |
Réponses
POST/api/ohn/v1/edge/reports/{reportId}/exportCreate an audited CSV/PDF export
Identifiant d’opération: ohn26_exportReport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
reportId | path | "OHN-26-R001" | "OHN-26-R002" | "OHN-26-R003" | oui | |
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:Export
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
GET/api/ohn/v1/edge/exports/{token}Download an export (personal, 5 minutes)
Identifiant d’opération: ohn26_downloadExport
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
token | path | string | oui |
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | The signed export; Content-Disposition names the report and format. The link is personal (the caller who created it, in the same tenant) and lives five minutes; it is not single use. | text/csv: stringapplication/pdf: string (binary) |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
410 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
500 | Error | application/json: Error |
503 | Error | application/json: Error |
POST/api/ohn/v1/edge/synthetic/factsSeed synthetic upstream facts (synthetic mode only: the TypeScript baseline with OHN26_SYNTHETIC_AUTH=true, Java with ohn.m26.synthetic-gateways=true; 404 otherwise)
Identifiant d’opération: ohn26_syntheticFact
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:SyntheticFact
Réponses
| Code | Description | Type de média |
|---|---|---|
201 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
POST/api/ohn/v1/edge/synthetic/signSign a batch with the synthetic device key (synthetic mode only)
Identifiant d’opération: ohn26_syntheticSign
Authentification: bearerAuth
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | oui |
Corps de la requête (obligatoire)
application/json:SyntheticSign
Réponses
| Code | Description | Type de média |
|---|---|---|
200 | Success; commands return an audit receipt | — |
401 | Error | application/json: Error |
403 | Error | application/json: Error |
404 | Error | application/json: Error |
409 | Error | application/json: Error |
413 | Error | application/json: Error |
422 | Error | application/json: Error |
429 | Error | application/json: Error |
503 | Error | application/json: Error |
Schémas
NodeState
"device_claimed" | "attested" | "facility_bound" | "policy_installed" | "active" | "blocked" | "retired"
EntityClass
"observation" | "encounter" | "immunization" | "medication_administration" | "appointment" | "demographic_update" | "stock_level"
Operation
"create" | "update" | "identity_merge"
ItemPurpose
"treatment" | "public_health" | "operations"
BatchStatus
"applied" | "partial" | "held" | "rejected" | "quarantined"
ItemOutcome
"accepted" | "conflict" | "denied_consent" | "denied_authorization" | "denied_scope" | "rejected_identity_merge" | "quarantined_identity" | "held_dependency_unavailable" | "quarantined_compromise" | "resolved"
ConflictStatus
"open" | "resolved" | "frozen"
Resolution
"keep_server" | "apply_local" | "manual_merge"
SignalType
"lost" | "stolen" | "tamper_detected" | "anomalous_sync" | "operator_report"
AlertType
"stale_consent" | "expired_grant" | "revoked_device" | "authorization_denied" | "clock_skew" | "signature_invalid" | "scope_violation" | "identity_quarantine"
Role
"edge_operator" | "clinical_data_steward" | "sync_auditor" | "unauthorized_viewer"
Error
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
error | string | oui | |
message | string | non | |
details | any | non | Validation failures: zod flatten() shape {formErrors: [string], fieldErrors: {field: [string]}}; domain refusals add fieldErrors or codes such as current_version, expected_batch_seq, remote_wipe_required, clock_skew_seconds |
type | string | non | |
title | string | non | |
status | integer | non | |
detail | string | non | |
trace_id | string | non |
Empty
object
Versioned
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui |
Reasoned
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
reason | string | oui |
SyntheticToken
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
principal_id | string (uuid) | oui | |
role | Role | oui | |
jurisdiction | string (uuid) | oui | |
organization_id | string (uuid) | oui | |
purpose | "edge_operations" | "data_stewardship" | "audit" | oui |
NodeRegistration
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
facility_id | string (uuid) | oui | |
device_attestation_ref | string (uuid) | oui | |
jurisdiction_id | string (uuid) | oui | |
software_version | string | oui | |
sync_scope | string | oui | Comma-separated EntityClass values |
max_offline_hours | integer | oui | maximum 100000; must not exceed the jurisdiction cap (ohn.m26.max-offline-hours-cap / OHN26_MAX_OFFLINE_HOURS_CAP) when one is configured |
NodeTransition
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
to | "attested" | "facility_bound" | "policy_installed" | "active" | "retired" | oui | |
expected_version | integer | oui | |
reason | string | oui | |
device_key_ref | string (uuid) | non |
Compromise
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
signal_type | SignalType | oui | |
reason | string | oui | |
expected_version | integer | oui |
WipeConfirmation
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
wipe_receipt_digest | string | oui |
SyncItem
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
local_seq | integer | oui | |
entity_class | EntityClass | oui | |
entity_ref | string (uuid) | oui | |
patient_ref | string (uuid) | oui | |
operation | Operation | oui | |
purpose | ItemPurpose | oui | |
base_revision | string | null | oui | |
local_revision | string | oui | |
payload | object | oui | At most 16384 characters as JSON |
SyncBatch
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
edge_node_id | string (uuid) | oui | |
batch_seq | integer | oui | |
device_clock_at | string (date-time) | oui | |
policy_version | string | oui | |
grant_id | string (uuid) | oui | |
signature | SyncBatch.signature | oui | |
items | array of SyncItem | oui |
ConflictResolution
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
batch_id | string (uuid) | oui | |
entity_ref | string (uuid) | oui | |
local_revision | string | oui | |
server_revision | string | oui | |
resolution | Resolution | oui | |
clinical_reviewer | string (uuid) | non | Required (= caller) for clinical entity classes |
reason | string | oui | |
expected_version | integer | oui | |
merged_payload | object | non |
Renewal
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
edge_node_id | string (uuid) | oui | |
requested_scope | string | oui | |
last_policy_version | string | oui | |
last_sync_time | string (date-time) | oui | |
justification | string | oui |
RenewalDecision
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
decision | "approve" | "reject" | oui | |
reason | string | oui | |
expected_version | integer | oui |
Acknowledge
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
expected_version | integer | oui | |
note | string | oui |
Export
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
format | "csv" | "pdf" | oui | |
filters | object | non | The report's strict filters (as query parameters); invalid ones are 422 invalid_filter |
SyntheticFact
Discriminated by kind. identity: patient_ref, status (active, merged, under_review, unknown); consent: patient_ref, purpose, status (granted, withdrawn, unknown); authorization: patient_ref, purpose, decision (permit, deny, indeterminate); device_key: key_ref, status (active, revoked); attestation: attestation_ref, status (trusted, unmanaged, untrusted); outage: dependency (OHN-02, OHN-15, OHN-16, OHN-45), down. Each is strict.
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
kind | "identity" | "consent" | "authorization" | "device_key" | "attestation" | "outage" | oui |
SyntheticSign
batch: a SyncBatch without signature plus key_ref (uuid); the answer carries the digest (SHA-256 of the key-sorted JSON of edge_node_id, batch_seq, device_clock_at, policy_version, grant_id, items) and the stand-in ES256 signature
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
batch | object | oui |
SyncBatch.signature défini sur place
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
key_ref | string (uuid) | oui | |
algorithm | "ES256" | oui | |
value | string | oui |