A distributed system for diabetic patient management