Medication History De-Identification with anonym.plus

Strip every patient ID from the list while the regimen stays.

In simple terms, PII redaction is the on-device process of finding and masking personally identifiable information in a document before it is shared.

Medication-history de-identification is the removal of patient IDs from a drug list. A drug history is health data, so it is special category under UK GDPR Art. 9(1), and research reuse leans on Art. 9(2)(j) with the Art. 89(1) safeguards. anonym.plus does this locally. The regimen stays readable; the file no longer names the person.

When this applies

A drug list ties many medicines to one named patient over time. For a study or a teaching set, you strip the IDs but keep the regimen and the gaps between start and stop dates, since those gaps carry the clinical meaning.

How anonym.plus handles it

  1. Open the list in anonym.plus on your device.
  2. It scans for the name, dates, NHS number, and contacts.
  3. Local OCR reads scanned pages, so printed lists are caught.
  4. Confirm the flags; the medicine names are not IDs and stay.
  5. Swap each ID for a label, or shift the dates.
  6. Save the clean file; the source stays on your machine.

What you need to provide

Patient data entity types detected

Categoryanonym.plus entity typeExample
NamesPERSONCallum Fraser → [PATIENT]
DatesDATE_TIMEstarted 03/2024 → [DATE]
Record IDsMEDICAL_RECORD_NUMBERMRN 220914 → [MRN]
ContactEMAIL_ADDRESSc.fraser@example.com → [EMAIL]
LocationLOCATION12 Birch Lane → [ADDRESS]
IdentifiersNHS_NUMBER485 777 3456 → [NHS_NUMBER]

Compliance achieved

Anonymise medication histories offline — see plans & start free →

Limitations & cautions

UK GDPR Recital 26 and the ICO anonymisation guidance require that re-identification is not reasonably likely, judged against a motivated intruder. The tool removes the direct IDs; the medicines stay. A rare regimen plus a small area can still hint at one person, so record your residual-risk assessment before you release the file.

Frequently asked questions

What identifiers are removed?

Names, NHS numbers, addresses, dates tied to the person, phone, email, MRN, and any other code that could identify the patient under the ICO motivated-intruder test.

Are the medicines treated as identifiers?

No. Drug names are clinical content, not personal data in themselves, so they stay. The list is still useful for research after the IDs go.

Can the date gaps survive the swap?

Yes. Date-shift moves all dates by one offset, so the start-and-stop gaps stay intact while the true calendar dates are hidden.