← Tous les contrats
OHN-48 Data Lifecycle and Legal Preservation
- Version
- 1.0.0
- OpenAPI
- 3.1.0
- Source dans le dépôt
modules/OHN-48/api/openapi.yaml- Serveurs
https://opeshealthnetwork.com
- Authentification
bearer: http bearer (Gateway JWT (ES256) iss=ohn-platform-gateway aud=ohn-48; claims sub (uuid), role, jurisdiction (uuid), organization_id (uuid), purpose)
Télécharger le contrat (YAML)
Les contrats sont rédigés en anglais.
Executable contract for OHN-48. Configurable retention schedules (OHN-48-W001), immutable legal holds (OHN-48-W002),
dual-approved disposal with signed deletion receipts (OHN-48-W003), archive integrity verification and the
OHN-48-R001..R003 reports. Inventory mapping (ADR-0001 §1):
- OHN-48-API-001 POST /api/ohn/v1/retention/policies -> POST /api/ohn/v1/data-lifecycle/retention/policies (form OHN-48-F001)
- OHN-48-API-002 POST /api/ohn/v1/legal-holds -> POST /api/ohn/v1/data-lifecycle/legal-holds (form OHN-48-F002)
- OHN-48-API-003 POST /api/ohn/v1/disposal-requests -> POST /api/ohn/v1/data-lifecycle/disposal-requests (form OHN-48-F003)
- OHN-48-API-004 GET /api/ohn/v1/archives -> GET /api/ohn/v1/data-lifecycle/archives (form OHN-48-F004 posts to /archive-verifications)
Every non-GET request requires an Idempotency-Key header. Every query is scoped to the token's jurisdiction and
organisation. Every write checks the jurisdiction live in OHN-01 first. Errors: 400 malformed/missing key,
401 unauthenticated, 403 denied_by_policy | jurisdiction_unavailable | jurisdiction_mismatch | self_approval |
not_named_approver | approval_rule_denied | approver_cannot_execute, 404 not_found, 409 concurrent_mutation |
invalid_transition | legal_hold_active | idempotency_conflict | evidence_immutable, 422 domain_validation_failed |
legal_minimum_not_configured | retention_below_legal_minimum | privacy_governance_denied | retention_not_elapsed |
non_disposable_class, 429 rate_limited, 503 dependency_unavailable (details name the dependency and the reason) | server_unavailable.
A 202 means the local fact committed but OHN-18 audit forwarding failed (pending reconciliation).
Java service (operations, reconciled with the observed TypeScript behaviour; see docs/program/java/ohn-48-contract-changes.md): tokens come
from the platform gateway only (ES256, iss ohn-platform-gateway, aud ohn-48; the synthetic sign-in routes of the reference are not part of
this contract); errors are application/problem+json carrying the reference's error and message (and details); 413 payload_too_large and
400 malformed_request are the body-reader refusals; a path id that is not a UUID is 404. Fail closed: disposal, export and approval steps
are refused (503 dependency_unavailable) when OHN-01, OHN-20 or OHN-45 cannot confirm, and nothing is deleted when a legal hold covers a
record set or cannot be ruled out. No retention period, legal minimum or legal basis ships with the module: they are configuration entered
by a legal officer and decided by OHN-20 (flagged for human review, docs/program/OWNER-BLOCKERS.md B525).
Opérations
retention
GET/api/ohn/v1/data-lifecycle/legal-minimums
Identifiant d’opération: ohn48_listLegalMinimums
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | Configured minimums and the record classes still missing one | — |
POST/api/ohn/v1/data-lifecycle/legal-minimumsLegal officer configures the legal minimum retention for a record class (configuration, not code).
Identifiant d’opération: ohn48_configureLegalMinimum
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
403 | Error | |
422 | Error | |
503 | Error | |
GET/api/ohn/v1/data-lifecycle/retention/policies
Identifiant d’opération: ohn48_listRetentionPolicies
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
page_size | query | integer | non | |
cursor | query | string | non | |
status | query | string | non | |
record_class | query | RecordClass | non | |
sort | query | "created_at" | "-created_at" | "updated_at" | "-updated_at" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Page of rows | |
POST/api/ohn/v1/data-lifecycle/retention/policiesOHN-48-API-001 / form OHN-48-F001 - draft a retention schedule (W001 enters at draft).
Identifiant d’opération: ohn48_createRetentionPolicy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
202 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
400 | Error | |
401 | Error | |
403 | Error | |
409 | Error | |
422 | Error | |
429 | Error | |
503 | Error | |
GET/api/ohn/v1/data-lifecycle/retention/policies/{id}
Identifiant d’opération: ohn48_getRetentionPolicy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Schedule with legal minimum and history | — |
404 | Error | |
POST/api/ohn/v1/data-lifecycle/retention/policies/{id}/transitionsOHN-48-W001 draft -> legal_review -> approved -> effective -> superseded (legal_review -> draft allowed).
approved: legal_officer only, not the author; requires a configured legal minimum, retention >= minimum and an
OHN-20 permit (contract ohn20.retention-decision/1.0.0). effective supersedes the current effective schedule.
Identifiant d’opération: ohn48_transitionRetentionPolicy
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
403 | Error | |
409 | Error | |
422 | Error | |
503 | Error | |
GET/api/ohn/v1/data-lifecycle/retention-calendarScreen OHN-48-P001 - each record set with its effective schedule, archive due, retention due and hold status.
Identifiant d’opération: ohn48_getRetentionCalendar
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
page_size | query | integer | non | |
cursor | query | string | non | |
record_class | query | RecordClass | non | |
status | query | "retained" | "disposal_eligible" | "on_hold" | "no_effective_schedule" | "disposed" | non | |
q | query | string | non | |
sort | query | "created_at" | "-created_at" | "updated_at" | "-updated_at" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Page of rows | |
legal-holds
GET/api/ohn/v1/data-lifecycle/legal-holdsScreen OHN-48-P002 legal hold queue.
Identifiant d’opération: ohn48_listLegalHolds
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
page_size | query | integer | non | |
cursor | query | string | non | |
status | query | string | non | |
case_reference | query | string (uuid) | non | |
sort | query | "created_at" | "-created_at" | "updated_at" | "-updated_at" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Page of rows | |
POST/api/ohn/v1/data-lifecycle/legal-holdsOHN-48-API-002 / form OHN-48-F002 - request a hold. It blocks disposal immediately (any state but released). Emits legal-hold.placed.
Identifiant d’opération: ohn48_placeLegalHold
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
422 | Error | |
503 | Error | |
GET/api/ohn/v1/data-lifecycle/legal-holds/{id}
Identifiant d’opération: ohn48_getLegalHold
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Hold with history | — |
404 | Error | |
GET/api/ohn/v1/data-lifecycle/legal-holds/{id}/scope-previewScreen OHN-48-P005 - covered record sets, blocked disposals, archives, unresolved refs, history.
Identifiant d’opération: ohn48_previewLegalHoldScope
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Scope preview | — |
404 | Error | |
POST/api/ohn/v1/data-lifecycle/legal-holds/{id}/transitionsOHN-48-W002 hold_requested -> scope_approved -> effective <-> periodic_review -> released (legal_officer; scope approver != placer; effective/periodic_review need a future next_review_at; released is terminal).
Identifiant d’opération: ohn48_transitionLegalHold
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
403 | Error | |
409 | Error | |
422 | Error | |
disposal
GET/api/ohn/v1/data-lifecycle/record-sets
Identifiant d’opération: ohn48_listRecordSets
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
page_size | query | integer | non | |
cursor | query | string | non | |
status | query | string | non | |
record_class | query | RecordClass | non | |
sort | query | "created_at" | "-created_at" | "updated_at" | "-updated_at" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Page of rows | |
POST/api/ohn/v1/data-lifecycle/record-setsRegister a SYNTHETIC record set (synthetic must be true; the database rejects anything else).
Identifiant d’opération: ohn48_registerRecordSet
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
422 | Error | |
503 | Error | |
GET/api/ohn/v1/data-lifecycle/record-sets/{id}
Identifiant d’opération: ohn48_getRecordSet
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Record set with item count | — |
404 | Error | |
GET/api/ohn/v1/data-lifecycle/disposal-requests
Identifiant d’opération: ohn48_listDisposalRequests
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
page_size | query | integer | non | |
cursor | query | string | non | |
status | query | string | non | |
record_class | query | RecordClass | non | |
sort | query | "created_at" | "-created_at" | "updated_at" | "-updated_at" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Page of rows | |
POST/api/ohn/v1/data-lifecycle/disposal-requestsOHN-48-API-003 / form OHN-48-F003 - request disposal (W003 eligible). Requester cannot be an approver; retention must have elapsed under an effective schedule; no covering hold; audit_evidence is never disposable.
Identifiant d’opération: ohn48_createDisposalRequest
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
409 | Error | |
422 | Error | |
503 | Error | |
GET/api/ohn/v1/data-lifecycle/disposal-requests/{id}Screen OHN-48-P006 - request, approval rule, covering holds, deletion receipt and history.
Identifiant d’opération: ohn48_getDisposalRequest
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Disposal request | — |
404 | Error | |
POST/api/ohn/v1/data-lifecycle/disposal-requests/{id}/hold-checkeligible -> hold_checked. No unreleased hold may cover the set and OHN-20 must permit disposal.
Identifiant d’opération: ohn48_holdCheckDisposal
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
409 | Error | |
422 | Error | |
503 | Error | |
POST/api/ohn/v1/data-lifecycle/disposal-requests/{id}/approvalsTwo-person approval by the two named approvers (dual_records_legal = one records_manager + one legal_officer; dual_legal_only = two legal officers). The second approval moves hold_checked -> dual_approved.
Identifiant d’opération: ohn48_approveDisposal
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
403 | Error | |
409 | Error | |
POST/api/ohn/v1/data-lifecycle/disposal-requests/{id}/executedual_approved -> executed (records_manager, not an approver, confirmation DISPOSE). Re-checks holds and eligibility, signs the deletion receipt and registers it in OHN-45 BEFORE deleting the synthetic items. Emits disposal.completed.
Identifiant d’opération: ohn48_executeDisposal
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
403 | Error | |
409 | Error | |
422 | Error | |
503 | Error | |
POST/api/ohn/v1/data-lifecycle/disposal-requests/{id}/preserve-receiptexecuted -> receipt_preserved once OHN-45 verifies the receipt signature.
Identifiant d’opération: ohn48_preserveDeletionReceipt
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
200 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
409 | Error | |
503 | Error | |
archives
GET/api/ohn/v1/data-lifecycle/archivesOHN-48-API-004 - archive manifests plus KPI tiles, 30-day verification trend and exception worklist (screen OHN-48-P004).
Identifiant d’opération: ohn48_listArchives
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
page_size | query | integer | non | |
cursor | query | string | non | |
status | query | string | non | |
record_class | query | RecordClass | non | |
sort | query | "created_at" | "-created_at" | "updated_at" | "-updated_at" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Page of rows | |
POST/api/ohn/v1/data-lifecycle/archivesArchive an active record set under the effective schedule; the content hash and count are computed server-side.
Identifiant d’opération: ohn48_registerArchive
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
409 | Error | |
422 | Error | |
GET/api/ohn/v1/data-lifecycle/archives/{id}
Identifiant d’opération: ohn48_getArchive
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
id | path | string (uuid) | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | Manifest with verifications | — |
404 | Error | |
POST/api/ohn/v1/data-lifecycle/archive-verificationsForm OHN-48-F004 (screen OHN-48-P007) - match iff expected_hash equals the manifest hash AND the stored content still hashes to it.
Identifiant d’opération: ohn48_verifyArchive
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
404 | Error | |
409 | Error | |
422 | Error | |
reports
GET/api/ohn/v1/data-lifecycle/reports/{reportId}OHN-48-R001 retention schedule coverage, OHN-48-R002 legal holds in effect, OHN-48-R003 disposal and archival evidence (formulas in metric_definitions and ADR-0001 §6).
Identifiant d’opération: ohn48_getReport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-48-R001" | "OHN-48-R002" | "OHN-48-R003" | oui | |
country | query | string (uuid) | non | |
record_class | query | RecordClass | non | |
status | query | string | non | |
case | query | string (uuid) | non | |
period_from | query | string (date-time) | non | |
period_to | query | string (date-time) | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Report with rows | — |
404 | Error | |
422 | Error | |
POST/api/ohn/v1/data-lifecycle/reports/{reportId}/exportAudited CSV/PDF export, Ed25519-signed and registered in OHN-45; one-time retrieval link. 503 when OHN-45 or the signing key is not configured.
Identifiant d’opération: ohn48_createExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
reportId | path | "OHN-48-R001" | "OHN-48-R002" | "OHN-48-R003" | oui | |
Idempotency-Key | header | string | oui | |
Corps de la requête (obligatoire)
Réponses
| Code | Description | Type de média |
|---|
201 | Committed state change with an audit receipt (202 = audit forwarding to OHN-18 failed, pending reconciliation). | |
503 | Error | |
GET/api/ohn/v1/data-lifecycle/exports/{token}One-time download by the requesting principal; X-OHN-Export-Signature carries the Ed25519 signature.
Identifiant d’opération: ohn48_downloadExport
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
token | path | string | oui | |
Réponses
| Code | Description | Type de média |
|---|
200 | File | text/csv
application/pdf
|
404 | Error | |
GET/health/ohn-48Liveness, the policy version and each dependency's mode. Public; 503 when the database is unavailable. (The reference's synthetic_auth field is gone with the synthetic sign-in.)
Identifiant d’opération: ohn48_health
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
503 | Database unavailable | |
GET/api/ohn/v1/data-lifecycle/healthPublic service liveness with each dependency's mode (live | synthetic-fake | unconfigured).
Identifiant d’opération: ohn48_serviceHealth
Réponses
| Code | Description | Type de média |
|---|
200 | OK | |
GET/api/ohn/v1/data-lifecycle/code-lists
Identifiant d’opération: ohn48_codeLists
Authentification: bearer
Réponses
| Code | Description | Type de média |
|---|
200 | Controlled vocabularies v1.0.0 | — |
GET/api/ohn/v1/data-lifecycle/audit-records
Identifiant d’opération: ohn48_listAuditRecords
Authentification: bearer
Paramètres
| Nom | Emplacement | Type | Obligatoire | Description |
|---|
page_size | query | integer | non | |
cursor | query | string | non | |
status | query | "committed" | "denied" | non | |
Réponses
| Code | Description | Type de média |
|---|
200 | Page of rows | |
Schémas
RecordClass
"clinical_record" | "imaging" | "laboratory" | "billing" | "consent" | "correspondence" | "research" | "audit_evidence"
DisposalApprovalRule
"dual_records_legal" | "dual_legal_only"
Error
application/problem+json, a superset of the reference {error, message, details}. details: for a 422 the first failing check per top-level field as a zod issue code (invalid_type, too_small, too_big, invalid_string, invalid_enum_value, invalid_literal, not_multiple_of, custom; unrecognized_keys under _); for a 503 dependency_unavailable {dependency, reason: unconfigured or unreachable or bad_response}; for a stale expected_version {current_version}.
| Nom | Type | Obligatoire | Description |
|---|
type | string | non | |
title | string | non | |
status | integer | non | |
detail | string | non | |
error | string | oui | |
message | string | non | |
trace_id | string | non | |
details | object | non | |
Receipt
| Nom | Type | Obligatoire | Description |
|---|
receipt_id | Uuid | oui | |
committed_at | string (date-time) | oui | |
aggregate_id | Uuid | oui | |
aggregate_type | string | oui | |
version | integer | oui | |
status | "committed" | oui | |
audit_forwarding | "forwarded" | "pending" | "failed" | oui | |
policy_version | string | oui | |
Provenance
| Nom | Type | Obligatoire | Description |
|---|
source | string | non | |
source_version | string | non | |
generated_at | string (date-time) | non | |
completeness | "complete" | "partial" | non | |
DependencyModes
| Nom | Type | Obligatoire | Description |
|---|
OHN-01 | DependencyMode | oui | live = HTTP contract client configured; synthetic-fake = test double (ohn.m48.synthetic-gateways=true only); unconfigured = fail closed (503 dependency_unavailable; OHN-18 forwarding stays pending) |
OHN-18 | DependencyMode | oui | live = HTTP contract client configured; synthetic-fake = test double (ohn.m48.synthetic-gateways=true only); unconfigured = fail closed (503 dependency_unavailable; OHN-18 forwarding stays pending) |
OHN-20 | DependencyMode | oui | live = HTTP contract client configured; synthetic-fake = test double (ohn.m48.synthetic-gateways=true only); unconfigured = fail closed (503 dependency_unavailable; OHN-18 forwarding stays pending) |
OHN-45 | DependencyMode | oui | live = HTTP contract client configured; synthetic-fake = test double (ohn.m48.synthetic-gateways=true only); unconfigured = fail closed (503 dependency_unavailable; OHN-18 forwarding stays pending) |
DependencyMode
live = HTTP contract client configured; synthetic-fake = test double (ohn.m48.synthetic-gateways=true only); unconfigured = fail closed (503 dependency_unavailable; OHN-18 forwarding stays pending)
"live" | "synthetic-fake" | "unconfigured"
Health
| Nom | Type | Obligatoire | Description |
|---|
status | "ok" | "unavailable" | oui | |
module | "OHN-48" | oui | |
version | "1.0.0" | non | |
policy_version | string | non | |
dependencies | DependencyModes | oui | |
LegalMinimumCommand
| Nom | Type | Obligatoire | Description |
|---|
jurisdiction_id | Uuid | oui | |
record_class | RecordClass | oui | |
min_retention_years | number | oui | |
authority_ref | Uuid | oui | |
RecordSetCommand
| Nom | Type | Obligatoire | Description |
|---|
label | string | oui | |
record_class | RecordClass | oui | |
retention_start_at | string (date-time) | oui | |
synthetic | true | oui | |
items | array of string | oui | |
RetentionPolicyCommand
Form OHN-48-F001 Retention schedule.
| Nom | Type | Obligatoire | Description |
|---|
jurisdiction_id | Uuid | oui | |
record_class | RecordClass | oui | |
legal_authority_ref | Uuid | oui | |
retention_years | number | oui | |
archive_after_days | integer | oui | |
disposal_approval_rule | DisposalApprovalRule | oui | |
LegalHoldCommand
Form OHN-48-F002 Legal hold placement. placed_by must equal the signed-in principal. Without record_set_refs the hold covers the whole organisation.
| Nom | Type | Obligatoire | Description |
|---|
subject_or_record_scope | string | oui | |
record_set_refs | array of Uuid | non | |
case_reference | Uuid | oui | |
authority_ref | Uuid | oui | |
reason | string | oui | |
placed_by | Uuid | oui | |
DisposalRequestCommand
Form OHN-48-F003 Disposal request. approval_a != approval_b != requester.
| Nom | Type | Obligatoire | Description |
|---|
record_set_ref | Uuid | oui | |
retention_policy | Uuid | oui | |
eligibility_evidence | Uuid | oui | |
approval_a | Uuid | oui | |
approval_b | Uuid | oui | |
ArchiveCommand
| Nom | Type | Obligatoire | Description |
|---|
record_set_ref | Uuid | oui | |
retention_policy | Uuid | oui | |
storage_tier | "warm" | "cold" | "deep_archive" | oui | |
evidence_ref | Uuid | oui | |
ArchiveVerificationCommand
Form OHN-48-F004 Archive integrity verification.
| Nom | Type | Obligatoire | Description |
|---|
archive_manifest_id | Uuid | oui | |
expected_hash | string | oui | |
verification_at | string (date-time) | oui | |
evidence_ref | Uuid | oui | |
TransitionCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
to_state | string | oui | |
evidence_ref | Uuid | oui | |
reason | string | oui | |
next_review_at | string (date-time) | non | |
VersionCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
ApprovalCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
decision | "approve" | oui | |
reason | string | oui | |
ExecuteCommand
| Nom | Type | Obligatoire | Description |
|---|
expected_version | integer | oui | |
confirmation | "DISPOSE" | oui | |
reason | string | oui | |
ExportCommand
| Nom | Type | Obligatoire | Description |
|---|
format | "csv" | "pdf" | oui | |
country | Uuid | non | |
record_class | RecordClass | non | |
status | string | non | |
case | Uuid | non | |
period_from | string (date-time) | non | |
period_to | string (date-time) | non | |
get-api-ohn-v1-data-lifecycle-health.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
status | "ok" | oui | |
service | "OHN-48" | oui | |
version | "1.0.0" | oui | |
dependencies | DependencyModes | oui | |
post-api-ohn-v1-data-lifecycle-legal-minimums.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
get-api-ohn-v1-data-lifecycle-record-sets.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
data | array of object | oui | |
next_cursor | string | null | oui | |
total | integer | non | |
provenance | Provenance | oui | |
post-api-ohn-v1-data-lifecycle-record-sets.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
get-api-ohn-v1-data-lifecycle-retention-policies.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
data | array of object | oui | |
next_cursor | string | null | oui | |
total | integer | non | |
provenance | Provenance | oui | |
post-api-ohn-v1-data-lifecycle-retention-policies.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
post-api-ohn-v1-data-lifecycle-retention-policies.response-202 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
post-api-ohn-v1-data-lifecycle-retention-policies-id-transitions.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
get-api-ohn-v1-data-lifecycle-retention-calendar.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
data | array of object | oui | |
next_cursor | string | null | oui | |
total | integer | non | |
provenance | Provenance | oui | |
get-api-ohn-v1-data-lifecycle-legal-holds.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
data | array of object | oui | |
next_cursor | string | null | oui | |
total | integer | non | |
provenance | Provenance | oui | |
post-api-ohn-v1-data-lifecycle-legal-holds.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
post-api-ohn-v1-data-lifecycle-legal-holds-id-transitions.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
get-api-ohn-v1-data-lifecycle-disposal-requests.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
data | array of object | oui | |
next_cursor | string | null | oui | |
total | integer | non | |
provenance | Provenance | oui | |
post-api-ohn-v1-data-lifecycle-disposal-requests.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
post-api-ohn-v1-data-lifecycle-disposal-requests-id-hold-check.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
post-api-ohn-v1-data-lifecycle-disposal-requests-id-approvals.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
post-api-ohn-v1-data-lifecycle-disposal-requests-id-execute.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
post-api-ohn-v1-data-lifecycle-disposal-requests-id-preserve-receipt.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
get-api-ohn-v1-data-lifecycle-archives.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
data | array of object | oui | |
next_cursor | string | null | oui | |
total | integer | non | |
provenance | Provenance | oui | |
post-api-ohn-v1-data-lifecycle-archives.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
post-api-ohn-v1-data-lifecycle-archive-verifications.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
post-api-ohn-v1-data-lifecycle-reports-reportid-export.response-201 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
receipt | Receipt | oui | |
pending_downstream | boolean | non | |
get-api-ohn-v1-data-lifecycle-audit-records.response-200 défini sur place
| Nom | Type | Obligatoire | Description |
|---|
data | array of object | oui | |
next_cursor | string | null | oui | |
total | integer | non | |
provenance | Provenance | oui | |