miscarriage between the 4th and 5th week of pregnancy

I had a miscarriage

March 12, I visited my obgyne to confirm my pregnancy test. She subjected me for ultrasound (Trans-vaginal), to check if there is a gestational development. Since I was only on my 4th week of pregnancy, it shows no gestational sac. The result shows that my uterus is irregularly enlarged with thickened endometrium which is consider an early pregnancy sign. Since I am staining then (brown blood coming out), she gave me Duphaston 10 mg to be taken twice a week for the next 10 days and required me for a bed rest.