· 13 min read

How to Build a HIPAA Compliant App in 2026: An Engineering Guide

HIPAA doesn't tell you which database to use or how to write a login screen. It tells you what has to be true: only the right people see health data, every access leaves a trace, and a lost phone or a leaked log doesn't become a breach. Turning that into code is an engineering job, and most of it is cheap if you plan it from the first sprint. Here is what HIPAA means for an app team, where PHI usually leaks, and the order to build it in.
A phone with a padlock, a document with a signature and a server with a shield, illustrating how to build a HIPAA compliant app
Making your app HIPAA ready?Send us your data flow and vendor list. We’ll show where PHI goes, which agreements you need and which safeguards belong in the first sprints.
Map my PHI flow

First: does HIPAA apply to your app?

Health data alone doesn't trigger HIPAA. Who you are and who you work for does. Three questions decide it:

  1. Are you a covered entity? Healthcare providers that bill electronically, health plans and clearinghouses are.
  2. Do you handle PHI on behalf of one? Then you are a business associate, with direct obligations under HIPAA.
  3. Is the data identifiable? Properly de-identified data is not PHI.

The answers put you in one of four positions:

  • Examples: a clinic's own patient app, a virtual care practice, a health plan member app.
  • What applies: the Privacy, Security and Breach Notification Rules, in full.
  • You need: BAAs with your development vendor if it can access PHI, and with every service provider.
  • Watch out: patients have a right to access their records. Your app may be part of how you meet it.
General information, not legal advice

Whether HIPAA, the FTC rule or a state law applies depends on your business relationships and data flows. Confirm your position with healthcare privacy counsel before launch, and again when you add a new customer type.

One more thing to clear up early: there is no HIPAA certification. HHS doesn't certify apps or vendors. Compliance is a set of safeguards, documents and agreements you keep up over time, and anyone selling a "HIPAA certified" badge is selling a third-party opinion.

How to build a HIPAA compliant app, step by step

Nine steps. The first three are paperwork that shapes the code, so they start in week one.

  1. Map every PHI flowDraw where health data enters, where it is stored, who sees it and where it leaves: the EHR, a lab, a pharmacy, an email. Mark every vendor on the diagram. This map is the input for everything else.
  2. Run a security risk analysisThe Security Rule requires one. List the threats to each flow, how likely they are and how bad they would be, and decide how you'll reduce each risk. Repeat it when the system changes, and at least once a year.
  3. Sign BAAs before any PHI movesCloud, database, email, SMS, video, support desk, error tracking, AI APIs. If a vendor won't sign, it doesn't get PHI. Plan for higher plan tiers: many vendors only sign on business or enterprise plans.
  4. Design access controlUnique accounts for every person, MFA for staff, roles with the minimum access each job needs, an emergency access procedure, and automatic logoff after inactivity.
  5. Build audit logging into the first featureEvery read, create, update and delete of PHI records who, what, when and from where. Write logs to an append-only store that app admins can't edit.
  6. Encrypt and back upTLS for every connection, encryption at rest for databases, files and backups, keys in a managed key service. Restore a backup to a clean environment before launch and write down how long it took.
  7. Seal the leaksCheck push notifications, logs, analytics events, crash reports, emails and support tickets for PHI. This is where most real-world exposures happen. More below.
  8. Write the policies and train the teamAccess reviews, incident response, device rules, workforce training and sanctions. Keep them short enough that people read them, and keep the records for six years, as HIPAA's documentation rule requires.
  9. Test, then prove itRun a penetration test on the apps and the API, fix the findings, and keep the report. Hospital customers will ask for it, along with your risk analysis summary.

The Security Rule, translated into engineering

The Security Rule groups its safeguards into administrative, physical and technical. Some are "required" and some "addressable", which means you implement them or document why an equivalent measure is reasonable. In practice, teams building new apps implement nearly all of them.

HHS proposed an update to the Security Rule in January 2025 that would make most safeguards mandatory, including encryption and MFA. Whatever its final form, a new app should be built as if it applies.

SafeguardWhat it means in the code and the cloud
Unique user identificationNo shared logins anywhere: app, admin console, database, cloud console
Access controlRole-based permissions checked on the server for every request, scoped per organization
Person authenticationMFA for staff and admins; strong session handling and biometric re-entry for patients
Automatic logoffSession timeouts on web and mobile, shorter for shared clinical devices
Audit controlsAppend-only access logs for PHI, reviewed regularly, with alerts on unusual access
IntegrityDatabase constraints, checksums on files, no direct production edits without a trail
Transmission securityTLS 1.2 or newer everywhere, including internal service calls and webhooks
Encryption at restEncrypted databases, file storage, backups and device caches, with managed keys
Contingency planAutomated backups, a tested restore, and a written plan for running during an outage

What you rent under a BAA and what you build

You can rent most of the infrastructure from vendors that sign BAAs. Signing the BAA doesn't make you compliant: you still configure and use the service correctly.

