← Privacy & Anonymisation

FEAT-CONSENT-LEDGER

Consent Ledger

Patient consents — for processing, for sharing, for research, for AI use of their data, for specific recording sessions — are first-class records on the platform. They live in one shared component that every clinical workflow checks before acting, every crossing of the privacy boundary reads before brokering, and every patient-rights workflow consults before granting access or erasure. Consent is not a per-module checkbox; it is a customer organisation- wide ledger that the platform enforces uniformly across every clinical and support module the customer enables.

Why this matters

GDPR built consent as a foundational lawful basis. Estonian healthcare law layers additional consent requirements for specific processing types (research use of clinical data, cross-border data transfer, secondary use). National insurance bodies layer their own. The patient's right to withdraw consent — at any time, with the effect propagating to every component holding their data — is a structural requirement, not a feature.

A platform where each module owns its own consent surface fails this requirement at multiple points: the patient withdraws consent in one module's UI, the others don't know; the DPO can't demonstrate to the regulator that withdrawal propagated; the patient sees one consent setting in the portal but a different module is still operating on the old consent. The customer ends up explaining inconsistencies to the patient, to the regulator, and to their own internal audit.

The opposite design — one organisation-wide consent ledger that every module checks — makes consent semantics uniform. A withdrawal in the patient portal propagates immediately. A new module enabled in a department inherits the consent posture without re-deriving it. A DPO query "what has this patient consented to?" gets one answer.

The Consent ledger is that single source. It is part of the Shared Clinical Surface, sits adjacent to the Privacy Boundary (whose crossings enforce consent), and is the surface the patient portal reads when the patient exercises their rights.

What's in the box

Patient consents are first-class records

Each consent is a FHIR consent record resource: who the data subject is, what scope it authorises (specific clinical operations, specific recipients, specific time windows), under which lawful basis, with which policy URL backing it, with which evidence trail (the form the patient signed, the verbal recording, the checkbox in the portal).

The ledger holds consents per patient across every module that ever asked for one. The patient at the cardiology visit consented to a recording session there; the consent record sits in the ledger. The same patient consented to research use at admission six months ago; that consent sits in the same ledger. A single Art 15 query returns both.

Withdrawal is honoured immediately

Every consent the ledger holds is withdrawable. Withdrawal lives as a status change on the consent record itself — the original remains in the audit trail (proving what was consented to and when), but the active status flips.

The propagation is automatic. Modules read consent state at decision time (when starting a recording, when sending data to an insurer, when allowing research access) rather than caching their own copy. A withdrawal in the patient portal at 14:32 takes effect at 14:32 across every module the platform carries.

A patient who withdraws consent for their visit transcripts to be processed by an AI model sees that effect immediately: the visit assistant stops sending their content through the AI pipeline. The DPO can demonstrate this to a regulator with one query against the audit feed.

Every crossing of the privacy boundary checks the ledger

A crossing that carries personal data out of the platform — posting a discharge letter, querying a national registry, sharing data with an insurer — checks the consent ledger first. A patient who hasn't consented to a specific external sharing gets that sharing refused, with an audit event recording the refusal.

This is where the consent ledger and the privacy boundary pair: the ledger holds the records; the crossing enforces the checks. Neither on its own delivers the full promise; together they realise the consent semantics the customer needs.

GDPR Art 7 / 17 / 18 / 21 served through one surface

  • Art 7 (conditions for consent) — the ledger carries the evidence trail per consent: who recorded it, when, in what form, with what policy backing.
  • Art 17 (erasure) — carried out by the data store, which destroys the person's key so every sealed copy of their identifying details becomes unreadable at once (see Master Patient Index).
  • Art 18 (restriction) — a restricted-processing flag on the consent record bounds future operations; modules read the restriction at decision time.
  • Art 21 (objection) — works as a specific scoped withdrawal; the ledger records the objection and its scope.

The patient portal exercises Art 7, 18 and 21 against the ledger directly — no per-module workflow required.

Patient self-service

The patient portal surfaces every active consent the patient has given, in patient-readable form (plain Estonian rather than FHIR-resource jargon), with the ability to withdraw any of them. The portal also surfaces the patient's GDPR rights and routes their exercise to the ledger and, for erasure, to the data store.

