How is insomnia first diagnosed?

Insomnia. Symptom is subjective, when person presents to their doctor with complaint of not sleeping at nite. After assessment, sleep disorder is diagnosed and recommendations given.