Virginity

How do the doctors know if your aren’t a virgin ? & Will they tell your parent ?