How a doctor with cancer quantified the value of life support