KINDA GRAPHIC. Uterine lining or Miscarriage?

Hellpp. (Warning) Dont know what this is. I've just finished reading about uterine casts and not sure if this is it. My initial thought was miscarriage but I've never gone through that so I'm not sure. I thought this past week I was on my period, but I had heavy bleeding for a day and it just got lighter since which felt pretty weird. By today I thought the period was over but I noticed a little bit of blood still and then I peed this out. Now I'm cramping. Going to the OB in 2 days but just wanted to see what anyone else thought !