Internists can choose to focus their practice on general internal medicine, or may take additional training to "subspecialize" in one of 13 areas of internal medicine, generally organized by organ system. Cardiologists, for example, are doctors of internal medicine who subspecialize in diseases of the heart. The training an internist receives to subspecialize in a particular medical area is both broad and deep. Subspecialty training (often called a "fellowship") usually requires an additional one to three years beyond the standard three year general internal medicine residency. (Residencies come after a student has graduated from medical school.)
http://en.wikipedia.org/wiki/Internal_medicine
more on the subspecialties