All insights

AI security and compliance

HIPAA AI compliance: BAAs, PHI in prompts and audit logs

An engineering partner can build HIPAA-ready software. It cannot be HIPAA compliant on your behalf.

Co-founder and CEO, Datics AIUpdated 10 min read

In brief

HIPAA AI compliance comes down to two questions: does each AI service that touches protected health information sit under a business associate agreement, and does your design send that service only what it needs? The product company owns the agreements, risk analysis and audits. The engineering team builds the controls: identifier removal before model calls, tenant isolation, access control, logging and secrets management. No model or tool is HIPAA compliant on its own.

On this page
  1. 01Is AI HIPAA compliant?
  2. 02Who carries what under HIPAA
  3. 03Which AI providers sign a BAA, and on what terms
  4. 04What stays with you and what the engineering team builds
  5. 05How we approach HIPAA AI inside a healthcare product
  6. 06Logs, retention and audit for AI features
  7. 07Transcription, ambient scribes and patient-facing chatbots
  8. 08What changed at HHS: the rules to track
  9. 09What we see in production
  10. 10Questions to settle before your first AI feature in healthcare
  11. Frequently asked questions

01Is AI HIPAA compliant?

No AI model or tool is HIPAA compliant by itself, because HIPAA certifies no products. An AI feature is used in a HIPAA compliant way when six things are true:

CheckWhat it means for the AI feature
A business associate agreement covers the exact serviceNot just the provider: the specific endpoint, product and configuration you call
Only the minimum necessary data reaches the modelNames, dates of birth and other identifiers are removed in your backend first
Retention is known for every copyThe provider, your logs, your tracing tool and your database each have a written retention decision
Each customer's data stays apartRetrieval, caches and logs are filtered by clinic before the model sees anything
Every AI call is loggedWho triggered it, which record it touched, which model ran and what came back
A clinician decidesThe AI drafts; a person reads and approves anything that affects care

The rest of this article goes through each check: who carries which part, which providers sign an agreement and for what, and how we build the controls into a healthcare product.

02Who carries what under HIPAA

Founders often expect their engineering partner to carry compliance end to end. The regulation does not work that way.

HIPAA applies to covered entities, such as healthcare providers, and to their business associates. Under the federal definition, a business associate is a person or organization that creates, receives, maintains or transmits protected health information on behalf of a covered entity. The definition also includes subcontractors that handle that information on behalf of a business associate.

For a company selling clinical software to practices, that usually means:

  • The clinics are covered entities.
  • Your company is their business associate, and signs a business associate agreement with each clinic or under your terms of service.
  • Your cloud provider, your AI model provider, your transcription service and any logging or tracing tool that stores prompts are your subcontractors, and you need agreements with each one that touches protected health information.
  • Your engineering partner is in that chain only if it handles protected health information. If the partner works without access to real patient data, much of the compliance burden never reaches it.

The chain runs one way. Microsoft's Azure HIPAA guidance puts it plainly: if you sell a healthcare SaaS product on Azure, your customers sign a business associate agreement with you, not with Microsoft.

Keeping the engineering partner out of that chain is a design choice. We plan our work so engineers do not need standing access to client production data, which keeps the boundary clear and the security conversation short.

This article explains how we scope engineering work. It is not legal advice, and your counsel should review your agreements.

03Which AI providers sign a BAA, and on what terms

HIPAA has no product certification. Microsoft notes on its HIPAA compliance page that there is no HHS-approved certification for showing compliance, and that signing its agreement does not make a customer compliant. What you can check is whether a provider signs an agreement for the exact service and configuration you plan to use. Here is what each provider's own page said when we read it in November 2026:

ProviderWhat its own page saysWhat to watch
AWSAmazon Bedrock, Amazon Transcribe (including HealthScribe), Comprehend Medical and Lex are listed as HIPAA eligibleNo PHI before an AWS agreement is in place, and you must configure the services to fit HIPAA
MicrosoftThe agreement comes by default through the Product Terms and data protection addendum for in-scope servicesThe in-scope list sits in the Azure compliance offerings appendices, not on the HIPAA page; confirm Azure OpenAI is on it before sending PHI
Google CloudIts covered list names Gemini Enterprise Agent Platform, Generative AI on Agent Platform and Gemini EnterpriseVertex AI is not listed under that name; confirm the product you call is on the list, and keep preview features away from PHI
AnthropicThe first-party API and Claude Enterprise can be covered once an owner accepts the agreementBatch API, Files API, web fetch and connectors are not covered; covered models use 30-day retention unless zero retention is authorized
OpenAINamed API endpoints are eligible for use under its business associate addendumZero data retention needs prior approval; Web Search, Assistants, Files, Batches and fine-tuning are outside it

