Sleep difficulties were often described in older classifications as either primary insomnia or insomnia secondary to another illness. Current clinical thinking gives more attention to insomnia as a problem that may need treatment in its own right, even when pain, depression or another condition is also present.
The supplied sleep chapter distinguishes problems of sleep timing, amount and unusual events during sleep, rather than treating every poor night as the same disorder. Research into behavioral treatment has also broadened care beyond sedating medication. Cognitive behavioral therapy for insomnia targets patterns that keep someone awake after an initial trigger has passed.
This history matters because treating a coexisting condition alone may not resolve a persistent sleep problem, and useful care is more than advice to relax.