Delagoutte Anne-Sophie, Psychiatre à Nancy