Key takeaways
|
HIPAA Compliant AI Development starts with one question most healthcare engineering teams answer wrong: does a system prompt or RAG context containing patient information count as a HIPAA-regulated disclosure when it is sent to an LLM API? Under 45 CFR 164.514, the answer is yes whenever that information meets the definition of protected health information (PHI).
The Office for Civil Rights has already shown what happens when a business associate agreement is missing: Oregon Health and Science University paid a 2.7 million settlement after PHI was stored on a cloud server with no BAA in place (HHS, 2016).
This guide explains the five BAA rules that govern HIPAA-regulated LLM projects, maps which cloud AI platforms carry a HIPAA-eligible BAA, and breaks down the de-identification methods that let a team skip the BAA requirement entirely.
A large share of the compliance risk sits in the PHI LLM context window itself, since a retrieval-augmented prompt can pull patient data into a request without an engineer ever writing that data down by hand.
| Building an LLM application for a healthcare client and need to scope the HIPAA architecture?
WebOsmotic designs HIPAA compliant AI systems for healthcare teams. We scope the BAA requirements, design the de-identification pipeline, architect the data access layer, and build the audit logging required for compliance, as first-class deliverables, not afterthoughts. |
The HIPAA Privacy Rule applies to protected health information regardless of the medium in which it exists. A system prompt containing a patient’s name, diagnosis, and medication list is PHI. The transmission of that prompt to an LLM API endpoint is a disclosure of PHI. If no BAA exists between the covered entity and the LLM provider, that disclosure is impermissible.
HHS’s cloud computing guidance establishes the framework directly: when a covered entity or business associate engages a cloud service provider to create, receive, maintain, or transmit ePHI, the CSP is a business associate, even if it processes only encrypted PHI and lacks the encryption key. This principle extends to LLM API providers. An LLM that receives a prompt containing PHI creates, receives, and processes ePHI on behalf of the covered entity.
HHS’s de-identification guidance defines two methods for achieving de-identification under the Privacy Rule. Both methods, if correctly applied, produce information that is no longer PHI and therefore not subject to HIPAA’s use and disclosure restrictions.
Safe Harbor requires the removal of 18 specific identifier categories from the health information. If all 18 identifier types are removed and the covered entity has no actual knowledge that the remaining information could be used to identify an individual, the information is de-identified.
Expert Determination requires a qualified expert to apply statistical or scientific principles to determine that the risk of identifying an individual from the de-identified data is very small. The expert must document the methods and results of the analysis.
| Platform | HIPAA BAA available | Scope of coverage | Key condition |
| AWS Bedrock | Yes | HIPAA-eligible for LLM inference workloads. Customer data is not stored or used to train foundation models | BAA must be executed via Enterprise Agreement or equivalent AWS licensed agreement before PHI workloads are deployed |
| Microsoft Azure OpenAI | Yes (text-based inputs) | Covered under Microsoft’s BAA through the Data Protection Addendum for text-based AI inputs | Computer Vision and Face API are not HIPAA-eligible by default. Do not use these with PHI unless explicitly approved. Verify the Microsoft DPA is in place for your licensing model |
| Vertex AI (Google Cloud) | Yes | Vertex AI Agent Engine supports HIPAA workloads. Customer data is not used to train Gemini models | BAA available through Google Cloud. Verify scope covers the specific Vertex AI services in your workload |
| Anthropic Claude (direct API) | Available for enterprise | Anthropic offers HIPAA BAAs for enterprise customers. Confirm current availability and scope directly with Anthropic before deploying PHI workloads | Zero Data Retention option available. Do not use consumer or developer tier APIs for PHI without confirming current BAA coverage |
| OpenAI API | Available for enterprise | HIPAA BAA available for enterprise customers with Zero Data Retention. Consumer ChatGPT does not carry HIPAA coverage | Confirm current enterprise BAA coverage directly with OpenAI. Developer tier accounts typically do not include BAA coverage |
The safe handoff problem is the most common HIPAA violation in well-designed LLM healthcare systems: a BAA-covered LLM makes tool calls to external APIs, such as web search or drug databases, that pass PHI to services not covered by any BAA. The original vendor’s BAA covers only its own endpoint.
Building AI systems that hold up under a HIPAA audit is an infrastructure problem before it is a model problem. Four components carry most of the weight.
Each of these four pieces maps to a specific failure mode seen in production. Skipping the de-identification pipeline means PHI reaches the model unfiltered.
Skipping the BAA verification layer means a tool call can silently exit the covered environment. Skipping audit logging means a compliance review has no record to examine.
Skipping minimum necessary enforcement means a single compromised prompt can expose more of the chart than the task ever required.
WebOsmotic’s healthcare AI development practice treats HIPAA compliance architecture as a first-class deliverable. For clients building LLM systems on AWS Bedrock, Azure AI, or Vertex AI, the BAA verification, de-identification pipeline, audit logging, and minimum necessary enforcement are all designed and built before the LLM application layer is implemented.
| Ready to build an LLM application for healthcare that is HIPAA-compliant from day one?
WebOsmotic designs and builds HIPAA-compliant AI systems for healthcare providers, health tech companies, and digital health platforms. We scope BAA requirements, build de-identification pipelines, and architect audit logging as first-class deliverables. |
Does HIPAA compliant AI development require a Business Associate Agreement when sending PHI to an LLM API?
Yes, whenever the prompt or context meets the definition of PHI. HHS’s cloud computing guidance treats any provider that creates, receives, maintains, or transmits ePHI on a covered entity’s behalf as a business associate, even when it holds only encrypted data and no decryption key (HHS, 2016). Without a signed BAA, sending PHI to that provider breaks the Privacy Rule.
How do I de-identify patient data for HIPAA compliant AI development before sending it to an LLM?
Apply the Safe Harbor method: remove all 18 identifier categories, including names, geographic detail more specific than state, dates other than the year, contact information, and Social Security or medical record numbers (HHS, 2012). Once every category is stripped, the data is no longer PHI and carries no HIPAA restriction, which is why Safe Harbor is the more common route for HIPAA compliant AI development pipelines compared with Expert Determination.
Is AWS Bedrock suitable for HIPAA compliant AI development on LLM workloads?
Yes. AWS lists Bedrock among its 166-plus HIPAA-eligible services, and customer prompts are not stored or used to train foundation models (AWS, 2025). A BAA must be executed through an Enterprise Agreement or equivalent AWS licensed agreement before any PHI workload goes live.
Is Microsoft Azure OpenAI covered under a HIPAA BAA for HIPAA compliant AI development?
Yes, for text-based inputs. Azure OpenAI sits under Microsoft’s BAA through the Data Protection Addendum, included automatically for customers on qualifying licensing agreements. Computer Vision and Face API are excluded from that default coverage, so confirm your DPA scope before routing PHI through either service.
What is the safe handoff problem in HIPAA compliant AI development?
It is what happens when a BAA-covered LLM calls an external tool, a search API, or a research database that carries no BAA of its own. Each of those calls is a separate disclosure. The fix is a de-identification layer in the tool call handler that strips the 18 Safe Harbor identifiers before any query exits the BAA-covered environment.
How does WebOsmotic build HIPAA compliant AI development for healthcare clients?
Every healthcare engagement starts with scoping which cloud AI services need BAA verification, then building the de-identification pipeline, the BAA verification layer for tool calls, immutable audit logging, and minimum necessary enforcement at the data access layer, before the application layer gets built on top.