An advanced health record management system