Key takeaway
The most common HIPAA compliance mistakes in healthcare apps are tracking technologies that send PHI to third parties, PHI leaking into logs and error trackers, vendors handling PHI without a BAA, treating encryption as the whole of compliance, skipping or neglecting the risk analysis, shared accounts, over-broad API access and overlooking state privacy laws. Each is preventable with data flow mapping, vendor review and controls built into the development process.
Last reviewed November 17, 2026
Mistake 1: Tracking pixels and analytics on PHI pages
Tracking technologies such as the Meta Pixel and similar analytics or advertising tags can send page URLs, button clicks, form fields, IP addresses and device identifiers to third parties. On a patient portal or appointment flow, that can amount to disclosing that a specific person is a patient, or which condition they are seeking care for.
In 2022 and 2023, multiple hospital systems reported breaches to HHS tied to pixels on patient portals and scheduling pages, and class actions followed. The FTC has also brought actions against consumer health companies, including GoodRx and BetterHelp, over sharing health data with advertising platforms.
HHS OCR issued a bulletin on tracking technologies in December 2022 and revised it in March 2024. In June 2024, a federal court in American Hospital Association v. Becerra vacated the portion of the guidance concerning certain unauthenticated public web pages, where an individual's visit alone was treated as a disclosure of PHI. Tracking technology on authenticated pages, such as patient portals, and in apps that handle PHI remains a significant risk.
Mistake 2: PHI in logs, error trackers and support tools
Application logs, APM traces and error trackers are designed to capture context, and in a healthcare app that context is often PHI: request bodies with diagnoses, URLs containing patient IDs, exception messages that include names. Those tools are frequently hosted by vendors without a BAA, and logs are often retained longer and accessed more widely than the database.
- 1
Redact at the source
Use structured logging with an allow list of fields, and redact or hash identifiers before events leave the service.
- 2
Scrub error payloads
Configure error trackers to drop request bodies, cookies, headers and local variables, and add server-side scrubbing rules.
- 3
Test for leaks
Add automated tests that fail if known PHI fields appear in log output.
- 4
Cover support channels
Support desks, chat widgets and screen-sharing tools receive PHI when patients ask for help; they need BAAs or strict procedures.
Mistake 3: No BAA with SMS, email and other vendors
Appointment reminders, password resets and result notifications are routinely sent through SMS and email providers. If messages contain PHI, the provider is a business associate and needs a BAA. Many teams discover this after integrating a vendor whose standard plan does not include one.
There are two fixes. Use vendors and plan tiers that sign BAAs, or design messages that contain no PHI, such as a generic prompt to log in. The same review applies to video, chat, file storage, AI model providers and customer data platforms.
Mistake 4: Treating encryption as compliance
Encryption at rest and in transit is important and can keep a lost device or stolen backup out of breach notification. But encryption does not stop an authorized user from viewing records they should not, does not prevent an API from returning another patient's data, and does nothing about a pixel sending data from the browser.
The Security Rule includes administrative, physical and technical safeguards. Encryption is one technical specification among many, alongside access control, audit controls, integrity, authentication, risk analysis, workforce training, contingency planning and BAAs.
HIPAA requirement
What the rules themselves require
- Risk analysis and risk management (164.308(a)(1)).
- Access control, audit controls, integrity, authentication and transmission security standards (164.312).
- BAAs with vendors that handle ePHI (164.502(e), 164.504(e)).
- Workforce security, security awareness training and contingency planning (164.308).
Recommended practice
Widely accepted security practice
- Encryption at rest and in transit for all ePHI, consistent with HHS guidance.
- PHI redaction in logs and automated tests that catch leaks.
- An allow list of approved third-party scripts and SDKs, enforced in review.
Architecture decision
Depends on your product and risk analysis
- Content Security Policy rules that block unapproved third-party scripts on authenticated pages.
- First-party analytics hosted in your own environment.
- Tokenization of identifiers sent to downstream tools.
Your organization's responsibility
Policies and operations software cannot do
- Vendor management and procurement checks for BAA coverage.
- Marketing governance so campaigns cannot add tags to patient-facing pages.
- Sanctions policies and training for staff who handle PHI.
Mistake 5: No risk analysis, or one that never changes
The risk analysis required by 164.308(a)(1)(ii)(A) is one of the most frequently cited deficiencies in OCR enforcement. In 2024, OCR announced a Risk Analysis Initiative focused specifically on this requirement, and it has announced a series of settlements and civil money penalties under that initiative since, many starting from ransomware or hacking investigations.
A risk analysis that was written once, years ago, for a different system does not meet the requirement for the app you run today. Update it when you add vendors, features, integrations or infrastructure, and keep the evidence.
Mistake 7: Over-broad API scopes and missing object-level checks
APIs often authenticate the caller correctly but fail to check whether that caller may access the specific record requested. Broken object level authorization is the top risk in the OWASP API Security Top 10, and in healthcare it means one patient can change an ID in a request and see another patient's results.
Integration partners are another source of over-broad access. A partner that needs appointment times does not need full clinical records. Use narrowly scoped OAuth 2.0 grants, such as SMART on FHIR scopes limited to specific resources, enforce the minimum necessary standard in the API and log every partner request.
Mistake 8: Ignoring state laws and non-HIPAA rules
HIPAA is a floor, not a ceiling. State laws can impose stricter rules on health data, consent, breach notification timing and specific categories such as mental health, HIV status, genetic information and reproductive health. Texas HB 300, the California Confidentiality of Medical Information Act and Washington's My Health My Data Act are frequent examples.
Apps outside HIPAA are not unregulated either. The FTC Health Breach Notification Rule, amended in 2024, applies to many health apps not covered by HIPAA, and the FTC has used its authority over unfair and deceptive practices against health data sharing. This is general information, not legal advice; confirm obligations with counsel.
Mistake 9: Production PHI in development and test environments
Copying a production database to staging to reproduce a bug is fast, and it quietly extends every HIPAA obligation to an environment that usually has weaker access controls, broader developer access and no audit review. Developer laptops, shared test accounts and third-party QA tools then become part of your PHI footprint.
Use synthetic data generators or properly de-identified datasets for testing, and provide a controlled, audited process for the rare cases where an engineer must investigate production data, ideally inside the production environment rather than by exporting it.
A quick self-check
| Question | If the answer is no |
|---|---|
| Is every third-party script and SDK on PHI screens covered by a BAA or proven not to receive PHI? | Remove or reconfigure it before the next release. |
| Do logs and error reports exclude PHI by design, with tests? | Add redaction and scrubbing, and purge existing PHI from logs where possible. |
| Does every vendor in the data flow map that handles PHI have a signed BAA? | Stop the PHI flow or sign the BAA. |
| Has the risk analysis been updated since the last major change? | Update it and record risk decisions. |
| Does every user have a unique account with MFA where appropriate? | Eliminate shared accounts and enable MFA. |
| Does every API endpoint check object-level authorization? | Add checks and tests for cross-patient and cross-tenant access. |
Frequently Asked Questions
Can healthcare websites use the Meta Pixel?
Not on authenticated pages such as patient portals, or anywhere it would receive PHI, unless a BAA is in place and the disclosure is permitted, which is generally not available. A 2024 court decision vacated part of OCR's guidance for certain unauthenticated public pages, so consult counsel about public pages and avoid tracking on PHI pages.
Is it a HIPAA violation to have PHI in application logs?
Logging PHI is not prohibited in itself, but logs containing PHI must be protected like any other ePHI store, and sending them to a vendor without a BAA is an impermissible disclosure. The safer design is to keep PHI out of logs and record identifiers only where needed.
Do I need a BAA with my SMS provider?
If messages contain PHI, yes. If you cannot get a BAA, design messages that contain no PHI, such as a generic prompt to log in to view a message.
Is encryption enough for HIPAA compliance?
No. Encryption is one technical safeguard. HIPAA also requires risk analysis, access control, audit controls, authentication, workforce training, contingency planning, BAAs and documented policies.
What is the OCR Risk Analysis Initiative?
An enforcement initiative announced by HHS OCR in 2024 that focuses on compliance with the Security Rule's risk analysis requirement. OCR has announced multiple settlements and penalties under it, reflecting how often missing or inadequate risk analyses appear in investigations.
Are shared logins allowed under HIPAA?
No for access to ePHI. The Security Rule requires unique user identification so activity can be traced to individuals. Shared logins also undermine audit controls and sanctions policies.
Do state laws apply if I already comply with HIPAA?
Often yes. State laws can be stricter than HIPAA or cover data HIPAA does not, and HIPAA generally does not preempt more protective state laws. Review applicable state laws with counsel.