How long can you not practice medicine before your skills deteriorate and your knowledge become obsolete? Probably just as fast as it happens to programmers.
Come on, if you are a doctor you can always be a doctor, in a couple weeks you can get up-to-date with the discoveries made in your field in the last 10 years.
There are required continuing medical education credits to maintain your licensure. And board certification expires in 10 years, so you need to re-take the licesnsing tests every 10 years besides doing regular education every 2 years.