Most insomnia is caused by a short-term change in the sleep/wake schedule, as with jet lag, your sleep schedule may return to normal on its own. If you’re under stress at work or school, insomnia usually occurs for a few days to several weeks. But if the condition worsens, or prolongs, you should talk to your doctor. Many people call their doctor even when insomnia lasts just a few days because the condition interferes with their daily life.
Talk to your doctor if you are having problems falling or staying asleep, especially if lack of sleep is affecting your daily activities. Keep a sleep diary for 2 weeks before you see your doctor. Note the time of day you fall asleep and wake up, changes in your daily sleep routine, your bedtime routine, and how you feel during the day.
Your doctor may do a physical exam and take medical and sleep histories. He or she may also want to talk to your bed partner about how much and how well you are sleeping. In some cases, you may be referred to a specialist or a sleep center for special tests.
Source: the Office on Women’s Health in the Office of the Assistant Secretary for Health