A pain diary is a tool used by cancer patients to record and track their pain levels, symptoms, and any factors that may influence their pain. This helps both patients and healthcare providers better understand the nature of the pain, its triggers, and the effectiveness of pain management strategies.