Beaufort Philippe, Gastro-entérologue à Cahors