The secure exchange of medical information significantly benefits people's life equality, improving healthcare treatment. The interoperability of the entire healthcare ecosystem is constantly challenging with all the risk security of alternatives when it comes to balancing the alternative ecosystem. However, with the constant development of new blockchain technology, the evolution of the healthcare system is difficult to establish. Disruptions with the biomedical and clinical studies fields have brought about dramatic modifications in healthcare statistics control systems. This leads to a step forward in scientific statistics protection. This ability of blockchain to maintain an incorruptible, decentralized, and obvious log of all affected person statistics makes it a generation rife for protection applications. In this paper, blockchain technology is used for its major gain of being transparent. Since it's far private, concealing the identification of any people with complicated and secure codes, which could shield the sensitivity of scientific statistics, is achieved. The decentralized nature of this generation additionally lets in patients, medical doctors, and healthcare vendors to share equal records fast and safely. Extracting the applicable records from the statistics is feasible with the aid of making use of the KNN machine learning algorithm.