The efficiency of RTOF surpasses that of existing triage frameworks, showcasing its significant ability to enhance the quality and efficacy of telemedicine solutions. This work showcases substantial enhancements compared to existing triage approaches, while also providing a scalable approach to tackle hospital congestion and optimize resource allocation in real-time. The results of our study emphasize the capacity of RTOF to mitigate hospital overcrowding, expedite medical intervention, and enable the creation of adaptable telemedicine networks. This study highlights potential avenues for further investigation into the integration of the Internet of Medical Things (IoMT) with machine learning to develop cutting-edge medical technologies.