Skip to content
Lucerna Law

Confidentiality and ethics

HIPAA Compliant AI for Lawyers: When HIPAA Applies

By Published 11 min readUpdated

Lawyers need HIPAA compliant AI only when HIPAA reaches the firm, and it does so in one main way: the firm is a business associate of a hospital, health plan or other covered entity. Then the firm needs a business associate agreement from the AI vendor holding the records. "Compliant" on a vendor's page is the vendor's own description.

When does HIPAA reach a law firm at all?

HIPAA reaches a law firm when the firm is a covered entity, which the definition's list does not suggest, or a business associate, which happens when it does legal work for one. The definition says nothing of a firm whose client is the patient, or of one that receives records from an opposing party.

The definitions are in 45 CFR 160.103. A covered entity is a health plan, a health care clearinghouse, or a health care provider that transmits health information electronically in connection with the transactions the rules cover. Law firms are not on that list.

The business associate definition is where lawyers appear by name. Paragraph (1)(ii) covers a person who provides "legal, actuarial, accounting, consulting" and other listed services to or for a covered entity, "where the provision of the service involves the disclosure of protected health information from such covered entity" to that person.

Read closely, the definition has three parts, and all three must be present.

  1. The client is a covered entity, or an organized health care arrangement in which a covered entity takes part.
  2. The firm provides legal services to or for that client.
  3. The work involves protected health information disclosed to the firm by that client or by another of its business associates.

A firm defending a hospital that is a covered entity, with the patient's chart sent over by the hospital, has all three. A firm suing that hospital for the patient is not providing legal services to the hospital, so the first two are missing. Whether a given engagement meets the definition is a legal question about that engagement, and this post describes the text without deciding it for anyone.

Records by authorization or subpoena versus records held as a business associate

How medical records reached the firm decides whether HIPAA follows them. Records disclosed to a firm as a covered entity's lawyer come with business associate duties. Records released on a patient's authorization, or under a subpoena or court order, leave the provider under rules that bind the provider. Other law governs what the firm does next.

How the firm got the recordsThe HIPAA provision involvedWhat that means for the firm
From a covered-entity client, to do its legal workBusiness associate definition, 160.103The firm is a business associate. An agreement is required, and HIPAA limits the firm's use
On the patient's signed authorization45 CFR 164.508The provider needed the authorization. The form itself warns that the recipient may redisclose
By subpoena or discovery request45 CFR 164.512(e)The provider needed assurances. A qualified protective order may bind the parties
By court order45 CFR 164.512(e)(1)(i)The provider may disclose only what the order expressly authorizes

On authorization

Under 45 CFR 164.508, a covered entity generally may not use or disclose protected health information without a valid authorization, unless another provision permits it. A valid authorization must at least describe the information, name who may disclose it and who may receive it, state the purpose, give an expiration date or event, and be signed and dated.

It must also carry a statement that plaintiffs' lawyers should notice. The form has to tell the patient of "the potential for information disclosed pursuant to the authorization to be subject to redisclosure by the recipient and no longer be protected by this subpart."

By subpoena or court order

45 CFR 164.512(e) lets a covered entity disclose records in a judicial or administrative proceeding in response to a court order, or in response to a subpoena or discovery request if it receives one of two satisfactory assurances. One is that reasonable efforts were made to notify the patient. The other is that reasonable efforts were made to secure a qualified protective order.

The regulation defines that order. It must prohibit the parties from using or disclosing the information for any purpose other than the litigation, and require its return or destruction at the end of the case. So a firm that is not a business associate may still be bound, by an order or stipulation, to limits on where those records go. An AI vendor is one more place they could go.

Outside HIPAA does not mean unprotected

A firm outside HIPAA still owes its client the duty of confidentiality, and state law may protect medical, mental health or substance use records in ways this post does not survey. The ethics side is set out in which duties apply when a lawyer uses AI.

What must a business associate agreement with an AI vendor say?

A business associate agreement with an AI vendor must bind the vendor, in writing, to the same restrictions that bind the firm. The regulation defines a subcontractor as a person to whom a business associate delegates a function, activity or service, and it counts a subcontractor that handles protected health information as a business associate too.

Both definitions are in 160.103. A subcontractor is "a person to whom a business associate delegates a function, activity, or service," other than a member of its workforce. The business associate definition includes "a subcontractor that creates, receives, maintains, or transmits protected health information on behalf of the business associate." Whether a given vendor fits is a question about what the firm has handed it. One that stores a business associate firm's records on the firm's behalf would appear to "maintain" them.

45 CFR 164.502(e) says a business associate may let a subcontractor handle protected health information on its behalf if it obtains satisfactory assurances that the subcontractor will appropriately safeguard it. Those assurances must be documented through a written contract or other written agreement or arrangement.

45 CFR 164.504(e) lists what the contract must contain, and says the same requirements apply between a business associate and its subcontractor. Among them, the contract must provide that the vendor will:

  • not use or further disclose the information except as the contract permits or the law requires;
  • use appropriate safeguards, and comply with the security rules for electronic records where they apply;
  • report to the firm any use or disclosure the contract does not allow, including breaches of unsecured information;
  • ensure that its own subcontractors agree to the same restrictions and conditions.

That last item matters for AI products in particular. Most are built on another company's model and another company's cloud. The regulation's flow-down clause asks for the same restrictions at each link that handles the records. Tracing that chain is the same exercise as following client text past the vendor you signed with, with a stricter contract at each link.

