A Patient-Centric Distributed Architecture for Electronic Health Record Systems