Medical specialty
Some doctors try to learn some about all of the different subjects of medicine and how to treat all patients.  These doctors are called 'primary care' doctors or "primary care physicians" (PCPs). Sometimes they are also called 'generalists' or even 'general practitioners.' In the United States, these kind of doctors are sometimes called family practitioners or family medicine doctors. When a problem is strange or complex, they give it to a specialist.