Catholic church teaching on medically needed birth control pills?

What is our Church teaching on birth control pills when prescribed by the doctor for medial reasons other than contraception? ex. heavy, painful periods
Thanks for the help. God bless.

Pills that are used for the purpose of alleviating/treating a medical condition that also have a birth control effect (that is not willed) are acceptable.

Humanae Vitae:

  1. On the other hand, the Church does not consider at all illicit the use of those therapeutic means necessary to cure bodily diseases, even if a foreseeable impediment to procreation should result there from—provided such impediment is not directly intended for any motive whatsoever.
DISCLAIMER: The views and opinions expressed in these forums do not necessarily reflect those of Catholic Answers. For official apologetics resources please visit www.catholic.com.