 He graduated in medicine from the University of Edinburgh.He was commissioned Second Assistant Surgeon in the Ordnance Medical Department (which provided medical officers to the Royal Artillery and Royal Engineers) in 1810 during the Peninsular War.After the defeat of Napoleon and his exile in St Helena after 1815 the British decided that Napoleon needed a personal physician.