Health information systems face major challenges in terms of data security and integrity. This article proposes a blockchain-based framework that enables secure data sharing among various entities in a health information system. The framework ensures the confidentiality, integrity, and transparency of patient data through the use of smart contract technology and hash-based encryption. Case studies on several hospitals demonstrate improved data security without sacrificing system efficiency.