Middleware Framework in Ubiquitous Computing System with MedRec Architecture