The study of preventing and controlling the spread of infectious diseases in healthcare and community settings.