Medication guidance for chronic pain