1) The software influences the medical workflow and becomes a major distraction to visits. What was completely analog and free-form is now binned, discrete, and made more complex.
2) Desired outcome affects what and how things are recorded, instead of vice-versa. Staff learn what they have to do to get the orders or prescription or billing output that they need, which often doesn't line up with the actual diagnosis.
3) It reduces productivity, causes physician burnout, and put most small practices out of business. (Any practice not large enough to self-host records hire and have full time IT/software staff were basically strong armed into selling out to hospitals or other large org.)
4) It tracks both efficiency and patient satisfaction in the same system as the records and billing, which leads to some pretty perverse incentives on multiple levels. (As much heat as the drug companies over the opiod crisis, I'd argue doctors worried about dinging their patient satisfaction scores were just as responsible, by being afraid to tell too many patients "no".)
It goes on... Just a huge cluster of poorly thought out unintended consequences.
And that's just the medical side of things. The technical, financial, and legal aspects all have similar issues.