Specialty × workflow
Lab Results Delivery 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: A sleep study results app you built can deliver results under HIPAA when every service that stores or sends the signed report or the raw overnight recording is covered by a BAA, and access is limited by role and logged. Keep raw recordings clinician-side, and release signed reports when final instead of holding them all for the CPAP visit.
A sleep study result is not one number. It is a signed interpretation built on a full night of recorded signals, and both pieces are patient data. A results app has to decide which piece goes to whom, and when.
For the general version, see the lab results delivery app guide. For supplier handoffs and the rest of a sleep practice's apps, see the sleep medicine guide.
What the rules say, in their own words (checked November 15, 2026)
When results must reach the patient
ONC, the federal health IT office, has answered the question every results app runs into: can a practice hold results until a clinician has looked at them?
“It would likely be considered an interference for purposes of information blocking if a health care provider established an organizational policy that, for example, imposed delays on the release of lab results for any period of time in order to allow an ordering clinician to review the results or in order to personally inform the patient of the results before a patient can electronically access such results”
In plain terms, ONC treats a standing review hold as likely information blocking. The guidance speaks of lab results; ask counsel before treating signed sleep study reports any differently. ONC also says a blanket delay on routine results does not qualify for the Preventing Harm Exception. Only individual, good-faith clinician decisions can. (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Would the Preventing Harm Exception cover a 'blanket' several day delay on the release of laboratory or other test results to patients so an ordering clinician can evaluate each result for potential risk of harm associated with the release?, verified November 15, 2026) Following one patient's own request to wait would likely not be interference. (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Can an actor grant a patient's request to delay the release of a patient's test result(s) (e.g., laboratory or image result(s)) to the patient without implicating the information blocking regulations?, verified November 15, 2026)
The device record is clinical data
Medicare's coverage decision for sleep testing describes what a Type III home sleep test device records:
“Type III monitors have a minimum of 4 monitored channels including ventilation or airflow (at least two channels of respiratory movement or respiratory movement and airflow), heart rate or ECG, and oxygen saturation.”
Once that recording is filed under a patient's name in your systems, every channel deserves the same protection as the chart.
Copies, outside scorers and sharing
When a patient asks for an electronic copy of PHI you keep electronically, you must provide it in the form and format requested if readily producible, or in an agreed readable electronic format, (HHS (eCFR), 45 CFR 164.524 -- Access of individuals to protected health information., verified November 15, 2026) and act on the request within 30 days. (HHS (eCFR), 45 CFR 164.524 -- Access of individuals to protected health information., verified November 15, 2026) A company that creates, receives, maintains or transmits PHI on your behalf is a business associate (an outside company handling PHI for you), (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026) and so is its subcontractor. (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026) Uses and disclosures should be limited 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) although that rule does not apply to disclosures to a health care provider for treatment. (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026) Systems holding electronic PHI need audit controls that record activity. (HHS (eCFR), 45 CFR 164.312 -- Technical safeguards., verified November 15, 2026)
What a sleep study result contains, and the path it takes to the patient
Every study produces two data objects that need different handling.
- The signed interpretation. It usually includes the AHI (apnea hypopnea index), which CMS defines this way: “The apnea hypopnea index (AHI) is equal to the average number of episodes of apnea and hypopnea per hour.” (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026) It also includes the oxygen nadir (the lowest oxygen level of the night), sleep efficiency, a hypnogram (a chart of sleep stages across the night) and the physician's plan.
- The raw recording behind it. A Type III home sleep test records at least four channels, covering breathing, heart rate or ECG, and oxygen saturation. (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026) Some home monitors also use an actigraphy algorithm (movement-based) to estimate sleep and wake periods. (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026) An in-lab polysomnogram (PSG) adds brain waves, eye movements and muscle activity. (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026) Some labs record video too. One night makes a large file, and every minute of it belongs to one named patient.
The raw file often travels a long way before your app sees anything:
- From the home test device or the lab's recording system into the device maker's software or cloud.
- Sometimes on to a remote scoring service, where outside technologists score the night.
- To the interpreting physician, who signs the report.
- Only then into the results app, which sends the signed report to the patient, the referring physician, a dentist fitting an oral appliance, and the CPAP supplier.
The raw recording should stay with clinicians and scorers unless the patient asks for a copy. Most of the risk in a sleep results app sits at the hand-offs between these steps, and in the copies of the raw file people make along the way.
What this means for your app
- Two stores, two permission sets. Signed reports can be patient-visible. Raw recordings belong in separate storage that only clinicians and assigned scorers can open. HIPAA's minimum necessary rule asks you to decide which staff roles need which kinds of PHI to do their jobs. (HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026) A scheduler needs the study date, not the night's oxygen tracing. One shared bucket means one permission mistake exposes whole nights of data.
- The scoring service is in your chain. A company that scores studies for your practice receives and stores PHI for you, which is what makes a vendor a business associate. Confirm its BAA with your privacy officer. Give it logins that see only the studies assigned to it, and log each view.
- The release rule is one setting. Ask a builder to show results only after the follow-up visit and you may get a single switch that holds every report. That switch is a practice-wide policy. Build a per-patient delay the patient can choose instead.
- Debugging with a real export. Exports are large and oddly formatted, so it is tempting to drag one into builder chat or save it in the project. Vercel advises keeping development, staging and production separate so PHI never reaches preview or test deployments. (How to build and maintain HIPAA-compliant applications on Vercel, verified November 15, 2026) GitHub says it does not provide BAAs, (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) so a real export committed to a GitHub repository sits outside any BAA with GitHub. See Vercel and GitHub.
- AI help with interpretations. If the app asks a model to draft a plain-language summary of the report for the patient, that call carries PHI. OpenAI requires a BAA before its API is used with PHI. (Getting a Business Associate Agreement for the OpenAI API | OpenAI Help Center, verified November 27, 2026) See the OpenAI API and the Anthropic API.
How this goes wrong: a home sleep test export used as sample data
Hypothetical. A sleep physician is building a results screen that charts oxygen saturation and events per hour from home sleep test exports. The parser fails on a real export. He drags the patient's file into the builder chat and asks the AI to fix it. The builder fixes the parser and, so the chart has something to show, saves the file in the project's public folder as sample data. The project syncs to a repository and deploys to a preview URL, where anyone with the link can download the file.
The export's header carried the patient's name, date of birth and the device serial number. The name identifies the patient outright. Under HIPAA's Safe Harbor method of de-identification, birth dates and device serial numbers are both on the list of identifiers that must be removed. (HHS (HIPAA Privacy Rule), § 164.514 Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026) (HHS (45 CFR), 45 CFR 164.514 (eCFR), verified November 15, 2026) A full night of breathing, heart and oxygen data now sits in the builder's chat history, the repository and a preview site. In this example, the physician has no BAA covering any of them.
The same build has a second problem. To make sure every patient hears an abnormal result from a clinician, the physician set reports to stay pending until the CPAP consult, which is often weeks away. Patients who log in see pending long after their report is signed. That is close to the blanket hold ONC describes as likely interference. Counsel now has two separate questions: a possible breach from the sample file, and information blocking exposure from the release rule. If a real export has already gone into builder chat, start with what to do after pasting patient data into an AI tool.
What changes from the generic results checklist for sleep studies
Start with the general checklist in Building Your Own Lab Results Delivery App: The HIPAA Guide. For sleep medicine, add or tighten these:
- Separate stores: signed reports in patient-visible storage; raw recordings in clinician-and-scorer storage. The patient view never links a raw file by default.
- Scoring service under a BAA: agreement signed before the first study goes out, scorer logins limited to the studies assigned to them, every scorer view logged.
- Research data for building: build and test charts with research sleep data, such as PAHL's list of obstructive sleep apnea datasets or the sources in our PhysioNet guide. Never paste a real export into builder chat or save one in the project. Check exported files for embedded names, dates and device serials before any file leaves the clinical system.
- Release when signed: no blanket hold until the CPAP consult. Offer a per-patient delay only when the patient asks for one, and record the request.
- Raw-copy plan: decide with your privacy officer what a patient's request for an electronic copy covers. If it includes the recording, settle the format, the file size and a secure download before the first request, so you can meet the 30-day window.
- Send outside recipients only what they need: the dentist and the CPAP supplier get the signed report and the order, not the raw night. The minimum necessary rule may not require this for treatment disclosures, so it is a design choice, and a sensible one.
- Device turnover: confirm returned home test devices are cleared of the previous patient's recording after upload, following the maker's instructions, and that the upload software uses one account per staff member, not a shared one.
Compare urgent care results (callbacks after discharge) and pain medicine results (urine drug screens). In sleep medicine the hazard is file size and the shortcuts it invites. See also sleep medicine patient portals, sleep intake apps and sleep insurance verification apps.
Keep, refactor, or rebuild?
A results app built by the physician who reads the studies usually shows the right things, so the screens can stay. The refactor is in the plumbing: separate raw and signed storage, a scoring service under a BAA with narrow logins, release on signature instead of at the CPAP consult, and test data that never came from a real patient.
The report screen, the charts and the recipient list a sleep physician designs are usually worth keeping. What changes underneath is storage (split in two), the scorer accounts, the release rule and where test files come from. If the builder cannot export code and data in a usable form, the current app becomes the specification for a rebuild. See keep, refactor or rebuild.
Frequently asked questions
What should a patient see in a sleep study results app?
The signed report: AHI, oxygen nadir, sleep efficiency, the hypnogram, and the physician's interpretation and plan. CMS defines AHI as the average number of apnea and hypopnea episodes per hour. (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026) The raw recording stays clinician-side unless the patient asks for a copy.
Can we hold sleep study results until the CPAP consult?
Not as a blanket rule. ONC says holding lab results so the clinician can review them or tell the patient first would likely be interference. (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, When would a delay in fulfilling a request for access, exchange, or use of EHI be considered an interference under the information blocking regulation?, verified November 15, 2026) A patient's own request to wait is treated differently. (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Can an actor grant a patient's request to delay the release of a patient's test result(s) (e.g., laboratory or image result(s)) to the patient without implicating the information blocking regulations?, verified November 15, 2026) Ask counsel how this applies to your study reports.
Does our remote scoring company need a BAA?
A company that receives and maintains PHI on your behalf is a business associate under HIPAA's definition. (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026) Its own subcontractors are business associates too. (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026) Confirm the agreement with your privacy officer before the first study goes out.
Does the dentist or CPAP supplier need a BAA to receive the report?
Generally not for the report itself when it is shared for the patient's treatment. HIPAA lets you disclose PHI for another provider's treatment activities, (HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations., verified November 15, 2026) and a provider receiving it for treatment is not your business associate for that disclosure. (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026) Have your privacy officer confirm each recipient type. The service your app uses to send or store the report still needs a BAA.
Can a patient ask for the raw sleep study file?
Patients can ask for an electronic copy of PHI you keep electronically, in the format they request if readily producible, (HHS (eCFR), 45 CFR 164.524 -- Access of individuals to protected health information., verified November 15, 2026) and you must act within 30 days. (HHS (eCFR), 45 CFR 164.524 -- Access of individuals to protected health information., verified November 15, 2026) Ask your privacy officer whether the recording is included, and plan a secure download. See export workflows for access requests.
Can I use one real export to debug my chart code?
Use research sleep recordings instead. A name identifies the patient outright, and birth dates and device serial numbers are on HIPAA's Safe Harbor identifier list. (HHS (HIPAA Privacy Rule), § 164.514 Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026) (HHS (45 CFR), 45 CFR 164.514 (eCFR), verified November 15, 2026) Builder chats, repositories and preview sites are outside your protections unless each one is covered by a BAA. GitHub, for one, says it does not provide BAAs. (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026)
Palo Alto Health Labs Fabrica
Keep building. We make it safe.
Already sending sleep study results from an app you built? Talk it through before the next night of data goes in.
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.
- ONC / Assistant Secretary for Technology Policy (ASTP), HHS, When would a delay in fulfilling a request for access, exchange, or use of EHI be considered an interference under the information blocking regulation?. Checked November 15, 2026. Page dated Last Updated: September 12, 2025.
- ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Would the Preventing Harm Exception cover a 'blanket' several day delay on the release of laboratory or other test results to patients so an ordering clinician can evaluate each result for potential risk of harm associated with the release?. Checked November 15, 2026. Page dated Last Updated: September 14, 2025.
- ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Can an actor grant a patient's request to delay the release of a patient's test result(s) (e.g., laboratory or image result(s)) to the patient without implicating the information blocking regulations?. Checked November 15, 2026. Page dated Last Updated: September 12, 2025.
- 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.
- HHS (eCFR), 45 CFR 164.524 -- Access of individuals to protected health information.. 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 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.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).
- 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).
- HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01 point in time.
- How to build and maintain HIPAA-compliant applications on Vercel. Checked November 15, 2026. Page dated Published 2025-11-03; last_updated 2026-10-02 (per page metadata).
- GitHub Enterprise Trust Center (FAQ). Checked November 15, 2026.
- 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).
- HHS (HIPAA Privacy Rule), § 164.514 Other requirements relating to uses and disclosures of protected health information.. Checked November 15, 2026. Page dated current (eCFR).
- 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.