I'm not so hot on EPIC Systems overall. Having watched its adoption and implementation at a large hospital system, it's terrible software that requires huge amounts of in-house effort to keep maintained. The only thing is that between EPIC and Cerner neither is very good.
I fully expect AI and software innovation to come for EHR, ERP, and business process software developers.
What appear to be moats now because of complexity will be worn away by AI/software development streamlining the innovation of these complex systems.