← Documentation

Controlled reveal

Guide · payer demo

Work on case notes where names and IDs are replaced, and let the right person see a real value when they need it, under a policy and on the record.

What it is

Reversible pseudonymisation replaces each name and ID with a token such as [[NAME_1]], or with a realistic fake name or number. The real values are locked in an encrypted mapping blob, which only this deployment's key can open.

A reveal asks for the real values back. A policy decides, by your role and your purpose: show them, show a masked version, ask for an MFA step-up first, or say no. Every attempt is written to the audit log.

Why you would use it

Payer teams handle appeals, calls and letters all day. Most of the work does not need the member's name. Now and then someone must see it: to call the member back, or to audit the case. Controlled reveal gives them that, with rules and a record.

The data is still PHI.

Pseudonymised text can be turned back into the original, so it is not de-identification (HIPAA, 45 CFR 164.514(c)). Store, share and protect it as PHI.

Before you start

  • The demo uses one synthetic case (APL-2026-104417): two call notes and an appeal letter about a fictional member. Use synthetic data only.
  • In this demo the role comes from the role picker (dev mode, synthetic data only). In production, roles will come from your identity provider through verified OIDC; that is not built yet.
  • The demo needs the API set up for it (demo policy and a key). If it is not, the page says Tokenise service not available or Reveal service not available and stays masked.

Step by step

  1. 1
    Open the Pseudonymised case view
    The page replaces the identifiers in all three documents as it loads. The blue banner reads "Pseudonymised. This record is still PHI: access is logged."
  2. 2
    Pick how values look: Pseudonyms or Tokens
    Pseudonyms (the default) read naturally. Tokens show the type, such as [[NAME_1]]. The same member gets the same pseudonym in every tab.
  3. 3
    Pick a role: Care manager, Supervisor, Auditor or Guest
    Changing role masks the view again.
  4. 4
    Turn on Reveal PHI (controlled)
    The page asks the API for the real values of the open document, as that role, for that purpose.
  5. 5
    Read the answer
    Allowed: the values show with an amber banner and a countdown. Step-up: the MFA required box opens; click Complete MFA and retry. Denied: a message says Reveal denied by policy.
  6. 6
    Check the Audit trail
    Each attempt adds an entry with its audit_id, effect, rule, role and document.
  7. 7
    Let it mask again
    After 60 seconds the view masks itself. Switching role, tab or display masks it at once. You can also turn the switch off.

Tip: tick MFA step-up done before you reveal to skip the MFA box as Supervisor.

What you get

  • A working view where names, dates, phones and IDs are replaced, and the same person keeps the same pseudonym across documents.
  • A reveal that follows the policy for your role and purpose: full, masked, step-up first, or no.
  • One audit line per attempt on the server. It records who asked, when, the rule, the effect and counts by type. It carries no revealed values, no text, no justification and no mapping blob. Case IDs are hashed, and purpose and stage appear only when the policy names them.
Demo policy by role
RolePurpose sentDemo policy says
Care managercase-reviewMasked: names, addresses and organisations as initials, dates as the year, SSN, phone and IDs as the last 4, ZIP fully hidden.
Supervisorcase-reviewStep-up (MFA) first, then the full values.
AuditorauditFull values.
Guestcase-reviewNo rule matches, so denied.

Limits and gotchas

  • It is still PHI. Pseudonymised is not de-identified. Do not treat these notes as safe to publish.
  • The role picker and the MFA box are demo stand-ins. Verified sign-in (OIDC) with real roles and MFA is not built yet, so do not use this with real PHI.
  • A rule must cover every type in the note. If a note holds an identifier type the rule does not list, the whole request is denied. The demo rule for care managers lists every type the demo notes contain.
  • The audit card is this session only. The server log is the record. Ask your administrator for it.
  • The mapping blob stays in page memory in this demo. A real system stores it with the case, protected like PHI.
  • Detection can miss things. Text the engine did not find is not replaced, so it shows in the masked view.

Try it

Every card uses the synthetic case on the demo page.

Care manager: masked values only

You are: A care manager working the appeal.

You want: To see just enough to work the case: initials, the last 4 digits, the year of a date.

  1. Open the case view. Care manager is already selected.
  2. Turn on Reveal PHI (controlled).
  3. The note shows masked values: the member as initials (for example D.W.), dates as the year, phone numbers and IDs as **** plus the last 4 digits, organisation names as initials. No value shows in full.
  4. Check the Audit trail: your reveal is there, with its audit_id. Today the card shows it as revealed; the server log records it as partial.
Open the case view

Supervisor: needs an MFA step-up

You are: A supervisor checking a disputed call.

You want: To see the real values, after proving it is really you.

  1. Open the case view and click Supervisor.
  2. Turn on Reveal PHI (controlled). The MFA required box opens.
  3. Click Complete MFA and retry. The real values show with an amber banner.
  4. Watch the countdown: the view masks itself again after 60 seconds.
Open the case view

Auditor: full values for an audit

You are: A compliance auditor.

You want: To check a case end to end, with the purpose recorded as "audit".

  1. Open the case view and click Auditor.
  2. Turn on Reveal PHI (controlled). The page asks with purpose audit, so the values show at once.
  3. Switch between Call note 1, Call note 2 and Appeal letter. Each switch masks again; reveal each one on purpose.
Open the case view

Guest: denied

You are: Someone with no role in the policy.

You want: To see what happens when access is not allowed.

  1. Open the case view and click Guest.
  2. Turn on Reveal PHI (controlled). A message says Reveal denied by policy (rule none).
  3. The note stays masked. No rule matched, so the answer is no.
Open the case view

Every attempt lands in the audit trail

You are: Anyone showing the demo to a compliance team.

You want: To prove that every reveal, allowed or not, is on the record.

  1. Try a reveal as each of the four roles.
  2. Read the Audit trail card: one entry per attempt, with its audit_id, the effect (revealed, step_up, deny), the rule, the role and the document.
  3. The server keeps the real log. The card shows this browser session only.
Open the case view

Glossary

PHI
Protected health information: anything that can identify a member or patient.
Pseudonymised
Identifiers replaced in a way that can be undone with a key. Still PHI under HIPAA.
De-identified
Identifiers removed with no way back. Controlled reveal is not this.
Token
A placeholder that names the type and a number, such as [[NAME_1]].
Surrogate (pseudonym)
A realistic fake value in place of the real one, such as a made-up name or phone number. The same member gets the same surrogate every time.
Mapping blob
An encrypted package of the real values behind each token. Only this deployment’s key opens it.
Reveal
A request to see the real values again. Always checked against the policy and always audited.
Policy
The rules that decide who may reveal what, for which purpose. The first matching rule wins; no match means no.
Purpose
Why you are asking, such as case-review or audit. Part of the policy check and the audit line.
Masked (partial) reveal
A reveal that shows only part of a value: initials, the year, the last 4 digits.
Step-up
An extra sign-in check (MFA, multi-factor authentication) right before a sensitive action.
Audit log
The server record of every reveal attempt: who, when, the rule and the result. No revealed values, text or justification; case IDs are hashed.

More questions? See the FAQ.