Challenges and solutions for personalizing medicines