resident doctor rights