Depression and functional impairment independently contribute to decreased quality of life in cancer patients prior to chemotherapy