Your doctor may, first of all, perform a physical examination. Moreover, your doctor will want to know about your sleep and medical history. You may be asked to record your sleep pattern in a diary for a week or two.