The once-simple act of writing an opioid prescription has become fraught. Physicians must check prescription monitoring databases to review patients’ histories, make sure their prescription complies with state limits on dose or number of days’ supply, and consider any practice-quality measures that…