Key takeaway
A HIPAA-compliant web app protects ePHI in the browser session, across the API and in storage, and keeps third-party scripts such as analytics and advertising pixels from receiving PHI. Software supports compliance; it cannot provide it on its own.
Last reviewed November 17, 2026
What HIPAA-compliant web app development includes
A healthcare web app runs in browsers you do not control, on shared workstations at nursing stations, on home computers with extensions installed and in kiosks in waiting rooms. Session handling, script loading and caching behavior decide whether ePHI stays where it belongs.
This service is for teams building authenticated web experiences: clinician and care-coordinator tools, revenue cycle and operations consoles, intake and forms platforms, and the web front end of a healthcare SaaS product. Public marketing sites that never touch PHI are a different risk profile, and we keep them separate on purpose.
Healthcare business challenges for web applications
Tracking pixels on logged-in pages
Analytics and ad tags copied from the marketing site can send URLs, page titles and form events from authenticated pages to vendors that will not sign a BAA.
Shared workstations
Clinical staff walk away from screens. Sessions need inactivity timeouts and fast re-authentication that clinicians will tolerate.
Role complexity
Front desk, nurses, billing staff, physicians and contractors need different views of the same patient, sometimes limited by location or care relationship.
Legacy single sign-on
Hospitals expect SAML or OpenID Connect federation with their identity provider, plus provisioning and deprovisioning that follows HR changes.
Browser caching and downloads
Exported PDFs, cached API responses and autocomplete history can leave ePHI on a shared machine after logout.
Audit questions from buyers
Security reviewers ask who viewed a record and when, and expect the application to answer quickly without database forensics.
Web application development capabilities
Hardened session management
Server-side or BFF-held sessions with HttpOnly, Secure and SameSite cookies, idle and absolute timeouts, and session revocation on password or role change.
Content Security Policy
Strict CSP with nonces or hashes, an allowlist of script origins, and CSP reporting to detect injected or unexpected scripts.
Role- and relationship-based access
Authorization enforced in the API for every request, combining roles, organization, location and care-team membership.
Enterprise SSO
SAML 2.0 and OpenID Connect federation, SCIM provisioning, MFA enforcement and break-glass access that is logged and reviewed.
PHI-aware front-end engineering
No ePHI in URLs, query strings or page titles; cache-control headers on API responses; controlled exports with watermarking where needed.
Accessible clinical UI
WCAG-aligned interfaces with keyboard navigation and clear states, because accessibility issues in clinical tools become safety issues.
Access audit views
Built-in screens that show who accessed a record, what changed and from where, backed by append-only audit storage.
HIPAA-related security considerations for web apps
HHS OCR's guidance on online tracking technologies (December 2022, revised March 2024) warned that tracking on authenticated pages can disclose PHI to vendors. In June 2024 a federal court in AHA v. Becerra vacated the portion of the guidance concerning certain unauthenticated public pages, but tracking on logged-in pages and patient portals remains a significant risk. We treat authenticated areas as pixel-free by default.
HIPAA requirement
What the rules themselves require
- Unique user IDs and person or entity authentication for every user (164.312(a)(2)(i), 164.312(d)).
- Audit controls recording activity in systems containing ePHI (164.312(b)).
- An emergency access procedure for obtaining ePHI during an emergency (164.312(a)(2)(ii)).
- Assessment of automatic logoff, encryption and transmission security as addressable specifications, implemented or documented with an equivalent alternative.
Recommended practice
Widely accepted security practice
- OWASP ASVS Level 2 as the verification baseline for the web app and its API.
- Strict Content Security Policy, Subresource Integrity for any third-party scripts and security headers such as HSTS.
- MFA for all workforce users, aligned with NIST SP 800-63 authenticator guidance.
- No third-party tracking scripts on authenticated pages unless the vendor is under a BAA and the data flow is reviewed.
Architecture decision
Depends on your product and risk analysis
- Server-rendered vs. single-page architecture, chosen for the product and team.
- Step-up authentication for high-risk actions such as bulk export or record amendments.
- Field-level encryption for especially sensitive data such as behavioral health notes.
- IP or device restrictions for administrative consoles.
Your organization's responsibility
Policies and operations software cannot do
- Policies for workstation use and screen locking on shared clinical workstations (164.310(b), (c)).
- Access reviews and termination procedures that remove users promptly.
- Vendor management and BAAs for hosting, email, monitoring and support tools.
- Review of audit logs and reports as part of information system activity review (164.308(a)(1)(ii)(D)).
Web app technical architecture
| Layer | Design choices for ePHI |
|---|---|
| Client | React, Next.js or similar with tokens kept out of browser storage; Cache-Control: no-store on PHI responses; no PHI in URLs, titles or client-side logs. |
| Edge | WAF, TLS termination with HSTS, bot protection on login and rate limiting on authentication and search endpoints. |
| API | Backend-for-frontend holding OAuth tokens server-side; authorization checks in a shared policy layer; input validation against the OWASP API Security Top 10. |
| Data | Encrypted relational store, separate audit store with append-only writes, and object storage for documents with short-lived signed URLs. |
| Infrastructure | BAA-covered cloud account, HIPAA-eligible services only for ePHI, private networking for databases and infrastructure as code. |
| Observability | Structured logs with PHI redaction, CSP violation reports, security alerts for anomalous access and log retention set by policy. |
EHR and API integration options for web apps
Web apps are a natural fit for EHR-embedded experiences. A SMART on FHIR EHR launch lets a clinician open your app inside the EHR with patient context and user identity passed through OAuth 2.0, which reduces duplicate logins and patient lookup errors.
For back-office workflows we connect through FHIR R4 APIs, HL7 v2 feeds through an interface engine, or vendor-specific APIs for Epic, Oracle Health and athenahealth, depending on what your EHR contract and the vendor's developer program allow.
- SMART EHR launch and standalone launch with scoped access.
- FHIR Bulk Data export for population analytics dashboards.
- HL7 v2 ADT feeds for census and admission-driven workflows.
- Identity provider integration for SSO and SCIM provisioning.
Our web development methodology
- 1
Map pages to data
We catalog every route and the ePHI it renders, and mark which routes are authenticated so tracking and caching rules can be enforced.
- 2
Define the access model
We write the role and relationship rules as testable policy before building screens.
- 3
Script and vendor review
Each third-party script is reviewed for data it can read; anything without a BAA is kept off authenticated pages.
- 4
Build with automated checks
Linting for PHI in URLs and logs, dependency scanning, SAST and CSP tests run in CI.
- 5
Verify against ASVS
We test session handling, authorization bypass, injection and header configuration, and support independent penetration testing.
- 6
Operate and review
We monitor CSP reports and access anomalies and keep a change log that supports your audits.
Cost and timeline factors for HIPAA web apps
Number of roles and rules
Each distinct role and relationship rule adds design, test cases and audit requirements.
SSO and provisioning
Supporting several customer identity providers adds integration and testing per IdP.
EHR embedding
SMART EHR launch requires vendor app registration and testing in each customer's environment.
Reporting and exports
Exports and reports need access checks, watermarking and logging, which adds scope beyond the UI.
Rough planning range
As a rough, scope-dependent planning range only, not a quote or based on our project data: a focused web MVP often takes 3 to 6 months, and multi-role enterprise apps take longer.
Frequently Asked Questions
Can we keep Google Analytics on our patient-facing web app?
Not on authenticated pages unless the data flow is reviewed and the vendor will sign a BAA, which mainstream ad and analytics platforms generally do not. We usually keep marketing analytics on public pages only and use self-hosted or BAA-covered analytics inside the app.
What session timeout should a clinical web app use?
HIPAA treats automatic logoff as addressable, so the value comes from your risk analysis. Shared workstations often use shorter idle timeouts than personal devices, and we pair them with fast re-authentication such as SSO or badge tap to keep clinicians productive.
Is a single-page app riskier than server rendering?
Not inherently. The risk comes from where tokens and data live. We keep tokens server-side through a backend-for-frontend, avoid storing ePHI in local storage and set no-store caching headers in either model.
Why does PHI in a URL matter?
URLs end up in browser history, server logs, proxy logs and referrer headers sent to third parties. A path like /patients/123/hiv-results can leak a diagnosis, so we keep identifiers opaque and sensitive context in request bodies.
Do you support break-glass access?
Yes. HIPAA requires an emergency access procedure, and we implement break-glass flows that require a reason, grant time-limited access, alert reviewers and appear clearly in the audit trail.