An integrated system for assisting the diagnosis and management of diabetes