A Belfast man was handed a six-month prison sentence today for spitting on a doctor who tended to him in the Royal Victoria Hospital.