Thomas Osayi

November 22, 2026 · 8 min read · Thomas Osayi

HIPAA basics for a health app MVP: BAAs, access controls and audit logs

Careful general guidance on HIPAA app development basics: when HIPAA applies, which vendors sign BAAs, access controls, audit logs and the leaks MVPs miss.

Health founders often treat HIPAA as a badge to add at the end. It works the other way around. The rules shape which vendors you can use, how sign-in and roles work, what gets logged and what your analytics are allowed to see, so the decisions belong at the start of the MVP, before the first table is created.

This is careful general information from a developer's point of view, not legal advice. I am not a lawyer, and whether HIPAA applies to your product, and what it requires of you, is a question for a healthcare attorney or compliance professional. What I can do is explain the technical basics I plan around and the places MVPs usually go wrong.

Does my health app need to follow HIPAA?

HIPAA applies to covered entities (health plans, healthcare clearinghouses and most healthcare providers) and to business associates that handle protected health information on their behalf.

In practice, that splits health apps into two broad groups:

  • Apps built for or used by a practice, clinic or health plan, such as a patient portal, a therapy practice platform or an intake tool. These usually handle protected health information on behalf of a covered entity, so HIPAA is likely to apply.
  • Consumer apps where a person tracks their own data and no provider or plan is involved, such as many fitness or mood trackers. These are often outside HIPAA, though other privacy laws and app store rules may still apply.

The same app can move from the second group to the first the day it starts sharing data with a provider. That is why the question belongs to the business model, not just the code, and why I ask founders to get a legal opinion before we design the data model.

What counts as protected health information in an app?

Protected health information is health information that can be tied to an individual, and in an app that usually means far more than diagnosis fields.

A name next to an appointment type, an email address on an intake form, a note from a session, an insurance member ID, or even the fact that someone booked with a particular kind of specialist can all count when they relate to a person's health or care. In an MVP, it is safest to assume that anything a patient or client enters, and anything linking them to care, is protected.

That assumption has a useful side effect: it pushes you to collect less. The safest data is data you never collect, and a smaller data model is also faster to build.

What is a BAA and which vendors sign one?

A business associate agreement is a contract in which a vendor agrees to protect health information as HIPAA requires, and you need one with every vendor that creates, receives, stores or transmits it for you.

HHS guidance on cloud computing is clear that a cloud provider storing electronic protected health information is a business associate even if it cannot view the data, for example because it does not hold the encryption key. Encryption does not remove the need for a BAA.

Several major vendors do offer BAAs. At the time of writing:

  • Google Cloud enters into BAAs covering a published list of services. That list includes Firestore, Cloud Storage, Cloud Run, Cloud SQL and Cloud Logging, and Identity Platform with restrictions: store only the minimum needed for sign-in, keep PHI out of custom attributes, do not use anonymous accounts for PHI and do not use its client SDKs when handling PHI. The list has no Firebase-branded products, so a typical Firebase app needs an architecture review before PHI goes in.
  • Vercel made BAAs available to Pro teams as a paid self-serve add-on in September 2025, for organizations that are covered entities or business associates.
  • Supabase requires a signed BAA and its HIPAA add-on, after which a project can be set to high compliance with point in time recovery, SSL enforcement, network restrictions and connection logging.

A BAA covers specific products and configurations, not everything the vendor sells. Read the covered services list, follow its restrictions, and keep a simple table of every vendor, whether it touches PHI and whether a BAA is signed.

What does HIPAA require inside the app itself?

The Security Rule's technical safeguards cover access control, audit controls, integrity, person or entity authentication and transmission security, all guided by a documented risk analysis.

Translated into app features, that usually means:

  • Access control: each person sees only the records their role allows, enforced on the server or in database rules.
  • Audit controls: a record of who viewed or changed health data, and when.
  • Integrity: protection against records being altered or deleted improperly, plus backups you can restore.
  • Authentication: verifying each user is who they claim to be, with unique accounts and strong sign-in such as multi-factor authentication for staff.
  • Transmission security: HTTPS everywhere and encrypted connections to the database.

Integrity is the safeguard MVPs most often skip. In practice it means backups that run automatically and a restore you have actually tested, soft deletes for clinical records so a mistaken click can be undone, and database rules that stop a user from editing records they only need to read. It also means deciding how long records are kept and who can delete them, because retention rules for health records usually come from state law and professional requirements, not from the app. "How to back up your Supabase or Firebase database (and test the restore)" walks through the backup half of this.

HHS also lists administrative safeguards, including a security management process built on a thorough risk analysis, and limiting access to the minimum necessary. Those are documents and processes your organization owns, not code, but the app should make them possible.

How should access controls work in a health app?

Start from a written table of roles and records, then enforce it on the server or in database rules, never only by hiding buttons in the interface.

Guardian MindCare, the therapy practice platform I built, has five roles: therapists, supervisors, trainees, clients and admins. Each has its own portal, and each sees only what it should. A trainee working under supervision should not see what a supervisor or admin sees, and a client should only ever see their own information.

