Constipation and my trip to the ER

I am 7 weeks and have been severely constipated for the past week. Haven't had a good BM in days. I had been on Zofran on and off. I stopped taking it a few days ago when the constipation got worse. I have been taking stool softener, drinking fresh fruit smoothies, hydrating and even drinking prune juice. Been in touch with my OB twice about this. Today I winded up in the ER because I am having a hard time holding down any fluids and almost passed out from the excruciating pains down there  while trying to go. Also bad nausea. So miserable. Already had a rectal exam which is so not fun. Waiting to get an enema from the nurses. Hoping this doesn't cause problems with my baby.