Medical marijuana seems to safely help chronic pain patients: study