HIPAA-Ready AI: How to Use LLMs and Generative AI with PHI Without Breaking the Rules

A nurse manager pastes a discharge summary into a chatbot to get a plain-English version for a patient. Ten seconds later she has a clear, friendly summary. She may also have handed protected health information (PHI) to a company that never signed a business associate agreement.
Nobody in that story meant to break a rule, and that's the problem. Large language models are now good enough at documentation, prior authorization letters, patient messages and record search that staff will use them whether or not IT has approved anything. HIPAA doesn't mention LLMs, but it doesn't need to. A prompt containing PHI is a use or disclosure of PHI, and every requirement that applies to an email or a fax applies to it too.
If your team is planning generative AI development that touches patient data, this guide covers:
where the rules stand at the end of 2026
the four questions to answer before PHI touches a model
a worked example
a reference architecture
what to ask a development partner
Where the Rules Stand at the End of 2026
There's still no HIPAA rule written specifically for AI. OCR has signaled that it applies HIPAA to AI the same way it applies it to any other technology. Its stated concerns are data leakage, data poisoning, and AI vendors working without BAAs. What changed this year is the regulatory calendar around that baseline.
The Security Rule overhaul is delayed. It has been pushed to July 2027 at the earliest and moved to HHS's long-term agenda. It could still be finalized, revised or withdrawn, and the current Security Rule stays fully enforceable until then.
The proposal's main themes are complete asset inventories, encryption everywhere, and multi-factor authentication. They're worth building into AI systems now, because adding them later costs more (HHS Security Rule NPRM).
The Privacy Rule did change. HHS issued the final rule on November 16, 2026, scheduled it for Federal Register publication on November 19, and set January 18, 2027 as the effective date.
The rule:
cuts the deadline for individual access requests to 15 days
requires free transfer of ePHI to personal health apps
Any patient-facing assistant that helps people find or request their records has to be built around those timelines (HHS final rule page).
Enforcement is focused on risk analysis. This is where most organizations will feel the rules. In July 2026, OCR announced the 14th enforcement action under its Risk Analysis Initiative, and it is extending the initiative to cover risk management. An LLM workflow that processes ePHI but is missing from your risk analysis is an easy finding for an investigator. Two other layers apply on top of HIPAA.
Section 1557. Covered entities must make reasonable efforts to identify patient care decision support tools that use factors such as race, sex, age or disability. They must also reduce the discrimination risk those tools create. This obligation has been in force since May 1, 2025. AI used in screening, triage or treatment planning is covered.
State laws.
California: Generative AI messages to patients must carry a disclaimer and tell patients how to reach a human. Since January 2026, California has also barred AI systems from implying they're licensed clinicians.
Texas: Providers must disclose AI use in care. Practitioners must review AI-generated records and recommendations and make the final decision themselves.
Illinois: AI-delivered therapy is prohibited. Licensed professionals may still use AI for administrative work with patient consent.
HIPAA is only the minimum. Your build has to satisfy every state your patients are in.
Four Questions to Answer Before PHI Touches a Model
1. Is it really PHI?
Properly de-identified data isn't PHI, and HIPAA offers two routes to it:
Safe Harbor: remove 18 types of identifiers and have no actual knowledge that what's left could identify someone.
Expert Determination: a qualified expert documents that the risk of re-identification is very small.
See the HHS de-identification guidance for details on both.
Clinical free text is where de-identification tends to break down. HHS's guidance specifically addresses whether PHI in free-text fields must be removed to meet Safe
Harbor, and for good reason:
Names sit in the middle of sentences ("pt's daughter Maria called back").
Dates hide in phrases like "two weeks after her 2019 knee surgery."
A rare diagnosis in a small town can identify someone on its own.
Automated redaction catches most of this, but not all of it. Unless an expert has signed off on your method, treat redacted notes as lower-risk PHI, not as de-identified data.
2. Is the vendor a business associate, and is this exact service covered?
Any vendor that creates, receives, maintains or transmits PHI for you is a business associate and needs a BAA. With AI vendors, the details that matter are in the scope.
Providers generally call their products "HIPAA eligible," meaning the infrastructure can support covered workloads and they will sign a BAA. That isn't the same as your deployment being compliant.
The major cloud and model providers offer BAAs, but conditions vary. Some limit PHI to designated eligible services, some exclude pre-release features, and consumer plans are generally left out. Check the provider's current list of covered services, models and regions, not the marketing page.
3. What happens to prompts and outputs after the call?
Before any PHI goes out, get written answers to these questions:
How long are prompts and outputs retained?
Are they ever used for training?
Can provider staff review them during abuse monitoring?
Is zero data retention available for your account?
Which subprocessors and regions are involved?
Those answers belong in your contract and your risk analysis.
4. Is the use permitted, and limited to what's necessary?
Most clinical and administrative AI falls under treatment, payment or healthcare operations. A vendor using your PHI to improve its own commercial models is a different matter. A business associate can only use PHI as its BAA allows, and many BAAs prohibit exactly that.
For payment and operations work, the minimum necessary standard also applies (provider-to-provider treatment disclosures are exempt). Each prompt should carry only what the task needs.
A Worked Example: Prior Authorization Letters
Prior auth letters are a common first project in healthcare generative AI development. The work is repetitive, a person reviews the output before it goes anywhere, and the time savings are easy to measure. Here's how the four questions play out for a hypothetical 30-physician orthopedic group.
The data is PHI. The letter has to identify the patient, so de-identification is off the table.
The vendor is covered. The group picks a model on a cloud platform it already has a BAA with. It confirms the specific model and region are on the covered-services list, and turns on the strictest retention settings available.
Minimum necessary drives the design. Instead of passing the whole chart, the assistant retrieves four things:
the diagnosis and procedure codes
the conservative treatments already tried
the relevant imaging impressions
the payer's published criteria for that procedure
That keeps prompts small, cheaper and easier to audit. It also tends to produce better letters, because the model isn't wading through unrelated history.
A person reviews every draft. A staff member checks each draft against the chart before submission, which also satisfies human-review rules like Texas's. The system goes into the risk analysis before the pilot starts, not after.
Test the error path. Many error-tracking setups capture request bodies when an API call fails. A single timeout can send a full prompt, PHI included, to a monitoring tool with no BAA. Before real patient data flows, scrub request bodies in your error handler or confirm the tool is covered.
A Reference Architecture for HIPAA-Ready Healthcare LLM and RAG Development
For most clinical use cases, healthcare LLM and RAG development should start with retrieval-augmented generation (RAG), not fine-tuning. It's the safer pattern:
The model stays general-purpose.
PHI stays in systems you control.
Each answer can point to its source.
Fine-tuning on PHI moves patient data into model weights, where it's hard to audit or delete. Research has also shown that models can memorize and repeat rare training examples.
A HIPAA-ready RAG system needs four pieces:
Access that mirrors the EHR. Single sign-on, MFA, and roles mapped so the assistant never shows someone a record they couldn't open themselves.
A single PHI gateway between every application and every model. It handles prompt templates, redaction, routing to BAA-covered endpoints and the audit trail.
Access filtering at retrieval. Retrieval filters on access rules before anything reaches the model.
A vector store treated as a PHI system. Embeddings come from patient records, and researchers have shown text can sometimes be partly reconstructed from them.
The most common leak isn't in the architecture at all. Entering PHI into a public AI tool with no BAA is generally a HIPAA violation regardless of intent. Blocking consumer chatbots only works if staff have an approved tool that's actually good.
The table below covers the rest of the stack. For ambient scribes, remember that some states require every party's consent to a recording.
Where PHI sits | What Goes Wrong | Control |
Prompts | Staff paste whole charts; patients overshare | Task-specific templates, input filters, in-app warnings |
Retrieval and vector store | Search ignores EHR permissions; embeddings unencrypted | Access-rule filters, encryption, treat as PHI |
Semantic cache | A "similar" question returns another patient's answer | Scope caches per user and patient, or don't cache PHI |
Model endpoint | No BAA; prompts retained or used for training | BAA, retention settings, private networking |
Logs and error tools | Full prompts land in tools with no BAA | Log IDs, not text; scrub request bodies; BAA per tool |
Agents and retrieved documents | Hidden instructions trigger data export | Treat retrieved text as untrusted; least-privilege tools; human approval for outbound actions |
Ambient scribes | Recording without consent; audio kept indefinitely | Consent built into the workflow; short retention |
Outputs | Hallucinations enter the chart; PHI reaches the wrong person | Source citations, human review, identity checks for proxies |
Before go-live, confirm these:
The system and every data store it touches are in your risk analysis and risk management plan.
BAAs cover every service, model and region in the data flow, including monitoring tools.
Clinicians have tested accuracy, the team has red-teamed for prompt injection and data leakage, and any decision-support use has had a Section 1557 bias review.
Patient disclosures and consent meet the laws of every state you serve.
Incident response can meet breach notification deadlines. Notices to affected individuals go out without unreasonable delay and no later than 60 days after discovery.
Choosing a Healthcare AI Development Company: USA Buyer's Checklist
When you evaluate a healthcare Software development company, USA-specific requirements such as state AI disclosure laws and Section 1557 should come up in the first conversation, not the last. If you're bringing in a partner for generative AI development, these questions quickly separate teams that have shipped in regulated settings from teams that have built good demos:
Will you sign a BAA and flow BAAs down to every subcontractor that touches PHI?
Can you walk us through a sanitized data flow diagram from a past healthcare project, logs and caches included?
Who can access production PHI, from where, and how is that access logged? Can your developers work on synthetic or de-identified data instead?
How do you measure clinical accuracy and hallucination rates, and who signs off before launch?
Who owns prompts, embeddings, fine-tuned weights and evaluation data when the contract ends?
Specific answers backed by documents matter more than a long list of supported models.
The Bottom Line
HIPAA didn't change for AI. What changed is how many places PHI can travel in a single request. Organizations getting real value from LLMs treat the model as one more system inside their HIPAA program. That means it's:
Covered by a BAA
Limited to what the task needs
Permission-aware
Logged and tested
Included in the risk analysis
Start with a data flow map and an updated risk analysis. Every later decision, from model choice to logging, gets faster and easier to defend.
That's the standard Auspicious Soft works to as a healthcare AI development company: USA regulations first, model choice second. Our healthcare LLM and RAG development projects build these controls in from the first sprint.
FAQs
Q: Is ChatGPT HIPAA compliant?
No AI tool is HIPAA compliant on its own. Consumer chatbot plans aren't covered by a BAA and shouldn't receive PHI. Enterprise or API offerings that come with a BAA can handle PHI when they're configured, scoped and governed correctly.
Q: Do I need a BAA if I de-identify data before sending it to an LLM?
Not if the data meets Safe Harbor or Expert Determination, because it's no longer PHI. Automated redaction of clinical free text often misses identifiers, though, so many organizations keep a BAA in place anyway.
Q: Is RAG safer than fine-tuning for PHI?
Usually. RAG keeps PHI in systems you control, enforces access at retrieval time and lets answers cite their sources. Fine-tuning puts patient data into model weights, which are harder to audit or delete.
Q: Does the 2026 HIPAA Privacy Rule update change how AI can be used?
It isn't an AI rule. It takes effect January 18, 2027, and its faster access deadlines and free app transfers will shape any patient-facing AI tool that helps people get their records.
Q: What should I look for in a healthcare AI development company in the USA?
Look for a partner that:
signs a BAA and requires BAAs from its subcontractors
can show a data flow diagram from a past healthcare project
keeps developers away from production PHI
has a documented process for testing clinical accuracy and meeting state AI disclosure laws




Comments