A systems approach to infectious disease