Two patterns stand out. Coverage is per feature, not per company: the same provider can cover a chat endpoint and exclude its file storage or web search. And retention differs: OpenAI's page says abuse monitoring logs are kept for up to 30 days by default. Recheck both whenever you adopt a new feature from the same provider.

04What stays with you and what the engineering team builds

A clear split saves weeks of back and forth. This is the split we write into scope:

Table splitting HIPAA areas between the product company and the engineering team
Agreements and audits stay with the product company.
AreaOwned by the product companyBuilt by the engineering team
Business associate agreements with clinics and vendorsYesNo
Risk analysis, policies and workforce trainingYesInputs and documentation
Third-party audit or assessmentYesEvidence and fixes
Tenant isolation between clinicsRequirementYes
Role-based access controlRequirementYes
Secrets and key managementRequirementYes
Encryption in transit and at restRequirementYes
Removing identifiers before AI callsRequirementYes
Audit loggingRequirementYes

NIST Special Publication 800-66 Revision 2, a practical guide to implementing the HIPAA Security Rule, helps a founder see what each technical safeguard is meant to achieve.

05How we approach HIPAA AI inside a healthcare product

AI adds one specific risk: patient data flowing to a model provider. We design that risk out wherever we can, rather than relying on contracts alone.

Flow of six steps for building HIPAA aware AI features inside a healthcare product
The AI does not diagnose; a clinician reads and decides.
  1. 01

    Decide what the model actually needs.

    Clinical summaries need symptoms, history and medications. They rarely need a patient's name or date of birth. This is the minimum necessary standard applied to a prompt: covered entities and business associates must make reasonable efforts to limit PHI to the minimum necessary, with exceptions such as disclosures to a provider for treatment.

  2. 02

    Strip identifiers before any data reaches the model.

    Names, dates of birth and similar identifiers are removed in your own backend, before the request leaves your environment. The HIPAA de-identification standard lists the identifiers that matter, including names and all elements of dates except the year, and it is a good checklist even when you are not aiming for full de-identification. Free text needs the most care: "my daughter Emily drove me" puts a name in a symptom field.

  3. 03

    Keep one system of record.

    Every extra platform that stores patient data is another system to secure, document and cover in an agreement. One database in one cloud is easier to defend.

  4. 04

    Isolate tenants from the start.

    Each clinic's data stays separate, and only a defined super admin role sees across clinics.

  5. 05

    Keep a human in the loop for clinical judgment.

    The AI drafts, a clinician reads and decides. The AI does not diagnose.

  6. 06

    Put secrets in a managed vault.

    API keys and credentials never live in code or plain configuration.

  7. 07

    Say plainly what you are not doing.

    Write in the scope that the business associate agreements and audits stay with the product company. Honest scope shortens security reviews.

06Logs, retention and audit for AI features

Most PHI exposure in AI features is not a model failure. It is copies: a prompt written to an application log, a tracing tool that keeps the full request, an error report that attaches the payload. Our piece on AI data leakage covers these paths in more detail.

The Security Rule's audit controls standard asks for mechanisms that record and examine activity in systems that contain or use electronic PHI. For an AI feature, we log who triggered the call, which tenant and record it touched, which model and prompt version ran, and what came back, in a restricted store. Debugging logs get identifiers and redacted text, not raw PHI. Our AI audit trail article describes the fields we keep.

Retention needs a decision for each copy: your database, your logs, your tracing tool and the provider. The Security Rule also requires documentation of policies and required actions to be kept for six years, so write these decisions down.

07Transcription, ambient scribes and patient-facing chatbots

Three AI patterns show up on most healthcare roadmaps, and each changes the data flow.

Transcription and ambient scribes. Audio of a visit is PHI from the first second. The transcription service, the model that drafts the note and any place the audio is stored all sit in the agreement chain. AWS, for example, lists its HealthScribe capability under Amazon Transcribe as HIPAA eligible. Ask where audio is kept, for how long, and whether a draft can be released without a clinician. We cover the time side of this trade in AI clinical documentation time savings.

Patient-facing chatbots. A chatbot offered to patients collects PHI as soon as someone types a symptom or a name, so the model provider, chat platform and conversation store join the chain. Design the bot to collect what the workflow needs, route clinical questions to staff and never present a diagnosis.

Staff using general AI tools. A chart note pasted into a personal account with no agreement is the easiest gap to miss. Give staff an approved tool under an agreement and a clear rule on what may go in.

08What changed at HHS: the rules to track

