Skip to content

No. 52Security8 min read2,104 words

HIPAA-compliant app development: what it really requires

HIPAA-compliant app development in plain English: what counts as PHI, the safeguards your software needs, BAAs, and what HIPAA does not actually require.

Written by
Lazy Devs
Published
Updated
Sources
Cited inline

Key takeaways · 05

The short version

  1. 01No app, vendor or development team is "HIPAA certified". HIPAA compliance is an organisational state; software can only support it with the right technical safeguards.
  2. 02HIPAA applies to covered entities (health plans, clearinghouses and most providers) and their business associates. A direct-to-consumer health app outside that chain may instead fall under the FTC Health Breach Notification Rule.
  3. 03The Security Rule's technical safeguards map to five engineering jobs: access control, audit logging, integrity, user authentication and transmission security.
  4. 04Every vendor that creates, receives, stores or transmits PHI for you needs a signed business associate agreement, including your host, email provider, error tracker and analytics.
  5. 05The most valuable design decision is a small, explicit PHI boundary: keep marketing, billing and anything that does not need health data outside it.
On this page · 10

HIPAA-compliant app development means building software with the technical safeguards the HIPAA Security Rule expects (access control, audit logs, integrity checks, strong authentication and encrypted transmission), keeping protected health information inside a small, well-defined boundary, and signing a business associate agreement with every vendor that touches it. No development team can make your company compliant on its own, and no app is "HIPAA certified". What engineering can do is make the technical half solid and provable.

If someone just said "HIPAA" in your planning meeting and the room went quiet, take a breath. The rules are far less mysterious than the panic around them, and most of the engineering they imply is the careful work any serious product needs anyway. The real trap is misunderstanding what they ask, then either over-building or under-building because nobody explained it in plain words.

This is engineering guidance, not legal advice. Confirm your obligations with a healthcare compliance professional.

Does HIPAA apply to your app at all?

Start here, because the answer changes everything downstream. HIPAA does not regulate "health data" in general. It regulates specific organisations and the people who work for them.

You are...Who is regulatedWhat applies
A clinic, hospital, health plan or clearinghouse building your own softwareYou are a covered entityHIPAA Privacy, Security and Breach Notification Rules
A software company handling PHI on behalf of a covered entity (EHR add-on, telehealth platform, billing tool)You are a business associateThe Security Rule directly, plus the terms of your BAA
A direct-to-consumer app people use on their own (symptom tracker, fitness or fertility app) with no covered entity involvedUsually not HIPAAOften the FTC Health Breach Notification Rule, plus state privacy laws
Serving patients in the EU or UKNot a HIPAA questionGDPR treats health data as a special category with stricter conditions

The middle row is where most startups sit. If you sell to clinics or health plans and their patient data flows through your system, you are a business associate, and you will be asked to sign a BAA before any pilot starts. Plan for that from day one.

The third row is the one founders misread most. "We are not covered by HIPAA" is not the same as "we are not regulated". Consumer health apps have their own breach rules, and the reputational cost of leaking someone's health data is the same either way. We build to the same standard regardless.

What actually counts as PHI

Protected health information is health information that can be tied to a specific person, held by a covered entity or business associate. The formal definition lives in 45 CFR 160.103, but the practical test is simple: health-related information plus anything that identifies who it is about.

  • This is PHI: a patient's name next to a diagnosis, an appointment that reveals someone sees an oncologist, a lab result in a record, a message describing symptoms, or an email address, IP address or device ID bundled with any of those.
  • This is usually not PHI: your marketing site, a blog post, a demo request form that collects a name and company, or properly de-identified aggregate statistics.

"Properly de-identified" has a specific meaning. HHS describes two methods for de-identification: the Safe Harbor method, which removes 18 listed identifiers (names, most geographic detail, dates more specific than the year, phone numbers, emails, record numbers and so on), and the Expert Determination method, where a qualified expert certifies that re-identification risk is very small. Stripping the name column and calling it anonymous does not meet either standard.

No one is "HIPAA certified": the honest framing

We say this plainly because too many vendors will not. There is no government certification for HIPAA compliance, for apps, hosts or development teams. Compliance is an organisational state involving your policies, your staff training, your risk analysis, your contracts and your software together, and it is judged over time.

Here is how the work actually splits:

