Blockchain-Based Medical Report Management System: A Secure And Decentralized Approach To Healthcare Data Exchange
DOI:
https://doi.org/10.63665/kfe6h907Keywords:
Blockchain, Medical Records, Healthcare Data Security, SHA-256, Cryptographic Hashing, Access Control, Audit Trail, Flask, Patient Privacy, Data Integrity, Decentralization.Abstract
Healthcare data management faces critical challenges including unauthorized access, lack of patient control, absence
of verifiable audit trails, and vulnerability to data tampering. Centralized storage architectures create single points
of failure, compromising patient privacy and data integrity. This paper presents a blockchain-based Medical Report
Management and Distribution System that leverages cryptographic hashing and decentralized ledger technology to
provide secure, tamper-proof storage and sharing of medical records. The system implements a custom blockchain
using SHA-256 cryptographic hashing, Flask web framework, and SQLite database. Patients retain full ownership
and control over their medical reports through a granular access control mechanism, granting and revoking
permissions to healthcare providers. Every significant system action—report upload, access grant, access revocation,
and file download—is recorded as an immutable block in the blockchain, creating a comprehensive audit trail. The
system achieves average page response time under 150ms, database query time under 10ms, and blockchain
verification time of 15ms for 100 blocks. Security features include Werkzeug password hashing, parameterized SQL
queries preventing injection attacks, and file integrity verification through SHA-256 checksums. A responsive
Bootstrap 5 interface with Chart.js visualizations provides analytics on report distribution, user roles, upload trends,
and access patterns. Experimental results demonstrate successful integration testing with 100% pass rate across
authentication, blockchain recording, access control, and security features.
Downloads
References
[1] S. Nakamoto, "Bitcoin: A peer-to-peer electronic
cash system," Bitcoin.org, 2008. [Online].
Available: https://bitcoin.org/bitcoin.pdf
[2] A. Azaria, A. Ekblaw, T. Vieira, and A. Lippman,
"MedRec: Using blockchain for medical data
access and permission management," in
International Conference on Open and Big Data
(OBD), Vienna, Austria, 2016, pp. 25-30.
[3] M. Mettler, "Blockchain technology in healthcare:
The revolution starts here," in IEEE 18th
International Conference on e-Health
Networking, Applications and Services
(Healthcom), Munich, Germany, 2016, pp. 1-3.
[4] P. Zhang, J. White, D. C. Schmidt, G. Lenz, and S.
T. Rosenbloom, "FHIRChain: Applying
blockchain to securely and scalably share clinical
data," Computational and Structural
Biotechnology Journal, vol. 16, pp. 267-278,
2018.
[5] L. A. Linn and M. B. Koo, "Blockchain for health
data and its potential use in health IT and health
care related research," ONC/NIST Use of
Blockchain for Healthcare and Research
Workshop, Gaithersburg, MD, USA, 2016.
[6] V. Buterin, "Ethereum: A next-generation smart
contract and decentralized application platform,"
Ethereum White Paper, 2014. [Online].
Available: https://ethereum.org/en/whitepaper/
[7] G. Zyskind, O. Nathan, and A. Pentland,
"Decentralizing privacy: Using blockchain to
protect personal data," in IEEE Security and
Privacy Workshops (SPW), San Jose, CA, USA,
2015, pp. 180-184.
[8] A. Ekblaw, A. Azaria, J. D. Halamka, and A.
Lippman, "A case study for blockchain in
healthcare: MedRec prototype for electronic
health records and medical research data," in
Proceedings of IEEE Open & Big Data
Conference, Washington, DC, USA, 2016, pp. 13-
19.
[9] K. N. Griggs, O. Ossipova, C. P. Kohlios, A. N.
Baccarini, E. A. Howson, and T. Hayajneh,
"Healthcare blockchain system using smart
contracts for secure automated remote patient
monitoring," Journal of Medical Systems, vol. 42,
no. 7, article 130, Jul. 2018.
[10] T. McGhin, K.-K. R. Choo, C. Z. Liu, and D. He,
"Blockchain in healthcare applications: Research
challenges and opportunities," Journal of
Network and Computer Applications, vol. 135,
pp. 62-75, Jun. 2019.
[11] A. A. Siyal, A. Z. Junejo, M. Zawish, K. Ahmed,
A. Khalil, and G. Soursou, "Applications of
blockchain technology in medicine and
healthcare: Challenges and future perspectives,"
Cryptography, vol. 3, no. 1, article 3, Jan. 2019.
[12] X. Yue, H. Wang, D. Jin, M. Li, and W. Jiang,
"Healthcare data gateways: Found healthcare
intelligence on blockchain with novel privacy risk
control," Journal of Medical Systems, vol. 40, no.
10, article 218, Oct. 2016.
[13] U.S. Department of Health and Human Services,
"Health information privacy," HHS.gov, 2020.
[Online]. Available:
https://www.hhs.gov/hipaa/index.html
[14] European Parliament and Council, "General Data
Protection Regulation (GDPR)," Official Journal
of the European Union, vol. L119, pp. 1-88, May
2016.
[15] Health Level Seven International, "FHIR: Fast
Healthcare Interoperability Resources," HL7.org,
2021. [Online]. Available:
[16] J. Benet, "IPFS - Content addressed, versioned,
P2P file system," arXiv preprint
arXiv:1407.3561, 2014.
[17] D. Mazieres and M. F. Kaashoek, "Escaping the
evils of centralized control with self-certifying
pathnames," in Proceedings of the 8th ACM
SIGOPS European Workshop, Portugal, 1998, pp.
118-125.
[18] M. Swan, "Blockchain: Blueprint for a new
economy," O'Reilly Media, Inc., 2015.
[19] D. Tapscott and A. Tapscott, "Blockchain
revolution: How the technology behind bitcoin is
changing money, business, and the world,"
Penguin, 2016.
[20] N. Ferguson, B. Schneier, and T. Kohno,
"Cryptography engineering: Design principles https://doi.org/10.63665/IJMEC.1104.04
ISSN: 2456-4265
IJMEC 2026
37
and practical applications," Wiley Publishing,
2010.
[21] W. Stallings, "Cryptography and network
security: Principles and practice," 7th ed.,
Pearson, 2017.
[22] M. Grinberg, "Flask web development:
Developing web applications with Python," 2nd
ed., O'Reilly Media, 2018.
[23] SQLite Development Team, "SQLite: The most
widely deployed database engine," SQLite.org,
2021. [Online]. Available:
[24] Werkzeug Team, "Werkzeug: The
comprehensive WSGI web application library,"
Werkzeug Documentation, 2021. [Online].
Available: https://werkzeug.palletsprojects.com/
[25] Bootstrap Team, "Bootstrap 5: The most popular
HTML, CSS, and JS library," Bootstrap
Documentation, 2021. [Online]. Available:
