Medical IoT is a collection of devices and applications that are connected to healthcare systems via the Internet. Wearable devices and body sensors are used to track individuals{textquoteright} medical conditions. The collected data is processed, analyzed, and stored in the cloud platforms to provide healthcare services. The data does not only include personal information like users{textquoteright} identity and location but also consists of sensitive information such as mental status, drug addiction, sexual orientation, and genetics. Therefore, preserving an individual{textquoteright}s privacy remains a huge challenge for IoT service providers. The existing techniques significantly reduce the originality of data which affects the application{textquoteright}s efficiency. Therefore, in this paper, we propose the idea of using blockchains and smart contract to preserve privacy while obtaining data usability.