The application of medical knowledge and techniques to the diagnosis, treatment, and prevention of infectious diseases.