Your organisation ownsEngineering owns
A documented risk analysis and risk management planBuilding the safeguards that the risk analysis calls for
Policies, workforce training and sanctionsAccess rules enforced on the server, not in the UI
Deciding who may see what (the access matrix)Encoding that matrix once and testing it
Signing BAAs with vendorsChoosing a stack where every PHI vendor will sign one
Breach response and notification decisionsLogs and tooling that make an investigation possible

Anyone who promises to make you compliant single-handedly is either confused or selling something. The good news is that the engineering half is concrete and very doable.

The technical safeguards, mapped to the Security Rule

The Security Rule's technical safeguards in 45 CFR 164.312 are short and readable. Here is what each one means when you are writing the software:

StandardWhat it means in your app
Access controlUnique user IDs, role-based permissions enforced server-side, automatic logoff, emergency access procedures
Audit controlsA record of who viewed or changed which record, when and from where, that application code cannot skip
IntegrityProtection against improper changes: database constraints, append-only history for clinical data, checksums on files
Person or entity authenticationStrong login, multi-factor authentication for staff, secure session handling
Transmission securityTLS everywhere, including internal service-to-service traffic and database connections

Data minimisation comes first

The safest PHI is the PHI you never collected. Before you add a field, ask whether a real workflow needs it. Every field you store is something you must protect, log access to, retain correctly and eventually delete. Collecting less is not laziness, it is the cheapest risk reduction there is.

Encryption at rest and in transit

Under the current rule, encryption is an "addressable" specification: you implement it, or you document why an equivalent measure is reasonable. In practice, there is no good reason not to encrypt databases, backups, file storage and every connection. On modern cloud infrastructure it is mostly configuration, but it has to be switched on and verified, not assumed. In January 2025 HHS published a proposed update to the Security Rule that would remove the addressable/required distinction and make encryption and multi-factor authentication mandatory with limited exceptions. Check its current status before you rely on today's wording, and build as if encryption is required either way.

Access control that lives on the server

"Logged in" is not an access rule. A nurse, a billing clerk and a patient should see different slices of the same record, and those rules must be enforced where the user cannot tamper with them. Broken access control, such as changing an ID in a URL and getting someone else's record back, is ranked first in the OWASP Top 10, which is why it leads our web application security checklist.

Audit logging you cannot bypass

The classic mistake is bolting audit logging on at the end. Design it into your data access layer so every read of PHI flows through one function that checks permissions and writes the log entry. A new feature added next year then cannot quietly skip it. We show that pattern in code in building web apps for healthtech.

Keep the audit log append-only, separate from operational data, and free of the PHI itself (log the record ID, not the diagnosis). And keep PHI out of your other logs: request bodies, error reports and URLs are where leaks hide, which is why our observability setup scrubs sensitive fields by default.

Business associate agreements and choosing your vendors

A business associate agreement is a contract that makes a vendor legally responsible for protecting the PHI you send them. HHS publishes sample BAA provisions if you want to see what one covers.

Every system in the PHI path needs one: database host, file storage, email and SMS providers, error tracker, log platform, support desk, and anything else that might see a record. Plenty of popular developer tools will not sign a BAA at all, and you want to find that out in week one, not three weeks before a pilot. This shapes your stack as much as any technical decision, which is why we factor it into API and backend engineering from the first architecture sketch.

Two details catch teams out:

  1. A cloud BAA covers only eligible services. HHS's guidance on cloud computing confirms a cloud provider storing PHI is a business associate even if it cannot see the data. AWS, Google Cloud and Azure all sign BAAs, but only for the services they list. Use an unlisted service for PHI and you are outside the agreement.
  2. Tracking pixels are vendors too. HHS has issued guidance on online tracking technologies warning that analytics and advertising scripts on authenticated pages can disclose PHI. A court vacated part of that guidance in 2024 for public, unauthenticated pages, but trackers inside a patient portal or app remain a clear risk. Keep them out, and read our take on privacy-respecting product analytics.

What HIPAA does not require

Over-building is its own expensive mistake, usually driven by fear.

  • You do not need microservices. A well-structured monolith with a clean PHI boundary is easier to reason about, which makes it safer.
  • You do not need a special "HIPAA server". The major clouds sign BAAs for the same infrastructure everyone else uses.
  • You do not need to build a compliance platform. Buy tooling for policy management and audits if you want it; build your product.
  • HIPAA-eligible hosting is not the finish line. It covers the floor, not your application code. Your app can still leak PHI through an over-broad API response or a logged URL on perfectly compliant infrastructure.

