Doctors and lawyers are typically self-employed, or they're employed at institutions that require (often by law) that managers actually have to be doctors or lawyers. So you're correct, they are like programmers, but a solution has been reached already for the problem I describe. I'm not sure skilled tradesman (not to denigrate their work) have the same "productivity is determined by intelligence" issue.