Specialty × workflow
AI Documentation for Sleep Medicine: Scoring Notes, Titration Visits, and BAA Coverage
Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.
Short answer: AI documentation in sleep medicine can be built under HIPAA, but BAA coverage is checked feature by feature: a covered chat endpoint does not cover a file upload or batch feature the vendor excludes. Send only the fields each draft needs, take every AHI, oxygen and pressure value from the source export, and have the physician review and sign.
Sleep medicine generates a lot of writing that follows a pattern. Every diagnostic study needs an interpretation. Every titration night needs a summary of what pressure worked. Every new CPAP patient needs a follow-up note that says whether the treatment is helping. A physician who vibe codes an AI drafting tool for this work gets hours back each week.
The risks sit in three places: which AI feature receives the data, whether the numbers in the draft match the study, and whether the signed note still says what the physician actually checked. This page covers all three and what to add to the general AI scribe walkthrough. For every app a sleep practice builds, start with the sleep medicine HIPAA guide.
Three documents, three inputs: what the model actually sees
The scoring note
After a study is scored, the scoring software produces a summary. Its header carries the patient's name, date of birth and record number. The body holds total sleep time, sleep stages, the apnea hypopnea index (AHI, which CMS defines as the average number of apneas and hypopneas per hour (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026)), the lowest oxygen saturation, leg movements, arousals, heart rhythm notes and the technologist's comments. An in-lab study draws on EEG, eye, muscle, airflow, effort and oxygen channels (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026). The AI tool typically gets the summary, as a PDF or as extracted fields, and returns a draft interpretation for the physician to edit and sign.
The titration night
A CPAP titration produces a running log: each pressure step, the time it started, events at that pressure, mask changes, leak, position, sleep stage, and comments such as patient anxious, mask refitted at 01:40. The AI turns the log into a summary and often a suggested pressure. The chosen pressure then goes into the CPAP order.
The follow-up visit
The visit after the patient starts CPAP is where an ambient scribe (a tool that records the conversation and drafts the note) comes in. The recording holds the patient's sleepiness, mood and driving, often a bed partner's voice describing snoring, and a reading of the machine's usage data. For traditional Medicare this visit carries weight: for coverage to continue, the treating practitioner must re-evaluate the patient between day 31 and day 91 and document that the patient is benefiting (CMS, Positive Airway Pressure (PAP) Devices for the Treatment of Obstructive Sleep Apnea (L33718), verified December 3, 2026).
Where all three leave a trace
The prompt and response at the model provider. The provider's file storage if the app uploads PDFs. Audio files and transcripts. The app's logs and error tracker if they record prompts. And the builder chat, if someone pasted a real report into it while debugging.
What CMS and the AI vendors say, in their own words (checked December 3, 2026)
The signature is the physician's concurrence
CMS's Program Integrity Manual, in its instructions to Medicare review contractors, addresses AI directly:
“The treating physician/non-physician practitioner’s (NPP’s) signature on a note indicates that the physician/NPP affirms the note adequately documents the care provided. We note this type of practitioner concurrence is also required when using Artificial Intelligence (AI) technology to capture the transcription of medical record entries.”
On electronic signatures it adds that “providers need a system and software products that are protected against modification, etc., and should apply adequate administrative procedures that correspond to recognized standards and laws. The individual whose name is on the alternate signature method and the provider bear the responsibility for the authenticity of the information for which an attestation has been provided.” (CMS, Medicare Program Integrity Manual, Chapter 3 - Verifying Potential Errors and Taking Corrective Actions, verified December 3, 2026) These are Medicare review instructions, not HIPAA rules. On review, a signed AI draft is read as the physician's own affirmation.
Why the numbers have to be right
Under Medicare's national coverage rule, adults with OSA qualify for an initial CPAP period with an AHI or RDI of 15 or more (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026). Between 5 and 14, the rule needs more:
“AHI or RDI greater than or equal to 5 events and less than or equal to 14 events per hour with documented symptoms of excessive daytime sleepiness, impaired cognition, mood disorders or insomnia, or documented hypertension, ischemic heart disease, or history of stroke.”
A draft that rounds 14.6 up, or reports the REM-sleep AHI as the overall AHI, can move a patient across that line. HIPAA's Security Rule also requires policies and procedures to protect ePHI from improper alteration or destruction (HHS (eCFR), 45 CFR 164.312 -- Technical safeguards., verified November 15, 2026).
BAA coverage is per feature
Anthropic lists features its BAA does not cover:
“Batch API, Files API, Skills API, Code Execution, Web Fetch ❌ Not covered under BAA”
OpenAI permits PHI only on the endpoints it lists as eligible, once its BAA and retention requirements are met (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026). Plans matter too: OpenAI says consumer ChatGPT and ChatGPT Business are not eligible services (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026), and Anthropic says Claude Team and individual plans cannot enable HIPAA (Anthropic, HIPAA-ready Enterprise plans, verified November 27, 2026). Where the note lives matters as well: OpenAI's HIPAA terms bar using its eligible services to maintain PHI as part of a designated record set (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026).
What this means for a sleep practice's AI drafting tool
Read the export in your own code. Pull the values from the scoring software's export in your own app, on BAA-covered hosting. Send the model the fields a draft needs, keyed to a study ID rather than a name. Fewer identifiers in the prompt means less leaves your system; it does not remove the need for a BAA.
Check the feature, not the company. For each AI call, ask which endpoint or feature it uses and whether that vendor lists it as covered. A file upload, a batch job or a code-execution tool can each fall outside a BAA the chat endpoint is under; Anthropic's list above is one example. See the OpenAI API and the Anthropic API pages, and AI tools that sign a BAA for ready-made scribes.
Let the model write words, not numbers. The model can draft the narrative. AHI, RDI, oxygen nadir, sleep efficiency and titration pressures are filled into the note from the export or the technologist's log by your code. If the draft mentions a number that differs from the source, the app flags it before signing.
Make the symptom answer impossible to skip. A re-evaluation note needs the patient's response to treatment, and the scribe summary is where it gets lost. Make it a required field the physician completes.
Keep the signed note at home. The final interpretation and visit note live in your EHR or your own covered database, locked after signature, with later changes as addenda. If you need to compare drafts against real studies while building, use open data such as PhysioNet's Sleep-EDF set, which anyone may access under its license (PhysioNet, Sleep-EDF Database Expanded v1.0.0, verified November 15, 2026); see using PhysioNet data in a patient-facing app.
How this goes wrong: the uploaded scoring PDF and the AHI that crossed the line
Hypothetical. Imagine a sleep physician who vibe codes a Draft my interpretation button. The practice has a BAA with its model provider and uses its covered chat endpoint for other tools. For this one, the coding agent finds it simpler to upload each scoring PDF through the provider's file feature and then ask for a draft. In this example, the provider's own BAA page lists that file feature as not covered, but nothing in the account stops the upload. Nobody checks, because the practice has a BAA with the company.
The scoring summary for one Medicare patient shows an overall AHI of 12.8 and a REM AHI of 15.4 on the same page. The draft reads AHI 15.4, consistent with moderate obstructive sleep apnea. It is late, the narrative reads well, and the physician signs. The CPAP order goes out. Because the signed note shows an AHI above 15, nobody records whether the patient has daytime sleepiness, high blood pressure or another documented condition. For an AHI of 12.8, that documentation is what Medicare's rule asks for (CMS, Medicare National Coverage Determinations Manual, Chapter 1, Part 4 (Sections 200-310.1), verified November 15, 2026).
Count the problems. Months of full scoring reports, names and birth dates included, went to a feature outside the BAA. The privacy officer and counsel must assess that, and someone has to find and delete the uploaded files. The signed interpretation states a number the study does not support. Under CMS's manual, that signature is the physician's affirmation that the note documents the care (CMS, Medicare Program Integrity Manual, Chapter 3 - Verifying Potential Errors and Taking Corrective Actions, verified December 3, 2026). Neither problem showed on any screen.
What a sleep practice adds to the AI scribe checklist
- List every AI call by feature. Endpoint, file upload, batch, transcription, realtime. Match each against the vendor's covered list, with the date you checked.
- No PDF uploads to uncovered file features. Extract the fields in your own code and send text.
- Study ID, not name, in the prompt. Strip the report header before anything leaves your system.
- Numbers come from the source. AHI, RDI, oxygen nadir and every titration pressure are inserted by code. Label which AHI is which: overall, supine, REM.
- Mismatch check before signing. Any number in the draft that differs from the source blocks the signature until the physician resolves it.
- Threshold prompt. If the overall AHI or RDI is between 5 and 14, the note asks for the documented symptom or condition before the CPAP order can go out.
- Titration summary from the structured log. The model may summarize comments. The recommended pressure is entered by the physician.
- Required benefit field in the re-evaluation note. Objective adherence reviewed, and the patient's response, both completed by the physician.
- Sign in your system, lock after signing. Changes become dated addenda, and every edit is logged.
- Recording rules. Ask counsel what consent your state requires before an ambient scribe records a visit, including a bed partner in the room.
- Nothing real in builder chat. Debug with open or synthetic studies. If a real report was pasted, see what to do after pasting patient data into ChatGPT.
Related sleep medicine and AI scribe guides
The signed interpretation goes on to sleep study results delivery and CPAP coverage checks, and the follow-up depends on CPAP compliance messaging. For AI documentation in other specialties, compare urgent care AI scribes and pain medicine AI scribes.
Keep, refactor, or rebuild?
A sleep medicine AI drafting tool can usually keep its interface and prompts. What changes is which vendor feature receives the data, where the numbers in the note come from, and where the signed note lives. If scoring reports have already gone to a feature the vendor lists as not covered, bring in your privacy officer before changing anything.
The drafting screens and prompts usually stay. The refactor is in the plumbing: AI calls moved to covered features, field extraction in your own code, numbers inserted from the source with a mismatch check, and signed notes stored and locked in your own record system. The keep, refactor or rebuild guide walks through the decision.
Frequently asked questions
Can I use an AI scribe for CPAP follow-up visits?
Yes, if the scribe or model is under a BAA that covers the feature you use, and you review the draft. CMS's manual says practitioner concurrence is required when AI captures the transcription of medical record entries (CMS, Medicare Program Integrity Manual, Chapter 3 - Verifying Potential Errors and Taking Corrective Actions, verified December 3, 2026). Make the patient's response to treatment a field you complete yourself.
Our model provider signed a BAA. Can the app upload sleep study PDFs to it?
Only through features the BAA covers. Anthropic, for example, lists its Files API and Batch API as not covered (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026), and OpenAI permits PHI only on its listed eligible endpoints (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026). Check the vendor's list for each feature, or extract the fields yourself and send text.
Can I paste a scoring report into ChatGPT to draft the interpretation?
Not on consumer ChatGPT or ChatGPT Business, which OpenAI says are not eligible services under its BAA (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026). Use a product or API your practice has a BAA for, configured as the vendor requires.
Who is responsible if the AI draft gets the AHI wrong?
The signing physician owns the note: CMS says the signature indicates the practitioner affirms the note adequately documents the care provided (CMS, Medicare Program Integrity Manual, Chapter 3 - Verifying Potential Errors and Taking Corrective Actions, verified December 3, 2026). Build the app so key numbers come from the scoring export, not the draft, and mismatches block signing.
Where should signed sleep study interpretations be stored?
In your EHR or your own BAA-covered database, locked after signing. OpenAI's HIPAA terms, for example, bar using its eligible services to maintain PHI as part of a designated record set (OpenAI, HIPAA Implementation and Configuration Guide, verified November 27, 2026).
Palo Alto Health Labs Fabrica
Keep building. We make it safe.
Drafting sleep study interpretations or CPAP follow-up notes with an AI tool you built? This is the conversation to have before the next report goes to the model.
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.
- 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.
- CMS, Positive Airway Pressure (PAP) Devices for the Treatment of Obstructive Sleep Apnea (L33718). Checked December 3, 2026. Page dated LCD L33718 version 52; revision effective for services on or after 01/01/2024.
- CMS, Medicare Program Integrity Manual, Chapter 3 - Verifying Potential Errors and Taking Corrective Actions. Checked December 3, 2026. Page dated Section Rev. 13008, issued 12-18-24, effective 01-17-25; chapter Rev. 13971, issued 09-30-26.
- HHS (eCFR), 45 CFR 164.312 -- Technical safeguards.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11 (versioner API).
- Anthropic, Business Associate Agreements (BAA) for Commercial Customers. Checked November 27, 2026.
- 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).
- OpenAI, HIPAA Implementation and Configuration Guide. Checked November 27, 2026. Page dated Posted: July 9, 2026.
- Anthropic, HIPAA-ready Enterprise plans. Checked November 27, 2026.
- PhysioNet, Sleep-EDF Database Expanded v1.0.0. Checked November 15, 2026. Page dated 2013-10-24.