The EHR itself is the black hole of suck. It almost always ends up being like an ERP package, with either an off the shelf package (e.g. SAP) where the workflow is changed to accomodate the package, or a semi-custom consulting product built around specific workflow.
Luckily, the more specialized stuff is actually vastly simpler.