Specialty × workflow
Patient Intake Apps for Sleep 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: Yes, a vibe-coded sleep questionnaire app can collect sleepiness scores, bed-partner reports, sleeping-pill use and drowsy-driving answers, if every vendor that stores or sends them signs a BAA and answers leave the practice only for treatment or on a basis your privacy officer confirms. Never let the app auto-send answers to an employer, carrier or medical examiner.
A sleep questionnaire is easy to vibe code: a sleepiness scale that scores itself, a snoring section, a medication list, a few questions about driving. The hard part is not the form. It is where the answers go after the patient taps Submit. For the general intake build, start with the step-by-step intake app walkthrough. For every app a sleep practice builds, see the sleep medicine HIPAA guide.
What the rules say, in their own words (checked November 15, 2026)
Who may receive questionnaire answers. The HIPAA Privacy Rule sets a default:
“Except as otherwise permitted or required by this subchapter, a covered entity may not use or disclose protected health information without an authorization that is valid under this section.”
Sending answers to another clinician who treats the patient is one of the permitted paths: a covered entity may disclose PHI (protected health information) for the treatment activities of a health care provider (HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations., verified November 15, 2026). A trucking carrier or an employer's safety manager is not a treating provider. Ask counsel what basis, if any, covers a DOT medical examiner before your app sends anything there.
Why a driver's answers are high-stakes. Under FMCSA (Federal Motor Carrier Safety Administration) rules, a person is physically qualified to drive a commercial vehicle only if, among other conditions, the person “Has no established medical history or clinical diagnosis of a respiratory dysfunction likely to interfere with his/her ability to control and drive a commercial motor vehicle safely” (Federal Motor Carrier Safety Administration (FMCSA), eCFR :: 49 CFR 391.41 -- Physical qualifications for drivers, verified November 15, 2026). That rule does not name sleep apnea and does not tell your practice to report anything. It explains why a commercial driver's answers can bear on whether that driver keeps driving for work.
Why the answers must stay intact. Medicare covers attended in-lab polysomnography (PSG, the overnight sleep study) to aid the diagnosis of obstructive sleep apnea (OSA) in beneficiaries who have clinical signs and symptoms indicative of OSA (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026). For Medicare patients, the questionnaire may be where those signs and symptoms are first written down, so it needs to stay exactly as the patient answered it.
Sleep-tracker data. The FTC Health Breach Notification Rule lists apps and connected devices that track sleep among health care services or supplies (Federal Trade Commission, eCFR :: 16 CFR Part 318 -- Health Breach Notification Rule, verified November 15, 2026). But that rule does not apply to HIPAA covered entities (Federal Trade Commission, eCFR :: 16 CFR Part 318 -- Health Breach Notification Rule, verified November 15, 2026). So when a patient uploads a tracker export to your intake, the FTC rule is not the one your practice works under. Treat the file like any other intake answer.
Teens. Where law gives a parent authority over a minor's health care decisions, the practice must treat the parent as the minor's personal representative, with exceptions such as care the minor may lawfully consent to alone (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026).
Where the answers in a sleep questionnaire travel
A sleep intake is a long symptom questionnaire, not a demographics form. A typical one holds:
- Sleepiness scale answers and the score the app computes from them.
- Snoring, gasping and witnessed breathing pauses, plus neck size, height and weight for BMI.
- Sleeping pills and sedatives. Zolpidem (DEA (eCFR), 21 CFR 1308.14 -- Schedule IV., verified November 15, 2026) and suvorexant (DEA (eCFR), 21 CFR 1308.14 -- Schedule IV., verified November 15, 2026) are both Schedule IV controlled substances.
- Shift work and a driving section: drowsy driving, near-misses, and whether the patient holds a commercial driver's license.
A second person answers too. The bed partner is often the only witness to the breathing pauses. A simple build sends the partner a link the patient forwards, so a second person types into the patient's record from a different phone. Parents fill in the pediatric version.
Files arrive from consumer apps. Patients attach sleep-tracker screenshots and exports. If the app offers no upload route, those files can arrive by text or email instead.
Then the answers fan out. They go into the builder's database, the clinician's evaluation, the test order and the record of whoever referred the patient. In sleep medicine the referral source may not be treating the patient at all: a trucking carrier, a DOT medical examiner, or an employer's safety program sending a driver for evaluation. Any vendor that stores or sends the answers for you is a business associate (a company handling PHI on your behalf) (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026) and needs a BAA. Any recipient outside the practice needs a legal basis to receive the answers, such as treatment or a signed authorization.
What this means for your app
The referral field is the riskiest field on the form. If one field holds both a pulmonologist and a carrier's safety manager, any feature that sends to it can send to the wrong kind of recipient. For referral-tool design in general, see the patient referral tool guide.
Front desk does not need the driving answers. Covered entities must make reasonable efforts to limit PHI to the minimum necessary for the purpose (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). Schedulers need the name and the study date, not the sleeping-pill list or the near-miss answer.
The questionnaire becomes a clinical document. If a score can be edited quietly after the visit, the record behind the study order can no longer be trusted. Systems holding ePHI (electronic PHI) need audit controls that record and examine activity (HHS (eCFR), 45 CFR 164.312 -- Technical safeguards., verified November 15, 2026).
Form tools and notification emails. If you built on Jotform, its HIPAA features need a Gold or Enterprise plan, HIPAA turned on in settings, and a signed BAA (Jotform, HIPAA Frequently Asked Questions, verified November 26, 2026). Turning HIPAA on also stops submission data from appearing in notification emails (Jotform, HIPAA Frequently Asked Questions, verified November 26, 2026). With any form tool, check what its notification emails contain before the first real patient.
Reminder texts. If the app texts patients to finish the questionnaire, keep answers out of the message and see whether Twilio signs a BAA.
How this goes wrong: the summary that went to the driver's employer
This is a hypothetical. Imagine a sleep physician who vibe codes a questionnaire app with an auto-send feature: when a patient finishes, the app emails a summary to the referral source, so referring clinicians get the sleepiness score and symptom answers without a phone call.
A commercial driver is sent in by his carrier. The front desk types the carrier's safety manager into the referral-source email field, because that is who called to book. Overnight the app emails the employer the driver's sleepiness score, his answer admitting he dozed off at the wheel last month, and his sleeping-pill use. No authorization is on file.
FMCSA physical qualification includes having no clinical diagnosis of a respiratory dysfunction likely to interfere with safe driving (Federal Motor Carrier Safety Administration (FMCSA), eCFR :: 49 CFR 391.41 -- Physical qualifications for drivers, verified November 15, 2026), so those answers bear directly on whether he can keep driving commercially. If counsel concludes the email was an impermissible disclosure, it is presumed to be a breach unless a risk assessment shows a low probability the PHI was compromised (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026). The email cannot be recalled.
The cause was a data-model shortcut: one field for two kinds of recipient, and one send rule for both. For what typically follows an intake exposure, see what happens after an intake app exposes records.
The sleep medicine additions to the intake checklist
Everything on the general intake checklist still applies. A sleep questionnaire adds the items below, mostly because a second person answers, the referral source may be an employer, and the answers support a study order.
- Two referral fields, not one. Referring clinician (a treatment disclosure) and employer, carrier or medical examiner (no automatic sending; a signed HIPAA authorization, reviewed by your privacy officer, before anything goes out).
- No auto-send outside the practice. No email, webhook or integration fires from questionnaire answers to anyone outside the practice. Summaries go only to named clinician recipients, and each send is logged.
- Bed partner inside the patient's record. Collect the partner's section in the patient's own session or through a single-use link tied to that patient's record. No separate partner account, and no more partner contact detail than you need.
- Tracker files by upload only. Accept sleep-tracker exports and screenshots only through upload into BAA-covered storage. Do not ask patients to text them. Do not connect a consumer sleep app by API until you know what it sends and where.
- Lock the answers. Store the raw answers and the computed score together, lock them after the visit, and log any edit.
- Driving and sedative answers are clinician-only. Hide them from scheduling and billing screens.
- Form tool tier first. If a form tool collects the questionnaire, confirm the HIPAA tier and BAA and check what notification emails contain.
- Pediatric version. Decide with counsel which items a parent sees when a teen may lawfully consent to their own care under your state's law.
- Synthetic test patients. Debug scoring with made-up answers. If a real questionnaire already went into builder chat, see what to do after pasting patient data into ChatGPT.
Related sleep medicine and intake guides
The same patient's data moves on to other sleep apps: sleep study results delivery, sleep study prior authorization and online scheduling for sleep practices. To compare intake across specialties, see urgent care intake, where employers also pay for visits, pain medicine intake and med spa intake.
Keep, refactor, or rebuild?
The questions, scoring and screens of a sleep questionnaire can usually stay. What usually changes is underneath: the single referral field becomes two, any auto-send feature comes out, answers lock after the visit with an edit log, and the form tool, storage and email services move under BAAs. That is a refactor of data flow and integrations, not a new app.
Frequently asked questions
Can my sleep questionnaire app send the sleepiness score to the referring doctor?
Sending PHI to another provider for that provider's treatment activities is permitted (HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations., verified November 15, 2026). Send only to named clinician recipients you have confirmed, and log each send.
A trucking company referred the patient. Can we send them the questionnaire results?
Not automatically. Outside the paths the Privacy Rule permits, a disclosure needs a valid HIPAA 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). Have your privacy officer review a signed authorization before anything goes to an employer or carrier, and ask counsel about any medical examiner request.
Does the FTC rule apply to sleep-tracker data patients upload to my intake?
The FTC Health Breach Notification Rule covers apps that track sleep (Federal Trade Commission, eCFR :: 16 CFR Part 318 -- Health Breach Notification Rule, verified November 15, 2026), but it does not apply to HIPAA covered entities (Federal Trade Commission, eCFR :: 16 CFR Part 318 -- Health Breach Notification Rule, verified November 15, 2026). Once uploaded to a covered practice's app, handle the file like any other intake answer, in BAA-covered storage.
Can the bed partner fill in part of the sleep questionnaire on their own phone?
It can work if the partner's link is single-use and tied to the patient's record, and the app stores only the contact detail it needs to send that link. Avoid a separate partner account that can see the patient's answers, and have your privacy officer review the design.
Why should questionnaire answers be locked after the visit?
For Medicare patients, in-lab PSG coverage depends on clinical signs and symptoms indicative of OSA (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026), and the questionnaire may be where they are first documented. Locking the answers protects that record, and logging every edit matches the HIPAA requirement that systems holding ePHI record and examine activity (HHS (eCFR), 45 CFR 164.312 -- Technical safeguards., verified November 15, 2026).
Palo Alto Health Labs Fabrica
Keep building. We make it safe.
Built a sleep questionnaire that already emails summaries to referral sources? This is the conversation to have before the next driver is referred.
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.
- 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.
- HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
- Federal Motor Carrier Safety Administration (FMCSA), eCFR :: 49 CFR 391.41 -- Physical qualifications for drivers. Checked November 15, 2026. Page dated eCFR text as of 2026-11-01.
- CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1). Checked November 15, 2026. Page dated PDF fetched 2026-11-15.
- Federal Trade Commission, eCFR :: 16 CFR Part 318 -- Health Breach Notification Rule. Checked November 15, 2026. Page dated eCFR text up to date as of 2026-11-12.
- Federal Trade Commission, eCFR :: 16 CFR Part 318 -- Health Breach Notification Rule. Checked November 15, 2026. Page dated eCFR text up to date as of 2026-11-12.
- 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-01.
- DEA (eCFR), 21 CFR 1308.14 -- Schedule IV.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
- 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).
- 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).
- Jotform, HIPAA Frequently Asked Questions. Checked November 26, 2026.
- HHS (eCFR), 45 CFR 164.402 -- 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).