he was president of the royal college of physicians and surgeons of glasgow (1746–47), president of the royal college of physicians of edinburgh (1773–1775) and first physician to the king in scotland (1773–1790). he was also, incidentally, one of the prime movers in obtaining a royal charter for the philosophical society of edinburgh, resulting in the formation of the royal society of edinburgh in 1783.