Pseudonymising Mental Health Detention Papers – UK GDPR-compliant anonymisation per Mental Health Act 1983

Mental health detention documentation — including assessment reports, detention recommendations, and Nearest Relative notifications — constitutes special-category health data under UK GDPR Art. 9 and is processed under the health-condition basis in DPA 2018 Schedule 1 Part 1. anonym.legal pseudonymises patient, Nearest Relative, and clinician identifiers while preserving the statutory basis and clinical assessment narrative required for legal review and tribunal preparation.

When this applies

This task applies when detention papers are reviewed by mental health tribunals, independent reviewing solicitors, or academic researchers analysing detention patterns, and those reviewers require the clinical and statutory content of the documentation but not the identities of individual patients or their relatives.

  1. Upload the detention assessment documentation (PDF or DOCX) to anonym.legal.
  2. The engine identifies patient name, date of birth, address, NHS number, Nearest Relative name and relationship, and the names of the approved mental health professional and responsible clinician.
  3. Each named individual is pseudonymised with a consistent pseudonym; the statutory basis and clinical assessment narrative are preserved in clear text.
  4. Detention duration, renewal dates, and statutory review timelines are preserved.
  5. A reversible mapping table is produced with UK data residency, accessible only to the Data Controller.
  6. The pseudonymised documentation is released for approved review; the mapping key is retained for re-identification when required for tribunal proceedings.

What you provide

  • Mental health assessment and detention recommendation documents
  • Nearest Relative notification correspondence (if included)
  • Any accompanying care plan or risk-assessment documentation

Limitations & cautions

  • Detention documentation submitted to the Mental Health Tribunal Service must contain the patient's real identity — the pseudonymised version is for pre-submission review only.
  • The DPA 2018 Schedule 1 Part 1 health condition requires processing to be for health or social care purposes; confirm the lawful basis before using pseudonymised records for secondary analysis.
  • The tool pseudonymises personal data but does not assess the legal sufficiency of the detention criteria — obtain specialist mental health law advice.

FAQ

Can pseudonymised detention papers be used for academic research on compulsory admission rates?

Pseudonymised papers may be suitable for research under an HRA-approved protocol, but formal anonymisation or a section 251 NHS Act 2006 support waiver may be required depending on the research design. Consult the Health Research Authority before commencing.

Are Nearest Relative details pseudonymised as well as patient details?

Yes. Named Nearest Relatives and their stated relationship to the patient are pseudonymised individually; the relationship type (e.g. spouse, parent) is preserved to maintain the statutory context.

Does the engine handle documentation completed on different statutory forms?

Yes. The engine detects named individuals irrespective of the form layout. Different statutory forms are processed in the same batch with consistent pseudonymisation.

Healthcare Records

About this page

We update this page when our platform or the law changes.

Read our founder note for how we work.

Each change shows up in the timestamp at the top.

We follow these rules

  • GDPR (EU 2016/679).
  • ISO/IEC 27001:2022.
  • NIS2 (EU 2022/2555).
  • HIPAA safe harbor under 45 CFR § 164.514(b)(2).

Our promise

We do not sell your data.

We do not train models on your text.

We store your files in Germany.

You can delete your account at any time.

You own your work.

Where we run

Our servers live in Falkenstein, Germany.

We use Hetzner. They hold ISO 27001 certification.

All data stays in the EU.

Backups run every day.

Need help?

Email support@anonym.legal.

We reply within one business day.

How we test

We run a full check suite on every release.

Each surface gets its own sweep script and report.

Human reviewers spot-check the output each week.

We track recall and precision on a labelled set.

Bad runs block the deploy.

What we never do

  • We never sell your information to third parties.
  • We never train models on what you upload.
  • We never keep your work after you delete it.
  • We never share keys with any outside firm.
  • We never run ads inside the product.

Plans in plain words

We sell credits, not seats.

One credit covers one short job.

Long jobs use a few credits each.

You can top up at any time.

Unused credits roll over each month.

Read the plans page for current rates.

Who built this

A small team of engineers and lawyers built this.

We ship from Europe and work in the open.

Our founder note spells out why we started.

Where to start

How the parts fit

A browser add-on cleans text inside Chrome.

A Word plug-in handles drafts in Office.

A small desktop tool works on whole folders.

An agent protocol link feeds large models safely.

All four share one core engine and one rule set.

Words from our team

We started this work after a lunch about cookies.

One friend kept getting odd ads on her phone.

We asked why a court file leaked through a draft.

We sketched the first build on a napkin that week.

By month three we had a tiny demo for a friend.

She used it on her first case the next day.

Common questions we hear

Can the tool read scanned PDFs? Yes, with OCR.

Does it work on long files? Yes, in small chunks.

Can I roll my own rule set? Yes, save it as a preset.

Does it run offline? The desktop build runs offline.

Do you keep my files? No, the cloud build wipes after each run.

Will it learn from my work? No, we never train on inputs.

A short tour of the workflow

Upload a file or paste a snippet of prose.

Pick the entities you want gone from the draft.

Choose a method: replace, mask, hash, encrypt, or redact.

Press run and watch the side panel show each hit.

Skim the result and tweak any rule that misfired.

Save the cleaned file or send it to a teammate.