Vibe-coded vs. HIPAA-ready: what changes

Last reviewed:

Official sources checked November 7, 2026 (PT). Public documentation is not confirmation of your organization's contracts or settings. Educational material, not legal advice.

The difference is evidence, not how you wrote the code

You built a useful intake flow, a referral dashboard or a calculator your colleagues understand. Using an AI builder does not make that work disposable. Nor does writing every line yourself establish that the application is ready for patient-data deployment.

A prototype asks, “Does this workflow help?” A production decision adds, “Can we explain, control, recover and maintain it in its intended setting?” A well-built prototype may already answer some of those questions. A long-running application may still leave important ones unresolved.

Here, “HIPAA-ready” is our shorthand, not a certification or a legal conclusion. HHS says OCR does not endorse, certify or recommend particular technologies or products. HHS cloud guidance, Q4

Palo Alto Health Labs recommends a component-level review: preserve what works, identify evidence gaps and separate privacy/security decisions from clinical safety decisions. Start with the app you actually have—not a presumption that everything needs replacing.

First decide what relationship and data you are building for

HIPAA applies to covered entities and business associates, not automatically to every app about health. A provider's covered-entity status includes specified electronic transactions; an entity outside both definitions does not have to comply with the HIPAA Rules. HHS covered entities

Write down who operates the tool, whom it serves, what information it handles and whether it performs a function for a regulated organization. Take that description to your legal or compliance advisor. Do not infer a legal answer merely from “a doctor built it” or “it is outside the EHR.” HHS identifies business-associate status by the functions and services performed and handling of PHI on another entity's behalf. HHS cloud guidance

This guide uses an invented referral tracker as its example. It assumes a future deployment that needs regulated patient-data assessment, not that every reader's app has the same obligations. The engineering practices below are recommendations for review; they are not a complete legal checklist.

A practical comparison

The middle column describes a common demonstration boundary, not an accusation that prototypes lack controls. The final column suggests evidence for an intended patient-data deployment.

Area A bounded synthetic-data prototype may use Evidence to seek before the intended rollout
Architecture One project and a simple request path Current development/runtime diagrams, endpoint inventory and observed requests matching the diagrams
Access control Invented users and a narrow demo role Patient/practice isolation tests at API and data layers; revocation and export tests
Logging Verbose debugging of fabricated cases Redaction tests, useful access events, restricted log readers and a named review owner
Hosting A preview suitable for demonstrations Restricted previews, separated environments, owned service accounts and reproducible deployment settings
Agreements No real records introduced while scope is unresolved Actual applicable BAA, covered-service scope, effective acceptance and required configuration for each cloud business associate—not a logo. HHS
Recovery Disposable invented records A successful restore into an isolated environment, reconciled counts and tested access permissions
Clinical behavior A few illustrative examples Intended-use specification, severity-ranked cases, reference answers and escalation/stop criteria
Ownership The creator handles everything Named maintenance, access, incident and clinical decision owners; usable runbooks

Keep the evidence beside the decision it supports. A screenshot of a settings toggle is weaker than a repeatable test showing that the control works.

Architecture: draw development and runtime separately

For development, list the coding assistant, repository, attachments, local tools, previews and build logs. For runtime, list the browser, application server, identity service, database, storage, model calls, messages, telemetry and backups. Include support and export paths.

Walk an invented referral through both diagrams. A production database connector can turn a coding session into a live-data recipient; a frontend error can copy a request body into observability. Verify the path using network inspection and fabricated failures, rather than trusting the architecture the builder describes.

For regulated cloud processing, HHS says a cloud provider handling ePHI on a covered entity's or business associate's behalf can itself be a business associate, including encrypted storage without the decryption key. Encryption does not remove the agreement and safeguard questions. HHS cloud guidance, Q1–2

Evidence: recipient inventory, approved data fields, service/account identifiers, observed requests and an owner for every external connection. Retest when adding a model fallback or integration.

Access control: test the denial, not just the login

Signing in proves less than you may think. Create two fictional patients in two fictional practices. Attempt to retrieve the other patient's record by changing an identifier, calling the API directly, requesting an export and following a file link. Test staff, support and administrator roles separately.

Keep privileged keys server-side. Check whether background jobs and service accounts bypass rules that protect ordinary users. Revoke a staff account and repeat the tests with existing sessions. A hidden button is not a substitute for server-side permission enforcement.

