Specialty × workflow

Patient Intake Apps for Pain Medicine Practices: HIPAA Rules for Apps You Build Yourself

Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.

Short answer: For a pain practice covered by HIPAA, a self-built intake app needs a signed BAA with every service that stores, reads or summarizes answers and uploads, plus access controls and logging. Show opioid and substance use answers only to clinicians, keep records sent with a 42 CFR Part 2 notice as original tagged files, and review each release by hand.

A pain management intake form asks for every opioid the patient has taken, who prescribed it, an opioid-risk questionnaire, and a stack of outside records. The trouble usually starts after Submit: where answers and uploads go, and who can later pull them out. A BAA (business associate agreement) is the contract HIPAA expects with any vendor that handles patient data for you. For the general intake build, start with the step-by-step intake app walkthrough. For the specialty overview, see the pain medicine HIPAA guide.

What the rules say, in their own words (checked November 15, 2026)

Substance use history you record yourself. 42 CFR Part 2 is the federal confidentiality rule for substance use disorder (SUD) records. It says:

“a treating provider who is not subject to this part may record information about a SUD and its treatment that identifies a patient. This is permitted and does not constitute a record that has been redisclosed under this part.”

It adds that the act of recording SUD information does not by itself make that provider's medical record subject to Part 2 (HHS/SAMHSA (eCFR), 42 CFR 2.12 -- Applicability., verified November 15, 2026).

Records you receive from someone else. Part 2's limits on use and redisclosure (passing records on to someone else) reach people who receive records directly from a Part 2 program, covered entity, business associate, intermediary or other lawful holder and who are notified of the redisclosure prohibition under section 2.32 (HHS/SAMHSA (eCFR), 42 CFR 2.12 -- Applicability., verified November 15, 2026). Each disclosure made with the patient's written consent must carry one of the 2.32 statements (HHS/SAMHSA (eCFR), 42 CFR 2.32 -- Notice and copy of consent to accompany disclosure., verified November 15, 2026). The short version reads: “42 CFR part 2 prohibits unauthorized use or disclosure of these records.” (HHS/SAMHSA (eCFR), 42 CFR 2.32 -- Notice and copy of consent to accompany disclosure., verified November 15, 2026) A covered entity that receives records under a single consent for all treatment, payment and health care operations is not required to segregate them (HHS/SAMHSA (eCFR), 42 CFR 2.12 -- Applicability., verified November 15, 2026). Either way, record which consent and notice each file arrived with, so counsel can work out which rules apply to it.

Whether your practice is itself a Part 2 program is a separate question for counsel; the pain medicine guide covers the definition (HHS/SAMHSA (eCFR), 42 CFR 2.11 -- Definitions., verified November 15, 2026). The 2024 Part 2 rule required compliance by February 16, 2026 (HHS, Federal Register, 89 FR 12472 (February 16, 2024) - Confidentiality of Substance Use Disorder (SUD) Patient Records, verified November 15, 2026).

Requests from adjusters and attorneys. HIPAA lets a covered entity disclose PHI as authorized by, and to the extent necessary to comply with, workers' compensation laws (HHS (eCFR), 45 CFR 164.512 -- Uses and disclosures for which an authorization or opportunity to agree or object is not required., verified November 15, 2026). Outside the permissions the Privacy Rule lists, a disclosure needs a valid patient authorization (U.S. Department of Health and Human Services (HHS), eCFR :: 45 CFR 164.508 -- Uses and disclosures for which an authorization is required, verified November 15, 2026). And under HIPAA's minimum necessary standard, covered entities must make reasonable efforts to limit PHI to what the purpose requires (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026).

Where patient data travels in a pain management intake form

A pain intake packet is a risk assessment as much as a registration form. A typical one collects:

  • Pain location on a body diagram, pain scores, and what makes it better or worse.
  • Prior injections, ablations and surgery, with imaging reports.
  • Every opioid and benzodiazepine taken now or before, with doses, prior prescribers and pharmacies. Oxycodone (DEA (eCFR), 21 CFR 1308.12 -- Schedule II., verified November 15, 2026) and hydrocodone (DEA (eCFR), 21 CFR 1308.12 -- Schedule II., verified November 15, 2026) are both Schedule II drugs.
  • An opioid-risk questionnaire asking about personal and family substance use and psychiatric history.
  • For injury cases, a workers' compensation claim number and adjuster, or a personal-injury attorney.
  • Uploads: MRI reports, a printed state prescription monitoring report, notes from a previous pain clinic, and sometimes discharge records from an SUD treatment program carrying the Part 2 notice.

So the app ends up holding two kinds of SUD information. One is what the patient tells your form, which your practice records itself. The other is what an outside program sent under the 2.32 notice. In a database they look the same. Unless your practice is itself a Part 2 program, Part 2 treats them differently.

From the form, answers land in the builder's database and files in its storage. Some builds then send each upload to an AI model for a summary. Later the data moves to the EHR, the billing company, and the adjusters and attorneys who ask for records. Each hop is either a vendor that receives or stores PHI for you, which makes it a business associate (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026), or an outside recipient who needs a legal basis to receive it.

