Transforming Healthcare: The Journey of AI-Driven Patient Management Systems