Oncology is a subspecialty of internal medicine. Doctors have to complete a three-year residency in internal medicine after graduating from medical school and becoming a licensed physician.