Quality of life of cancer patients receiving inpatient and home-based palliative care.