An efficient multi-agent system for E-health functionalities