When someone asks about your app

You're Selling or Joining a Practice and Your App Is Part of the Deal: The HIPAA Diligence Guide

Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.

Short answer: When your app is part of a practice sale, merger or move into a larger group, expect the other side to review it as a system holding patient data, so disclose it early and in writing. Prepare one file: app description, data-flow map, vendors with BAA status and dates, risk analysis, access-log evidence, incident plan, and account owners.

You are selling your practice, merging with another, or joining a larger group, and the app you built in an AI app builder or coding agent is coming along. Maybe it handles post-op check-ins, intake, refill requests or referral tracking. The buyer's diligence questionnaire may well have a line asking you to list every system that stores patient data and attach the agreements. Your app belongs on that list.

Diligence is the buyer's investigation before closing. HIPAA itself makes room for it. Its list of routine practice activities (called health care operations) includes selling, transferring, merging or consolidating all or part of a practice with another covered entity, meaning a provider or plan HIPAA applies to, or a company that will become one. It also includes the due diligence that goes with it. (HHS (eCFR), 45 CFR 164.501 -- Definitions., verified November 15, 2026) The buyer is really checking whether your app is an asset they can take over or a liability they have to plan around, shut down or fix. This page tells you what to prepare, which answers raise red flags, and gives you a reply outline to adapt. It is not legal advice. Your deal counsel and the buyer's privacy officer make the legal calls.

What HIPAA says about deals, and about your app (checked November 15, 2026)

Sharing information during diligence

The Privacy Rule lists this as a health care operations activity:

“The sale, transfer, merger, or consolidation of all or part of the covered entity with another covered entity, or an entity that following such activity will become a covered entity and due diligence related to such activity”

A covered entity, such as your practice, may use or disclose PHI (protected health information) for its own health care operations. (HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations., verified November 15, 2026) And while HIPAA generally bars selling PHI without the patient's authorization, (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026) a disclosure for a sale, transfer, merger or consolidation and the related due diligence is excluded from what counts as a sale of PHI. (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026) That does not mean anything goes. HIPAA's general minimum necessary rule asks for reasonable efforts to limit PHI to what the purpose needs. (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026) Ask your counsel how it applies to your deal; the practical default is to show the app with synthetic patients, not real ones.

What the buyer will measure your app against

