The use of cannabis in treating chronic pain and other medical conditions