Where the written agreement follows the records, when the firm is a business associate
  1. 01

    Covered entity

    Discloses patient records to the firm for its legal work

  2. 02

    Law firm

    A business associate. An agreement is required, and HIPAA limits the firm's use

  3. 03

    AI vendor

    If it holds those records for the firm, the firm must get a written agreement from it

  4. 04

    Vendor's subcontractors

    The contract must provide that the vendor will ensure they agree to the same restrictions and conditions

What "HIPAA compliant" can and cannot mean for an AI tool

"HIPAA compliant" on an AI vendor's page can mean that the vendor will sign a business associate agreement and has set up a version of its service to match. It is not a certificate. It also cannot make the firm compliant, because the duties the regulation places on a business associate stay with the firm.

Vendors that hold large amounts of health data say this themselves. Amazon's page on HIPAA compliance at AWS answers the question "Is AWS HIPAA certified?" by saying there is no HIPAA certification for a cloud service provider. It describes instead a standard business associate addendum that AWS presents to customers for signature. AWS's page on Amazon Bedrock security and compliance uses the phrase "HIPAA eligible" for that service.

"Eligible" is the honest word. The AWS page says customers with a signed addendum should process, store and transmit protected health information only in the HIPAA-eligible services the addendum defines. It does not say that any use of an eligible service complies.

Coverage is often narrower than the brand name. Anthropic's article on business associate agreements for commercial customers, as of October 2026, says its agreement covers its "HIPAA-ready" services, that an enterprise organization's primary owner must activate the HIPAA setting and accept the agreement, and that standard enterprise plans do not include coverage without that step. It lists features the agreement excludes, some of them available to use but not covered, and says not all API features are covered.

So three questions sort a vendor's claim.

Ask the vendorWhy
Will you sign a business associate agreement with a law firm?Without one, a firm that is a business associate has no written assurances
Which plan, features and models does it cover?Coverage can stop short of the feature you meant to use
Do your own subcontractors have agreements with you?The regulation requires the restrictions to flow down

A promise not to train on the records, or to retain nothing, is a separate matter from all three.

Does Lucerna Law sign a business associate agreement?

Lucerna Law's homepage and privacy policy do not offer a business associate agreement and do not mention HIPAA. The Security page inside the product lists a claim of compliance with a particular law among the things not in place today.

Its words are: "We do not say the service meets HIPAA, GDPR, or any other law. If a matter carries such a duty, ask us before you upload."

That is the whole of what the product's pages say on the subject. Nothing else on the site is an assurance about records a firm holds as a business associate.

The surrounding facts are on the security section of the homepage. No auditor has certified the service, and a SOC 2 Type I audit is planned. Staff with access to its database and storage could read a firm's data. The Enterprise plan lists a standard MSA and DPA, which, as noted above, is a different document from a business associate agreement.

For a firm that is not a business associate, such as one reviewing its own client's treatment records obtained on authorization, the question is not HIPAA but confidentiality, any protective order, and state law. Lucerna Law takes questions across the PDFs, Word files and text-message exports in a matter, and its answers cite passages from those files. The method for that work is in the guide to an AI medical records summary.

Three sets of medical records in one firm: a worked example

Take a hypothetical six-lawyer firm with three open matters, each holding medical records. The same AI tool is proposed for all three. The answer differs by matter, because the records arrived three different ways.

Matter one. The firm defends a physical therapy clinic in a billing dispute. The clinic sent 400 patient files so the firm could analyze the claims. Assume the clinic is a covered entity. The firm is providing legal services to it, and the work involves patient information the clinic disclosed. On the text of 160.103, that is the business associate situation. The regulation calls for a written agreement between the clinic and the firm, and another between the firm and any vendor that will hold those files.

Matter two. The firm represents a driver hurt in a collision. She signed authorizations, and three providers sent 900 pages of treatment records. The firm's client is the patient. The providers needed her authorization to release the records, and the form told her they might be redisclosed. The firm's duties here come from the rules of professional conduct and any state law on medical records.

Matter three. In the same collision case, the defendant's records arrive under a stipulated protective order that limits use to the litigation and requires destruction at the end. The firm is not a business associate. It is bound by the order. Before those pages go into any outside tool, someone has to read what the order says about third parties and about destruction, and ask whether the vendor can delete on request.

In all three, the questions a lawyer might put to the records are much the same.

Ask the file

List each visit where the patient reported neck pain, with the provider and date.

Which records mention a prior injury before the collision date?

What changes from matter to matter is the paper that has to be in place before a tool receives the records.

Before medical records go into any AI tool

Before medical records go into an AI tool, settle how the records reached the firm, what binds the firm for that set, and whether the vendor's paper matches. Do it per matter, because the answer can differ between two files in the same office.

  • We know whether the client in this matter is a covered entity or a business associate of one.
  • If so, we have our own business associate agreement, and we have read what it lets us do with subcontractors.
  • The AI vendor has signed a business associate agreement, and it covers the plan and features we will use.
  • If the records came under a protective order, we have read its terms on third parties and destruction.
  • We have checked state law on the kind of records involved.
  • We know what the vendor retains, for how long, and whether we can delete it and get confirmation.
  • The decision is written in the matter file.

At least one court has written about the same concern from its side. One federal judge's order requires a certification that using a generative AI program has not disclosed confidential or business proprietary information to any unauthorized party. That order, and others like it, are covered in the post on AI in court.

This post describes what the regulation's text says. It is not legal advice, and it does not cover the security rule's technical requirements, breach notification, or state law.