Find out what steps are taken and what factors are examined when diagnosing a sleep disorder.