Key takeaway
Behavioral health apps operated by or for covered entities must meet HIPAA, which gives psychotherapy notes extra protection. Programs that handle substance use disorder treatment records may also be subject to 42 CFR Part 2. Consumer mental health apps outside HIPAA still face FTC enforcement for sharing health data without proper consent.
Last reviewed November 17, 2026
Why behavioral health raises the bar
Mental health records are among the most sensitive in healthcare, and several rules reflect that. HIPAA treats psychotherapy notes differently from the rest of the record. Federal confidentiality rules for substance use disorder records under 42 CFR Part 2 add requirements for some programs. Many states have their own mental health confidentiality laws.
Recent enforcement has also focused on this space. The FTC has brought actions against online therapy and mental health companies for sharing health information with advertising platforms, for example its 2023 action against BetterHelp. The lesson for product teams is that tracking pixels and marketing integrations need as much scrutiny as the database.
Challenges mental health organizations face
Psychotherapy notes versus the record
Psychotherapy notes, as defined in 45 CFR 164.501, are kept separate from the rest of the medical record and generally require specific patient authorization for most uses and disclosures. Software needs to store and permission them separately.
Part 2 data mixed with general records
Organizations that operate Part 2 programs must track which records are Part 2 records and how consent applies. The 2024 final rule aligned Part 2 more closely with HIPAA, but differences remain.
Marketing and analytics pressure
Growth teams want conversion tracking. On authenticated pages or anywhere health information appears, standard ad pixels can disclose sensitive data to third parties.
Crisis and safety workflows
Apps must handle disclosures of risk responsibly, with clear escalation paths, crisis resources such as 988, and clinician alerts that work outside business hours.
Minors, families and proxies
Adolescent care involves state-specific consent rules and parental access limits that must be reflected in roles and record visibility.
Group and couples therapy
Shared sessions and messaging threads raise questions about which participant can see which content.
Applications we build for mental health providers
Teletherapy platforms
Scheduling, video sessions through BAA-covered vendors, secure messaging and intake designed around therapist workflows.
Measurement-based care tools
Validated questionnaires delivered between sessions, scored and trended for clinicians, with alerts when scores cross defined thresholds.
Clinical documentation with separated notes
Progress notes, treatment plans and psychotherapy notes stored and permissioned separately.
Self-guided and between-session programs
Digital exercises, journaling and skill-building modules that can be assigned and reviewed by clinicians.
Substance use disorder program tools
Workflows for Part 2 programs with consent tracking, record labeling and disclosure controls.
Collaborative care coordination
Registries and care manager tools for behavioral health integrated into primary care.
HIPAA app development for mental health: security and compliance considerations
We start with data classification: which data is general PHI, which is psychotherapy notes, which may be Part 2 records, and which is collected by a consumer app outside HIPAA. Each class gets its own access rules, logging and disclosure controls.
We also run a tracking review. HHS OCR guidance on online tracking technologies, last revised in March 2024, warns that tracking on authenticated pages and patient portals can disclose PHI to third parties. A 2024 federal court decision vacated part of that guidance concerning certain unauthenticated public pages, but the risk on logged-in experiences remains significant, and FTC enforcement applies regardless of HIPAA status.
HIPAA requirement
What the rules themselves require
- Authorization before most uses and disclosures of psychotherapy notes (164.508(a)(2)), supported by separate storage and permissions.
- For Part 2 programs: consent and disclosure requirements of 42 CFR Part 2, as amended by the 2024 final rule.
- Security Rule technical safeguards (164.312) including audit controls on every record view.
- BAAs with every vendor handling PHI, including video, messaging and any analytics service that receives PHI.
- For apps outside HIPAA: the FTC Act and, where applicable, the FTC Health Breach Notification Rule.
Recommended practice
Widely accepted security practice
- No third-party advertising or tracking technologies on authenticated pages or in the app.
- Granular, revocable consent records with timestamps and versioned consent text.
- Content-free notifications; never reveal therapy, diagnosis or provider specialty on a lock screen.
- Discreet app naming and icon options where patient safety warrants it.
- Break-glass access for psychotherapy notes limited and closely reviewed.
Architecture decision
Depends on your product and risk analysis
- Client-side encryption for journaling features where even administrators should not read content.
- Separate data stores for Part 2 records versus general records.
- Session recording, which most therapy platforms choose not to enable.
Your organization's responsibility
Policies and operations software cannot do
- Clinical safety protocols for crisis disclosures and after-hours coverage.
- Policies on minors' consent and parental access by state, defined with counsel.
- Marketing team governance over pixels, ad platforms and patient testimonials.
- Workforce training on psychotherapy note handling and Part 2 disclosures.
Integration landscape for behavioral health
- Behavioral health EHRs and general EHRs through FHIR R4, HL7 v2 or vendor APIs, depending on the system and contract.
- BAA-covered video and messaging vendors for teletherapy.
- Validated assessment instruments, with licensing checked for each questionnaire.
- Clearinghouses for eligibility and claims, with care taken over what diagnosis data is shared.
- Crisis line information and referral resources, presented without sending user data to third parties.
- Privacy-preserving product analytics hosted under a BAA or kept free of health data.
Engagement models for mental health organizations
- 1
Discovery sprint
Data classification, tracking technology review, consent model design and a clinical safety workflow map.
- 2
Fixed-scope build
A defined module such as measurement-based care or a separated notes system added to an existing platform.
- 3
Dedicated team
Ongoing product development for teletherapy and digital mental health companies.
- 4
Staff augmentation
Privacy-focused engineers joining your team to remediate tracking, consent or access control issues.
Selecting a partner for a mental health product
Test their knowledge of psychotherapy notes
Ask how they would store and permission psychotherapy notes. If they treat them like any other note, keep looking.
Ask about tracking and analytics
A good partner will raise ad pixels and SDKs before you do and propose privacy-preserving alternatives.
Look for clinical safety thinking
Ask how the app handles a user indicating risk of self-harm. The answer should involve clinicians, escalation paths and testing, not just a static banner.
Confirm Part 2 awareness if relevant
If you treat substance use disorders, ask whether they have worked through Part 2 consent and labeling requirements and how they would test them.
Prefer candor to reassurance
A partner should tell you plainly when a growth idea creates privacy risk.
Frequently Asked Questions
What are psychotherapy notes under HIPAA?
They are notes recorded by a mental health professional documenting or analyzing the contents of a counseling session and kept separate from the rest of the medical record. Medication, session times, test results and treatment plan summaries are excluded. Most uses and disclosures of psychotherapy notes require specific patient authorization.
Does 42 CFR Part 2 apply to our app?
Part 2 applies to federally assisted programs that hold themselves out as providing substance use disorder diagnosis, treatment or referral, and to certain recipients of their records. Whether your organization is covered is a legal question; if it is, the app needs consent tracking and disclosure controls that reflect Part 2.
Can we use Meta or Google ad pixels on our therapy app?
Doing so on authenticated pages or where health information appears is high risk. It can disclose PHI under HIPAA and has been the basis of FTC enforcement against mental health companies. We recommend privacy-preserving analytics and no ad pixels in logged-in experiences.
Our app is direct-to-consumer. Does any of this apply?
HIPAA may not, but the FTC Act, the FTC Health Breach Notification Rule and state consumer health data laws may. The FTC has acted against consumer mental health services for sharing data with advertisers, so the same privacy design discipline applies.
How should the app handle crisis disclosures?
With clinically defined protocols: clear display of crisis resources such as 988, alerts to the responsible clinician, and documented escalation paths. The software supports the protocol; your clinical leadership defines it and tests it with us.
Can parents see their teenager's therapy records in the app?
It depends on state law and the type of care. Many states give minors control over certain mental health records. We build role and visibility rules that your counsel defines per state rather than a single default.
Should therapy sessions be recorded?
Most therapy platforms do not record sessions, because recordings create highly sensitive PHI with storage, retention and access obligations. If there is a training or supervision need, it should be opt-in with explicit consent and tight access controls.