roles of a doctor in the hospital