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.
Hypnotic
Hypnotic drugs are regularly prescribed for insomnia and other sleep disorders, with over 95% of insomnia patients being prescribed hypnotics in some countries. Many hypnotic drugs are habit-forming and, due to a large number of factors known to disturb the human sleep pattern, a physician may instead recommend changes in the environment before and during sleep, better sleep hygiene, the avoidance of caffeine or other stimulating substances, or behavioral interventions such as Cognitive Behavioral Therapy for Insomnia (CBT-I) before prescribing medication for sleep. When prescribed, hypnotic medication should be used for the shortest period of time necessary.