 Previous studies on cancer pain lacked assessment of quality of life. And most of previous studies on cancer pain did not give attention to symptoms accompanied with pain. We include such variables as outcome measures, and aimed to evaluate the efficacy and the safety of intravenous caffeine in advanced cancer inpatients. 