a doctor whose primary interest is
I am guessing from the way this is written that the sentence began as "a doctor whose primary interest is to fill out insurance forms" and then grew to be about "a doctor whose important interests include X, Y, and Z".
The reason I point this out is to say that it looks like you overwhelmed a bad cached thought pattern with subject-specific good thinking. The bad thought pattern is to assume that if there isn't a good predominant intention, there must be a predominant intention that isn't good.
The primary, strongest intention of the doctor could be to heal the patient with that being a very small part of his or her total motivation.
It is also important to note that intentions are less aligned with consequences than we tend to think. As Tolkien probably never said: not all purposes that wander are lost. There is a relationship between e.g. quality health care and low legal risk; information is lost at each instrumental value waystation from actions to terminal values, but humans are deft enough to usually not let it dissipate into nothingness.
Your argument seems ideological to me. I certainly agree, this is how things should work, but I would see evidence before believing that the average medical professional really does learn from their mistakes.
From Quora: