Roughly one in three adults does not get enough sleep, and most sleep disorders go undiagnosed for years before anyone connects the symptoms to a treatable condition. Sleep medicine is the field that closes that gap, covering the diagnosis and treatment of the conditions that fragment sleep, from insomnia and obstructive sleep apnea to restless legs syndrome and circadian rhythm disorders. It draws on pulmonology, neurology, psychiatry, and primary care all at once, and over the past few years it has become one of the fastest-growing corners of virtual care.
This guide explains what sleep medicine covers, how the common disorders are screened and treated in 2026, and what it takes to run a sleep practice. It follows a single patient from first screening through long-term follow-up, then looks at the specific building blocks a programmable EMR gives any sleep practice to run that same workflow.
What Is Sleep Medicine?
Sleep medicine is the branch of clinical practice focused on disorders of sleep and wakefulness. A sleep clinician evaluates why a patient sleeps poorly, stops breathing at night, cannot stay awake during the day, or cannot keep a normal sleep schedule, then builds a treatment plan and monitors it over time.
The conditions cluster into a few groups:
- Insomnia - difficulty falling or staying asleep despite adequate opportunity. Chronic insomnia lasts three months or longer and affects about one in ten adults, according to the American Academy of Sleep Medicine.
- Sleep-disordered breathing - most commonly obstructive sleep apnea (OSA), where the airway repeatedly collapses during sleep. It is strongly linked to hypertension, cardiovascular disease, and daytime impairment.
- Central disorders of hypersomnolence - narcolepsy and related conditions marked by excessive daytime sleepiness.
- Circadian rhythm sleep-wake disorders - a misalignment between the body clock and the desired sleep schedule, including shift-work disorder and delayed sleep phase.
- Movement disorders - restless legs syndrome and periodic limb movement disorder.
These conditions overlap far more than most patients, and plenty of clinicians, tend to expect. A 2025 VA and Department of Defense clinical practice guideline formally recognized that insomnia and obstructive sleep apnea frequently travel together, and it told clinicians to screen every patient who arrives with a sleep complaint for both conditions rather than working through them one at a time. That recommendation quietly reshaped how intake works, because a modern sleep evaluation now has to start broad and narrow down from there instead of chasing a single suspected diagnosis.
Why Sleep Medicine Matters
Untreated sleep disorders carry a real cost, both to the patient and to the health system around them. Obstructive sleep apnea raises the risk of hypertension, atrial fibrillation, stroke, and car accidents, and chronic insomnia tends to run right alongside depression, anxiety, and lost productivity at work. Poor sleep makes nearly every chronic condition a primary care team manages harder to control, which is a big part of why sleep is increasingly treated as a vital sign rather than a lifestyle complaint.
That growing recognition helps explain why the field is expanding so quickly. There are simply not enough board-certified sleep specialists to evaluate everyone who needs to be seen, and much of the work involved, from the initial screening and questionnaire scoring through home testing and therapy follow-up, never really required an in-person visit in the first place. Those two facts together have pushed sleep medicine toward a telehealth-first model faster than almost any other specialty.
How Sleep Disorders Are Screened, Diagnosed, and Treated
Sleep care follows a recognizable arc, and each step maps to a discrete piece of clinical work.
Screening. Structured questionnaires do the first pass. Three are near-universal:
- STOP-BANG - an eight-item screen for obstructive sleep apnea (Snoring, Tiredness, Observed apnea, Pressure, BMI, Age, Neck circumference, Gender). A score of 5 to 8 signals high risk.
- Epworth Sleepiness Scale (ESS) - measures daytime sleepiness across eight everyday situations.
- Insomnia Severity Index (ISI) - grades insomnia severity and tracks response to treatment over time.
Diagnosis. For suspected OSA, testing is what confirms the picture. In-lab polysomnography remains the gold standard, but home sleep apnea testing has become the default for uncomplicated adults because it is cheaper, faster, and fits a virtual model comfortably, an approach the 2025 VA/DoD guideline endorses for patients without significant comorbidities. Results come back as structured data, including the apnea-hypopnea index, oxygen desaturation, and sleep efficiency, which a clinician then interprets against the patient's history.
Treatment. The pathway depends on the disorder:
- Chronic insomnia - cognitive behavioral therapy for insomnia (CBT-I) is the first-line treatment of choice, ahead of medication, according to American Academy of Sleep Medicine guidance.
- Moderate to severe OSA - CPAP therapy is the most studied and most effective option, and the VA/DoD guideline prescribes it as first-line therapy for severe disease.
- Mild OSA or CPAP intolerance - oral appliances that reposition the jaw are a well-supported alternative, recommended alongside CPAP for milder disease based on clinical evaluation and patient preference.
Follow-up. Sleep care is longitudinal. Adherence to CPAP, response to CBT-I, and repeat ISI scoring all happen over months, which makes durable tracking and scheduled touch points as important as the initial diagnosis.
From Screening to Diagnosis: One Patient's Path
To see how that arc plays out for a real person, consider a 46-year-old referred by his primary care team for loud snoring, morning headaches, and daytime fatigue his partner had linked to pauses in his breathing overnight.
Before his first visit, he completes the standard screening battery from home - STOP-BANG, the Epworth Sleepiness Scale, and the Insomnia Severity Index. His STOP-BANG score places him at high risk for obstructive sleep apnea and his Epworth confirms significant daytime sleepiness, while a low Insomnia Severity Index makes co-occurring insomnia unlikely. All three scores are waiting for the clinician the moment the visit opens rather than tallied by hand at the desk, so the telehealth encounter starts with a structured, populated chart and a clear direction instead of a blank one.
Because his history is uncomplicated, the clinician orders a home sleep apnea test rather than an in-lab study. The results return as structured data - apnea-hypopnea index, oxygen desaturation, sleep efficiency - and land on the chart as trendable values, not a scanned report filed away as a document. Read against his symptoms and screening score, the picture is clear: moderate obstructive sleep apnea. He starts CPAP therapy, with an oral appliance noted as the fallback if he cannot tolerate the mask.
Then the real work begins. Over the following months, his CPAP adherence data, symptom check-ins, and repeat Epworth scoring are tracked against baseline on the same chart, and scheduled touchpoints keep him in care without repeat trips to a clinic. What began as a snoring complaint becomes a managed condition, followed entirely from home.
Every step of that path - the scoring, the structured test results, the background eligibility checks, the longitudinal follow-up - is a piece of clinical work that can be modeled and automated as a workflow the practice controls. That is what a programmable platform makes possible, and it is where Canvas comes in.
Canvas: A Programmable Platform for Sleep Medicine
At Canvas, we have built a programmable care modeling platform rather than a fixed EMR. The distinction matters most in specialties like sleep medicine, where the workflow is specific, largely virtual, and evolving faster than any off-the-shelf product can follow. Legacy EMR systems force a sleep practice to bend its care model to fit the software. Canvas lets a practice extend and customize the software to fit its care model.
That programmability rests on a few named pieces:
- The Canvas SDK and FHIR API is the surface where builders extend the platform, adding new commands, questionnaires, chart sections, and automations.
- Plugins package that work into installable capabilities, the sleep-specific building blocks a practice turns on.
- Studio is where teams describe the workflow they need, whether that is a screening instrument or a scored questionnaire wired to a protocol, and get a working plugin back without an engineering project. It is powered by CPA (Claude Plugin Assistant) and Claude Code underneath.
Together they give a sleep practice direct control over workflow, and the ability to automate the repetitive clinical and operational steps that define the specialty.
How You Can Run a Sleep Practice With Canvas
Sleep Study Visualizer. This plugin lets a clinician order home sleep tests at the time of diagnosis and visualize structured sleep study results, plus Epworth trends, directly on the patient chart. It turns the diagnostic step, which normally arrives as a scanned report filed away as a document, into structured, trendable data that lives in the record. It is an open-source reference plugin, already live in the Canvas sleep medicine trial environment.
Screening questionnaires. STOP-BANG, ESS, and ISI run as questionnaire plugins that auto-compute their scores. A STOP-BANG screen returns its 0 to 8 total automatically, so the intake burden of scoring by hand disappears and high-risk patients surface immediately.
Intake automation. Questionnaire responses map into the chart and lock a structured intake note, and appointment creation pre-fills the telehealth visit note. The clinician opens a populated chart, not a blank one.
Provider availability and scheduling. A rule-based availability engine calculates real-time slots and enforces the practice's scheduling logic, so the right patient books the right visit type without staff intervention.
Ambient documentation. For the high volume of similar telehealth encounters a sleep practice runs, Canvas can draft the clinical note from the visit conversation automatically.
Every one of these is a plugin a sleep practice can install, adapt, or rebuild to suit how it actually works, and that is the whole point of a programmable platform: the workflow is never locked.
Building Your Own Sleep Workflow with Studio
No two sleep practices screen, test, and follow up in exactly the same way. A practice focused on pediatric sleep needs different questionnaires than one built around adult OSA and CPAP adherence. Because Canvas is programmable, those differences are configuration, not custom software projects.
With Studio, a team describes the sleep workflow it needs - a new screening instrument, a questionnaire score wired to an automated protocol, a device-adherence dashboard, or a home-testing vendor's results connected to the record - and gets a working plugin back, without a full engineering project. Studio sits on the Canvas SDK, so anything it generates can be extended in code when a practice wants to go deeper. Either way, the practice maintains control over its workflow rather than waiting on a vendor's release cycle.
This is the same approach that powers Canvas in adjacent longitudinal specialties. The patterns behind chronic care management and broader clinical workflow automation apply directly to sleep: structured intake, automated scoring, protocol-driven follow-up, and durable longitudinal tracking.
Why This Works
For providers, the workflow removes the busywork that surrounds a sleep visit - no manual scoring, no blank notes, no chasing test results across systems. For patients, the model is genuinely virtual: screen from home, test at home, and stay in care without repeat trips to a clinic. For care teams, the operational load of scheduling and follow-up is automated rather than absorbed.
What ties all of it together is that a programmable platform treats a sleep practice's workflow as something to be modeled and automated rather than something to be squeezed into a generic template. Sleep medicine is a specific kind of practice, and the software that runs it should be just as specific.
Run a Sleep Medicine Practice on Canvas
Sleep medicine requires software that can model a specific, largely virtual, longitudinal workflow and adapt as guidelines and testing methods evolve. That is exactly what a programmable care modeling platform is built to do.
Try it for yourself in the Sleep Medicine EMR and explore the Canvas plugins library.

