This study employs new Solidity smart contracts to construct a novel healthcare safety system that combines blockchain and IoT. The recommended approach has been extensively tested and proven to efficiently encrypt data, manage access correctly, and monitor accurately in real time. The study's complete ablation analysis breaks into wearables for continual tracking, smart contracts for authorization and access management, and blockchain for data security. The results demonstrate how crucial these pieces are and how they depend on each other for system strength and efficacy. By addressing data breaches, illegal access, and incorrect real-time tracking, this study illuminates hospital IT security. Safety and scalability make the recommended approach an excellent choice for protecting private health information. This improves patient care and security. New technology makes the supplied healthcare security system fit to lead. Future development will focus on adapting to new technology, introducing powerful machine learning algorithms for predictive analytics, and making it more user-friendly. This study's findings are crucial to healthcare data management's future since they indicate progress.