In 1740 he was appointed as physician to the Scots Greys, and was with the regiment at Battle of Dettingen. He then became a physician in Dunfermline before returning to Edinburgh to work at the Edinburgh Royal Infirmary on Drummond. He also served as surgeon to the Merchant Maiden Hospital. He was also an honorary professor at the University of Edinburgh, lecturing in medicine.