Your doctors are vibe-coding: who owns the risk?

Last reviewed:

Audience: Owners, managing partners, and practice administrators of private medical groups whose physicians or staff may be building workflow tools with AI coding assistants.


“Vibe coding” is a plain-language name for a now-common habit: describing the tool you want and letting a generative AI system write the code. For a physician who has lived with an awkward EHR screen for years, that habit can produce a working prototype in a weekend.

The legal and operational question is not whether the prototype is impressive. It is who is operating it, what information it can see, which vendors receive that information, and who will still be able to explain it a year from now.

A September 22, 2026 MGMA Stat poll of 228 medical group leaders reported that about 34 percent said their practice had already built an app or workflow tool in-house using AI (MGMA). Only that headline figure is cited here, because the poll’s full percentage breakdown is not presented as a clean, mutually exclusive distribution. Its narrative treats uncertainty as a governance question about leaders’ visibility, not proof of unreported tools. Respondents described tools for scheduling, prior authorization, denials, dashboards, inventory, call handling, and staff tracking — and, in some cases, charting support, ordering workflows, coding guidance, and patient-facing software.

This article is for the people who own the practice, not only for the person who wrote the prompts.

The practice may own the tool even if one doctor built it

Ownership here is not only a copyright question, though that matters too. It is the question of who is offering or operating the software as part of the practice’s work.

HIPAA’s Rules apply to covered entities and business associates, not to every file a physician creates. HHS states that health care providers (doctors, clinics, and others listed on its covered-entity page) are covered entities if they transmit information electronically in connection with a transaction for which HHS has adopted a standard. If an organization is neither a covered entity nor a business associate, HHS says it does not have to comply with the HIPAA Rules (HHS: Covered Entities and Business Associates).

A physician’s license, by itself, does not answer the question, and a clever prototype does not either. What matters is the operator, the users, the information involved, and the relationships around the tool. An educational calculator using invented cases, an intake helper operated by a covered practice, and a consumer app offered independently are not the same arrangement. Do not assign them the same legal conclusion because a doctor wrote all three. Take a one-page description of operator, users, data, and relationships to qualified counsel.

If the practice is a covered entity and the tool is part of how the practice performs its health care activities, treating the project as “just the doctor’s side experiment” is unlikely to be a complete risk position. MGMA likewise advises putting ownership of source code, passwords, API keys, change approval, and maintenance in writing, especially when the builder is a physician-owner or a contractor (MGMA).

HIPAA follows the data and the relationships

Two official distinctions prevent a lot of false comfort.

First, covered-entity or business-associate status is definitional. HHS’s business associate guidance describes a business associate, generally, as a person other than a workforce member who performs certain functions for a covered entity that involve creating, receiving, maintaining, or transmitting protected health information, or who provides certain services that involve disclosure of PHI. HHS examples include a health care application developer that contracts with a covered entity to provide an app involving patients’ PHI; a cloud service provider engaged to process or store ePHI; and an IT contractor who supports systems that require the vendor to handle ePHI (HHS business associate FAQs).

There are also situations HHS says do not require a business associate agreement — for example, certain provider-to-provider disclosures for treatment, or a true transmission-only “conduit.” Those exceptions are specific. Do not assume an AI builder, a hosting platform, or an analytics tool qualifies as a conduit.

Second, encryption and “we never look at the data” do not, by themselves, remove business-associate status for a cloud provider. HHS’s cloud-computing guidance states that when a covered entity or business associate engages a cloud service provider to create, receive, maintain, or transmit ePHI on its behalf, the provider is a business associate — even if it processes or stores only encrypted ePHI and lacks the encryption key. HHS also states that using such a provider without a business associate agreement is a violation of the HIPAA Rules, and that a business associate remains directly liable for applicable requirements even if a contract was never signed (HHS Guidance on HIPAA & Cloud Computing).

A signed agreement is necessary in the relationships HHS describes. It is not a complete compliance program. The Security Rule still requires regulated entities to implement reasonable and appropriate administrative, physical, and technical safeguards for ePHI, and to perform risk analysis as part of security management (HHS Security Rule summary). HHS does not endorse, certify, or recommend specific technology or products (cloud-computing guidance, question 4).

New tools belong in the risk analysis

HHS’s risk-analysis guidance explains that covered entities and business associates must conduct an accurate and thorough assessment of potential risks and vulnerabilities to the confidentiality, integrity, and availability of ePHI they hold (45 C.F.R. § 164.308(a)(1)(ii)(A)). The scope includes all ePHI the organization creates, receives, maintains, or transmits, regardless of medium or location. HHS also says the process should be ongoing, and that planning to incorporate new technology is a reason to analyze risk again (HHS Guidance on Risk Analysis).

A physician-built app that can see or store electronic protected health information is new technology in that sense, whether or not anyone called it an “IT project.” MGMA makes the same practical point: a homegrown tool that handles ePHI belongs in the practice’s security risk analysis, and the development environment counts too — including patient information pasted into a coding assistant to debug a display problem (MGMA).

