Legal causes versus logical causes
The doctor's justification of his mistreatment isn't always the "cause" of it.

Presumably a doctor who prescribes or orders some treatment that is harmful or prejudicial to a patient has some justification for it.
If the diagnosis is incorrect but the harmful or prejudicial treatment ordered would still have been appropriate had the diagnosis been correct, then the doctor might have some criminal defense in claiming the diagnosis was too close to call or too difficult to do properly, and accepting civil liability for a wrongful diagnosis.
The law cares little for the late Latin scribblings or babblings of medical doctors, however. The law adjudicates the bodily harm done by physicians and assesses the extent of mayhem perpetrated by them, when they claim to have practiced some healing art or another.
