Healthcare AI guide

Can an AI Vendor Train on PHI Under a BAA?

Understand when HIPAA permits AI training on patient data, what a BAA can authorize, and how to structure lawful training and data licensing.

By Sergei Tokmakov, Esq. Published and last reviewed December 5, 2026.

Sergei Tokmakov, Esq.

Sergei Tokmakov, Esq.Admitted in California (Bar No. 279869) and Washington (WSBA No. 65720). My law firm won the 2026 American Legal Technology Awards, Law Firm category. I am a member of the American Health Law Association and completed its 2026 AI in Health Care eProgram (December 2026).

A healthcare AI vendor provides software to a hospital under a signed business associate agreement. The software processes clinical notes, patient conversations or other medical records. The vendor wants to use those records to improve its underlying model and make the resulting improvements available to future customers.

Does the existing BAA permit that training? Not necessarily. The answer depends on whose purposes the training serves, what information is involved, what the agreement permits and whether the proposed use falls within HIPAA's legal framework. Processing patient information to deliver a contracted service is different from retaining that information as a commercial development asset.

Key takeaways

  • A signed business associate agreement, or BAA, does not automatically authorize an AI vendor to train commercial models on protected health information.
  • Customer-specific model development may be permissible when it serves a lawful covered-entity function and falls within the business associate's authorized activities.
  • Training a general-purpose product for the vendor's independent commercial benefit raises a separate legal question that broad product-improvement language does not resolve.
  • HIPAA permits appropriately authorized data aggregation services, but the statutory framework does not create an unrestricted cross-customer training license.
  • A business associate must have authorization under its BAA to de-identify PHI. Subsequent use of qualifying de-identified information requires separate consideration of contractual rights and other applicable laws.
  • Discounts, payments and other consideration exchanged for access to PHI require analysis under HIPAA's sale-of-PHI restrictions.
  • State privacy requirements and federal substance use disorder record protections may impose additional restrictions even when a proposed use appears permissible under HIPAA.

The starting point is 45 CFR § 164.502(a)(3). A business associate's use or disclosure of PHI must fall within its business associate arrangement or an applicable legal requirement. The arrangement cannot ordinarily authorize conduct that would violate the Privacy Rule if undertaken by the covered entity itself.

The corresponding organizational requirements appear in 45 CFR § 164.504(e). They require the parties to establish authorized activities and impose restrictions on subsequent processing, safeguards, subcontractors and other matters.

HIPAA recognizes limited contractual permissions concerning data aggregation and a business associate's own administration and legal responsibilities. These exceptions have defined purposes. They should not be treated as general permission for commercial AI development.

The HHS Office for Civil Rights, or OCR, confirms in its business associate liability guidance that business associates may face direct enforcement for impermissible PHI uses and disclosures.

Review the provisions identifying what the business associate may do with patient information. Many agreements permit processing necessary to provide services described in a master services agreement, statement of work or order form.

That structure makes the underlying commercial agreement important. A contract for automated clinical documentation may authorize processing encounters to produce patient notes without addressing whether the vendor can retain those encounters to improve its general-purpose model.

HHS publishes sample business associate agreement provisions that illustrate both specifically enumerated permitted activities and references to underlying service agreements. HHS also identifies de-identification as an activity the parties should expressly address.

For AI transactions, I would distinguish inference, troubleshooting, evaluation, customer-specific customization, model training and commercial reuse rather than group them under a single undefined service-improvement clause.

HIPAA permits covered entities to conduct qualifying treatment, payment and health care operations activities under 45 CFR § 164.506, subject to applicable conditions.

The definition of health care operations in 45 CFR § 164.501 includes quality improvement, outcomes evaluation and development of clinical guidelines. It also distinguishes covered operational activities from studies primarily directed toward obtaining generalizable knowledge.

These provisions create a plausible basis for certain narrowly defined AI development activities undertaken for a covered entity. They do not expressly classify all AI model training as health care operations.

Customer-specific development

Suppose a hospital commissions an evaluation and customization project to improve a model used within its own discharge planning process. The vendor analyzes historical records to address identified operational problems. The agreement restricts the resulting customization to the hospital's authorized purposes.

That arrangement may fit within a qualifying operational function. The analysis should examine the actual purpose, the necessity of identifiable information, the authorized services, the intended recipients of the improved model and applicable safeguards.

Development of a general commercial product

Now suppose the vendor retains the same records indefinitely, combines them with information from unrelated hospitals and develops a proprietary model that it licenses throughout the industry.

The vendor's argument that a better model will eventually benefit healthcare customers is not, by itself, sufficient to establish that every training activity constitutes the original hospital's health care operations.

