← Privacy & Anonymisation

FEAT-PII-MEMBRANE

Privacy Boundary

The boundary between data that names a patient and the clinical work that does not need to. It has three ways across, each owned once: identity, held sealed by the platform's data store under the Master Patient Index promise; written text, through Patient Data Anonymisation; and audio, through Speech Anonymisation. Anything carrying personal data crosses through one of them, and everything beyond works on records and text that no longer name anyone.

Why "Privacy Boundary" is a group of its own

A platform that treats patient data as ambient — visible to every module, embedded in every clinical resource, leaked through every screen — is a platform with a privacy exposure proportional to the number of modules it carries. Each new clinical module inherits the leak surface; each integration with an external system multiplies it.

The opposite design — a small group of mechanisms that own the personal data surface, with every other component working on pseudonymous records and safe text — bounds the privacy exposure to that group. Adding a new clinical module does not expand the personal data surface. An auditor reviewing the personal data posture of the system reviews the privacy boundary group, not every module.

That group has three entry points:

  • Identity — held by the platform's data store. Identifying details live once, on the person's record, sealed under that person's key. A read without a stated purpose gets the record without them; a read with one gets them and is recorded. See Master Patient Index and Identity Pseudonymization.
  • Patient Data Anonymisation — the free-text entry point. Raw clinical text (in transcripts, imported notes, uploaded documents) is anonymised in-zone before any downstream feature consumes it. Names become stable placeholders; the original text stays behind a sealed boundary.
  • Speech Anonymisation — the audio entry point. Captured clinical voice is transcribed and anonymised inside the privacy boundary; downstream features receive only safe transcript segments. Raw audio and raw transcripts stay behind the sealed boundary. No LLM call sits between audio and safe text.

The strategic value compounds with each module:

  • The lab module holds no patient identifiers at all. Not on screen, not in storage, not in any FHIR resource it touches. Specimen ID + order ID are the only handles; mapping back to a real person happens outside the lab system entirely.
  • The visit assistant runs a two-stage anonymisation: the doctor owns the patient binding at the bedside, the cloud workflow never sees patient data.
  • A future imaging module inherits the same posture: imaging studies reference a patient record that names nobody; identity is read, for a stated purpose, only at delivery (the radiology report sent to the GP).
  • A future pharmacy module inherits the same posture: scripts bound to pseudonymous records; identity read at dispensing.

This is the same architectural pattern the Foundation grouping applies to authentication and audit: solve it once at the foundation, every module inherits the solution.

What's in the group

| Entry point | Capability | Owns the way across for | |---|---|---| | Identity (the data store) | Master Patient Index · Identity Pseudonymization | Identity — one record per person, identifying details sealed under the person's key, disclosed only for a stated purpose. | | Patient Data Anonymisation | Patient Data Anonymisation | Free text — raw clinical text → safe text + placeholder map. Reusable engine consumed by Speech Anonymisation and any text-bearing inbound surface. | | Speech Anonymisation | Speech Anonymisation | Audio — captured clinical voice → safe transcript segments + annotations. Consumes Patient Data Anonymisation internally. |

The Privacy Boundary is a group rather than a single component because each of the three entry points has distinct mechanics (sealed identity in the store, text engine, audio pipeline) while sharing the membrane semantics — bridge identifiable personal data and pseudonymous clinical work. The group stays separate from Foundation so the membrane band is reviewable as a unit.

The promises identity carries

  1. One record per person. A patient's name, date of birth, national ID and contact details live once, on the person's record. A second record claiming the same national ID is refused when it is written.
  2. Identification is on demand, never default. A read without a stated purpose returns the record with its identifying details left out. Every disclosure records who, which record, and why.
  3. Forgetting is structural. A request to be forgotten destroys the person's key; every copy of their identifying details becomes unreadable at once.

How the three relate

The three group members are full members of the privacy boundary band, not sub-capabilities of one another. They do compose:

  • Speech Anonymisation consumes Patient Data Anonymisation internally for every transcript it produces. The two-pass pipeline, stable placeholders, per-zone patterns, and the sealed raw boundary are defined once in the Patient Data Anonymisation contract and reused.
  • Patient Data Anonymisation is reusable beyond speech. Any text-bearing inbound surface (uploaded documents, prior clinical notes imported from external systems, narrative fields in inbound API payloads) consumes the same engine before downstream features see the content.
  • Identity sits beside both. The data store owns identifying details (the structural pseudonymisation per identity pseudonymization); the other two own narrative content. The three together cover the full patient data surface — identity fields, free text, and audio.

Crossings with the outside world

The platform sends one kind of personal data out today: a staff member's own contact address, for an invitation or a password reset. It is read by the messaging service at the moment of sending, handed to the channel, and the crossing is audited.

The platform does not exchange identifying patient data with outside systems — national registries, insurers' own systems, correspondence. Lab device orders carry none. When such an exchange is offered, it is a step of a clinical process whose run names the recipient, so the disclosure is part of the work it belongs to.

Cross-cutting capabilities absorbed

The former Consented data use standalone capability is delivered by the Consent ledger component in Shared Clinical Surface: the ledger holds consent records, and a crossing of the privacy boundary checks them. There is no separate consented-data-use capability doc.

What this group does not include

  • Identity & roles (clinicians, not patients) is in Foundation. Authenticating a doctor at login is a Foundation concern; disclosing a patient's identity is a Privacy Boundary concern.
  • Consent ledger is in Shared Clinical Surface. The ledger holds records; the boundary checks against them. They are paired across the boundary, not co-located.
