Legrand Didier, Psychiatre à Le Havre