Pregnancy and periods

Hi ladies. Am freaking out. Took a home test and was positive on 10th July. 2 weeks later, got my periods. For like normal 5 days. Went to hospital a week after periods , doctor recommended an ultrasound, they didnt see anything. She then said we do a blood test, it was positive. She told me could be ectopic, or maybe something else is wrong with my body. Anyone with similar experience?