Hemsterhuis, Joannes, Medical Student at Leyden