People with insomnia are evaluated by a psychiatrist for a thorough medical and sleep history. An overnight sleep study may be recommended if there is a suspicion that there may be a primary sleep disorder, such as sleep apnoea.
Your doctor can make sure that your sleeplessness is not the result of a physical illness, a prescribed medicine, or emotional problems and make appropriate recommendations and treatment. You may be asked to keep a sleep diary showing sleeping and waking patterns for a week or two.