Went to the hospital this morning

I woke up and was bleeding alittle bit so I went to the hospital. I was there for 5 hours! Everything is good thank god. I saw my baby on the ultrasound and the heart rate was 136. I'm almost 18 weeks. I do have a uti so I am on medication now. I have a dr appointment tomorrow. Just resting now.????so happy my baby is ok.