An Intelligent System for Distributed Patient Monitoring and Care Giving