Dysmenorrhea is the medical term for menstrual cramps, or the pain that many women have just before or at the beginning of their periods. This pain usually is not serious.