duties of a doctor in general