The Wedgetail project provides the basis for a shared electronic health record. The project provides a schema for an SQL implementation of a sharedEHR, as well as the tools required to interact securely with the database.
FreePM is an opensource physicians practice management / electronic medical record application.
The company providing support for FreePM nolonger exists. You may consider TORCH http://sourceforge.net/projects/op-torch/
or one of the other FOSS EMR's.