Palliative care improves the quality of life of patients with life-threatening illness