Researchers say many cancer patients are receiving treatment focused on extending their lives rather than easing their pain, often against their own wishes.