Skip to content
Questions

Can I send PHI to an LLM?

Short answer

Yes, but only if the LLM provider signs a BAA with you that covers the exact service and endpoint you call, and you treat it like any other vendor that handles PHI. Without a BAA, send only properly de-identified data, or keep the model inside an environment you already cover.

Last updated

Why the BAA is the deciding point

Under HIPAA, a vendor that creates, receives, maintains or sends PHI for a covered entity or a business associate is itself a business associate. An LLM API that receives prompts containing patient data fits that description, so the contract rules in 45 CFR 164.504(e) apply.

Many AI providers offer a BAA only on certain plans, accounts or endpoints. A consumer chat app, a free tier or a beta feature is often outside it. Check the BAA's scope against the exact API, model and features you use, including logging, file storage and any data retention settings.

What to set up before sending PHI

A signed BAA is necessary, not sufficient. The Security Rule still applies to the whole data path:

  1. 1Send the minimum PHI the task needs. Strip identifiers the model does not need to see.
  2. 2Turn off or limit provider-side retention and training on your data where the provider allows it, and confirm this in writing.
  3. 3Keep audit logs of which user or service sent which data, without copying PHI into general logs or analytics tools.
  4. 4Check every other vendor in the path: vector databases, observability tools, queues and email. Each one that touches PHI needs its own BAA.
  5. 5Add the AI feature to your risk analysis and test it with evals and guardrails, since a hallucination in a clinical setting is a safety issue, not only a quality one.

When de-identification is the better route

HIPAA does not apply to data de-identified under 45 CFR 164.514, either by removing the listed identifiers (Safe Harbor) or by an expert determination. For analytics, summarisation of trends or model testing, de-identified data can remove the need for a BAA. Free-text clinical notes are hard to de-identify reliably, so treat them as PHI unless an expert says otherwise.

Tools

Check it for your case.

Sources

Read the official text.

Frequently asked

Common follow-up questions.

Is a provider's "HIPAA eligible" label enough?

No. The label usually means the provider will sign a BAA for that service. You still need the signed BAA in place before sending PHI, and your own safeguards around it.

Can staff paste patient notes into a public chatbot?

Not unless that product is covered by a BAA with your organisation. Most consumer chat apps are not, so this is a common source of accidental disclosures.

Does running an open model on our own servers avoid the issue?

It removes the AI provider from the data path, but your hosting provider and the servers are still part of the system that handles PHI, so the Security Rule and any hosting BAA still apply.

Keep reading

Related questions and guides.

Planning a build? Talk it through.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab