Back to insights
Healthcare Software·Article

How to Make a Patient Portal HIPAA Compliant: A Developer's Checklist

A developer-focused checklist for building a HIPAA compliant patient portal, covering identity, MFA, authorization, sessions, audit logs, files, vendors, BAAs, backups, incident response, testing, and patient access.

KS
Kamil Shah
Researcher | Writer at Trilops AI
19 min read
HIPAA patient portal architecture showing patient identity, access control, secure sessions, audit logging, business associates, backups, and incident response
Healthcare Software + HIPAA Engineering 16 minute read

How to Make a Patient Portal HIPAA Compliant: A Developer's Checklist

A HIPAA compliant patient portal is not created by adding encryption and a login screen. The application must be designed around the actual ePHI data flow, patient identity, access control, auditability, secure transmission and storage, vendor relationships, recovery, incident response, and the policies of the covered entity or business associate operating it. The checklist below turns those obligations into concrete engineering decisions.

Identityknow who is accessing the record
Authorizationlimit what each user and service can do
Auditabilityrecord meaningful access and changes
Resiliencerecover safely from failure and incidents
PHI
Patient portal security control planeidentity · session · authorization · audit · vendors · recovery
Risk based
Portal outcomeAuthorized patient access without uncontrolled PHI exposureconfidentiality, integrity, availability
01Identity
02Access
03Session
04Audit
05Vendors
06Recovery
Developer ruledocument the data flowleast privilegeexplicit trust boundariestest failure pathskeep evidence

The direct answer

A patient portal is HIPAA compliant only when the regulated organization can show that the full system and operating process protect ePHI with reasonable and appropriate administrative, physical, and technical safeguards. The current HIPAA Security Rule requires risk analysis, risk management, access control, audit controls, integrity protections, authentication, transmission security, policies, documentation, and business associate arrangements where applicable.

For developers, that means HIPAA is not a framework you install. It becomes architecture: identity proofing, unique accounts, role and record permissions, secure sessions, encrypted transport, safe storage, audit events, vendor review, backups, incident handling, and a tested process for correcting access when users, devices, roles, or systems change.

01

Build against the rule in force, track the proposal separately

What does the HIPAA Security Rule require today?

HHS updated its Security Rule summary in August 2026 and states explicitly that the summary reflects the Security Rule currently in effect. The December 2024 cybersecurity modifications remain a Notice of Proposed Rulemaking, not the current rule.

Current Security Rule areaDeveloper implication for a patient portal
Risk analysis and managementMap ePHI, threats, vulnerabilities, vendors, devices, access paths, backups, and failure modes before selecting controls.
Access controlAllow only authorized persons and services to reach ePHI using application and infrastructure controls.
Audit controlsRecord and examine meaningful activity in systems that contain or use ePHI.
IntegrityProtect ePHI from improper alteration or destruction and detect unauthorized changes.
AuthenticationVerify that a person seeking access to ePHI is who they claim to be.
Transmission securityProtect ePHI against unauthorized access while it moves across electronic networks.
Business associate arrangementsUse compliant contracts when vendors create, receive, maintain, or transmit ePHI on behalf of the regulated entity.
Policies and documentationTechnical controls must be supported by written policies, procedures, and retained compliance documentation.
!

Do not describe the 2024 Security Rule NPRM as current law. The proposal would add requirements such as MFA, broader mandatory encryption, annual compliance audits, network segmentation, vulnerability scanning, and penetration testing. HHS currently says the existing Security Rule remains in effect while rulemaking continues.

02

The developer checklist

What should every HIPAA patient portal implementation review?

01

Document every ePHI data flow

Map browsers, mobile apps, APIs, databases, object storage, queues, logs, backups, analytics, support tools, integrations, and vendors.

Foundation
02

Use unique user identities

Each patient, proxy, caregiver, workforce user, and service account should have an accountable identity rather than a shared credential.

Access
03

Build secure account recovery

Password reset and account recovery should not become easier attack paths than normal login.

Identity
04

Use strong authentication and risk-based MFA

Implement MFA where the organization's risk analysis supports it, and design the portal so stronger factors can be enforced without major rework.

Auth
05

Enforce record-level authorization

Every API route must verify the caller can access the requested patient, record, document, action, and tenant.

Authorization
06

Protect session tokens

Use secure platform controls, expiration, rotation, revocation, and server-side authorization on every request.

Session
07

Encrypt network transport

Use modern TLS, secure certificate management, no mixed content, and protected service-to-service channels.

Transmission
08

Protect stored ePHI and secrets

Use appropriate encryption, access controls, key management, secret storage, storage policies, and backup protections based on risk.

Storage
09

Keep meaningful audit trails

Record logins, failed access, record views, exports, downloads, changes, proxy access, and administrative actions.

Audit
10

Keep PHI out of unnecessary logs

Do not dump request bodies, tokens, messages, notes, file URLs, or full API responses into generic observability tooling by default.

Logging
11

Secure uploads and downloads

Validate file type and size, scan where appropriate, authorize every download, avoid public object URLs, and control temporary links.

Files
12

Design notifications to minimize disclosure

Email, SMS, and push notifications should reveal only the content approved for that communication channel.

Messaging
13

Review every third-party service

Understand whether cloud, analytics, messaging, support, AI, logging, or storage vendors create, receive, maintain, or transmit ePHI.

Vendors
14

Execute BAAs where required

HHS states that a cloud service provider handling ePHI on behalf of a covered entity or business associate is generally a business associate even when it stores encrypted ePHI without the key.

Contracts
15

Build backup and restore into the product plan

Protect availability with tested backups, recovery procedures, restore validation, and dependency recovery.

Availability
16

Make access revocation immediate

Terminate sessions and service access when accounts, roles, relationships, devices, or employment states change.

Lifecycle
17

Create an incident response path

Security alerts need owners, containment actions, evidence preservation, breach assessment, communications, and recovery procedures.

Incident
18

Test after every material change

Authentication, authorization, file access, messaging, integrations, session behavior, audit events, and recovery should have regression coverage.

Change
03

Portal access starts with identity

How should a patient portal verify patient identity?

The system must establish that the account belongs to the correct patient or authorized representative before linking the account to protected records.

1Invite or enroll
2Verify identity
3Link patient record
4Create credentials
5Authenticate
6Authorize record
7Audit access
Enrollment

Avoid weak knowledge-only proofing

Use enrollment methods appropriate to the organization and risk, such as in-person verification, verified contact channels, trusted invitations, or approved identity services.

Patient linking

Separate account ID from patient ID

Link identity through an explicit association so portal identity, EMR identifiers, proxies, and dependents can be governed independently.

Proxy access

Model representatives explicitly

Parents, caregivers, guardians, and personal representatives may need scoped access that changes over time.

Duplicate identities

Do not auto-merge ambiguous people

If two records may represent the same person, route the case to an approved identity-resolution workflow.

04

Be precise about the current rule

Does HIPAA require MFA for patient portals?

The current HIPAA Security Rule does not state a universal MFA requirement for every patient portal login. It requires authentication and risk-based security controls. The December 2024 proposed Security Rule update would require MFA with limited exceptions, but HHS still describes that provision as proposed as of August 2026.

MFA is still a strong control for patient, workforce, and administrative access, especially for higher-risk actions such as changing contact information, adding a proxy, downloading a large record set, or performing administrative functions.

Prefer

  • phishing-resistant factors where practical
  • authenticator apps, passkeys, or other approved factors
  • step-up authentication for high-risk actions
  • recovery flows that are as strong as login
  • server-side revocation after compromise

Avoid

  • security questions based on discoverable personal facts
  • email ownership alone as proof of patient identity
  • password reset that bypasses stronger controls
  • plaintext recovery codes
  • shared workforce or administrator accounts
05

Authentication tells you who. Authorization decides what.

