Study examines quality of life factors at end of life for patients with cancer