Complexity you do not need is just more surface to secure, more code to test and more places for a leak to hide. Draw the boundary, then keep the inside of it as boring as possible.

Plan for a breach before you have one

The Breach Notification Rule requires covered entities to notify affected individuals without unreasonable delay and no later than 60 days after discovering a breach of unsecured PHI, with additional notice to HHS and, for larger breaches, the media. Business associates must notify the covered entity.

You cannot meet that timeline if you cannot answer basic questions quickly: which records were touched, by whom, over what period. That is exactly what good audit logs and access-scoped systems give you. The word "unsecured" also matters: PHI encrypted to HHS's standards is generally not "unsecured", which is one more practical reason to encrypt everything.

A practical order of work

When we start a HIPAA-conscious build, this is the sequence:

  1. Confirm your regulatory position (covered entity, business associate, or consumer app) with counsel.
  2. Map the PHI flow: every place health data is collected, stored, sent or displayed, including email, support tools and exports.
  3. Draw the boundary and move everything that does not need PHI outside it.
  4. Pick vendors who will sign BAAs for every component inside the boundary, and get the paperwork moving.
  5. Write the access matrix with whoever owns the clinical or business workflow.
  6. Build the data access layer with permission checks and audit logging in one place.
  7. Encrypt, scrub logs, and add MFA for every staff account.
  8. Test the boundary: authorization tests per role, a check that no PHI appears in logs, and a review before each release.

Steps one to five are where a short technical consulting engagement earns its keep. A few days mapping PHI and vendors before committing to an architecture saves you from the most expensive outcome in this space: discovering the boundary was in the wrong place after the system is built.

If you are also designing the patient-facing side, designing patient portals people actually use covers how to keep all this machinery invisible to patients.

Building it with a team that has done it before

HIPAA-conscious software is not a dark art and not a certificate you buy. It is a small boundary around identifiable health data, the five technical safeguards done properly inside it, signed paperwork with every vendor in the path, and an audit trail nothing can route around. We build software that supports your compliance, alongside the people who own the legal and organisational side, and we explain every choice in plain English.

If you are building in health and want a clear-eyed review of your architecture before you lock it in, see how we work with healthtech teams or tell us what you are building.

Many of the same engineering controls also feed a SOC 2 audit; see SOC 2 readiness for SaaS engineering teams.

FAQ · 05 questions

Frequently asked questions

Can an app be HIPAA certified?

No. HHS does not certify software, and there is no official HIPAA certification for apps, vendors or developers. Third-party audits and attestations exist, but compliance is an ongoing state of your whole organisation, including policies, training, contracts and software, not a badge awarded at launch.

Does HIPAA apply to my health app?

HIPAA applies if you are a covered entity (a health plan, a healthcare clearinghouse, or a provider that bills electronically) or a business associate handling PHI on behalf of one. A consumer wellness app that people use on their own, with no covered entity involved, is often outside HIPAA, but it may still be covered by the FTC Health Breach Notification Rule and state privacy laws. Confirm your status with a healthcare lawyer.

Is encryption required by HIPAA?

Under the current Security Rule, encryption at rest and in transit is an addressable implementation specification, which means you must implement it or document why an equivalent alternative is reasonable. In practice, every modern system should encrypt both, and properly encrypted data can also reduce breach notification obligations if a device or database is lost.

Do I need a BAA with AWS, Google Cloud or Azure?

Yes, if PHI will be stored or processed on their infrastructure. All three major clouds offer a BAA, but it only covers the services they list as HIPAA eligible. Using a non-eligible service for PHI puts you outside the agreement, so check the list before you choose a component.

Can I use Google Analytics or a Meta pixel on a healthcare website?

Be very careful. HHS has warned that tracking technologies on pages where people are logged in to a patient portal or app can disclose PHI to vendors who will not sign a BAA. Keep third-party trackers off authenticated and health-specific pages, and use a privacy-focused analytics setup that you control or that will sign a BAA.

Related service

API & Backend Engineering

Secure, well-documented APIs that scale.

Learn more

Next step

Want this built right?

This is the work we do every day. Tell us what you are building and we will show you exactly how we would ship it.

First reply
Within 1 business day
Typical start
1–2 weeks
Pricing
Fixed price per phase
You own
All code and accounts