The NHS actually relies on foreign staff. It would collapse without them. 35% of NHS health professionals come from outside of the UK.
So let's have controlled immigration where we can continue to recruit the healthcare workers we need, but not those who are just going to come here for free healthcare courtesy of the NHS.