Health is gold, and good health is a matter of survival for humanity. The development of the healthcare industry aligns with the development of humans throughout history. Nowadays, along with the strong growth of science and technology, the medical domain in general and the healthcare industry have achieved many breakthroughs, such as remote medical examination and treatment applications, pandemic prediction, and remote patient health monitoring. The advent of 5th generation communication networks in the early 2020s led to the Internet of Things concept. Moreover, the 6th generation communication networks (so-called 6G) expected to launch in 2030 will be the next revolution of the IoT era, and will include autonomous IoT systems and form a series of endogenous intelligent applications that serve humanity. One of the domains that receives the most attention is smart healthcare. In this study, we conduct a comprehensive survey of IoT-based technologies and solutions in the medical field. Then, we propose an all-in-one computing architecture for real-time IoHT applications and present possible solutions to achieving the proposed architecture. Finally, we discuss challenges, open issues, and future research directions. We hope that the results of this study will serve as essential guidelines for further research in the human healthcare domain.