This is not a claim that every prototype automatically triggers every Security Rule specification. It is a claim that regulated organizations should not leave shadow software off the inventory they use to understand risk. How a particular practice documents and updates its analysis is for that practice, its security official, and its counsel.

HHS’s August 2026 Security Rule summary discusses the rule that is currently in effect and separately points readers to a proposed modification. Proposed changes are not current mandates. Check the effective rule before relying on this summary.

The risky habits are ordinary, not exotic

These patterns show up repeatedly in public explainers, including HIPAA Vault’s August 24, 2026 vibe-coding guide and the guides in this series. They are review prompts, not findings about any PAHL client.

  1. Real patient information enters a prototype or a prompt. A screenshot, a CSV export, or an error message can be enough. Prefer entirely invented examples labeled as synthetic. Removing a name from a real record is not automatically de-identification under HIPAA; HHS publishes separate de-identification standards, and the checklist guide warns against assuming otherwise.
  2. The inventory stops at the pretty interface. Email, SMS, file storage, analytics, error reporting, session replay, backups, and model APIs may all receive information. Each recipient needs its own row: legal entity, product, account, what it receives, and whether an appropriate agreement exists.
  3. Login is mistaken for authorization. A person who can open “their” record by guessing another identifier is not in an acceptable place, regardless of how quickly the AI generated the screen.
  4. Secrets and ownership are informal. API keys in the code, a personal GitHub account, a consumer AI login, or a builder who leaves the practice can turn a helpful tool into an unrecoverable dependency.
  5. A vendor logo is treated as a compliance result. Product names, “HIPAA eligible” marketing, and even an executed BAA do not test whether the application actually limits access, logs activity, or sends data somewhere the agreement does not cover.

Public BAA status for specific builders changes and is often plan- and configuration-specific. The 2026 BAA matrix records what official vendor pages said as of November 7, 2026, including explicit restrictions and unverified rows. Do not copy older categorical “no BAA” claims forward without rechecking that matrix and the vendor’s current terms. For a tool a clinician has already built, the free Stack Checker shows which of its layers have a BAA path, and patient data in a Lovable app: what now covers the first steps if real patient data is already in one.

If something already went wrong

If patient information may already have been uploaded to a prototyping platform, pasted into an assistant, or stored in an unofficial database:

The HIPAA Breach Notification Rule describes when covered entities and business associates must notify individuals, HHS, and in some cases the media after a breach of unsecured protected health information, and it defines a breach, generally, as an impermissible use or disclosure that compromises the security or privacy of PHI unless a documented risk assessment shows a low probability that the PHI has been compromised (HHS Breach Notification Rule). Whether a specific event is a breach, and what notice is required, is not something this article can decide.

HHS’s breach-notification page also notes that the Federal Trade Commission enforces similar notification provisions for certain personal-health-record vendors and related entities outside HIPAA. An app that is not a HIPAA-regulated arrangement may still raise other federal or state privacy questions. That possibility is a reason to ask counsel, not a conclusion that the FTC rule applies to every physician-built tool.

Clinical safety is a separate question

A private system can still produce a dangerous answer. Privacy review asks where information travels and who may see it. Clinical-safety review asks what the tool does: whether a summary drops an allergy, whether a draft note invents a finding, whether a triage suggestion could delay urgent care. The clinical-safety guide treats those reviews as separate, and it does not assign them to a PAHL physician panel. This article follows that separation.

Nothing here is a medical-device determination. Tools that begin recommending clinical actions can raise other regulatory questions that belong with specialized counsel.

What “owning the risk” looks like in practice

Before a homegrown tool becomes something staff rely on:

A fractional CTO can help a practice owner see this inventory and decide what to do next. That help is not a certification, not legal advice, and not a guarantee of any enforcement outcome.

The person who vibe-coded the first version may be the most valuable workflow expert in the building. They should not also be, by accident, the practice’s only security official, vendor manager, and software vendor of record.

PAHL’s free 30-minute practice tech call is not a completed security assessment, not a HIPAA certification, and not a finding of compliance. This article is educational discussion, not legal advice and not a determination about any specific practice or app.

Official sources cited

All HHS pages below were opened November 7, 2026, PT:

  1. HHS: Covered Entities and Business Associates
  2. HHS: Guidance on HIPAA & Cloud Computing
  3. HHS: Summary of the HIPAA Security Rule
  4. HHS: Guidance on Risk Analysis
  5. HHS: Business Associates FAQs
  6. HHS: Breach Notification Rule
  7. MGMA Stat, September 23, 2026

Book a free 30-minute practice tech call

A free 30-minute call about your app or your practice's technology. You leave with a recommended next step. It is not an audit, a certification or legal advice.

Book a free 30-minute practice tech call

How the call works · Send a short note