Confused

Shelby • 25 Years of Age, Due with my princess in June, Loss Of 3
5w4d yesterday I had severe cramping like I couldn't move and i was spotting on and off and I stayed in the hospital half the day for them to tell me it could be ectopic.. Few hours later doctor calls and says they shouldn't have told me that. Today I felt better until about a hour ago it hit me again it went away when I took a hit bath but I just feel so much pressure in my side and I'm spotting and its brown and like Burgundy. What's going on?