Op, 6 weeks is usually when there can be heartbeat, usually detectAble by ultrasound at 6-7. So it's to confirm if the pregnancy is viable, confirm date, it's usually more accurate early on than later in pregnancy, and yes, confirm that it's in the uterus. An ectopic pregnancy, would still result in hormonal increase.