Great article about how the legislation to fund the creation of the EHR in the 90's resulted in the buggy implementations of it that we see today. Some of which have resulted in lawsuits against the companies responsible for creating the software.
https://khn.org/news/death-by-a-thousand-clicks/