Not legal or compliance advice. If you work for a covered entity or business associate, your privacy officer's rules come first. This guide explains the concepts so you can ask the right questions.
Can you put patient information into ChatGPT at all?
Identifiable patient information is protected health information (PHI) under HIPAA when a covered entity (a provider, health plan or clearinghouse) or its business associate holds it. Sharing PHI with an outside service generally requires a Business Associate Agreement (BAA) with that vendor, plus your organization's approval.
Personal or free chatbot accounts typically don't come with a BAA. Some AI vendors offer BAAs on certain business or API plans, but whether one covers your use is something your organization must confirm. If you can't confirm it, don't paste PHI.
There's a cleaner path for many everyday tasks: de-identify the text first. Under HIPAA, information that has been properly de-identified is not PHI. Rewriting a discharge summary in plain language, structuring a note into SOAP format or drafting a referral letter template rarely needs the patient's identity.
Step by step: de-identifying a clinical note
- Start with the minimum. Paste only the section the AI needs. A plain-language rewrite of the plan doesn't need the full history.
- Add names as custom terms. Add the patient, relatives, clinicians, facilities and small towns. Automated tools can't reliably tell a surname from a drug name, so custom terms are what catch them. Saved terms stay in your browser for next time.
- Let the rules catch structured identifiers. On this page the tool switches on the healthcare rules: MRN and patient IDs after a label, dates, phone and fax numbers, emails, URLs, street addresses, ZIP codes after a state code, and ages 90 and over.
- Read the masked output line by line. Look for things no pattern can know about: "the only dialysis patient in Harlan County", "the mayor", "admitted after the stadium collapse". Delete or generalize them.
- Keep the placeholder instruction on. The tool tells the AI to leave
[PERSON_1]and friends alone, so the answer restores cleanly. - Restore locally. Paste the AI's answer into Restore. Known placeholders turn back into real values; anything the AI invented is flagged in red.
- Close the tab when done. The mapping lives only in that tab's memory and disappears when you close it.
Before and after
A fictional excerpt, masked with the settings on this page:
Patient: Maria Gonzalez MRN: 00482913 DOB: 03/14/1951
Address: 1187 Willow Creek Road, Springfield, IL 62704
...Lives with her 92-year-old husband, who is her primary contact.
Patient: [PERSON_1] MRN: [MRN_1] DOB: [DATE_1]
Address: [ADDRESS_1], [LOCATION_1], IL [ZIP_1]
...Lives with her [AGE_1] husband, who is her primary contact.
The clinical meaning survives (a 75-year-old with T2DM, a 7-day antibiotic course), and the identifiers are gone. The state ("IL") is kept on purpose: Safe Harbor allows the state.
HIPAA Safe Harbor checklist for clinical text
Safe Harbor (45 CFR §164.514(b)(2)) requires removing these identifiers of the patient and of their relatives, employers and household members:
| Identifier | In clinical notes, watch for… | Handled by |
|---|---|---|
| Names | Patient, spouse, children, caregivers, employer | Custom terms |
| Geography smaller than a state | Street, city, county, ZIP (first 3 digits allowed only for areas over 20,000 people) | ADDRESS, ZIP rules + custom terms |
| Dates (except year) | DOB, admission, discharge, procedure and death dates | DATE rule (common formats; check "Oct 2" style dates by hand) |
| Ages over 89 | "92-year-old", "92 y/o" | AGE rule (or write "90+") |
| Phone and fax numbers | Patient, family and pharmacy contacts | PHONE rule |
| Email, URLs, IP addresses | Patient portal links that contain IDs | EMAIL, URL, IP rules |
| SSN, MRN, health plan and account numbers | "MRN: …", "Member ID: …" | SSN and MRN rules + custom terms |
| License, vehicle and device IDs | Implant serial numbers, plates in trauma notes | Custom terms |
| Biometrics and full-face photos | Not text, so don't upload them | n/a |
| Any other unique code or characteristic | Rare diagnoses, unusual occupations, newsworthy events | Your judgment |
Safe Harbor also requires that you have no actual knowledge that what's left could identify the person. That's why the final read-through matters more than any tool.
Tasks that work well with de-identified text
- Rewrite discharge instructions at a 6th-grade reading level
- Turn dictated free text into a SOAP-structured note
- Draft a prior-authorization or appeal letter skeleton
- Summarize a long consult note for a referral
- Generate patient education material on a condition
Ready-made prompts for these are on the HIPAA-aware AI prompt templates page.
Tasks to keep away from chatbots
- Anything where the identity is the task, such as matching records or checking insurance eligibility
- Diagnosis or treatment decisions without clinician review. AI output is a draft, not a medical opinion.
- Small-population data (rare diseases, small towns, VIPs), where even masked text can identify someone
FAQ
Is replacing names with placeholders enough for HIPAA?
Not on its own. Placeholders handle most structured identifiers. Safe Harbor also needs the free-text ones removed and no actual knowledge of re-identification risk. Treat the tool as doing the tedious 80% for you, then review the rest yourself.
Does the placeholder mapping count as a re-identification code?
HIPAA allows a covered entity to keep a re-identification code if it isn't derived from the patient's information and isn't disclosed. The mapping here stays in your browser tab and never goes to the AI. Don't paste it into the chat, and don't keep exported mapping files longer than you need them.
Does this work for GDPR health data too?
Health data is "special category" data under GDPR. Placeholder masking is pseudonymization, which lowers risk but leaves the data personal. See the GDPR / HIPAA compliance guide.
Is my text uploaded anywhere?
No. The tool frame's Content Security Policy (connect-src 'none') makes the browser refuse any network request from it. Open your browser's Network tab while you paste to check for yourself.
Where to go next
- Open the full tool: export the mapping if you'll restore the AI's answer later, and manage saved names and rules.
- HIPAA-aware AI prompt templates for discharge summaries, SOAP notes and referral letters
- GDPR pseudonymization for LLM prompts: health data under EU rules
- Redact API keys and secrets before pasting logs into AI