The legal uncertainty is especially significant where training serves both customer-specific and vendor-wide objectives. The regulation does not supply a blanket resolution for mixed-purpose AI development.

A conservative contracting approach separates the activities and identifies a legal basis for each. Where the independent development purpose cannot be justified within the existing business associate arrangement, consider a properly structured de-identified dataset or another independently permissible legal pathway.

Under 45 CFR § 164.504(e)(4), a BAA may permit necessary uses of PHI for the business associate's proper administration and management or its legal responsibilities. Certain disclosures for those purposes are subject to further conditions.

Those permissions can address activities associated with administering the business associate's operations and satisfying its legal obligations. They should not be interpreted as unrestricted permission to use patient information for unrelated research, market expansion or general product development.

For example, defending a legal claim involving the contracted service presents a materially different purpose from building a commercial foundation model. The fact that both activities benefit the vendor does not make their legal treatment identical.

HIPAA expressly recognizes data aggregation services. Under 45 CFR § 164.504(e)(2)(i)(B), a business associate arrangement may authorize aggregation related to the covered entity's health care operations.

The definition in 45 CFR § 164.501 concerns combining information obtained through multiple business associate relationships for analyses connected with the respective covered entities' operations.

Consider a vendor providing participating hospitals with comparative performance assessments. Properly structured analyses may fall within the aggregation framework. However, retaining the pooled information to create a separately marketed AI asset raises additional issues.

The contract should identify which customers participate, the intended analytical purposes, authorized outputs, restrictions on exposing another customer's information and whether any resulting product may be commercialized.

Do not assume that a data aggregation clause authorizes every form of cross-customer machine learning.

A business associate may have authority to convert PHI into qualifying de-identified information. But the process itself involves using PHI.

OCR directly addresses this issue in its FAQ concerning de-identification by health information organizations acting as business associates. OCR explains that the activity must be authorized by the business associate agreement. Once information satisfies HIPAA's de-identification requirements, the Privacy Rule no longer restricts that information as PHI, subject to other applicable laws.

The relevant methods are established in 45 CFR § 164.514(a)-(c). They include Expert Determination and Safe Harbor, each with specific requirements. Removing patient names alone does not establish compliance with either method.

The parties should also distinguish a limited data set from de-identified information. Under § 164.514(e), a limited data set remains subject to specified permitted purposes and data use agreement requirements.

A commercially useful de-identification provision should address the method, documentation, responsibility for validation and the vendor's subsequent licensing and training rights. Permission to perform de-identification should not be treated as automatically resolving all contractual restrictions on commercialization.

For additional analysis of this structure, see Can You License De-Identified Medical Data to Train AI?

Under 45 CFR § 164.502(a)(5)(ii), disclosure of PHI in exchange for remuneration generally requires compliance with the applicable authorization framework unless a specified exception applies.

The business associate exception addresses qualifying activities performed on behalf of the covered entity where the permitted compensation flows from the covered entity to the business associate for performing those activities. It should not be assumed to cover payments flowing in the opposite direction in exchange for training data.

For disclosures constituting a sale, 45 CFR § 164.508(a)(4) requires an authorization addressing the remuneration involved.

The parties should examine arrangements such as discounted software subscriptions offered in exchange for access to PHI, payments for additional patient records, revenue shares tied to identifiable datasets and free pilot programs conditioned on continuing training rights.

These arrangements are not necessarily prohibited in every form. They require analysis of the actual consideration, applicable exceptions and proposed disclosure. Describing a data transfer as a partnership contribution rather than a sale does not resolve that analysis.

45 CFR § 164.502(b) requires reasonable efforts to limit PHI processing to what is necessary for the intended purpose, subject to enumerated exceptions.

The standard therefore warrants attention where AI training is justified as a health care operations activity. Do not assume that the treatment exception automatically applies to every development project involving clinical software.

The covered entity's more detailed implementation requirements appear in 45 CFR § 164.514(d). OCR also identifies applicable minimum necessary obligations in its business associate liability guidance.

Ask whether the development requires full patient records, whether smaller datasets would suffice, whether identifying fields can be excluded and whether less sensitive information could accomplish the same objective. Record the reasons for retaining particular fields or categories.

The following table assumes a conventional BAA authorizing contracted services without an express independent commercial training license. The conclusions are preliminary issue-spotting assessments based on §§ 164.501, 164.502, 164.504, 164.506 and 164.514, rather than determinations applicable to every agreement.

