What do you think rights are or should be based on? Or laws/policies should be based on?
Yes, I think what people get should be based not on their morality but on their actions and whether or not those actions were moral or immoral (harmless or harmful).
As a health professional I can't help but be horrified by that idea. A doctor takes an oath to do no harm and that includes that caused by inaction. We are not here to judge the morality of individual choice or to decide who does or does not require treatment. We educate the public and as you say that has mixed results. Nonetheless it does have results and is a fundamental part of the role of a universal healthcare system.
Ironically I was tasked only the other week to deliver a presentation on geographical health inequalities in the UK and they definitely do exist (I actually live in one of the areas associated with lowest life expectancy, which was a lovely point to throw in for light relief), but those inequalities stem far more commonly as a consequence of other demographics than inequalities of provision, regardless of what sells newspapers.
We do not make the decision that someone, anyone is undeserving of our help. Period.
At least not here.
I am a nurse (albeit one whose current duties are more academic than practical), not a judge or jury and in forensic practice many of my patients have been people who would have received the death penalty in some countries. That I can separate the person requiring my help from a value judgement about them is a point of professional pride and one shared by thousands of others in my profession.
This may sound naive but consider the fact that we actually pay significantly LESS per head on average than US citizens for the privilege of having a healthcare system which not only delivers everything to everyone, every time.
In addition that system (along with others like it) pours money into research, both in terms of that purely funded from the public purse and in terms of subsidising drug companies where there is sufficient doubt as to the profitability of that research. The fruits of that research are borne globally.