The Security Rule (HIPAA's rules for electronic patient data) puts this requirement first in its list of safeguards, and it is the document a reviewer can most easily ask to see:

“(A) Risk analysis (Required). Conduct an accurate and thorough assessment of the potential risks and vulnerabilities to the confidentiality, integrity, and availability of electronic protected health information held by the covered entity or business associate.”

The same section requires risk management, meaning security measures that bring those risks down to a reasonable and appropriate level, (HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards., verified November 15, 2026) regular review of activity records such as audit logs and access reports, (HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards., verified November 15, 2026) and a periodic evaluation, including after operational changes that affect the security of patient data. (HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards., verified November 15, 2026) Whether your deal counts as one is a question for counsel. In practice, a deal that moves the app to new owners, accounts, staff or vendors is a sensible time to redo the review.

Vendors and paperwork

Every outside company that handles PHI on the practice's behalf (a business associate) must give satisfactory assurance it will protect it, (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026) documented in a written contract, the BAA (business associate agreement). (HHS, 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026) A BAA must require the vendor, at termination, to return or destroy the PHI if feasible, (HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements., verified November 15, 2026) which matters if the buyer moves the app to its own vendors. Security Rule documentation must be kept for 6 years from creation or last effective date, whichever is later, (HHS (eCFR), 45 CFR 164.316 -- Policies and procedures and documentation requirements., verified November 15, 2026) so plan for your app's records to survive the handover.

What the buyer is really trying to learn

The questionnaire may run to dozens of lines. Behind it sit six questions about your app.

  1. Does it hold patient data, and how much? Which patients, which fields, since when. A scheduling widget with first names is a different conversation from a tool holding photos and diagnoses.
  2. Where does that data go? Every outside company that stores, processes or sends it: database, hosting, file storage, AI model, email and SMS, error tracker.
  3. Is each of those companies under a signed BAA? With dates, plan names, and which legal entity signed: you personally, your practice entity, or nobody.
  4. Has something already gone wrong? If patient data went to a vendor without a BAA, the buyer's counsel has to consider whether it was a breach. An impermissible disclosure is presumed to be one unless a documented risk assessment shows a low probability that the data was compromised. (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026) Buyers do not want to inherit an unreported incident.
  5. Who owns it, and can it be handed over? The builder account, the database, the domain, the code repository, the API keys. If they sit in your personal name on your personal card, the practice does not actually control its own system.
  6. Will it keep running after closing? Who fixes it, who removes access for departing staff, and whether it fits under the buyer's security official and policies.

A clear file answers all six before anyone asks. A vague answer to any one of them tends to turn the app from a line item into a deal issue.

The diligence file: what to prepare

DocumentWhat goes in itQuestion it answers
1. One-page app descriptionWhat it does, who uses it (roles, number of users, patients or staff), live since when, which data fields, which tool built it, where it runsIs this a clinical system or a side project?
2. Data-flow mapA numbered list or simple diagram: where data enters, where it is stored, every place it is sent, and where copies end up (backups, exports, logs)Where does patient data go?
3. Vendor and BAA listEach vendor that touches PHI, its role, plan name, BAA yes or no, date signed, signing entity, where the signed copy livesAre the written assurances in place?
4. Risk analysis and risk management planRisks to the app's patient data, likelihood and impact, what you did about each, open items with dates, date of last reviewWas the required analysis done, and acted on?
5. Access and audit-log evidenceCurrent user list with roles, proof of individual logins, multi-factor sign-in settings, a sample audit-log export, how access is removed when someone leavesDo the controls exist, or only the intent?
6. Incident response plan and incident logWho is told, how the app is paused, how evidence is kept, who decides on notification; every past incident and its outcome, even minor onesIs there anything unreported?
7. PoliciesShort written policies on access, acceptable use, backups and devices, and the named security officialWill it fit our compliance program?
8. Account and ownership inventoryEvery account the app depends on (builder, database, hosting, domain, repository, email or SMS, AI model), the owner of record, who pays, who has admin rightsCan we actually take it over?

Item 8 is easy to overlook, and a buyer cannot take over an app without it. For items 3 and 4, the Stack Checker lists BAA gaps for a builder, database and hosting combination, and the BAA Matrix shows which tools sign a BAA, with dates. Our physician-builder risk analysis template gives you a structure; the federal SRA (Security Risk Assessment) Tool, aimed at small and medium providers, is another. (HHS ONC (HealthIT.gov), Security Risk Assessment Tool - ONC - Office of the National Coordinator for Health Information Technology, verified November 15, 2026) Treat either as a structure for your thinking, not a stamp of approval. If BAAs are missing, these request templates give you wording to send today. If an investor rather than a buyer is asking, our guide to investor risk-analysis requests covers that angle.

What this means for your app

Building the data-flow map and the account inventory is where vibe-coded apps surprise their own builders. Check each of these before the buyer does:

  • The builder's AI chat. If you pasted a schedule screenshot, a sample note or a patient list into the chat while building, the chat history holds PHI with the builder's company.
  • Seed and demo data. Test rows copied from a real EHR export are real patient data. They will also be what you are tempted to demo to the buyer. Do not.
  • The sign-in table. If patients log in, their names, emails and phone numbers sit in the sign-in (auth) table, which may be run by a different vendor from the main database.
  • File storage, logs and backups. Uploaded photos and PDFs, request logs that capture form contents, and backups that outlive any cleanup you do before closing.
  • AI model calls, email and SMS. Each is a separate vendor that needs its own line on the BAA list.
  • Accounts in the wrong name. A database organization, hosting team or repository created under your personal email does not move with the practice automatically.

Moving the app is its own diligence item. Some services make transfer easy: Supabase lets you transfer projects between organizations, (Project Transfers | Supabase Docs, verified November 15, 2026) but it tells HIPAA customers not to transfer projects to a non-HIPAA organization. (Shared Responsibility Model | Supabase Docs, verified November 15, 2026) Others take real work: Lovable says it does not move a project to another backend in one step, so you export the database, download storage files and move code yourself. (Back up, restore, and export your project's database - Lovable Documentation, verified November 15, 2026) If you are joining a group rather than selling, the same questions apply, plus one more: whether the app will sit under the group's compliance program or stay yours. Our guide for sharing an app with a practice partner covers that split, and what a HIPAA app review checks walks through the same inventory in more depth.

Answers that raise red flags in diligence, and better ones

Red-flag answerWhy it worries the buyerBetter answer
The app is HIPAA compliant.No authority certifies software as HIPAA compliant, so the claim suggests nobody checkedHere is what is in place, what is not, and the dates
Leaving the app off the systems list because it is small.An undisclosed system found later makes every other answer look unreliableList it, with a one-page description and the vendor list
The platform has SOC 2.A security audit report is not the written contract HIPAA expects from a vendor handling PHI (HHS, 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026)Here is each vendor and its BAA status
It's on my account; I'll hand over the password.Shared credentials defeat unique user identification (HHS (eCFR), 45 CFR 164.312 -- Technical safeguards., verified November 15, 2026) and leave the practice without controlHere is the account inventory and a plan to move ownership to the practice entity
I'll delete the patient data before closing.Deleting can destroy the data and logs needed to judge past incidents, and the Security Rule's own documentation must be kept for 6 years (HHS (eCFR), 45 CFR 164.316 -- Policies and procedures and documentation requirements., verified November 15, 2026)Nothing has been deleted; here is what we hold and where
Here's a demo with some real patients so you can see it working.Shows more PHI than the purpose needs and signals loose habitsHere is a walkthrough on synthetic patients

The pattern: written, specific and dated beats confident and general. If you do not know an answer, say you will confirm it by a date.

How this goes wrong: the app left off the systems list

Imagine, as a hypothetical, an orthopedic surgeon selling her two-surgeon practice to a larger regional group. Two years earlier she built a post-op follow-up app in an AI app builder. Patients get a text link, log in, upload wound photos and answer pain questions. The builder set up a Supabase database and file storage on the Free plan, under her personal email. A texting service sends the reminders. Early on, she pasted a photo of the day's surgical schedule into the builder's chat so the AI could copy the layout.

The diligence questionnaire asks for every system that stores PHI, with BAAs attached. Between cases, she lists the EHR and the billing service and adds a note: we also use a small internal follow-up tool, HIPAA compliant. No vendor list, no description.

The buyer's security reviewer interviews the medical assistants, hears about the photo uploads, and asks for details. Each piece fails a check. Supabase says an organization must be on at least its Team plan, and request a HIPAA add-on, to sign a BAA, (Shared Responsibility Model | Supabase Docs, verified November 15, 2026) and its pricing comparison lists HIPAA as not included on the Free plan, (Pricing & Fees | Supabase, verified November 15, 2026) so two years of wound photos sat with a vendor that had no BAA. The schedule photo sits in the builder's chat history. There is no risk analysis for the app, and the database belongs to her personal account, not the practice.

Now counsel on both sides has to consider whether the database and the chat were impermissible disclosures, meaning patient data shared in a way HIPAA does not allow. Such a disclosure is presumed to be a breach unless a documented assessment shows a low probability that the data was compromised. (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026) The deal does not necessarily die, but the app stops being an asset. The buyer may ask for the app to be shut down before closing, for a special indemnity in the purchase agreement (a promise that she covers losses tied to the app), and for a fresh look at every other answer in the questionnaire. Patients who relied on the follow-up texts lose them mid-recovery. The same gaps, disclosed in a file with dates and a fix plan in week one, would have been a to-do list instead of a trust problem.

A draft diligence response you can adapt

Send this with the questionnaire, or as soon as the app comes up. Fill in the brackets and delete what does not apply. Have your deal counsel review it before it goes out, since what you write in diligence may be relied on in the purchase agreement.

Subject: [App name]: description, data flow and HIPAA documentation for diligence

1. What it is: [one sentence]. Used by [staff roles and number] and [patients, if any] since [date], for [which patients].

2. Patient data it holds: [fields, including photos or files]. Data comes in by [patient entry / staff entry / EHR export].

3. Where the data goes: data-flow map attached. Vendors that touch patient data, with plan, BAA status, signing entity and dates: list attached.

4. Accounts and ownership: inventory attached, showing owner of record and admin users for each account. Accounts currently in my personal name: [list], with a plan to move them to [practice entity] by [date].

5. Risk analysis: [completed on date, attached] or [not yet done; target date]. Risk management actions: [list with dates].

6. Access and logs: individual logins with [roles]; multi-factor sign-in is [on / being enabled by date]; access to records is logged in [where]; sample attached.

7. Incident response plan and incident log: attached. Known incidents: [none / description and outcome].

8. Known gaps: [each gap and the date it will be closed].

We can walk through the app on synthetic patient data at your convenience. No patient data or logs have been deleted in preparation for the transaction.

The outline answers the buyer's six questions, names the gaps before the reviewer finds them, and shows that evidence was preserved. If the buyer's team then asks how the app would be carried forward, our keep, refactor or rebuild guide helps you frame the options.

Keep, refactor, or rebuild?

Verdict: Keep or Refactor

A practice sale or merger tests whether your app can be documented and handed over, not whether it should exist. If the diligence file shows a signed BAA with every vendor that touches patient data, individual logins, an audit log, and accounts the practice controls, keep it and disclose it fully. If it shows a database on a vendor's Free plan, vendors without BAAs, a shared login or accounts in your personal name, refactor the data layer, sign-in and hosting, ideally before closing. Either way, disclose the app early and in writing.

A deal does not decide the app's fate on its own. The diligence file does. If every vendor that touches patient data is under a signed BAA, users have individual logins and roles, access is logged, and the accounts can move to the practice entity or the buyer, the app can stay as designed and travel with the deal. If the file shows a database on a vendor's Free plan, an AI model or texting service without a BAA, a shared login, or accounts in your personal name, keep the screens and workflow but replace the data layer, sign-in and hosting before closing, or agree with the buyer who will do it after. Rebuild only if the platform cannot export your code and data in a usable form.

Fabrica fits the refactor case, and its setup speaks directly to the ownership question. PHI lives in a cloud account the practice owns, encrypted in transit and at rest, and the apps and data remain the practice's if it stops working with PAHL. PAHL signs a BAA with the practice and confirms one is in place with each vendor that handles PHI. Every access to a patient record is logged, and Fabrica provides documentation for the practice's Security Risk Analysis, updated yearly. The practice remains the covered entity, responsible for its policies, training and risk analysis.

Frequently asked questions

Can I share patient data from my app with the buyer during due diligence?

HIPAA's definition of health care operations includes a sale, transfer, merger or consolidation and the related due diligence, (HHS (eCFR), 45 CFR 164.501 -- Definitions., verified November 15, 2026) and a covered entity may disclose PHI for its own health care operations. (HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations., verified November 15, 2026) The general minimum necessary standard still asks for reasonable efforts to limit PHI to what is needed. (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026) In practice, demo the app on synthetic patients and let counsel decide what real records, if any, the buyer sees.

Is selling my practice along with the app a sale of PHI that needs patient authorization?

HIPAA generally bars selling PHI without patient authorization, (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026) but disclosures for the sale, transfer, merger or consolidation of all or part of a covered entity, and related due diligence, are excluded from the definition of a sale of PHI. (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026) How that applies to your deal structure, and any state law on top, is a question for your deal counsel.

I never did a risk analysis for the app. Should I say so in diligence?

Yes, and give a date for finishing it. A risk analysis is a Required Security Rule specification, (HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards., verified November 15, 2026) and a buyer is likely to ask for it. Our risk analysis template is written for physician-built apps. An honest gap with a date reads far better than a claim the reviewer later disproves.

The database and builder accounts are in my personal name. Does that matter?

Yes. It means the practice being sold does not directly control the system holding its patients' data. List every account in the diligence file and plan the move to the practice entity or the buyer. If you use Supabase, it allows project transfers between organizations (Project Transfers | Supabase Docs, verified November 15, 2026) but tells HIPAA customers not to transfer projects to a non-HIPAA organization. (Shared Responsibility Model | Supabase Docs, verified November 15, 2026)

I'm joining a larger group, not selling. Do I still need a diligence file?

Yes, in a lighter form. The group's security official is likely to decide whether the app comes under their program, and to ask the same questions about vendors, BAAs, access and logs. Bring the one-page description, data-flow map, vendor list and account inventory to the first conversation.

How long do I need to keep the app's HIPAA documents after the deal?

Security Rule documentation must be kept for 6 years from creation or the date it was last in effect, whichever is later. (HHS (eCFR), 45 CFR 164.316 -- Policies and procedures and documentation requirements., verified November 15, 2026) Agree with the buyer, in writing, who keeps the app's risk analysis, policies, logs and BAAs after closing.

Palo Alto Health Labs Fabrica

Keep building. We make it safe.

If a buyer's diligence questionnaire is asking about your app, the Fabrica assessment starts with the same question: where does patient data go today, and who owns the accounts?

Fabrica moves the patient data in your vibe-coded app into an environment your practice owns, built for HIPAA compliance, with a BAA. You keep building in the tool you already use. Start with a 30-minute call about what you have built and where patient data goes today.

See how Fabrica works and book a 30-minute call

Please do not send patient information when you get in touch. The call is a conversation, not an audit or legal advice.

Sources

Every vendor statement on this page comes from the vendor's own terms, documentation or trust pages, or from the regulator, opened and read on the date shown. Vendor terms change; confirm the current version and your own signed agreement before relying on it. This page is general information, not legal advice.

  1. HHS (eCFR), 45 CFR 164.501 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11 (versioner API).
  2. HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  3. HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11 (versioner API).
  4. HHS (eCFR), 45 CFR 164.308 -- Administrative safeguards.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  5. HHS (eCFR), 45 CFR 164.504 -- Uses and disclosures: Organizational requirements.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  6. HHS (eCFR), 45 CFR 164.316 -- Policies and procedures and documentation requirements.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  7. HHS (eCFR), 45 CFR 164.402 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  8. HHS ONC (HealthIT.gov), Security Risk Assessment Tool - ONC - Office of the National Coordinator for Health Information Technology. Checked November 15, 2026. Page dated Last Updated: September 18, 2026.
  9. Project Transfers | Supabase Docs. Checked November 15, 2026.
  10. Shared Responsibility Model | Supabase Docs. Checked November 15, 2026. Page dated Updated Oct 6, 2026.
  11. Back up, restore, and export your project's database - Lovable Documentation. Checked November 15, 2026.
  12. HHS (eCFR), 45 CFR 164.312 -- Technical safeguards.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  13. Pricing & Fees | Supabase. Checked November 15, 2026.