This paper presents how a distributed multi-agent architecture facilitates the integration of services and applications to optimize the performance of a Case-Based Planning mechanism. This mechanism has been modelled as a service and is part of a multi-agent system aimed at enhancing health care for Alzheimer patients in geriatric residences. Several tests have been done to demonstrate that this approach is adequate to build complex systems with distributed functionalities.