# De-identifying free text under HIPAA step by step

Canonical: https://refer.sourcex.si/guides/de-identify-unstructured-text-hipaa
Last updated: 2026-10-20

De-identify free text under HIPAA by classifying sources, excluding patient-facing queues, running entity detection, replacing identifiers consistently, reviewing samples by hand, and choosing Safe Harbor or Expert Determination. Free text fails quietly because identifiers hide in sentences. SourceX agrees redaction requirements with the company before any work begins.

## Why free text is where de-identification fails quietly

Free text fails because identifiers hide in sentences: a name in the middle of a note, a date written as "last Tuesday after the March 3rd visit", a hospital room in a ticket. Structured fields can be dropped by column; prose has to be read. A workable workflow for emails, notes and tickets has three stages: automated detection, human review of a sample, and, where the data stays high-risk, a written expert determination.

HHS describes the two routes in its [guidance on methods for de-identification](https://www.hhs.gov/hipaa/for-professionals/special-topics/de-identification). Under Expert Determination, a qualified expert determines and documents that the risk of re-identification is very small. Under Safe Harbor, 18 specified identifiers are removed and the organization has no actual knowledge that what remains could identify a person. Health information de-identified by either method is no longer protected health information under the Privacy Rule.

This is general information, not legal, tax or financial advice. Confirm with your own counsel or privacy officer before acting.

## Prerequisites before any text is touched

- [ ] The company has confirmed whether it is a HIPAA covered entity, a business associate or neither. A healthcare administration company with no patient data may not be in scope at all.
- [ ] An owner is named for the project: a privacy or compliance lead, not only IT.
- [ ] The systems in scope are listed (email, ticketing, chat, call-note fields) with date ranges.
- [ ] Counsel has said whether de-identification, patient authorization or exclusion is the route for each record type.
- [ ] A working copy exists. The live system is never edited.

Partners do none of this work. They check only that the company has a person who will own it. The records themselves never pass through a referral partner.

## How to de-identify free text, step by step

1. **Classify the text sources.** Separate clinical notes, patient emails, billing correspondence, operational tickets and internal chat. Each has a different identifier profile, and some may be excluded entirely.
2. **Cut scope before you scrub.** Drop whole channels, mailboxes and ticket queues that are patient-facing if the plan is to license only operational material. Exclusion is cheaper and safer than removal.
3. **Run automated detection.** Use pattern rules for phone numbers, emails, record numbers and dates, plus a named-entity tool for names, places and organizations. Expect misses on misspellings, nicknames and abbreviations.
4. **Replace, do not just delete.** Swap identifiers for consistent placeholders such as {PERSON_1}, so a thread still reads as one conversation. Consistency across a thread matters for usefulness to AI labs and data users.
5. **Handle dates deliberately.** Safe Harbor treats all date elements except year as identifiers, so dates in prose need shifting or generalizing, and any text where age or timing reveals more needs a second look.
6. **Review a sample by hand.** Have someone who knows the business read a random sample from each source, scoring leaks per hundred records. Set the acceptable miss rate with the expert or counsel up front.
7. **Check for actual knowledge.** If a reviewer notices that a note describes a recognizable local event or a very rare condition, the Safe Harbor condition on actual knowledge is in question. Escalate it.
8. **Decide Safe Harbor or Expert Determination.** Pure Safe Harbor on free text is hard to defend. Many teams commission an expert to assess residual risk across the whole corpus and document the conclusion.
9. **Freeze and log.** Record the tool versions, rules, reviewer sign-offs and sample results so the process can be shown later.

See [how HIPAA expert determination works](/guides/hipaa-expert-determination-process) for the process, report and choosing an expert.

## Common mistakes with unstructured text

| Mistake | Why it hurts | Fix |
|---|---|---|
| Relying on find-and-replace of a name list | Misses nicknames, typos and names not on the list | Use entity detection plus manual sampling |
| Removing names but leaving exact dates | Dates other than year are identifiers under Safe Harbor | Shift or generalize dates in prose and metadata |
| Scrubbing the body but not the subject line, attachments or file names | Identifiers sit in metadata | Include headers, attachment names and embedded images in scope |
| Treating a pass rate on the first batch as proof | Different sources leak differently | Sample each source separately |
| Skipping the "actual knowledge" check | A rare condition plus a small town can identify a person | Add a reviewer escalation rule |
| Assuming ticket text is not health information | Support tickets from clinics or patients can contain it | Ask counsel to classify each queue |

Operational tickets are easier than clinical text but share the pattern. The [support ticket anonymization guide](/guides/anonymize-support-tickets) covers the field-by-field approach, and the [CPRA sensitive information explainer](/questions/cpra-sensitive-personal-information-email-contents) covers the California layer on message contents.

## Illustrative example

Illustrative: a fictional 180-person medical billing services firm keeps eight years of support tickets from client practices. Tickets are written by billing staff and sometimes quote patient names, visit dates and claim numbers. The firm's counsel decides to exclude the queue labelled "patient disputes" completely, run detection on the other queues, replace names and numbers with consistent placeholders, and engage an expert to assess the remaining corpus. The firm also checks its client contracts, because some tickets belong to the practices. Only after those steps does the firm talk about price and terms.

## Red flags that stop the project

- The corpus is mostly clinical notes and no one can say who authorized their use.
- Reviewers keep finding names after the second pass, which means the tool is not fit for this text.
- The company's client contracts say the notes belong to the client practices.
- No one is willing to sign off on the sample results.

Any one of these means the records are not ready, and the honest answer to the owner is "not yet".

## Who owns what

| Task | Owner | Partner role |
|---|---|---|
| HIPAA status and route decision | Company counsel or privacy officer | None |
| Detection and redaction | SourceX, through approved processing routes, under rules the company approves (for protected health information, only through a HIPAA-permitted route counsel confirms) | None |
| Expert determination | Independent qualified expert engaged for the company | None |
| Introduction and basic fit information | Referral partner | Makes the introduction only |

SourceX agrees de-identification and redaction requirements with the company before any work begins, and data is delivered only after an executed agreement and the company's authorization. Records that are mainly protected health information without HIPAA authorization or de-identification are a red flag for the program.

Partners earn the greater of $50,000 plus 5% and 15% of the compensation SourceX actually pays the company you refer, with no cap. A reward becomes payable after SourceX has paid the referred company under its signed agreement and the payout conditions in the program terms are met, including finance approval and your tax and payment details.

## Next step

Use the [company fit checker](/tools/company-fit-checker) for a first screen, read [how SourceX referrals work](/how-it-works), and then [register as a partner](/register) to introduce a healthcare-adjacent company whose records are mainly administrative.

## Sources

- https://www.hhs.gov/hipaa/for-professionals/special-topics/de-identification