How should authorization work in a HIPAA patient portal?

A patient portal should authorize every request against the current identity, patient relationship, organization, role, resource, and action. URL structure or UI visibility is never sufficient security.

QuestionExample checkFailure behaviorAudit
Who is calling?patient, proxy, workforce, servicedeny anonymous requestidentity and session
Which patient?authorized relationshipdeny cross-patient accesspatient and relationship
Which resource?message, result, document, appointmentdeny outside scoperesource type and ID
Which action?read, download, send, update, sharedeny unapproved actionaction and outcome
Which organization?tenant/location boundarydeny cross-tenant accesstenant context
Is relationship current?proxy expiry, changed rolerevoke immediatelypolicy/version
i

The HIPAA Privacy Rule's minimum necessary standard generally applies to uses, disclosures, and requests for PHI, with important exceptions including disclosures to the individual and certain treatment-related disclosures. Least privilege remains a useful engineering baseline for workforce and service access.

06

Session theft bypasses a strong password

How should patient portal sessions be secured?

Cookies/tokens

Use platform controls correctly

Use Secure and HttpOnly cookies where appropriate, SameSite controls, protected refresh-token storage, rotation, and server-side validation.

Timeout

Use risk-based inactivity and lifetime controls

Automatic logoff is addressable under the current Security Rule, meaning the organization must implement it when reasonable and appropriate or document a reasonable alternative.

Revocation

Invalidate sessions quickly

Password reset, suspicious login, proxy removal, role change, and administrator action should terminate relevant sessions.

CSRF

Protect state-changing actions

Use SameSite behavior, CSRF protections where needed, origin checks, and server-side authorization for mutations.

XSS

Prevent script access to portal context

Use output encoding, content-security policies, safe rendering, dependency review, and no unsafe HTML from clinical content.

Device trust

Remembered device is not identity

Remembered devices can reduce friction but need expiration, revocation, and appropriate risk controls.

07

An audit log should answer who did what to which record

What should a patient portal audit log capture?

EventUseful audit fieldsCommon mistake
Loginuser, time, success/failure, factor, device/session, risk signallogging a secret
Record viewuser, patient, resource, time, organization, outcomelogging the entire clinical payload
Download/exportuser, patient, file/export type, time, count/size, outcomefailing to distinguish view from bulk export
Messagesender, recipient, thread, time, action, delivery statecopying message body into generic logs
Profile changefield category, actor, time, verificationstoring sensitive before/after values unnecessarily
Proxy changepatient, proxy, scope, start/end, actor, reasonno history of who granted access
Admin overrideadmin, reason, patient, action, time, approvalunexplained superuser access
Logging principle

Logs need enough context to investigate access without becoming a second uncontrolled medical record.

08

Files create their own attack surface

How should a HIPAA patient portal handle documents and uploads?

Upload validation

Validate type, size, content, and ownership

Do not trust the extension. Use allowlists, malware scanning where appropriate, content checks, quotas, and limits.

Storage

Keep buckets private by default

Use authenticated application access or short-lived signed URLs with narrow scope and appropriate expiration.

Authorization

Check every download

Never assume possession of a document URL proves authorization.

Preview

Sandbox risky formats

Document rendering, images, PDFs, and office files can require isolated processing and safe conversion.

Metadata

Protect filenames and object keys

File names can contain names, diagnoses, account numbers, or other PHI even when content is encrypted.

Retention

Define deletion and archival

Temporary uploads, previews, rejected files, and replaced documents need lifecycle rules.

09

The notification channel may be less trusted than the portal

How should email, SMS, and push notifications handle PHI?

A common pattern is to send a minimal notification that prompts the patient to authenticate into the secure portal. Message content should be designed around the organization's privacy analysis, patient preferences, communication policy, and sensitivity of the information.

Safer patterns

  • use a minimal "new message available" notification
  • keep results and diagnoses inside the authenticated portal unless explicitly approved
  • manage patient contact preferences
  • expire action links and require authentication for sensitive content
  • record delivery state without copying clinical text into vendor logs