LayerRent, with a BAAYou still build or configure
CloudHIPAA-eligible services from a major cloud providerUse only the services listed in the BAA; network rules, encryption, logging settings
CommunicationEmail, SMS, chat and video providers on BAA plansMessage templates with no PHI, consent records, opt-outs
IdentityAn auth provider that signs a BAARoles, organization scoping, session rules, emergency access
SupportA help desk on a BAA planRules for what agents may ask for and paste into tickets
MonitoringError tracking and logging services that sign BAAsScrubbing PHI from events before they leave your servers
AIAI APIs under a BAA, with the covered configurationPrompt logging, access control on outputs, human review of clinical content
Keep PHI inside one boundary, send only IDs outside it Mobile app encrypted storage Your API auth, access checks Video, AI, email signed BAAs Database encrypted at rest Audit log append-only PHI boundary: every service inside is covered by a BAA Push service generic text only Analytics, crash reports IDs only IDs and event names only, never health details Orange dashed lines leave the boundary. Simplified: backups and hosting sit inside it too.
The push service and most analytics SDKs are outside your BAAs. Whatever crosses the dashed line must be useless to anyone reading it: an ID, a generic message, an event name.

Where PHI leaks in real apps

Breaches in health apps rarely start with a hacker breaking encryption. They start with data going somewhere nobody thought about. Check each of these:

  • Push notifications. Apple's and Google's push services aren't covered by your BAAs, and the text shows on locked screens. Send "You have a new message", never a diagnosis, drug or test name.
  • Application logs. A debug line that prints a request body puts PHI into your logging service. Log IDs, scrub payloads, and make sure the logging vendor signs a BAA anyway.
  • Analytics and ad SDKs. HHS guidance on tracking technologies and FTC enforcement against health apps both point the same way: pixels and SDKs that send health details or screen names to third parties are a disclosure. Event names like "viewed_hiv_results" count.
  • Crash reports. They capture screen state and sometimes memory. Configure scrubbing, or use a reporting service under a BAA.
  • Email and SMS. Links to the app are fine; results in the body are not, unless the patient asked for it and you documented the request.
  • The device itself. PHI cached unencrypted, sensitive screens visible in the app switcher, tokens in plain preferences. Use the Keychain or Keystore and blur sensitive screens.
  • Developer and test environments. Copies of production data on laptops or in staging. Use synthetic data outside production.

Building a HIPAA-compliant AI healthcare app

AI features add new places for PHI to land: prompts, outputs, embeddings, fine-tuning sets and evaluation logs. The rules don't change, the surface does.

  • BAA for the exact service. Several major AI and cloud providers sign BAAs for selected API products and configurations, often with zero data retention. Consumer chat apps are not covered.
  • Treat AI data as PHI. Vector databases, prompt logs and model outputs get the same access control, encryption and audit logging as your main database.
  • Minimum necessary. Send the model only the fields the task needs. A summary of today's visit doesn't need the patient's address.
  • Human review for clinical content. Generated notes, letters or triage suggestions need a clinician's sign-off. If the AI diagnoses or recommends treatment, FDA device rules may apply. Our guide on how to build a medical app covers that question.

Breach notification: plan it before you need it

If unsecured PHI is exposed, the HIPAA Breach Notification Rule sets the clock. Covered entities notify affected individuals without unreasonable delay and no later than 60 days after discovery. Breaches affecting 500 or more people also go to HHS and, when 500 or more residents of a state are affected, to the media. Smaller breaches are reported to HHS yearly. Business associates notify the covered entity.

Encryption that meets HHS guidance is your best protection here: data rendered unreadable to unauthorized people is generally not "unsecured", so a lost encrypted laptop is usually not a reportable breach. Consumer apps under the FTC rule have their own notification duties to users, the FTC and, for larger breaches, the media.

For the app team, that means an incident runbook, logs good enough to tell who was affected, and a named person who decides.

What goes into the first version

A compliant MVP doesn't need every enterprise control. It needs the ones that are hard to add later.

At launchCan wait
Risk analysis, PHI flow map, signed BAAsA third-party assessment or SOC 2 report, until buyers ask
Unique accounts, MFA for staff, role-based accessSSO with each hospital's identity provider
Audit logs for every PHI accessAutomated anomaly detection on access patterns
Encryption in transit and at rest, a tested restoreMulti-region failover
PHI-free notifications, logs and analyticsYour own self-hosted analytics stack
Policies, training records, an incident runbookA full compliance management platform
Penetration test with findings fixedA bug bounty program

Built by Gilzor

Results we’ve shipped

70+products launched
98%delivered on time
85%clients come back
Art Scherbakov, Co-FounderAndrew Laminsky, CTOYuri Rudenya, Head of Mobile Development at GilzorAlena Timofeeva, Product Marketing Lead

Talk to the people who build it. Tell us about your project and get a free estimate of scope, timeline and cost.

See how we’d approach yours

Timeline and budget at a glance

15–30%What HIPAA adds to engineering for the same features, in our estimates
4–7 moHIPAA-compliant patient app MVP, discovery to launch
$100–250kHIPAA patient app with a Central European or Latin American team
$30–80kPer year in compliance upkeep for a startup selling to providers

