De-Identifying Patient Data for Sharing: A Practical Guide
Here's something that surprises authors: at most journals, nobody checks your data availability statement. It gets read for the presence of words, not for whether those words are true. Editors are not auditing whether the repository link resolves, whether the dataset is actually there, or whether "available on reasonable request" means anything.
Studies that have gone back and tested those requests find that a large share of them go unanswered. The statement is treated as a compliance checkbox at submission and as a dead letter afterwards.
I'm starting there because it explains a pattern I see constantly. Authors write "available on reasonable request" to get past the submission form, having given no thought to what they'd actually send if someone asked. Then someone asks, and the real questions arrive all at once: what's in the file, who's allowed to receive it, and whether the consent the participants gave covers this.
Those questions have good answers. They're just much easier to answer before you collect the data than after.
De identified patient data is not anonymous data
The distinction matters legally and practically, and conflating the two is the root of most of the trouble.
De-identified means direct identifiers have been removed or transformed, under a defined standard, so the data cannot reasonably be linked back to individuals. Some risk remains, and the standard defines what "reasonably" means.
Anonymous means re-identification is impossible. Genuinely anonymous health data is rare, because rich clinical detail is itself identifying. A dataset with date of birth, ZIP code and sex is sufficient to pin down a large fraction of a population, and that result has been known since the 1990s and repeatedly reconfirmed.
Pseudonymized, the term you'll meet under European rules, means identifiers are replaced with a key held separately. Under the GDPR this is still personal data, with the full set of obligations attached. People use it as a synonym for anonymized and it is not one.
Getting this wrong in a manuscript is visible. If your methods say the data were "fully anonymized" and your dataset contains admission dates and a rare diagnosis, a careful reviewer will notice, and an ethics committee certainly should have.
The two routes under HIPAA
For US clinical data, the HIPAA Privacy Rule gives two defined paths, and knowing which you used is part of the methods.
Safe Harbor
Remove eighteen specified categories of identifier and you have de-identified data by definition. Names, geographic subdivisions smaller than a state, all date elements more precise than year, phone and fax numbers, email addresses, Social Security and medical record numbers, account and license numbers, vehicle and device identifiers, URLs and IP addresses, biometric identifiers, full-face photographs, and any other unique identifying number or code. Ages over 89 must be aggregated.
Mechanical, checkable, and the usual choice. The cost is that it destroys things researchers need. "Dates more precise than year" takes out your time-to-event analysis. Geography coarser than state takes out your spatial work.
The standard workaround is date shifting: move every date for a given participant by the same random offset, so intervals survive while absolute dates don't. Note the subtlety — the offset must be consistent within a participant and different between them, or you've either destroyed the intervals or preserved the calendar.
Expert Determination
A qualified person applies statistical methods and documents that the re-identification risk is very small. More work, and it lets you keep variables Safe Harbor would strip.
Use this when the analysis genuinely requires dates or fine-grained geography. Budget real time: it involves an actual assessment of your actual dataset, not a form.
When de-identification isn't the answer
Some data can't be meaningfully de-identified, and pretending otherwise is the serious failure mode.
Genomic data is identifying in principle — a genome is an identifier. Full-face imaging, including reconstructable 3D scans from head MRI, is identifying. Rare diseases are identifying because the population is small; with a condition affecting a few hundred people nationally, diagnosis plus approximate age plus region may be enough, and the published work on re-identification risk is worth reading before you assume otherwise. Longitudinal records with many encounters become identifying through the pattern of visits.
For these, the answer is controlled access rather than better scrubbing.
Controlled-access repositories hold the data and release it to approved researchers under agreed terms. dbGaP is the long-standing example for genomic and phenotype data, and most major funders now expect its use for the data types that need it.
Data use agreements set out what the recipient may do: no re-identification attempts, no onward sharing, defined purpose, deletion at the end. Your institution has a template and a contracts office whose job this is, and funder guidance such as the NIH data management and sharing policy sets out what is expected of the plan. Use them. A data use agreement drafted by the investigator is a bad idea in a way that only becomes apparent later.
Analysis-in-place is the strongest option and increasingly practical: the data never leave, and approved researchers run code against them inside the environment. Expensive to set up, and the right answer for the most sensitive datasets.
What European rules change
Briefly, because collaborations increasingly straddle both regimes and the mental model from one does not transfer.
There is no Safe Harbor list under the GDPR. The test is whether a person can be identified by any means reasonably likely to be used, by anyone, taking account of other data that exists. That is a risk judgement about the whole context, not a checklist you can complete.
The practical consequence is that a dataset that is de-identified under HIPAA may still be personal data in Europe, because pseudonymized data remains in scope. Stripping the eighteen identifiers does not take you outside the regulation if a key still exists or the combination of remaining fields is distinctive.
Transfers out of the European Economic Area need their own legal basis, which is a contracts question rather than a methods one and takes longer than people plan for. If your collaboration spans both, involve the data protection officer at the start. A dataset assembled on the assumption that one standard covers both is the kind of problem that stops a paper at the worst moment.
Consent is where this is decided
The part that can't be fixed retrospectively.
If your consent form said data would be used for this study only, you cannot later deposit it in a public repository, however well de-identified. The ethics approval constrains sharing, and nothing downstream lifts that.
So write consent that permits what you'll want to do. Broad consent for future research use, with the sharing model described in plain language — whether data may go to a repository, whether access will be controlled, whether international transfers may happen. Participants are generally more willing than researchers expect when it's explained properly.
A first-year master's student once asked me, while drafting her first protocol, why the consent form had to mention data sharing when she wasn't planning to share anything. The answer is that the decision is being made right then whether anyone notices or not. Her project ended up contributing to a pooled analysis three years later, which was possible only because that paragraph existed.
What to write in the manuscript
Concrete, because this is where the vague statements come from.
Say which standard you applied and how: "Data were de-identified under the HIPAA Safe Harbor method, with dates shifted by a consistent participant-specific random offset." Name the repository and the accession, or name the access process and who decides. State the agreement that governs reuse.
If data genuinely cannot be shared, say so and say why, specifically. "Participant consent does not permit data sharing beyond the research team" is a legitimate statement that an editor will accept. It is far better than a promise you won't keep, and the ICMJE requirements for clinical trials are explicit that the statement must describe what will actually happen, including when the answer is that data will not be shared.
Avoid "available on reasonable request" unless you have decided who evaluates reasonableness and what happens when you change institutions. It is the most common statement and the least often honored.
A former student of mine, now faculty, told me she keeps a short written plan with each project covering exactly this: what will be shared, under what route, who handles requests after she moves on. It takes an hour at the start of a study. She started doing it after inheriting a dataset whose sharing obligations nobody could reconstruct.
The reproducibility trade-off nobody likes
Honest tension here, and it does not fully resolve.
Every step that reduces re-identification risk also reduces what a reader can verify. Coarsen the age bands and a reviewer cannot reproduce your age-stratified analysis. Shift the dates and seasonal effects become unverifiable. Suppress small cells and the subgroup results cannot be checked against the data you deposited.
So the dataset that accompanies a paper is often not the dataset the paper was written from, and the methods should say so rather than implying otherwise. If the deposited version cannot reproduce Table 3, write that down and explain which variable was altered.
Two things help. Deposit the analysis code even when the data are restricted: code is not identifying, and it lets a reader check the logic even when they cannot check the numbers. And where the privacy constraints are real, controlled access that preserves the data beats a public file so degraded that nothing can be done with it. A dataset nobody can use is not a contribution to reproducibility, whatever the availability statement says.
Checks worth running before you deposit
Four, and the first two catch most problems.
Look in the free-text fields. Clinical notes, "other, specify" boxes and comment fields contain names, hospitals and dates that structured de-identification never touches. This is the single commonest leak.
Check for unique combinations. Count how many records are alone in their combination of quasi-identifiers — age band, sex, region, diagnosis. Rows that are unique are the re-identification risk, and the usual fix is collapsing categories.
Check the file metadata. Spreadsheets carry author names and edit histories; images carry capture metadata. Export cleanly rather than uploading your working file.
Have someone else look. Not a formality — the person who built the dataset cannot see it the way a stranger does.
None of this is difficult, and all of it is much easier when the decisions, the approvals and the sources for a project stay together rather than scattering across inboxes. Keeping a project's papers, notes and documentation in one workspace is the unglamorous version of that, and it is what makes an answer possible when a request arrives four years on.
The aim isn't to make sharing risk-free, because it isn't. It's to make the risk explicit, bounded by a standard you can name, and covered by what your participants actually agreed to. If you're writing up a first study and this is all new, the single highest-value thing you can do is get the consent language right before recruitment starts.