Guardian MindCare homepage: Real therapy, in network with your plan, with a provider search by therapy type, insurance and session format.
Guardian MindCare homepage: Real therapy, in network with your plan, with a provider search by therapy type, insurance and session format.

The approach I used there applies to any health app. List every role down one side and every kind of record across the top, mark read, write or nothing in each cell, and only then design screens. Then test as every role, trying to open other roles' pages and records directly. "Roles and permissions in a SaaS app: a practical guide for founders" goes deeper on this step.

On the public side, Guardian MindCare's site asks only for what is needed to get someone matched and scheduled. Clinical detail belongs in the practice's clinical records system, not in a website form. That is a privacy decision, not a compliance certification, and I would not describe the platform as anything more than that.

What should audit logs record?

An audit log should record who did what to which record and when, in a place ordinary users cannot edit or delete.

A useful log entry for a health app includes:

  • The user ID and role.
  • The action: viewed, created, updated, deleted, exported.
  • The record type and record ID, not the health data itself.
  • A timestamp and the source, such as the web app or an admin tool.

Keep PHI out of the log message. "User 42 viewed session note 1187" is an audit record. "User 42 viewed a note about anxiety" is a second copy of protected data in a system that may not be covered. Google Cloud's guidance for Cloud Logging, for example, includes configuring audit log export destinations, restricting log access and reviewing logs regularly. Reviewing matters as much as recording: a log nobody reads protects nobody.

Where do health app MVPs usually leak data?

Most accidental leaks in health MVPs happen through the tools around the app, not the database.

  • Analytics and ad pixels on pages that reveal a condition or appointment type, sending page URLs and identifiers to companies with no BAA.
  • Error tracking that captures request bodies or form fields when something fails.
  • Transactional emails and texts that put appointment details or diagnoses in the message.
  • AI APIs used to summarize notes without a BAA from the model provider.
  • Server logs that print whole request objects.
  • Contact forms that ask for symptoms. "Are website contact forms HIPAA compliant? What health practices need to know" covers that one in detail.

The fix is usually the same: keep PHI out of the tool, or use a vendor that signs a BAA for that product.

A worked example: a group practice intake app

Here is an illustration with a made-up practice, to show how these decisions fit together.

A small group practice wants an app where new clients complete intake, choose a clinician and book a first session, and clinicians see their upcoming clients.

The plan: hosting and database only on services covered by signed BAAs, configured as their documentation requires. Three roles at first (client, clinician, admin), with database rules enforcing that clients see only their own records. A server-written audit log for every view and change of intake data. Reminder emails that say only that an appointment exists, with details behind sign-in. No ad pixels in the signed-in app, and analytics limited to pages without health information. Multi-factor sign-in for staff.

A build of that shape, with several roles, admin tools and integrations, fits my Full SaaS Platform package, from $3,000 over about 45 days. The practice's own risk analysis, policies, staff training and legal review sit alongside it and are not something a developer can supply.

Before you design the data model, and again before launch.

The first conversation decides whether HIPAA applies and which data counts as protected. The second checks the vendor list, the BAAs and the documented risk analysis. A developer can build the technical safeguards well, but cannot tell you whether your organization is compliant.

The bottom line

HIPAA app development starts with knowing whether you are a covered entity or business associate, then signing a BAA with every vendor that touches protected health information and using only their covered products. Build role-based access enforced on the server, server-written audit logs without PHI in them, strong sign-in and encrypted connections, and keep health data out of analytics, error tracking, emails and AI tools. None of this is legal advice, so pair the build with a healthcare attorney or compliance professional.

Questions, answered in one line

Is there such a thing as HIPAA certification?

No; HHS does not offer a HIPAA compliance certification, so any vendor or developer claiming to be certified is describing their own assessment, not a government credential.

Does a cloud provider need a BAA if the data is encrypted?

Yes; HHS guidance says a cloud provider that stores electronic protected health information is a business associate even if it cannot view the data because it lacks the encryption key.

Can I build a health app on Firebase?

At the time of writing Google Cloud's HIPAA covered products list includes Firestore, Cloud Storage and Identity Platform (with restrictions) but no Firebase-branded products, so check the current list and your architecture before storing PHI.

Does a wellness app need to follow HIPAA?

Often not, if it collects data directly from consumers and does not work on behalf of a health plan, provider or clearinghouse, but other privacy laws may still apply, so get legal advice for your specific case.

Can Thomas Osayi build a health app MVP?

Thomas Osayi built Guardian MindCare, a therapy practice platform with five roles, and builds multi-role platforms under the Full SaaS Platform package from $3,000 over about 45 days, alongside your own legal and compliance review.

Sources

About the author

Thomas Osayi is a full-stack developer in Los Angeles studying computer science at Loyola Marymount University. He founded and built SQWAD, a SaaS platform Shopify brands use to run creator programs, and builds custom Next.js websites, SaaS MVPs and fixes for AI-built apps for businesses and founders.

See his work · Services and prices

Related articles

SaaS MVP and full-stack web app development

I build SaaS MVPs and full-stack web apps in Next.js, TypeScript and Firebase or Postgres: auth, dashboards, payments, roles and admin tools. Founder of SQWAD.

See the service