Pink discharge + bleeding

Hi girls so I had pink discharge (I’m about 4-5 weeks) I after about an hour it turned into red bleeding (very light tho) so I went to hospital and found out my hcg went from 260 down to 223. They told me I was having a miscarriage, but it’s been 3 days and I’ve not bled since, I’ve also still got super light pink discharge only when I wipe. The doctor diagnosed me with a uti and said that could’ve conflicted with my hormones dropping. I have a scan Monday morning to see what’s going on, but I’ve already grieved my potential loss. Has this happened to anyone else? If my hcg levels dropped does that mean I will have a miscarriage or could it be due to my uti?