He was born in Glasgow the son of Dr John Pirie of 26 Elmbank Crescent.[3]
Pirie was commissioned into the Royal Field Artillery as a second lieutenant on 28 March 1900,[4] but resigned from the military later the same year.[5] He earned his first medical degree at Glasgow University graduating MB ChB in 1902.[6] From 1902 until 1904 he participated in the Scottish National Antarctic Expedition on the ex-whaling ship Scotia, under William Speirs Bruce, Pirie acting as both surgeon and geologist. This involved spending the majority of 1903 on a makeshift base on the South Orkney Islands. He went on to postgraduate studies at the University of Edinburgh and was awarded his doctorate (MD) in 1907 after producing his thesis - 'On the smaller polygonal cells of the grey matter of the spinal cord'.[7]
The Voyage of the Scotia, being a record of a voyage of exploration in the Antarctic Seas by Robert Mossman, James Hunter Harvey Pirie, and Robert Neal Rudmose-Brown, C. Hurst London (1906)
Bernstein RE (1983). "Dr Harvey Pirie and the Scottish National Antarctic Expedition (1902-4). Scottish science and medicine in the Falklands and Antarctica". Scott Med J. 28 (1): 75–9. doi:10.1177/003693308302800117. PMID6340196. S2CID12173063.