Training scenarioPermitted under a standard BAA?What is needed
Processing patient information to generate contracted clinical documentation without model trainingPotentially yesAuthorized services, appropriate safeguards and applicable privacy compliance
Fine-tuning a customer-specific model for the hospital's own quality improvement activitiesPossibly, depending on purpose and scopeDocumented lawful function, express development permissions and applicable minimum necessary controls
Training a general commercial model on identifiable records from one customerNot established by a conventional BAASeparate legal analysis and an independently valid basis for the proposed use
Pooling PHI from multiple hospitals for operational benchmarkingPotentially, where qualifying aggregation is authorizedAppropriate aggregation provisions and defined operational purposes for participating entities
Pooling identifiable records to create an independently commercialized foundation modelNot established by aggregation language aloneSeparate analysis of permissible uses, contractual restrictions and commercialization structure
Vendor de-identifies PHI before commercial trainingOnly if the de-identification activity is authorizedDocumented compliant de-identification and separate rights to use the resulting information
Vendor receives information already properly de-identifiedA BAA is not required solely for that information under HIPAAVerification of de-identification, data provenance, licensing rights and other applicable laws
Vendor pays a hospital for identifiable training recordsNot established by a BAA aloneSale-of-PHI analysis, applicable authorization or exception, and an otherwise lawful disclosure

HHS published its final rule on coordinated care, individual engagement and regulatory burdens on November 19, 2026, at 91 FR 74848. The rule becomes effective January 19, 2027, with general compliance required by July 19, 2027.

Relevant changes clarify that qualifying health care operations encompass both individual-level and population-based care coordination and case management. The rule also establishes additional permissions for certain disclosures supporting individual care coordination.

Importantly, HHS did not finalize the proposed minimum necessary exception for individual-level care coordination and case management. The final rule also retains the limitation concerning generalizable knowledge in the definition's quality improvement provisions.

These amendments do not establish a general permission for AI vendors to train independent commercial models on PHI.

The amendments also address disclosures to an individual's designated recipient under the right of access, including an associated sale-of-PHI exception. These are not equivalent to authorization for a hospital's business associate to build an unrelated training dataset.

Revised § 164.532(e) establishes a limited documentation and contract transition mechanism for qualifying existing arrangements, potentially extending to January 18, 2028. The extension depends on the agreement's history and renewal or modification dates. It should not be interpreted as an extension of substantive training permissions.

HIPAA does not necessarily preempt more stringent state health information privacy protections. See 45 CFR § 160.203.

California Confidentiality of Medical Information Act

California Civil Code § 56.10 restricts disclosure of medical information without appropriate authorization, subject to statutory exceptions. Its application to a proposed vendor relationship requires separate consideration from HIPAA.

The California Attorney General's medical privacy guidance identifies § 56.10 as a source of state-law disclosure restrictions. The chaptered text of California Senate Bill 81, Chapter 123, Statutes of 2025, section 2, sets out the amended statute, including restrictions on specified non-care uses and onward disclosures.

For a California-facing development project, assess the relevant entity definitions, statutory exceptions and patient authorization requirements. Do not assume that a valid federal BAA independently resolves the CMIA analysis.

Washington My Health My Data Act

Washington's My Health My Data Act, Chapter 191, Laws of 2023, codified at Chapter 19.373 RCW, regulates qualifying consumer health data. It includes exemptions for specified information governed by existing health privacy frameworks, including qualifying HIPAA PHI.

A company offering both hospital software and a separate consumer-facing health application should assess those data streams independently. Where nonexempt consumer health data is involved, applicable requirements may include specified consent, privacy disclosures, processor limitations and separate authorization for sales.

See Washington My Health My Data Act for Wellness Apps for additional discussion.

Certain substance use disorder treatment records are governed by 42 CFR Part 2.

The 2024 Part 2 final rule, 89 FR 12472, established a compliance deadline of February 16, 2026. It aligns portions of Part 2 more closely with HIPAA while retaining distinct confidentiality protections.

Sections 2.31 and 2.33 address qualifying patient consent and subsequent processing, including a single consent for future treatment, payment and health care operations. Special restrictions continue to apply, including limitations involving proceedings against patients and separate consent requirements for substance use disorder counseling notes.

Before incorporating records from potentially covered programs into an AI development pipeline, identify their source, applicable consents and permitted onward uses. A conventional BAA alone does not establish authority to use every Part 2 record for model training.

Deleting the original patient records does not answer whether other retained artifacts contain individually identifiable information. Embeddings, model checkpoints, evaluation records and generated outputs should be assessed according to their actual characteristics and applicable legal definitions.

