Blockchain technology enables a distributed and decentralized environment with no more central authority. To increase the accuracy of electronic healthcare records (EHRs) and establish a secured patient-centric approach, Blockchain can be a smart solution in this case. Blockchain is a distributed ledger technology that allows for the secured transfer of medical records while a transaction is created in the network. As Blockchain is decentralized and transparent if one user tampers with medical records of transactions, all other nodes/participants would cross-reference each other and easily pinpoint the node/participants with the wrong information. In this paper, we proposed a smart contact-based Blockchain technology and implemented it in the Hyperledger framework to make the healthcare system more confidential and secure. Moreover, Smart contracts give us more security while transacting data and reduce the entire transaction cost, and also make faster transaction speed.