Common mistakes

  • full lab results in SMS
  • PHI in push notification previews
  • weak recovery links that also expose sensitive content
  • patient contact data in debug logs
  • assuming transport encryption alone makes every disclosure appropriate
10

The portal is only as private as its vendor chain

Which patient portal vendors may need a BAA?

HHS states that when a cloud service provider creates, receives, maintains, or transmits ePHI on behalf of a covered entity or business associate, the provider is a business associate and the parties must enter into an appropriate BAA. This can remain true even when the provider only stores encrypted ePHI and lacks the decryption key.

VendorPortal useQuestionAction
Cloud hostingcompute, database, storage, backupdoes it handle ePHI?BAA and config review if applicable
Email/SMSnotifications, OTP, remindersdoes content/metadata include PHI?minimize data and review relationship
Supporttickets and screenshotscan agents or tools receive PHI?govern access and contract
Logging/APMerrors and tracescan payloads/URLs contain PHI?redact, filter, retain appropriately
AI/OCRdocuments and summariesis ePHI sent to processor?approved service and BAA where needed
Analyticsusage and funnelswhat identifiers/events leave the portal?review before adding scripts
11

A marketing SDK can become a health-data disclosure path

Should a HIPAA patient portal use analytics, pixels, or session replay?

Treat every third-party browser script as a data recipient. A script may receive URL paths, page titles, IP addresses, identifiers, form values, DOM content, or user actions even when the development team never intentionally sends a clinical field.

Inventory

Know every script after authentication

Tag managers can make it difficult to know which third parties execute on portal pages.

Data map

Inspect what leaves the browser

Use network inspection and test accounts to see exact requests, identifiers, query strings, cookies, and payloads.

Default deny

Keep marketing tooling out of PHI areas

Add only services with a defined purpose, approved data set, and reviewed vendor relationship.

Session replay

Assume the page can contain PHI

Masking configuration is not a substitute for a full risk and vendor review.

12

A secure portal should also support patient rights

How does the HIPAA right of access affect portal design?

Under the HIPAA Privacy Rule, a covered entity generally must provide an individual access to requested PHI in a designated record set no later than 30 calendar days after receiving the request, subject to the rule's details and exceptions. HHS notes that portals can often provide access much faster.

A portal can reduce manual fulfillment work, but it does not replace the organization's complete right-of-access process for records that are not available in the portal, identity verification, requested formats, denials where permitted, amendments, and other Privacy Rule obligations.

Availability

Make records easy to find

Patients should not need to understand internal EMR structure to locate results, documents, visits, or messages.

Export

Support usable electronic copies

Design exports with secure generation, authentication, audit, expiration, and a clear indication of what is included.

Proxy

Represent personal representatives carefully

Proxy rights can differ by age, legal authority, organizational policy, and record type.

Correction path

Make amendment requests findable

The portal can provide a request workflow while the legal and operational process remains the organization's responsibility.

13

Availability is part of security

What backup and recovery controls should a patient portal have?

BackupCreate protected copiesdatabase, files, config
→
IsolateProtect recovery pathsseparate access and failure domain
→
RestoreTest recoverynot just backup-job success
→
ReconcileVerify application staterecords, files, queues, integrations

Backups should be part of the risk analysis and contingency plan. The engineering team should know recovery-point expectations, recovery-time expectations, dependency order, how keys and secrets are restored, how external integrations recover, and who decides when service returns.

14

Incident response cannot begin with "where are the logs?"

What should incident response look like for a patient portal?

Step 01

Detect and classify

Identify suspicious authentication, privilege use, export volume, API behavior, malware, vendor alerts, or data exposure.

Step 02

Contain access

Revoke credentials, sessions, API keys, integrations, or network access without destroying evidence.

Step 03

Preserve evidence

Protect logs, audit events, database history, deployment versions, vendor notices, and timestamps.

Step 04

Assess scope

