A somewhat related commentary article on why electronic health records (EHR) are difficult to work with:  they are focused on billing not patient care.  Doctors would prefer a care-oriented system.  This could be a great inroad for open source.