Residents don't need to spend every waking hour focused on their job. As long as he is doing his job properly, what's wrong with doing some coding / business on the side?
A First year resident know jack shit about medicine and works 13 hrs a day making mistakes along the way in hopes of learning enough so not to make these same mistakes when they will be in command (5 years from now).