Green’s Dictionary of Slang

vet n.2

[SE vet, a veterinary surgeon]

(orig. milit., a doctor; thus S.Afr.) a prison doctor.

[UK]Fraser & Gibbons Soldier and Sailor Words 296: Vet, the, medical officer.
Partridge World of Words 196: Doctor becomes [...] the vet or [...] pill-shooter.
A. Powell Hearing Distant Harmonies 83: Saw my vet last week. Said he’d never inspected a fitter man of my age.