A careflow management system for chronic patients