Tmi question!!!

Have any of you had to go to the doctor or er for severe constipation?? I've been trying to pass a bm for the past hour and its little stuck and hurts like hell!!!