What is the ruling on using pills

Q: My wife has not had her monthly period for over five months, and she is not pregnant according to tests and medical examinations. The doctor has prescribed pills for her so that she can have her period. Can she take these pills?

A: All praise be to Allah Alone, and peace and blessings be upon His Messenger, and his family and Companions. It is permissible for her to take the pills as long as the doctor affirms that they do not have effects that are more harmful than or equal to the benefit of taking them.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.