Piat Bernard, Médecin généraliste à Thyez