Vaginal bleeding

Hi ladies. This is my first baby. Im 5 weeks and 4 days todays. I have two positive pregnancy tests and four days ago i was bleeding and i went straight for check up. Did the blood test and it shows im only pregnant for two weeks. And the doctor ask me to come again in 2 weeks.the doctor said she will give me medicine to help miscarriage if she scan and did not see the baby. Has anyone experience like this before and end up having a healthy baby ? :) and how long usually the bleeding will stop?