Personalized Medicine in Epidemics