Measuring the quality of life of cancer patients