The yearly figure covers BAA-tier hosting and vendors, an annual risk assessment and a penetration test, on top of the usual 15–20% of the build for maintenance. See the healthcare app development cost guide for the full breakdown, and the telemedicine app development cost guide if your product includes virtual visits.

Mistakes that cost the most later

  • Picking vendors before checking BAAs. Replacing an analytics, email or auth provider after launch means a migration. Ask about the BAA in the first sales call.
  • Using services the BAA doesn't list. Cloud BAAs cover specific services. A new managed service turned on by a developer may not be one of them.
  • Audit logs left for the week before the first hospital deal. Retrofitting logging touches every endpoint, and you can't reconstruct who saw what last year.
  • Health details in analytics events. Screen names and event names are data too. Rename them before they leave the app.
  • Backups never restored. A backup you haven't restored is a guess. Test it, time it, write it down.
  • "HIPAA certified" on the website. There is no such certification, and hospital security teams know it. Describe your safeguards instead.

HIPAA readiness checklist

Tick what is already true for your app. It shows how far you are from handling real patient data.

HIPAA readiness

FAQ

How do I build a HIPAA compliant app?
First confirm that HIPAA applies: you are a covered entity, or a business associate handling protected health information for one. Then run a security risk analysis, map every place PHI will flow, and sign business associate agreements with every vendor that touches it. Build the Security Rule safeguards into the code from the first sprint: unique user accounts with MFA, role-based access, audit logs, encryption in transit and at rest, automatic logoff, and tested backups. Keep PHI out of push notifications, logs, analytics and crash reports. Write the policies, train the team, test with a penetration test, and set up a breach response plan before launch.
How long does it take to build a HIPAA-compliant app?
A focused HIPAA-compliant patient app MVP usually takes 4–7 months from discovery to launch. The compliance work itself (risk analysis, vendor BAAs, policies, penetration test) runs in parallel with engineering, but it has to start in the first weeks. Each EHR integration that goes through a health system approval can add 2–4 months.
How much does it cost to make an app HIPAA compliant?
In the estimates we prepare, HIPAA adds about 15–30% to the engineering budget for the same feature set. A HIPAA patient app built with a Central European or Latin American team typically costs $100k–250k in total. Recurring compliance costs (BAA-tier hosting and vendors, annual risk assessment, penetration test) usually run $30k–80k a year for a startup selling to providers. Our healthcare app development cost guide has the full breakdown.
Is there a HIPAA certification for apps or developers?
No. HHS does not certify apps, vendors or developers as HIPAA compliant, and there is no official HIPAA certification. Some companies buy third-party assessments or attestations, which can help in sales, but compliance is an ongoing set of safeguards, policies and agreements that the covered entity and its business associates are each responsible for. Be cautious of any vendor that calls itself HIPAA certified.
How do I build a HIPAA compliant mobile app?
Everything that applies to the backend applies, plus mobile specifics: store tokens in the iOS Keychain or Android Keystore, encrypt any PHI cached on the device, hide sensitive screens in the app switcher, re-authenticate with biometrics after a timeout, and let users and admins revoke sessions remotely. Push notifications should carry only generic text, because the push services run by Apple and Google are not covered by your BAAs. Check every SDK in the app for data it sends to third parties.
Can I use AI APIs in a HIPAA-compliant healthcare app?
Yes, if the AI provider signs a business associate agreement that covers the specific service and configuration you use. Several major AI and cloud providers offer BAAs for selected API products, often with zero data retention settings; consumer chat apps are not covered. Treat prompts, outputs, embeddings and evaluation datasets as PHI, log them under the same controls, and keep a human in the loop for clinical content. If the AI diagnoses or recommends treatment, check whether FDA device rules apply as well.

Where Gilzor fits

We build healthcare web and mobile apps, backends and integrations, and run QA and app audits. For a US blood testing laboratory, our team built native apps for patients, doctors and phlebotomists and worked with US attorneys on HIPAA authorization and the EULA. We don't claim a HIPAA certification, because none exists; we design the safeguards in from the first sprint. We work from Poland and Cyprus, with a few shared hours a day with the US East Coast.

Send us your PHI flow, even a rough sketch, and your current vendor list. We'll mark where the data goes, which agreements are missing and which safeguards belong in the first version.

No sales pitch

Get a straight answer for your project

Tell us what you’re building. We’ll reply with options, a rough cost and timeline. If we’re not the right fit, we’ll say so.

Next, a few optional questions so the first call is useful. We use your details only to reply to your request. Privacy Policy

Andrew Laminsky
Written byAndrew Laminsky

CTO of Gilzor. Responsible for architecture and the engineering standards our teams work by.

LinkedIn →

Gilzor · Mobile Development partner

Need a team for your mobile app?

95%referred by business partners
70+successful launches
85%repeat business
98%delivered on time

The team behind them

Art Scherbakov
Art ScherbakovCo-Founder
Andrew Laminsky
Andrew LaminskyCTOLinkedIn
Yuri Rudenya
Yuri RudenyaHead of Mobile Development at GilzorLinkedIn
Alena Timofeeva
Alena TimofeevaProduct Marketing LeadLinkedIn
Tell us what you’re buildingOptions, a rough cost and timeline for your project. No commitment.

More insights