Three federal actions matter for AI in healthcare products. We read them in the Federal Register; confirm current status with your counsel before you rely on it.

  • HIPAA Security Rule proposal. HHS published a proposed rule to strengthen the Security Rule on January 6, 2025, with comments closing March 7, 2025. As of November 2026, we found no final rule in the Federal Register, so the current Security Rule still applies. Its preamble states that electronic PHI in AI training data, prediction models and algorithm data maintained for covered functions is protected by the HIPAA Rules, and expects risk analyses to consider what PHI an AI tool accesses, to whom it is disclosed and to whom the output goes.
  • Section 1557 and patient care decision support tools. The 2024 nondiscrimination rule added 45 CFR 92.210 for health programs that receive federal financial assistance from HHS. It requires reasonable efforts to identify decision support tools, automated or not, that use race, color, national origin, sex, age or disability as inputs, and to mitigate the risk of discrimination. The rule took effect July 5, 2024, and those duties applied within 300 days, which is May 1, 2025. A June 2, 2026 notice reports that a court vacated certain gender identity provisions and that the other provisions remain in force.
  • Certified health IT and model transparency. An October 28, 2026 ONC final rule, effective December 28, 2026, narrows the decision support interventions certification criterion and removes its "model card" source attribute requirements. This matters for certified EHR technology, not for HIPAA.

09What we see in production

For MIRA, a pain clinician's AI patient intake product, we built the first version for the founder's own practice. Patients answered an adaptive questionnaire by tap or voice, and the model wrote a clinical summary for the physician. That version stored no patient names or birth dates, only a generic ID per intake, and it ran in three practices on Azure before the founder approved the next phase.

The second phase turned it into a multi-clinic product: self-service sign-up, per-provider billing, and super admin, clinic admin and provider roles with each clinic isolated. The commercial version collects names and dates of birth, so both are removed on our backend before any intake reaches the model. Secrets moved to Azure Key Vault, and the client holds the business associate agreement and the third-party audit. One useful call was what not to build: keeping the client's separate sign-up platform would have meant a second database to bring under HIPAA, so we recommended one database on Azure.

The engineering partner is not always outside the chain. For Datascape, a Denver data consultancy that works as a business associate for healthcare organizations, our engineers built a contract extraction pipeline inside the client's restricted AWS account, under a signed business associate agreement. Contracts never left that account.

On a dental clinical documentation product, appointment audio is transcribed with Whisper and Deepgram and a model drafts the note, but nothing reaches the patient record until the dentist reviews, edits and approves it. Because each scope said clearly what stayed with the client, the security conversation focused on controls we could show.

10Questions to settle before your first AI feature in healthcare

  • Which vendors will create, receive, maintain or transmit PHI, including logging and tracing tools, and do you have agreements with each?
  • Is the exact feature you plan to call covered by your model provider's agreement, and what retention applies to it?
  • How many systems store patient data, and can that number be one?
  • Does any tool influence clinical decisions in a way Section 1557 would treat as decision support?
  • What does the AI decide on its own, and what does a clinician approve?

The same pattern, keeping identifiers inside your boundary and sending the model only what it needs, applies well beyond healthcare; see AI for K12 software without touching student data. More healthcare work is on our healthcare industry page. For the wider software side of HIPAA, beyond the AI feature, see HIPAA compliance for software. To check your own AI feature against these controls, use our free field guide, HIPAA-ready AI.

Frequently asked questions

Is AI HIPAA compliant?

No AI tool is HIPAA compliant on its own, because HIPAA certifies no products. An AI feature can be used in a HIPAA compliant way when the exact service sits under a business associate agreement, only the minimum necessary data reaches the model, retention is known for every copy, customers' data stays apart, every call is logged and a clinician makes the clinical decisions.

What is HIPAA compliant AI?

It is AI that a covered entity or business associate uses within HIPAA's rules: under an agreement with each vendor that touches protected health information, with identifiers removed before the model call where the task allows, and with access control, audit logging and retention decisions in place. The term describes how the AI is set up and used, not a label on the product.

Is ChatGPT HIPAA compliant?

No AI product is HIPAA compliant on its own, because HIPAA has no product certification. The real question is whether the provider signs a business associate agreement for the specific product and configuration you use. OpenAI's API documentation lists eligible endpoints and excludes others, such as Web Search. A personal account with no agreement is not a place for PHI.

Can we send patient data to an AI model provider?

Only under an agreement that covers the service, and only what the task needs. Strip names, dates of birth and similar identifiers in your own backend before the request leaves your environment. Check the provider's retention terms as well as its agreement.

Is our engineering partner a business associate under HIPAA?