What this means for your app

Free text erases where a record came from. When an upload is run through OCR (software that turns a scanned page into text) or summarized into a notes field, the result no longer shows its source or the notice that came with it. Keep the original file as the record, and make any extracted text point back to it.

An AI summarizer is a vendor receiving PHI. OpenAI's Services Agreement says “Customer agrees not to use the Services to create, receive, maintain, transmit, or otherwise process Protected Health Information, unless it has signed the Healthcare Addendum.” (OpenAI Services Agreement | OpenAI, verified November 27, 2026) For its API, OpenAI requires a signed BAA (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 27, 2026) and an organization set up with what it calls Modified Retention (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026). Anthropic's BAA covers its first-party API (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026), but not every API feature. Its Files API and Batch API, two features an upload summarizer might use, are listed as not covered (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026). See the OpenAI API BAA guide and the Anthropic API BAA guide.

Treat the risk questionnaire as clinician-only. Systems holding ePHI (electronic PHI) need access controls so only people granted access reach it (HHS (eCFR), 45 CFR 164.312 -- Technical safeguards., verified November 15, 2026). They also need audit controls that record activity (HHS (eCFR), 45 CFR 164.312 -- Technical safeguards., verified November 15, 2026). In a pain intake app, that means front desk can see the claim number but not the questionnaire, and every view of it leaves a log entry.

Form tools. If Jotform collects the packet, its HIPAA features require a Gold or Enterprise plan and a signed BAA (Jotform, HIPAA Frequently Asked Questions, verified November 26, 2026). Jotform also says enabling HIPAA keeps submission data out of its notification emails (Jotform, HIPAA Frequently Asked Questions, verified November 26, 2026). Without it, a new-submission alert could put a patient's opioid list in an ordinary inbox.

How this goes wrong: the AI pre-visit summary that dropped a Part 2 notice

This is a hypothetical. Imagine a pain physician whose vibe-coded intake app asks new patients to complete an opioid-risk questionnaire and upload prior records. To save chart-prep time, the app sends every upload to a general-purpose AI API on the physician's own account, with no BAA or healthcare addendum. It saves a one-paragraph pre-visit summary in a free-text field on the chart-prep page.

One patient, injured in a car crash, uploads discharge records from an opioid treatment program. The PDF carries the Part 2 notice. The summary keeps the methadone history and drops the notice. The original PDF is overwritten by its OCR text to save storage.

Months later the patient's personal-injury attorney sends a signed authorization for records about the crash. The front desk prints the chart-prep page, because it looks like the tidiest overview. It includes the AI summary and the questionnaire answers.

Nobody can now tell which sentences came from the Part 2 records, and the file that carried the notice is gone. The AI vendor received every upload, including that one, with no agreement in place. Counsel now has two disclosures to sort out, and the app's logs cannot show who opened or printed the page. It took no attacker, only a convenience summary and a print button. For what follows an exposure like this, see what to do first when an app sent PHI to a model without a BAA.

The pain medicine additions to the intake checklist

Everything in the general intake walkthrough still applies. Pain medicine adds these seven items.

  1. Original files, tagged. Store outside records as received, tagged with source and date, plus a received-with-Part-2-notice flag. Never overwrite the original with OCR text, and keep the notice attached wherever the file goes.
  2. No flattening. Do not let OCR or an AI summarizer turn uploads into loose free text. If you summarize at all, use a model under a BAA and link each summary to its source file.
  3. A restricted clinical section. The opioid-risk questionnaire and substance use history are visible to clinicians, not to front desk, schedulers or billing. Log every view and every print.
  4. Requesters are contacts, not users. Adjuster and attorney fields hold contact details only. No print-everything or export-packet button. Build each release per request, reviewed by your privacy officer and limited to what the authorization or the workers' compensation law covers.
  5. One line for counsel. Before launch, ask whether your practice is a Part 2 program, and write down the answer and date.
  6. Synthetic test packets. Build and debug with made-up intake packets. Never paste a real prescription monitoring report, prior-prescriber note or SUD program record into builder chat to fix parsing (if it already happened, see what to do after pasting patient data into ChatGPT).
  7. Quiet alerts. Before the first real patient, confirm the form tool's HIPAA tier and BAA, then submit a fake packet and read every alert it sends. No opioid names or questionnaire answers should appear in emails or texts.

The same pain patient touches other apps. See pain practice portals and medication requests, drug screen results delivery, pain management consent forms and opioid agreements and AI scribe and documentation apps for pain practices. To compare intake across specialties, see urgent care intake, med spa intake and sleep medicine intake.

Keep, refactor, or rebuild?

Verdict: Keep or Refactor

The questions and screens of most pain intake forms can stay. What usually has to change is underneath: how uploads are stored and tagged, whether an AI summarizer runs and under what agreement, which roles can open the risk questionnaire, and any one-click export or print-all view. That is a refactor of storage, permissions and integrations, not a new app. A rebuild is only worth considering if the builder cannot export the original uploaded files.

