PurposeTo avoid this situation, the authors proposed an optimal artificial bee colony algorithm-based Unmanned Aerial Vehicle (UAV) routing algorithm for efficient data communication between doctors and patients. This proposed method worked in three stages.Design/methodology/approachIn recent decades, wireless body area networks have played an important role in health care applications. It facilitates the transmission of the patients' health data analysis report to the appropriate doctors.FindingsIn the first phase, biological sensors are connected to the human body via a controller node and collected data is transmitted via Bluetooth to the Personal Device Assistant (PDA). In the second phase, collected data will be transmitted via the Internet of things using an artificial bee colony algorithm. The second aids in determining the best route. In the third phase, unmanned aerial vehicles will use the best path to send collected data to doctors, caregivers, ambulances and cloud storage servers.Originality/valueThe simulation results show that the network's performance is superior when compared to existing approaches. The proposed algorithm achieves a high throughput, a lower delay, a higher link rate and a higher delivery rate.