over-prescribing

A new study shows physicians "over-prescribing" the length of treatment for pneumonia. We seem to restart therapy at discharge.
More and more doctors are being prosecuted for murder, for inappropriately prescribing opioids to patients, resulting in death. How is it determined when a physician's actions have gone beyond malpractice?