Evidence: a role/action matrix, automated negative tests, storage-policy tests and records of session revocation. These are recommended implementation tests, not a claim that one particular framework is statutorily required.

Logging: useful events without copying the chart

Decide which questions the event stream must answer: who accessed a record, exported a file or changed a permission? Record the actor, action, resource reference, outcome and time without reflexively copying the clinical narrative into each event.

Force errors with invented records. Examine application logs, model traces, email alerts, session replay and support attachments. Test redaction on nested objects and exception paths, not only successful requests. Restrict who can read logs and assign someone to review meaningful events.

Evidence: example access events, tests showing sensitive fields stay out of debugging output, log-reader permissions and a documented retention decision. Logging recommendations here do not prescribe one universal legal retention period.

Hosting and recovery: prove you can operate the app

Separate development, staging and production accounts or projects as appropriate to the design. Restrict previews and deployment permissions. Make a clean build from documented source; verify that secrets do not appear in browser bundles, repository history or build output.

Restore invented referrals into an isolated environment. Check records, attachments, permissions and the application behavior together. A backup status indicator does not demonstrate that someone can recover a working service. Document the measured result and have the practice decide what interruption it can tolerate; do not invent a universal recovery promise.

Evidence: environment inventory, reproducible build, access review, restore report and a downtime workflow clinicians can actually follow.

BAAs: review the actual agreement and its boundary

When a cloud provider acts as a business associate for regulated ePHI processing, HHS describes an appropriate BAA plus compliance with the Rules, including risk analysis and safeguards. Vendor willingness, a SOC report or an agreement alone does not establish application compliance. HHS cloud guidance, Q1–2

Record the contracting entity, covered services, acceptance/effective date, exclusions, required settings and termination consequences. Separate the builder from hosting, the model API from consumer chat and the covered service from optional integrations. Unknown scope remains unresolved—not approval to send PHI. HHS cloud guidance

Supabase illustrates why exact wording matters. Its October 23, 2026 legal BAA (Version 1) says no signature is required: acceptance of the Agreement plus HIPAA Add-On subscription constitutes acceptance. It takes effect on first subscription and is binding only with the add-on unless otherwise agreed in writing. Customer configuration remains a separate responsibility. Supabase BAA, opening terms and §§3, 14

Evidence: retained applicable terms and acceptance record, covered-service inventory, configuration baseline and decisions on gaps—not a generic “secure vendor” checkbox.

Keep, refactor or rebuild in phases

Phase 1 — Preserve and bound. Save a reproducible synthetic-data demonstration. Write the clinical workflow and excluded uses independently of the code. Use wholly invented cases, not renamed real charts. Keep unresolved patient-data connections disabled.

Phase 2 — Keep what has evidence. Retain understandable screens, validated calculations and components with tests. Capture working behavior before changing dependencies. “AI-generated” is not a reason to delete a useful interface.

Phase 3 — Refactor specific boundaries. Move privileged calls server-side, repair tenant rules, remove unnecessary telemetry or replace a service. Add tests around the intended behavior first. Record which risk each change addresses and what remains unknown.

Phase 4 — Rebuild only where foundations demand it. A data model without reliable practice separation or an irreproducible backend may justify replacing a subsystem. Preserve workflow specifications and reference cases. Compare options at component level rather than promising that a new builder fixes everything.

Phase 5 — Release narrowly or pause. Require named decision owners, tested recovery and an escalation path. Pause if contractual scope, ownership or a high-severity clinical failure remains unresolved. Keep a change log and repeat relevant tests after model, prompt or code changes.

Clinical safety and current legal requirements are separate reviews

A private referral tracker can still route a patient incorrectly. Test missed urgency, contradictory inputs, unsupported summaries and silent failures. Define who reviews an output before action, with what source information, and what happens when the tool cannot answer. Privacy review is not proof of clinical correctness or a medical-device determination.

The current Security Rule requires appropriate administrative, physical and technical safeguards; HHS also describes risk analysis across regulated entities' ePHI. HHS Security Rule HHS cloud guidance

MFA, least privilege, encryption, restore exercises and dependency review are recommended engineering practices here. Have your advisor map applicable obligations to the actual deployment; this comparison is not a legal determination.

Review your next step with PAHL

See Fabrica and book a 30-minute call

Palo Alto Health Labs offers a free 30-minute call to review your app or your practice's tech. Bring an invented-case demonstration and an architecture sketch—not patient records, real-chart screenshots or credentials. This is a conversation, not a completed security or compliance audit, certification or guarantee.