Frequently asked questions

What should a pain management intake form ask?

Typically pain location and scores, prior procedures and imaging, current and past opioids and benzodiazepines with prescribers and pharmacies, an opioid-risk questionnaire, and injury-claim contacts. Your clinicians decide the content. The app's job is to keep the risk questionnaire and substance use history in a section only clinicians can open.

We received outside records with a Part 2 notice on them. What does our app need to do with them?

Part 2's use and disclosure restrictions apply to recipients who were notified (HHS/SAMHSA (eCFR), 42 CFR 2.12 -- Applicability., verified November 15, 2026). Keep the file and notice together and ask counsel how you may use and redisclose it. If the records came under a single consent for treatment, payment and health care operations, a covered entity is not required to segregate them (HHS/SAMHSA (eCFR), 42 CFR 2.12 -- Applicability., verified November 15, 2026).

Does substance use history patients enter on my intake form fall under Part 2?

Part 2 says a treating provider that is not subject to Part 2 may record SUD information about its patient, and that this is not a redisclosure (HHS/SAMHSA (eCFR), 42 CFR 2.12 -- Applicability., verified November 15, 2026). Recording it does not by itself make that provider's record subject to Part 2 (HHS/SAMHSA (eCFR), 42 CFR 2.12 -- Applicability., verified November 15, 2026). Whether your practice is itself a Part 2 program is a question for counsel.

Can my intake app use AI to summarize uploaded records?

Only through a service covered by a BAA, and only the parts of it that the BAA covers. For the OpenAI API, that means a signed BAA (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 27, 2026) and Modified Retention on your organization (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026). Anthropic's BAA covers its first-party API (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026), but not its Files API or Batch API (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026). Link every summary back to its source file so Part 2 material stays identifiable.

Can the app send intake records to a workers' comp adjuster or an injury attorney?

HIPAA allows workers' compensation disclosures as authorized by, and to the extent necessary to comply with, those laws (HHS (eCFR), 45 CFR 164.512 -- Uses and disclosures for which an authorization or opportunity to agree or object is not required., verified November 15, 2026). An attorney's request usually needs a valid patient authorization, because disclosures outside the Privacy Rule's listed permissions require one (U.S. Department of Health and Human Services (HHS), eCFR :: 45 CFR 164.508 -- Uses and disclosures for which an authorization is required, verified November 15, 2026). Send only what the law or the authorization covers, and have your privacy officer review each release rather than letting the app send anything automatically.

Palo Alto Health Labs Fabrica

Keep building. We make it safe.

Built a pain intake form that already collects opioid histories and outside records? This is the conversation to have before the next records request arrives.

Fabrica moves the patient data in your vibe-coded app into an environment your practice owns, built for HIPAA compliance, with a BAA. You keep building in the tool you already use. Start with a 30-minute call about what you have built and where patient data goes today.

See how Fabrica works and book a 30-minute call

Please do not send patient information when you get in touch. The call is a conversation, not an audit or legal advice.

Sources

Every vendor statement on this page comes from the vendor's own terms, documentation or trust pages, or from the regulator, opened and read on the date shown. Vendor terms change; confirm the current version and your own signed agreement before relying on it. This page is general information, not legal advice.

  1. HHS/SAMHSA (eCFR), 42 CFR 2.12 -- Applicability.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  2. HHS/SAMHSA (eCFR), 42 CFR 2.32 -- Notice and copy of consent to accompany disclosure.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  3. HHS/SAMHSA (eCFR), 42 CFR 2.11 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  4. HHS, Federal Register, 89 FR 12472 (February 16, 2024) - Confidentiality of Substance Use Disorder (SUD) Patient Records. Checked November 15, 2026. Page dated 2024-02-16 (published).
  5. HHS (eCFR), 45 CFR 164.512 -- Uses and disclosures for which an authorization or opportunity to agree or object is not required.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  6. U.S. Department of Health and Human Services (HHS), eCFR :: 45 CFR 164.508 -- Uses and disclosures for which an authorization is required. Checked November 15, 2026. Page dated eCFR current text.
  7. HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  8. DEA (eCFR), 21 CFR 1308.12 -- Schedule II.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  9. HHS (eCFR), 45 CFR 160.103 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  10. OpenAI Services Agreement | OpenAI. Checked November 27, 2026. Page dated Updated: December 1, 2025; Effective: January 1, 2026.
  11. Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center. Checked November 27, 2026. Page dated Updated: 13 days ago (relative date as displayed on 2026-11-15, i.e. ~2026-11-02).
  12. HIPAA eligible products and functionality | OpenAI Help Center. Checked November 27, 2026. Page dated Updated: 5 days ago (relative date as displayed on 2026-11-15, i.e. ~2026-11-10).
  13. Anthropic, Business Associate Agreements (BAA) for Commercial Customers. Checked November 27, 2026.
  14. HHS (eCFR), 45 CFR 164.312 -- Technical safeguards.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  15. Jotform, HIPAA Frequently Asked Questions. Checked November 26, 2026.