Vibe-coded apps in psychiatry and behavioral health: getting HIPAA-ready

Last reviewed:

Official guidance cited below was checked November 7, 2026 (America/Los_Angeles).

Short answer

A psychiatry or behavioral health app is not subject to HIPAA merely because it involves mental health, and it is not subject to 42 CFR Part 2 merely because a patient mentions substance use. HIPAA applies when a covered entity or business associate creates, receives, maintains, or transmits protected health information (PHI). HHS says that if an entity is neither, "it does not have to comply with the HIPAA Rules." (HHS, Covered Entities and Business Associates, accessed November 7, 2026).

"HIPAA-ready" here is a working project description, not a certification. A business associate agreement (BAA) is a contract about defined services. It does not, by itself, make an application compliant.

Most mental health information in the medical record is ordinary PHI. HIPAA's extra authorization rule applies to psychotherapy notes, a narrower category. Separately, Part 2 protects qualifying substance use disorder (SUD) records associated with federally assisted Part 2 programs. It is not a general behavioral-health privacy code. (HHS FAQ 2088; HHS, Understanding Part 2, accessed November 7, 2026).

Hypothetical apps physicians might build

These examples are hypothetical illustrations, not a survey of what clinicians build or how common each type is.

The same interface can be a covered-entity workflow, an independently offered consumer tool, or something in between. The coding tool that generated it does not decide that question.

Data flows and specialty-specific risks

Trace one invented patient through development and any later production copy. Content here often starts as free text—journal entries, session summaries, safety plans—and screenshots pasted into a builder chat. Those paths can reach preview environments, storage, a model API, analytics, and error logs.

A field labeled "session notes" may store a therapist's private analysis of a conversation, or diagnosis, medications, session times, and a progress summary. HIPAA treats those differently. An AI summarizer that drafts a handoff from a full note is a disclosure path, not merely a writing aid.

Mental health information, psychotherapy notes, and Part 2

HHS says the Privacy Rule "applies uniformly to all protected health information, without regard to the type of information," with one stated exception: psychotherapy notes. Those notes document or analyze a counseling conversation and are kept separate from the rest of the medical record. They do not include medication prescription and monitoring, session start and stop times, modalities and frequencies of treatment, clinical test results, or summaries of diagnosis, functional status, treatment plan, symptoms, prognosis, and progress to date. Information in the medical record is not a psychotherapy note. With few exceptions, a covered entity needs authorization before disclosing psychotherapy notes, including for treatment to another provider. HHS notes exceptions for certain disclosures required by other law; state law varies. (HHS FAQ 2088; 45 CFR 164.501 and 164.508(a)(2), accessed November 7, 2026). An app that stores narrative beside the problem list and PHQ-9 score is usually holding ordinary PHI, not psychotherapy notes.

Part 2 is a different regime. HHS says "Part 2 rules apply to any federally assisted program that provides SUD diagnosis, treatment, or referral for treatment." Some requirements also apply to recipients of Part 2 records. The 2024 final rule "has been effective since April 16, 2024, and compliance was required by February 16, 2026." (HHS, Understanding Part 2; Federal Register, 89 FR 12472 (February 16, 2024), accessed November 7, 2026). The current regulation covers records that would identify a patient as having or having had an SUD and that contain qualifying information obtained by a federally assisted SUD program. "If a patient's substance use disorder diagnosis, treatment, or referral for treatment is not provided by a part 2 program, that patient's record is not covered by the regulations in this part." A treating provider who is not a Part 2 program may record SUD information; that act alone does not make the provider's record a Part 2 record. (42 CFR 2.12, accessed November 7, 2026). A general psychiatry practice or depression screener is not a Part 2 program merely because it is behavioral health. Do not copy SUD-record rules onto every mental health field.

Removing a name from a journal entry is not HIPAA de-identification. The Privacy Rule describes expert determination or removal of a specified identifier list, plus no actual knowledge that the remainder could identify the person. (HHS de-identification guidance, accessed November 7, 2026).

A practical readiness review

Document who operates the app and whether any covered entity, business associate, or Part 2 program is involved. Inventory note types. Keep development on invented, labeled synthetic patients; do not paste real session text into a builder. Map recipients, including model APIs, covering clinicians, family contacts, and the EHR. If HIPAA applies and a vendor will handle PHI on a covered entity's behalf, review the written agreement and covered services first. Test whether one patient can read another's journal.

Review clinical safety separately. A private mood tracker can still give unsafe advice about stopping medication or bury a crisis disclosure.

Next step

The free 30-minute call is a conversation about your app or your practice's technology with Palo Alto Health Labs. It is not a completed security or compliance audit, not a certification, and not a legal opinion. Do not send patient records, screenshots of real records, or credentials when booking. Booking this conversation does not establish an engagement, a price, or an open time.

Sources

All accessed November 7, 2026 (America/Los_Angeles).

  1. HHS, Covered Entities and Business Associates (content last reviewed August 21, 2024).
  2. HHS FAQ 2088, mental health information and psychotherapy notes (content last reviewed September 12, 2017).
  3. HHS, Understanding Part 2 (content last reviewed September 29, 2026).
  4. Federal Register, 89 FR 12472 (February 16, 2024).
  5. 42 CFR 2.12, Applicability.
  6. HHS, De-identification guidance.

See Fabrica and book a 30-minute call

A free 30-minute call about your app or your practice's technology. You leave with a recommended next step. It is not an audit, a certification or legal advice.

See Fabrica and book a 30-minute call

How the call works · Send a short note