A patient looking at "what processing is currently authorised on my data?" sees one list, not one-per-module. A patient withdrawing a research-use consent sees the withdrawal take effect within seconds.

Standards we lean on

  • GDPR Art 6(1)(a), Art 9(2)(a), Art 7 — consent as lawful basis, with the conditions for valid consent.
  • GDPR Art 17, 18, 21 — the patient-rights workflows.
  • ePrivacy Directive 2002/58/EC Art 5(3) — consent for communications and storage.
  • Estonian Tervishoiuteenuste korraldamise seadus §42, §59 — clinical-record consent and patient-rights provisions.
  • HIPAA 45 CFR 164.508 (authorizations) — patient authorisation for specific disclosures.
  • ISO 27001:2022 Annex A.5.34 — consent as the lawful-basis evidence trail.

What customers and operators experience

  • A clinician writes a consent at the moment the patient gives it (signs a paper, taps a checkbox, says "yes" in a recorded televisit) and never has to worry about whether other modules will respect it. They will.
  • A patient uses the portal to see every consent they've given, withdraw any of them, exercise Art 15 / 17 / 18 / 21 rights — all through one surface.
  • A DPO has one ledger to audit, one workflow to demonstrate compliance against, one place to query when a regulator asks "what consent backed processing X?"
  • A regulator sees a uniform consent model across modules; the audit trail is at the ledger, not scattered.
  • A new module developer doesn't design a consent surface. They write a check against the existing ledger and inherit the customer's full consent posture.

Limits and trade-offs

  • Consent is the lawful basis only where it applies. Treatment under Art 9(2)(h), care-coordination under Art 6(1)(f), vital interests under Art 9(2)(c) all stand on their own; the ledger doesn't manufacture a consent requirement where the law doesn't impose one. The recording service's three-regime model () is the clearest example.
  • Granular consent has a UX cost. A patient checkbox per module per data type per recipient is the maximally precise shape; presented all at once it's also incomprehensible. The ledger holds whatever granularity the zone policy and the customer's UI choose to present, balancing precision against usability per organisation.
  • Withdrawal cannot undo what was already shared. A consent withdrawn at 14:32 doesn't recall the discharge letter sent at 09:00. The ledger blocks future operations; the patient retains the right to ask the recipient to delete what they already hold, but that's a separate workflow against the recipient.
  • Consent is jurisdiction-specific. What counts as valid consent under Estonian law differs from Germany or France. The ledger's policy references are zone-bound; the ledger itself is the consistent shape across zones, the policies it cites are not.
What it rests on
0 / 7 passing 2 without a result yet
  • kept by its basis its basis has no result Every consent given, changed or withdrawn is kept as a version of its own, so what a patient had agreed to on any date can always be shown. REQ-CNS-EVERY-CONSENT-CHANGE-IS-KEPT
    Based on 1 promise
    • not cited Every write appends an immutable version; version-aware reads and optimistic concurrency (ETag) are first-class. REQ-DBO-CORE-VERSIONED-HISTORY
  • kept by its basis its basis has no result When a patient is forgotten, their consents remain on record as having existed but no longer name anyone. REQ-CNS-A-FORGOTTEN-PATIENTS-CONSENTS-NAME-NOBODY
    Based on 1 promise
    • not cited Erasure destroys the person's key: history stays byte-immutable, existing archives stay valid as files, and the person's data is cryptographically gone from live store, history, envelopes and archives at once. REQ-DBO-PDI-CRYPTO-SHREDDING
  • gap: not yet stated Each consent is a record of its own: subject, scope, lawful basis, policy and evidence. FEAT-GAP-b3ca1c49
  • gap: not yet stated Every module and every crossing of the privacy boundary reads consent when it decides. FEAT-GAP-9245a41f
  • gap: not yet stated A withdrawal of consent takes effect everywhere at once, and a refused sharing is recorded. FEAT-GAP-639c23c7
  • gap: not yet stated Restriction and objection are scoped flags on the record. FEAT-GAP-d8785122
  • gap: not yet stated A patient and the data protection officer each see one list of consents across all modules, and the patient can withdraw from it. FEAT-GAP-5ce0669d