Only if it creates, receives, maintains or transmits PHI on your behalf. If the partner works without access to real patient data, much of the compliance burden never reaches it. If it must work with PHI, as in a pipeline that runs in your cloud account, put an agreement in place and limit its access to the permissions the work needs.

Does the proposed HIPAA Security Rule update change how we use AI?

The proposal published on January 6, 2025 was not final as of November 2026, so the current Security Rule applies. Its preamble already says AI tools belong in your risk analysis, including what PHI they access and where their output goes.

Who owns HIPAA compliance when an outside team builds the product?

The product company. It carries the business associate agreements, risk analysis, policies, training and third-party audits. The engineering team builds the technical controls, from tenant isolation and access control to identifier removal and audit logging.

How Datics helps

Datics specializes in Brownfield AI: production AI inside software people already rely on. Already built AI? The AI Scorecard tests it on 50 of your own cases in two weeks, for $5,000, and ranks what to fix first. Once it is live, AI Care keeps it accurate for $1,500 a month per capability.

›References (16)
  1. 45 CFR 160.103: Definitions, including business associate (Cornell LII)
  2. 45 CFR 164.502: Uses and disclosures, including minimum necessary (Cornell LII)
  3. 45 CFR 164.514: De-identification of protected health information (Cornell LII)
  4. 45 CFR 164.312: Technical safeguards, including audit controls (Cornell LII)
  5. 45 CFR 164.316: Policies, procedures and documentation (Cornell LII)
  6. NIST SP 800-66 Rev. 2: Implementing the HIPAA Security Rule
  7. Federal Register: HIPAA Security Rule proposed rule, January 6, 2025
  8. Federal Register: Nondiscrimination in Health Programs and Activities, May 6, 2024
  9. Federal Register: Notice of vacatur regarding certain Section 1557 provisions, June 2, 2026
  10. Federal Register: ONC deregulatory final rule, October 28, 2026
  11. AWS: HIPAA eligible services reference
  12. Microsoft: Azure HIPAA offering
  13. Microsoft: HIPAA and HITECH compliance offering
  14. Google Cloud: HIPAA compliance
  15. Anthropic: Business associate agreements for commercial customers
  16. OpenAI: Data controls in the OpenAI platform

Related work

Case studies from our projects on the same subject.

MIRA

Healthcare · AI patient intake

Pain physicians start each visit with an AI summary of the patient's history

Pain histories used to be taken in the room. Now patients answer adaptive questions first, by tap or voice, and AI drafts the summary.

AI-native productHuman approvalProduction AI
Read case study

Datascape

Healthcare · Contract data extraction pipeline

Compensation terms read from any physician contract, inside the client's own restricted cloud

Extraction code broke whenever a contract changed layout. One RAG pipeline now reads any contract, inside the client's own AWS account.

Forward deployedBrownfield AIDocument intelligence
Read case study

Dental clinical documentation AI company

Healthcare · Clinical documentation AI

Dentists approve a clinical note drafted during the appointment, not rebuilt after it

Dentists rebuilt notes from memory after each visit. Now AI drafts the note during the appointment, and only the dentist can release it.

AI-native productHuman approvalIntegrations
Read case study

More on AI security and compliance

AI security and compliance

AI security for SaaS: protect data and pass security reviews

A practical map of AI security for established SaaS: threats, data governance, permissions, audit trails and how to answer enterprise security reviews.

Umair MajeedRead

AI security and compliance

What enterprise AI security questions do buyers ask?

Enterprise AI security reviews ask where data and models run, who reaches production, what the AI may do alone and how it is logged. Here is how to prepare.

Umair MajeedRead

AI security and compliance

Soft delete vs hard delete in SaaS: AI, GDPR and audits

Soft delete vs hard delete: a clear comparison, SQL patterns, GDPR erasure, and how deletion reaches embeddings, search indexes and AI logs.

Engineering TeamRead

AI security and compliance

How does AI data security work with production data?

A practical AI data security pattern for SaaS: keep the core as the system of record, run AI in its own environment, and connect it through APIs and approval.

Rana Umar MajeedRead

AI security and compliance

How do you enforce tenant isolation beyond database rows?

Tenant isolation beyond database rows means boundaries per field and per role, in caches, files, payments and jobs, so no tenant sees what another owns.

Rana Umar MajeedRead

AI security and compliance

How do you build an AI audit trail you can reproduce?

An AI audit trail records who or what made each change, with which inputs and model, so reviewers can tell AI entries apart and reproduce any output.

Rana Umar MajeedRead

Your customers already expect AI from your product.

Let us make it real inside the product you run today.