Student becomes third generation of her family to qualify as a doctor