Determine systems, records, individuals, data types, users, vendors, and time window affected.

Step 05

Coordinate breach analysis

Privacy, legal, security, compliance, and leadership determine notification obligations.

Step 06

Recover and prevent recurrence

Restore safely, rotate secrets, patch root cause, monitor for persistence, and add regression controls.

i

The HIPAA Breach Notification Rule requires covered entities to notify affected individuals of breaches of unsecured PHI without unreasonable delay and no later than 60 days after discovery, subject to the rule's requirements. Business associates have notification obligations to covered entities.

15

Compliance should survive a real attack path

How should a HIPAA patient portal be security tested?

Test areaWhat to proveExample failure
Authenticationlogin, MFA, reset, recovery, lockout, revocation work as designedreset bypasses stronger factor
Authorizationevery API rejects cross-patient, cross-tenant, wrong-role accesschanging an ID returns another patient's file
Sessiontokens cannot be reused after logout, reset, revocation, role changeold refresh token remains valid
Filesuploads/downloads enforce type, ownership, access, expirationsigned URL reused indefinitely
Loggingaudit events exist without unnecessary PHI leakageclinical note appears in APM trace
Notificationssensitive content remains in intended channelpush preview exposes diagnosis
Vendor failuredownstream outage or compromise can be containedunbounded PHI retries
Recoverybackup restores and reconciles correctlyfile store and database disagree
!

The proposed Security Rule changes would add explicit vulnerability-scanning and penetration-testing frequencies if finalized. Those frequencies are not part of the current rule, but regular technical testing is still a strong risk-management practice.

16

Keep trust boundaries visible

What does a HIPAA patient portal architecture look like?

1Patient browser/app→2Identity provider→3Portal API→4Authorization layer→5Portal data / EMR→6Audit + monitoring
Public edge

Separate public and authenticated surfaces

Marketing pages, signup, reset, and authenticated portal routes should not share unnecessary scripts or data.

Identity boundary

Centralize authentication and session policy

Use one accountable identity model across browser, mobile, workforce, service, and proxy access.

Authorization boundary

Enforce policy close to the data

Every service should receive an authenticated principal and verify the action against the target resource.

Integration boundary

Treat the EMR and vendors as external systems

Use service identities, scoped permissions, retry rules, validation, reconciliation, and audit.

Observability boundary

Separate audit evidence from debug telemetry

Audit events need durable integrity and access control, while developer logs should minimize PHI.

Recovery boundary

Protect backup credentials and recovery paths

Production administrator access should not automatically give unrestricted control of recovery copies.

17

What healthcare portal work taught us

What practical lessons matter most when building patient portals?

01

Authorization bugs were more dangerous than login bugs

A user could be correctly authenticated and still reach the wrong patient, tenant, document, or action if object-level authorization was incomplete.

02

Password recovery deserved the same security design as login

Strong MFA meant little if an attacker could change the email or reset the account through a weaker path.

03

Audit logs needed a product schema

Generic server logs did not answer the compliance question. Explicit patient, actor, resource, action, outcome, and reason fields did.

04

Third-party scripts were part of the threat model

Analytics, support widgets, APM, and session replay could move data outside the intended portal boundary if not reviewed.

05

Proxy access was not simply another user

Parents, caregivers, guardians, and personal representatives required relationships, scopes, expiration, and audit separate from the patient's account.

06

Backups only counted when restore was proven

A successful backup job was not evidence that the application, files, keys, integrations, and data relationships could be recovered consistently.

“

A HIPAA patient portal is not secure because every request is encrypted. It is secure when every trust decision can be explained, enforced, audited, and recovered.

Trilops healthcare engineering principle
18

A practical implementation sequence

What is the safest way to build a HIPAA patient portal?

Phase 01

Map PHI and users

Identify data, patient roles, proxies, workforce roles, integrations, devices, vendors, and trust boundaries.

Phase 02

Complete risk analysis with the regulated organization

Translate risks and policies into technical requirements and evidence needs.

Phase 03

