Possible miscarriage

I wasn’t for sure if I was pregnant, but thought it was a possibility but too early to test. I have been fighting kidney stones and infection for a week now with hardly any help from the hospital. Well I went to the ER with extreme new lower abdomen pain and they sent me home saying it was just a uti. This morning I woke up with this coming out of me and now have a lot of blood soaking up my pad.