Advice

Warning this is graphic. I need some advice and help.

I am 23 weeks. I have had horrible diarrhea. So bad I wake up every 2 hours during the night to go. I have about 8-10 bowel movements while I'm awake. I have severe pain in my anus and there is visible red blood when I wipe. It's not always poop, sometimes it's just mucus. There are times I feel like I'm actually pushing out my colon and then it take a minute to go back in. I called my doc and he said it was normal and I needed to stay hydrated. But as long as I'm without fever there's nothing I can do. He said I can take imodium if I want, but it is a category C. Has anyone else been through this? I need advice.