The parties should not assume that model training itself constitutes HIPAA-compliant de-identification. Establish appropriate testing and documentation, and negotiate retention and deletion obligations before the training begins.

For the separate question of who controls model weights, improvements and downstream commercialization, see Who Owns an AI Model Trained on Hospital Patient Data?

Purpose and authority

  • Identify the covered entity, business associates and downstream processors.
  • Separate service delivery, customer-specific improvement and independent commercial development.
  • Identify the legal basis for every proposed use and disclosure.
  • Check whether patient authorizations, research permissions or separate state-law requirements apply.

Contract and technical architecture

  • Review the BAA and underlying service agreement together.
  • Define training, testing, evaluation, aggregation and de-identification separately.
  • Specify whether identifiable information can enter shared training infrastructure.
  • Address subcontractor BAAs and restrictions on independent model-provider training.
  • Document applicable minimum necessary controls and de-identification procedures.

Commercialization and continuing obligations

  • Review compensation and other consideration connected with PHI transfers.
  • Document rights to use and license qualifying de-identified information.
  • Establish procedures for identifying and handling Part 2 records and other restricted information.
  • Address retention, incident reporting, model retirement and contract termination.
  • Require renewed legal review before materially expanding the training purpose or dataset.

How I can help

My Medical Data Licensing & AI Training Rights service addresses the legal structure of healthcare AI training projects, including data provenance, BAA permissions, de-identification provisions, data use agreements and downstream commercialization restrictions.

Medical Data Licensing & AI Training Rights

from $8,500

Legal assessment and contract development for acquiring, licensing and commercializing medical datasets, including permitted AI training, data provenance, privacy restrictions, derived models, intellectual property and downstream usage rights.

Request this packageSee what is included

Healthcare AI Contracting & Hospital Procurement

from $7,500

Attorney-drafted enterprise agreements and procurement redlines for healthcare AI vendors and providers, addressing data rights, clinical responsibilities, model changes, commercial liability, security obligations and institutional purchasing requirements.

Request this packageSee what is included

Each fee is a starting fee. The engagement letter confirms the exact scope, jurisdictions and fee in writing before any payment. Packages do not include clinical or scientific validation, FDA submissions, litigation or outside expert fees.

Does signing a BAA make AI model training HIPAA-compliant?

No. The proposed activity must be permitted by the agreement and consistent with the applicable legal requirements. See 45 CFR § 164.502(a)(3).

Can an AI vendor train a model to improve services for one hospital?

Potentially. Customer-specific training may support a qualifying covered-entity function, depending on its actual purpose and the agreement. 45 CFR § 164.501 identifies activities that constitute health care operations.

Can a vendor train on PHI from multiple hospital customers?

Qualifying aggregation services may be authorized under 45 CFR § 164.504(e)(2)(i)(B). Independent commercial training requires separate analysis and should not be presumed permissible under that provision.

Can a business associate keep information after de-identifying it?

HIPAA does not regulate information properly de-identified under its applicable standards as PHI. However, the business associate must first have authority to perform de-identification, and retention remains subject to applicable contractual and other legal restrictions. See OCR's de-identification FAQ.

Can a hospital accept payments or discounted software in exchange for training data?

Such arrangements require analysis of the nature of the information, the consideration involved and applicable statutory exceptions. Where the disclosure constitutes a sale of PHI, 45 CFR § 164.508(a)(4) establishes an applicable authorization requirement.

Did the November 2026 HIPAA final rule authorize commercial AI training?

The November 19, 2026 final rule modifies several privacy requirements and clarifies care coordination activities. It does not create a general commercial AI training permission. Its effective date is January 19, 2027, and its general compliance date is July 19, 2027.

Can a vendor train on substance use disorder treatment records under an ordinary BAA?

The applicable requirements of 42 CFR Part 2 must be considered separately. The record source, applicable consent, permitted purpose and restrictions on subsequent use and disclosure all require review.

Ask the AI Legal Analyst a follow-up question

Describe your product in a few sentences for general legal information on how these rules may apply.

Loading the AI Legal Analyst...
Sergei Tokmakov, Esq.

Sergei Tokmakov, Esq., Terms.Law. Admitted to practice in California (State Bar No. 279869) and Washington (WSBA No. 65720). My law firm won the 2026 American Legal Technology Awards in the Law Firm category.

I handle matters in writing: no calls or video meetings. Contact: owner@terms.law.

Last reviewed December 5, 2026. This page is general information about the law, not legal advice, and reading it does not create an attorney-client relationship. Laws, agency guidance and platform policies in this area change often; check the linked primary sources and get advice on your specific product before relying on it. Attorney advertising.