Skip to main content

20% off your first year with code See plans

Use case · Use case · Healthcare

Sharing health data for research and secondary use

Anonimatum Team

In short

Health data is special category data under the GDPR and protected health information under HIPAA. Research use relies on safeguards: pseudonymised data under strict controls, or data de-identified to a standard you can document.

A cardiology department wants to share five years of discharge summaries with a research group studying readmissions. A cancer registry supplies cases to a university. A hospital joins a multi-country study. Each time, the same question arises: what has to happen to the data before it leaves the care setting?

The answer depends on whether researchers need a route back to the patient (follow-up, linkage, clinically significant findings) or can work with data that no longer identifies anyone. This page covers the UK, US and EU frameworks and suggests a practical method. It does not replace your ethics committee, Caldicott Guardian, privacy officer or legal adviser.

Why health data needs special handling

Under the UK GDPR and the EU GDPR, health and genetic data are special category data. Article 9(2)(j) allows processing for scientific research when it is subject to the safeguards in Article 89: data minimisation and, where the purpose allows, pseudonymisation. In the UK, the Data Protection Act 2018 adds a research condition in Schedule 1, Part 1, paragraph 4, which also requires the processing to be in the public interest. NHS data is additionally subject to the common law duty of confidentiality and, for many uses, the national data opt-out.

In the United States, the HIPAA Privacy Rule governs protected health information (PHI) held by covered entities and their business associates. Research can use PHI with patient authorisation, with a waiver from an IRB or privacy board, as a limited data set under a data use agreement, or once the data has been de-identified under 45 CFR 164.514.

HIPAA de-identification: Safe Harbor and Expert Determination

HHS guidance describes two methods. Safe Harbor (164.514(b)(2)) requires removing 18 types of identifiers of the patient and of relatives, employers or household members, and having no actual knowledge that the remaining information could identify the person. Expert Determination (164.514(b)(1)) requires a qualified expert to determine, and document, that the risk of re-identification is very small for the anticipated recipient.

  • Names, and geographic subdivisions smaller than a state; only the first three ZIP code digits may remain where the area holds more than 20,000 people.
  • All elements of dates (except year) directly related to the patient, and ages over 89.
  • Telephone and fax numbers, email addresses, URLs and IP addresses.
  • Social Security, medical record, health plan, account, licence, vehicle and device numbers.
  • Biometric identifiers, full-face photographs and any other unique identifying number, characteristic or code.

Pseudonymisation or anonymisation in the UK and EU

Pseudonymised data is still personal data: someone holds the key that links it back to the patient. Anonymous information, under recital 26 and the ICO's anonymisation guidance, is information where identification is no longer reasonably likely, judged among other things by the motivated intruder test. Only effective anonymisation takes data outside data protection law.

Pseudonymisation and anonymisation in research
AspectPseudonymisationAnonymisation / de-identification
Legal statusStill personal data (special category)Outside UK/EU GDPR if effective; not PHI under HIPAA
Patient follow-upPossible through the key holderNot possible
Main safeguardsKey held separately, access controls, ethics approvalDocumented risk assessment, Safe Harbor or Expert Determination
Typical useLongitudinal studies, trials, registriesOpen datasets, teaching, statistics

Anonymising clinical data is harder than it looks. An admission date, a partial postcode and a rare diagnosis can be enough to single someone out, which is why many projects choose well-governed pseudonymisation over a promise of anonymity they cannot defend.

The free-text problem

Structured datasets are pseudonymised by replacing the patient identifier. Documents are different: discharge letters, clinic notes, pathology reports and scanned PDFs scatter patient and relative names, hospital numbers, clinicians, addresses and dates across the text. This is where manual processes usually fail.

Preparing clinical documents for research

  • Agree with the chief investigator which variables the study actually needs.
  • Separate roles: the team that pseudonymises and holds the key is not part of the research team.
  • Find direct identifiers: names, NHS or medical record numbers, phone numbers, addresses.
  • Treat indirect identifiers: exact dates, small geographies, occupation, referring hospital.
  • Substitute consistently so the same patient has the same code across every document.
  • Strip file metadata and quality-check a sample before release.
  • Record the method in your DPIA and ethics submission, or in your HIPAA de-identification file.

The European Health Data Space

For organisations working in the EU, Regulation (EU) 2025/327 on the European Health Data Space sets up a framework for secondary use of electronic health data for research, innovation and policy, through health data access bodies in each Member State. It applies in stages over the coming years and favours anonymised data, with pseudonymised data made available in secure processing environments when needed.

Where Anonimatum fits

Anonimatum processes clinical documents in PDF (including scanned files, with OCR), Word, Excel and images using its own AI on servers in the European Union, without sending text to external language model APIs. It detects names, addresses, dates and amounts, and custom patterns can capture local identifiers such as medical record numbers.

  • Pseudonymisation replaces each value consistently across a batch and stores an encrypted map that the key-holding team can keep.
  • Spreadsheets can be handled column by column: keep, redact, replace or pseudonymise each variable.
  • Every detection can be reviewed before release, and batch processing handles large extracts.
  • Anonimatum is not certified under HIPAA or any US scheme; its developer, Politeia Soft, holds Spain's ENS certification (category MEDIUM), which covers Anonimatum.

For day-to-day records work, see also anonymising medical records.

Frequently asked questions

Is pseudonymised health data still personal data?

Yes, under both the UK GDPR and the EU GDPR. Only effective anonymisation takes data outside their scope.

What are the 18 HIPAA Safe Harbor identifiers?

They include names, small geographic units, date elements except year, contact details, record and account numbers, device identifiers, biometrics, full-face photos and any other unique code. The full list is in 45 CFR 164.514(b)(2).

Can a software tool make data HIPAA-compliant?

No tool can do that on its own. Tools help remove identifiers, but de-identification is a determination the covered entity makes and documents using Safe Harbor or Expert Determination.

Who should hold the re-identification key?

A person or team separate from the researchers, usually at the source organisation, with controls that stop researchers from accessing it.

Preparing clinical extracts for research?

See the plans and start pseudonymising batches of clinical documents with consistent substitution and review before release.

Sources and legislation

  1. HHS, Guidance on de-identification of protected health information
  2. 45 CFR 164.514, Other requirements relating to uses and disclosures of PHI
  3. ICO, Anonymisation guidance
  4. Data Protection Act 2018, Schedule 1
  5. Regulation (EU) 2016/679 (GDPR), Articles 9 and 89
  6. Regulation (EU) 2025/327 on the European Health Data Space