Blog

    PHI De-Identification in Healthcare

    By GauravNovember 14, 202610 mins read
    On this page

    Health data becomes far more useful once it can leave the clinical record: for analytics, research, product development, model training and sharing with partners. De-identification is how that usually happens under HIPAA. It is also where many teams take shortcuts, removing names and medical record numbers and assuming the rest is safe, when dates, ZIP codes, free-text notes and image headers still point straight back to people.

    This guide covers PHI de-identification in practice: the two methods HIPAA recognizes, how to choose between them, how to handle structured data, clinical notes and images, why linking data sets changes the risk, and how to build a pipeline you can defend to a privacy officer or an auditor.

    What is PHI de-identification in healthcare?

    Need de-identified data for analytics or AI?

    Agnotic builds de-identification pipelines for structured data, notes and images, with the documentation privacy teams need.

    PHI de-identification in healthcare is the process of removing or transforming information so that health data no longer identifies individuals and is no longer protected health information under HIPAA. HHS guidance recognizes two methods for meeting the Privacy Rule's standard: Safe Harbor, which removes specified identifiers, and Expert Determination, where a qualified expert finds the re-identification risk very small.

    De-identified data is not the same as data with names removed. The standard looks at the whole record and what could be combined with it, which is why a careful, documented process matters more than any single tool or vendor promise.

    How does the Safe Harbor method work?

    Safe Harbor works by removing a listed set of identifiers about the individual and their relatives, employers and household members, and having no actual knowledge that the remaining information could identify the person. It is set out in 45 CFR 164.514(b)(2).

    • Direct identifiers: Names, contact details, record and account numbers, and similar identifiers.
    • Geography: Geographic units smaller than a state, with a limited exception for the first three ZIP code digits under population conditions.
    • Dates: Date elements more specific than the year that relate to the individual, with special handling for older ages.
    • Device and web identifiers: Serial numbers, URLs, IP addresses and similar values.
    • Actual knowledge: The covered entity must not know that what remains could identify the person.

    Safe Harbor's strength is simplicity: a team can check compliance against a list. Its weakness is usefulness, because removing exact dates and small geographies takes away exactly what many analyses need, such as time between visits or local service use patterns.

    When should you use Expert Determination instead?

    Use Expert Determination when the data must keep detail that Safe Harbor removes, such as exact dates or finer geography, and an expert can show the re-identification risk is still very small. Under 45 CFR 164.514(b)(1), a person with appropriate statistical and scientific knowledge applies accepted methods, reaches that conclusion and documents the methods and results.

    • Time-sensitive analysis: Studies that need intervals between events, such as days from admission to readmission.
    • Location analysis: Questions about neighborhoods or service areas.
    • Rare conditions: Data sets where small counts raise risk and need targeted treatment.
    • Specific recipients: Releases where the recipient, its controls and its other data are known and can be assessed.

    Safe Harbor remains the most commonly used method, according to the National Committee on Vital and Health Statistics, but many analytics and AI projects end up needing Expert Determination to keep the data useful.

    How do you de-identify structured data?

    For structured data, build a field-by-field plan: for every column, decide whether it is removed, transformed or kept, and record why.

    • 1. Inventory fields: List every column in every table, including ones that look harmless, such as free-text comment fields.
    • 2. Classify: Mark direct identifiers, quasi-identifiers such as dates and ZIP codes, and clinical content.
    • 3. Transform: Remove direct identifiers, generalize or shift dates, coarsen geography, and replace keys with new tokens.
    • 4. Check small cells: Look for rare combinations of values that single out individuals.
    • 5. Document: Record the rules applied to each field and the version of the pipeline that applied them.

    Replace internal identifiers with tokens that are consistent within a release but cannot be reversed by the recipient. If tokens need to link releases over time, keep the linking key in a separate, protected service.

    Date shifting is a common middle path for analytics. Moving all of a patient's dates by the same random offset keeps intervals between events intact while hiding the real calendar dates, but it is a transformation an expert should assess, not a Safe Harbor shortcut.

    How do you de-identify clinical notes and free text?

    Clinical notes need automated detection plus human review, because identifiers appear in unpredictable places: a relative's name, a hometown, an employer, a date written in words.

    • Detection: Use a de-identification model or rules to find names, dates, places, numbers and contact details.
    • Replacement: Swap found items for consistent surrogates or category tags, so the text still reads sensibly.
    • Review sample: Have trained reviewers check a sample of each release, and measure misses.
    • Tune for your notes: Templates, local place names and staff names differ by organization; test on your own text.

    No automated tool catches everything. Measure its miss rate on your own notes, decide what level is acceptable for each use with your privacy officer, and treat high-risk uses, such as public release, with extra caution.

    How do you de-identify medical images?

    Images carry identifiers in two places: the file header and the pixels. Both need handling before an image set is de-identified.

    • Headers: Remove or replace patient, institution and date fields in DICOM headers, including private tags vendors add.
    • Burned-in text: Detect and mask names, dates and numbers printed into the image itself, common in ultrasound and scanned documents.
    • Faces: Consider facial features in head imaging that could support recognition.
    • Verification: Check a sample of images by eye after automated processing.

    Keep the original images and the de-identified copies in separate stores with separate access. If a problem is found later, you can reprocess from the source rather than trying to repair a release that has already left.

    Why does linking data sets change the risk?

    Linking changes the risk because records that are hard to identify alone can become identifiable when combined with other data. A de-identification decision is about a specific data set in a specific context, not a permanent label.

    • New combinations: Adding claims, device or social data to a de-identified set creates new quasi-identifiers.
    • Recipient's own data: A partner may hold data that matches your released records.
    • Repeat releases: Several releases of the same population can be combined over time.
    • Re-assessment: Re-run the risk assessment, or the expert's analysis, whenever data is linked or the recipient changes.

    When analysts need record-level data that still contains some identifiers, consider a limited data set under a data use agreement instead, as 45 CFR 164.514(e) allows for research, public health or health care operations.

    What are the common de-identification mistakes?

    The common mistakes come from treating de-identification as removing names. These are the ones we see most often.

    • Keeping exact dates: Admission and birth dates left in place under a Safe Harbor claim.
    • Forgotten free text: Comment fields and notes copied into an otherwise clean table.
    • Image headers: DICOM private tags and burned-in text left untouched.
    • Reversible tokens: Hashes of medical record numbers that a recipient can recompute.
    • One-time assessment: No re-check when data is linked or shared more widely.

    What are PHI de-identification best practices?

    The practices that hold up make de-identification a documented, versioned pipeline rather than a one-off export.

    • Choose the method per use: Safe Harbor for simple releases, Expert Determination when detail matters.
    • Field-level rules: A written decision for every column.
    • Measure free-text misses: Test detection on your own notes and review samples.
    • Handle images fully: Headers and pixels.
    • Re-assess on change: New links, recipients or releases trigger a new review.

    How Agnotic can help

    Agnotic Technologies builds de-identification pipelines for health data: field inventories and transformation rules for structured data, tokenization with protected linking keys, note de-identification tuned and measured on your text, DICOM header and burned-in text handling, and release documentation your privacy officer and any expert can review. We work with the expert you engage when Expert Determination is the right route.

    If your team already exports de-identified data, we can review the pipeline against both methods and close the gaps before the next release.

    Use health data without exposing patients

    Plan a de-identification pipeline with our engineers, or read more compliance articles in the hub.

    Related reading on Agnotic

    See when synthetic data helps, how health data is mined and warehoused safely, how big data platforms are built, and how documents are redacted automatically.

    Sources

    Frequently Asked Questions

    Safe Harbor, which removes specified identifiers with no actual knowledge that the rest could identify someone, and Expert Determination, where a qualified expert finds and documents a very small re-identification risk.

    Talk to an engineer about your project

    We build de-identification pipelines for structured data, notes and images, with documentation your privacy team can defend.

    Go deeper

    Services and solutions on this topic