The Design and Evaluation of an Intelligent Pain Management System (IPMS) in Cancer Patient Care