I can speak to this a bit. After interviewing lots of hospital workers, I can tell you that the hospital quality people love EHRs because the reporting functions actually work. Previously, it was not possible to measure how well the hospital was doing and convince the doctors to improve practices - think washing hands before doing examinations.
EHRs are shitty because (1) the big players are entrenched - they are already implemented and the cost / disruption to switch to a new EHR is extremely high, and (2) the market isn’t big enough to justify the level of investment it will take to break through - Apple made more money from one product (AirPods) last year than all the EHR vendors combined.
At this point my hope is that mobile devices and meta-EHRs are able to crack this.