A gynecologist will typically diagnose menstrual discomfort based on your medical history and a pelvic exam. In some cases, additional tests such as an ultrasound or laparoscopy may be necessary to rule out other conditions like endometriosis or fibroids.