Pill mill

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?