Guillaume Daniel, Endocrinologue à Bayonne