An Adaptive Learning-Driven Software Ecosystem for Optimized Healthcare Solutions with Artificial Intelligence