Women who are actively trying to get pregnant may wish to consult a doctor if they are over the age of 40, have irregular or painful periods, have a history of miscarriages, have been diagnosed with pelvic inflammatory disease or endometriosis, or have been treated for cancer.