Doxepin
In 2016 the American College of Physicians advised that insomnia be treated first by treating comorbid conditions, then with cognitive behavioral therapy and behavioral changes, and then with drugs; doxepin was among those recommended for short-term help maintaining sleep, on the basis of weak evidence. The 2017 American Academy of Sleep Medicine recommendations focused on treatment with drugs were similar. A 2015 AHRQ review of treatments for insomnia had similar findings.
Insomnia
Some cases of insomnia are not really insomnia in the traditional sense, because people experiencing sleep state misperception often sleep for a normal amount of time. The problem is that, despite sleeping for multiple hours each night and typically not experiencing significant daytime sleepiness or other symptoms of sleep loss, they do not feel like they have slept very much, if at all. Because their perception of their sleep is incomplete, they incorrectly believe it takes them an abnormally long time to fall asleep, and they underestimate how long they remain asleep.