The key to making money: find something with extreme regulatory capture.
There is actually not much regulatory capture in the EHR market. The FDA doesn't classify most of those products as regulated medical devices. Provider organizations are required to implement certain open interoperability standards so that authorized parties can securely access patient charts so they are unlikely to buy an EHR without those features. But the required APIs are fairly easy for any competent engineering…
The sales team is about 7 people. Only in recent years have they begrudgingly expanded their consulting wing - but hospitals IT teams manage the software themselves.
Mostly it is driven by the fact that as bad as people like to think Epic is... All the direct competitors are magnitudes worse.