conversely , todays future doctors are required to complete a 4-year undergraduate degree program , spend four years in medical school and then complete 3 to 7 years of residency training before obtaining an eligibility license to practice medical .