Abstract
Electronic Medical Records (EMRs) are crucial to modern healthcare. However, traditional relational databases fail to fulfill increased expectations for integrity, auditability, and compliance in regulated environments. This paper proposes a Hybrid Blockchain Migration Framework that integrates a conventional MySQL-based EMR system (OpenMRS) with a permissioned blockchain network (Hyperledger Fabric). Sensitive data fields are selectively mirrored to the blockchain, ensuring tamper-evident logging while retaining the high performance of SQL for routine operations. A middleware layer, implemented using Java Spring Boot, monitors changes in the EMR and commits cryptographic hashes and metadata to the blockchain in near real-time. We evaluate the hybrid system against both standalone MySQL and full-blockchain implementations using controlled benchmarks, analyzing latency, throughput, resource utilization, and auditability. Results show that the hybrid architecture sustains near-native responsiveness (median 2.1 ms versus 1.6 ms for pure MySQL and 60.5 ms for Fabric) and delivers 480 Transaction Per Second (TPS), while incurring only modest overhead (47% of i7-9750H CPU, 1.15 GB RAM) and enhancing data integrity and compliance with regulations such as Oman’s Personal Data Protection Law (PDPL). The framework is extensible to multi-institutional deployments and supports regulatory alignment, making it a viable pathway for blockchain adoption in clinical settings.
Data availability
The datasets generated and analysed during the current study were produced using a synthetic data generation script that creates artificial patient records based on common Omani first and family names. No real patient information or personally identifiable data were used. The synthetic dataset used for system benchmarking and blockchain migration testing is therefore fully de-identified and does not contain any real Electronic Medical Record (EMR) data. The data generation code, along with the sample synthetic dataset, is available in the [GitHub repository — link to be added upon acceptance]. Researchers can reproduce or extend the dataset by running the provided script, which uses randomized values for demographic and physiological parameters (e.g., height, weight, blood pressure) generated within medically plausible ranges. All synthetic data used in this study are compliant with the Oman Personal Data Protection Law (PDPL) since no identifiable or sensitive personal data were processed. Additional files or further materials are available from the corresponding author upon reasonable request.
References
Hölbl, M., Kompara, M., Kamišalić, A. & Zlatolas, L. N. A systematic review of the use of blockchain in healthcare. Symmetry 10(10), 470 (2018).
Agbo, C. C., Mahmoud, Q. H. & Eklund, J. M. Blockchain technology in healthcare: A systematic review. Healthcare 7(2), 56 (2019).
Vazirani, A. A., O’Donoghue, O., Brindley, D. & Meinert, E. Implementing blockchains for efficient health care: Systematic review. J. Med. Internet Res. 21(2), e13529 (2019).
Daraghmi, E.-Y., Daraghmi, Y.-A. & Yuan, S.-M. MedChain: A design of blockchain-based system for medical records access and permissions management. IEEE Access 7, 164595–164613 (2019).
Siyal, A. A. Applications of blockchain technology in medicine and healthcare: Challenges and future perspectives. Cryptography 3(1), 3 (2019).
Ichikawa, D., Kashiyama, M. & Ueno, T. Tamper-resistant mobile health using blockchain technology. JMIR Mhealth Uhealth 5(7), e111 (2017).
Rouhani, S. MediChain™: A secure decentralized medical data asset management system. In Proc. IEEE Cybermatics (Blockchain 2018 Workshop), pp. 1348–1355 (2018).
Azaria, A., Ekblaw, A., Vieira, T. & Lippman, A. MedRec: Using blockchain for medical data access and permission management. In Proc. 2nd Int. Conf. Open Big Data (OBD), pp. 25–30 (2016).
Hasnain, M., Albogamy, F. R., Alamri, A., Ghani, I. & Mehboob, B. The Hyperledger Fabric as a blockchain framework preserves the security of electronic health records. Front. Public Health 11, 1272787. https://doi.org/10.3389/fpubh.2023.1272787 (2023).
Guo, H., Shi, H. & Zhao, C. Access control for electronic health records with hybrid blockchain-edge architecture. In Proc. IEEE Int. Conf. Blockchain, pp. 44–51 (2019).
Wang, Q. & Qin, S. A Hyperledger Fabric-based system framework for healthcare data management. Appl. Sci. 11(24), 11693 (2021).
Sultanate of Oman, Issuing the Personal Data Protection Law. Sultani Decree No. 6/2022, Oman Official Gazette, (2022).
Stamatellis, C., Papadopoulos, P., Pitropakis, N., Katsikas, S. & Buchanan, W. J. PREHEALTH: A privacy-preserving healthcare framework using Hyperledger Fabric. Sensors 20(22), 6587 (2020).
Mettler, M. Blockchain technology in healthcare: The revolution starts here. In Proc. IEEE 18th Int. Conf. e-Health Netw., Appl. Serv. (Healthcom), pp. 1–3 (2016).
Lee, S., Kim, J. H., Kwon, Y., Kim, T. & Cho, S. Privacy preservation in patient information exchange systems based on blockchain: System design study. J. Med. Internet Res. 24(3), e29108 (2022).
Lopez, L. J. R., Millan Mayorga, D., Martinez Poveda, L. H., Amaya, A. F. C. & Reales, W. R. Hybrid architectures used in the protection of large healthcare records based on cloud and blockchain integration: A review. Computers 13(6), 15. https://doi.org/10.3390/computers13060152 (2024).
OpenMRS Community. Our Impact – OpenMRS by the Numbers. OpenMRS. Available online: https://openmrs.org/what-we-do/our-impact/ (accessed on 7 December 2025).
e-Estonia. KSI Blockchain Stack – Zero Trust Applications. Available online: https://digiexpo.e-estonia.com/cyber-security/ksi-blockchain-stack-zero-trust-applications/ (accessed on 8 December 2025).
Ghafur, S. et al. A retrospective impact analysis of the WannaCry cyberattack on the NHS. NPJ Digit. Med. 2, 98 (2019).
National Audit Office. Investigation: The 2017 WannaCry cyber attack and the NHS. UK Parliament / NAO (2017).
Acknowledgements
During the preparation of this work, the author(s) used ChatGPT by OpenAI to improve language clarity and readability. After using this tool, the author(s) reviewed and edited the content as needed and take(s) full responsibility for the content of the publication.
Funding
The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.
Author information
Authors and Affiliations
Contributions
Ahmed Al-Busaidi conducted the research, designed and implemented the hybrid blockchain framework, performed the experiments, analyzed the results, and prepared the manuscript. Mani Joseph, Mohamed Sirajudee, and P. Vijaya. supervised the research, provided technical guidance, contributed to the interpretation of results, and reviewed and refined the manuscript. All authors approved the final version of the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Al-Busaidi, A., Mani, J., Yoosuf, M.S. et al. A hybrid blockchain migration framework for converting traditional databases into blockchain-based EMR systems. Sci Rep (2026). https://doi.org/10.1038/s41598-026-36787-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-36787-6