Smart medicines that are effective, safe, and affordable