What it rests on
0 / 8 passing 6 without a result yet
  • kept by its basis its basis has no result Work done on a customer's data never carries a patient's identity with it: where a name is needed it is put back inside the customer's own boundary, for a stated purpose, recorded, and given only to the one who asked. REQ-MEM-IDENTITY-STAYS-WITH-THE-CUSTOMER
    Based on 1 promise
    • not cited Opening a sealed payload yields the carrier form, so a runner needs no vault to do its work. Putting the person back together is a further act, and it is performed at the tenant on the runner's behalf rather than by handing the vault over — everywhere, and not only where the runner is far away, because a reassembly the store did not perform is one the trail cannot answer for. It is refused without a stated purpose, as every identifying read is, refused for a document the run does not name, as every reach is, and recorded as a disclosure naming the run that occasioned it. The answer comes back sealed to the asker alone, because the plane it may cross holds nothing readable and reassembled identity is the last thing that should be the exception. REQ-DBO-PROC-IDENTITY-IS-REASSEMBLED-AT-THE-TENANT
  • kept by its basis its basis has no result Work started by a change to a patient's record sees the patient without a name unless someone entitled asks with a purpose, and a search by what identifies somebody is refused. REQ-MEM-WORK-ON-A-PATIENT-NAMES-NOBODY
    Based on 1 promise
    • not cited A change to a record about a person starts a step declared to start on it behind the membrane as anywhere: one run per version, its slot read as the participant may read the person — the pseudonymous record, or the person reassembled when one entitled asks with a purpose — and nothing that identifies the person in the run's key or on its trail. A search on an element that does not identify somebody is answered; one on an element that does, or one the face cannot ask, is refused when the tenant is declared, naming it and never its value. REQ-DBO-PROC-A-CHANGE-TO-A-PERSON-STARTS-A-STEP-BEHIND-THE-MEMBRANE
  • kept by its basis its basis has no result A patient is revealed in full only when both the declared piece of work and the request reading it state the same purpose; either alone reveals no more than the unnamed record. REQ-MEM-A-WHOLE-PATIENT-NEEDS-TWO-PURPOSES
    Based on 1 promise
    • cited, no result A collection reveals a person whole only with two keys: the purpose the step declared, and the same code stated by the collecting request at the moment of reading. A step whose audience reveals a person whole and that states no purpose is refused when it is declared; a request stating no purpose or another one is answered in the strict mode, and neither key alone reveals more than that. REQ-DBO-IDN-A-STEP-STATES-ITS-PURPOSE
      Cited by: cloud.jengu.dbo.tenant.AStepDeclaresWhatItsAskerCollectsTest#includeNeedsThePurposeOfTheStep, cloud.jengu.dbo.tenant.AStepDeclaresWhatItsAskerCollectsTest#twoKeys, cloud.jengu.dbo.tenant.TheAskerCollectsWhatItsRunProducedTest#twoKeys
  • kept by its basis its basis has no result What each recipient may see is declared by the customer, and anything outside it is simply absent, so a recipient cannot even learn it exists. REQ-MEM-EACH-RECIPIENT-SEES-WHAT-IS-DECLARED
    Based on 1 promise
    • not cited What may leave and what this particular recipient may see are different questions, and a tenant answers the second by declaring an audience: which types it is answered about at all, and what a read of one of them reveals. A type outside the declaration is absent rather than refused, because a refusal naming it would tell the recipient it exists. The mode follows the declaration rather than the request — a recipient that could ask for more would make the declaration advice — and an audience nobody declared sees nothing, because a typo in a serving surface and a partner who was removed both want silence. Naming no audience is the tenant working with its own records, and nothing about it changes. REQ-DBO-IDN-WHAT-A-RECIPIENT-SEES-IS-DECLARED
  • kept by its basis its basis has no result The progress of work is shown without saying whom or what it is about. REQ-MEM-PROGRESS-NAMES-NO-PATIENT
    Based on 1 promise
    • not cited A run's envelope carries its status, who may take it, its step and its counts — never item references or messages. The envelope is a disclosure surface, and progress must not name what was being processed. REQ-DBO-PROC-RUN-ENVELOPE-DISCLOSES-STATE-NOT-SUBJECT
  • cited, no result A fact about a patient goes to the zone only when the patient is identified in a system the zone recognises; anything else stays inside the customer's own boundary, and says why. REQ-MEM-ONLY-IDENTIFIED-PATIENTS-FACTS-LEAVE
    Cited by: cloud.jengu.platform.zone.OnlyAnIdentifiedPatientsFactsLeaveTheTenantTest#aPatientKnownOnlyByALocalNumberOrNotAtAllStaysInTheTenant, cloud.jengu.platform.zone.OnlyAnIdentifiedPatientsFactsLeaveTheTenantTest#aResultOfAPatientIdentifiedNationallyMayGoUpUnapprovedAsItIs, cloud.jengu.platform.zone.OnlyAnIdentifiedPatientsFactsLeaveTheTenantTest#aZoneIsConfiguredByItsFileNamingItsIdentifierDomains, cloud.jengu.platform.zone.OnlyAnIdentifiedPatientsFactsLeaveTheTenantTest#anUnknownPatientsCodeTheZoneAcceptsPasses, cloud.jengu.platform.zone.OnlyAnIdentifiedPatientsFactsLeaveTheTenantTest#theResultsOwnSubjectComesBeforeItsOrders
  • gap: not yet stated Free text and audio cross the privacy boundary only through their anonymising entry points. FEAT-GAP-85be470d
  • gap: not yet stated A staff member's contact address read for sending is a recorded crossing. FEAT-GAP-54c9bebe