First world European countries use a quality-of-life-year or disability-adjusted life-year metric. If resource X will give patient A an expected 20 years of life as a vegetable (Q = 0.1) vs. patient B 10 fully-healthy years (Q = 1), patient B gets it. The goal is to maximize total life-years. Obviously, these numbers are estimates, the quality multiplier is subjective, and the optimization problem is very difficult, but the goal is fair and noble, and I think most people would agree with it. When I'm 90, if we haven't made any anti-aging progress, I would want the 20-year-old to get the heart transplant instead of me.