Help period problems

Extremely painful menstruation cramps at end of period with diarrhea and nausea chills and hot flashes ? Any idea what this is