A man who was jailed for stalking and harassing NHS workers has been handed another prison sentence for the same offence involving the same people.