During more than 50 years at Massachusetts General Hospital treating people with infectious diseases, Dr. Morton N. Swartz, an HMS professor of medicine, helped thousands of patients get well. Dr. Swartz, who was Mass. General’s chief of infectious diseases for 34 years and taught generations of Harvard Medical School students, died in the hospital Sept. 9 of complications of kidney failure. He was 89.