It's the integration with existing systems that's the real problem. Industry standards in that area are still incomplete and not fully implemented by all vendors, so usually integration requires a lot of custom work. Hosting EHR software in the cloud doesn't solve this.