Design identity and authorization first

Define enrollment, verification, MFA strategy, proxy access, tenancy, resources, actions, and revocation.

Phase 04

Design vendor and data boundaries

Choose hosting, storage, messaging, monitoring, support, AI, analytics, and integration services with BAAs where required.

Phase 05

Build audit and observability with the feature

Do not postpone access logs, security events, traceability, and alerting until after UAT.

Phase 06

Add messaging, files, and notifications

Test that PHI remains inside approved channels and every file/message inherits correct authorization.

Phase 07

Test attack and failure paths

Run object-authorization, session, recovery, vendor-outage, restore, and security tests.

Phase 08

Pilot with audit review

Review real access events, exception cases, support patterns, and permission changes before broad rollout.

Phase 09

Operate as a living risk program

Reevaluate material changes, vendors, threats, authentication controls, policies, documentation, and evolving Security Rule requirements.

Building or replacing a patient portal?

Start with the trust boundaries before the UI.

Trilops builds healthcare portals with role-based access, auditability, FHIR/EMR integration, secure messaging, document workflows, patient identity, and production security controls.

Discuss your patient portal ↗
19

Frequently asked questions

HIPAA compliant patient portal: FAQ

What makes a patient portal HIPAA compliant?+

There is no single technical feature that makes a portal compliant. The regulated organization must implement appropriate administrative, physical, and technical safeguards for the ePHI it creates, receives, maintains, or transmits. For developers, that includes identity, authorization, audit controls, integrity, transmission security, vendor controls, recovery, policies, and risk management.

Does HIPAA require patient portal encryption?+

The current Security Rule includes addressable encryption-related implementation specifications rather than a blanket statement that every form of encryption is always mandatory. Addressable does not mean optional: the organization must implement the specification when reasonable and appropriate or document an appropriate alternative. Modern portals normally use strong encryption in transit and at rest as part of risk management.

Does HIPAA require MFA for a patient portal?+

Not as a universal requirement under the currently effective Security Rule. The December 2024 proposed Security Rule modifications would require MFA with limited exceptions if finalized. MFA is still a strong modern control and should be evaluated in the organization's current risk analysis.

Do patient portal cloud vendors need a BAA?+

HHS states that a cloud service provider that creates, receives, maintains, or transmits ePHI on behalf of a covered entity or business associate is generally a business associate and requires an appropriate BAA. This can remain true even when the vendor stores encrypted ePHI without the decryption key.

Can a patient portal send results through email or SMS?+

The organization must evaluate the channel, patient preferences, content, safeguards, and privacy requirements. A common lower-disclosure design sends only a notification that new information is available and requires authentication in the portal to view protected content.

How long does HIPAA give a provider to fulfill a patient's access request?+

The Privacy Rule generally requires access no later than 30 calendar days after receiving a request, subject to the rule's details and limited extension process. HHS notes that portals may enable much faster access for records already available electronically.

Can a vendor certify that our portal is HIPAA compliant?+

HHS does not endorse or certify specific technology products as universally HIPAA compliant. A vendor can provide security evidence, BAAs, configuration guidance, and contractual commitments, but compliance depends on the actual deployment, policies, risk analysis, users, vendors, and operations.

Authoritative references

This article is a developer-oriented engineering checklist, not legal advice or a certification of compliance. The regulated organization should evaluate the actual deployment with qualified privacy, security, compliance, and legal professionals.

HIPAA by design, not by checkbox

Build the portal around identity, authorization, audit, and recovery.

Trilops builds patient portals and healthcare platforms with production security, EMR integration, role-based workflows, messaging, documents, auditability, and operational controls designed around real healthcare data flows.

#HIPAA compliant patient portal#patient portal security#patient portal development#HIPAA software development#healthcare portal#healthcare app security#patient portal checklist
Share
TrilopsLet's start a project together

Built for
what can't fail.

hello@trilops.ai

Prefer to talk? We typically reply within one business day and can hop on a call to scope your project — no obligation.