a doctor performs diagnosis