Hormonal imbalance

What does a doctor do if you have a hormonal imbalance with irregular periods?