Blockchain Based Medical Record Storage and Retrieval Using NFT Tracking System
Blockchain Based Medical Record Storage and Retrieval Using NFT Tracking System
Authorized licensed use limited to: Universiti Kuala Lumpur. Downloaded on June 25,2022 at 09:43:37 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Sixth International Conference on Trends in Electronics and Informatics (ICOEI 2022)
IEEE Xplore Part Number: CFP22J32-ART; ISBN: 978-1-6654-8328-5
problems and can make things easy for the people when it platform which enables easy sharing, storing and accessing of
comes to handling their medical data. medical records of the users. This system brings up an easy
way to store the medical records of the users in a mobile
application using blockchain technology. Since blockchain
II. EXISTING SYSTEM technology is being used in the sys tem, it enables quite a good
For ages, people have been relying a lot on paper- amount of security and enables the safety of the data being
based formats for various things and the medical field is no stored in the application.
exception. Whenever we visit a hospital all of our data is
stored in papers, such as medical prescriptions, lab repo rts, Once the account is been created for a particular
test reports, scans, and everything [6]. Even today most patient and all the data is been entered by the hospital admins,
hospitals use paper-based methods to store and share the the user can then have an account for themselves and can also
medical records of the users. Maintaining these paper-based track their medical information in the app as to who are the
reports can be quite difficult and requires a lot of time and ones viewing their data. In this application, the hospital can
energy [7]. These paper records can be easily lost and are store all kinds of patient medical data, which is of any kind
easily damageable. If lost, it can be quite difficult to get those such as pdfs, images, text x-rays, etc. [9]. It can store different
reports back and the person has to go through the tedious types of medical information such as scans, x-rays,
process of getting them back. A lot of advancements have prescriptions, medical conditions, allergies, infections, blood
been happening in and around the medical field and so storage tests, test reports, and many other kinds of medical
and access of data also requires advancements and relying on information that can be stored in the application. This system
paper-based storage can only be quite tiring and tedious. enables easy storage and access of all kinds of medical-related
works of the users and thus enables the easy carrying of the
health records of the users. The hospital can just feed all kinds
III. LIMITATIONS OF EXISTING SYSTEM of patients’ medical-related data in the application and can
Every time a person visits a hospital he/she has to carry the save them and store them.
paper documents along with them and every time they have to
ensure that they carry the right reports necessary for the day’s The data in the application is stored safely and
checkup or anything and if he/she misses out any of the securely, ensuring high levels of security and thus keeping the
treatment of the documents at the hospital can be quite data safe without getting lost and enabling a trustworthy
problematic and hinder the treatment. These paper-based interface to store people’s health-related data. In this system,
records are prone to damage and are quite hectic to keep them healthcare workers get to sign up to the system and create
safe. If these records get damaged or stolen, it is going to be their respective accounts in the system [10]. Once the
quite tedious and problematic to recover them back and there accounts have been created, each user gets assigned their
are high chances of it to get misused by others. respective patient ID, which uniquely identifies each user in
The paper-based documentation of medical data the system. For the healthcare workers, whenever they want to
requires high maintenance and is quite tedious to maintain or access the medical data of users, they can just enter the patient
store and share. Accessing these documents can be quite ID of users and view all the medical-related details of the
difficult even for doctors during emergency times and during users enabling easy sharing, accessing, viewing, and storing of
emergencies, one cannot carry them along all the time and so medical data of users. In this application the hospitals can
gathering all the required medical records of users quickly is store all kinds of patient medical data, which is of any format
tough for the medical care workers and can delay the process such as pdf, images, text x-rays, etc.
of medical treatment which can quite a risky thing, especially
during emergencies. Apart from difficult accessibility,
security is also an issue with paper-based records. That is V. ADVANTAGES OF THE PROPOSED
anyone who can see the documents can view them and can SYSTEM
misuse them anytime which can be quite dangerous [8]. Since this system stores all the medical-related
Therefore, the paper-based format of a medical record is quite information of a person in a single platform, this enables a
a high-maintenance one and also offers zero security and is single platform to store the lifetime storage of medical
prone to damage, and is quite difficult to store and share. information of the users. Thus the user doesn’t have to keep
different medical-related data at different places and platforms
and all their medical-related information can be stored in one
IV. PROPOSED SYSTEM place, which can be easy to carry, store and share.[11] During
To overcome all the flaws and limitations related to a medical checkup, the users need not carry files or documents
the existing system in the medical field regarding the storing, in bunches of paper to the hospital. The healthcare admins
sharing, and accessing of the medical data or records of the have to just enter the patient id once the patient creates an
users, we have come up with a solution that can solve this account and all the required patient’s personal as well as
issue by creating a user-friendly mobile application that can medical data in the application. The application stores the data
store all the medical information of the users in a single
Authorized licensed use limited to: Universiti Kuala Lumpur. Downloaded on June 25,2022 at 09:43:37 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Sixth International Conference on Trends in Electronics and Informatics (ICOEI 2022)
IEEE Xplore Part Number: CFP22J32-ART; ISBN: 978-1-6654-8328-5
safely in the database and provides good levels of security to or for transactional purposes and so this makes the data stored
the data stored in them. in the software vulnerable to various threats. Threats such as
Since the data is being stored in the blockchain and it data being stolen or changing make it easy to tamper with and
is being used in the designing of the application, it makes it change the transactions, which is of a great loss to the user as
quite difficult for malicious users to tamper with the data or well as for the company. Therefore blockchain can here in
misuse the data or make any kind of changes to them. such cases come to the rescue and can enable a secure way of
Blockchain technology uses good levels of hashing algorithms storage. Blockchain firstly was used for bitcoins, which is a
to make the data stored in it secure and permits good cryptocurrency and many people assume that blockchain was
standards of security so the users can stay carefree regarding generally used only for cryptocurrency. But now since the
the security of their medical information being stored in the development of blockchain to a larger extent, blockchain
application. Also for the tracking of medical data for the users, technology can be used in many other applications for safe
the concept of NFT (i.e.) Non Fungible Tokens is used, which and secure storage of the data being stored in the respective
helps in uniquely identifying a particular user and also application [13].
tracking their medical records in the app.
Many fields such as finance, medicine, healthcare,
supply chain, manufacturing, etc., and many such industries
VI. FUNCTIONALITY OF THE PROPOSED can employ blockchain technology in them to enable the
SYSTEM safety and security of the data being stored in their respective
This software has been developed for hospitals . The applications. Blockchain is an evolving technology with many
hospital appoints healthcare admins to enter and manage the benefits. With so many advancements happening in this
user's health records. First, the healthcare workers need to sign digital world, blockchain also emerged as one of the finest
up for the app and create accounts for themselves. Then once technologies to have a look at and many companies are
they log in to their respective accounts, they can now create coming forward to invest in the research and usage of this
the patient's accounts and manage them. Every time a new seemingly good technology that is blockchain.
patient visits a hospital the admins create a new account for
them and then enter all the personal as well as medical-related
data into the account. For the existing users, the admins can VIII. ADVANTAGES OF BLOCKCHAIN
view their records by using their unique patient ID which gets It utilizes an important feature called digital
generated as soon as the account is been created in the app. signatures to process every transaction, making it secure so
The admins can also search and modify the medical data of that no one can do fraudulent transactions to mislead others by
the existing patients with the help of the patient ID [12]. modifying the vital data which is business-centric. No one can
The users on the other hand can view all the data that misuse a person’s data without the knowledge or permission
has been added to their account in the mobile app and can also concerned person. So it is a highly secure technology and also
track their records as to who are the ones viewing their a very reliable one. It requires the approval of governing
records. Whenever a person visits a hospital, he/she can just authorities for performing all kinds of transactions. however,
carry their mobile phone with the application downloaded in it with Blockchain, business transactions are carried out with the
with all the health-related data being fed into it and can go for mutual agreement of users resulting in smoother, safer, and
their regular checkups in the hospital. The doctor when faster transactions hence it follows a decentralized system and
treating the patient/user can just enter the patient ID of the does not have any central authority controlling it hence each
user and can just view the medical-related info of the user individual or each block in that particular blockchain network
without going through any kind of paper-based files or will have authority and access on the transactions in the
documents. This can prevent the misusage of the data from blockchain or data being stored in the blockchain [14]. It is a
unauthenticated users and can become a reliable application to customized technology that can produce systematic actions,
store the user’s health-related data. This gives the users a events, and payments automatically when the conditions of
sense of control over their medical information. the trigger are fired. It has a very strong and high standard of
automation capability.
Authorized licensed use limited to: Universiti Kuala Lumpur. Downloaded on June 25,2022 at 09:43:37 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Sixth International Conference on Trends in Electronics and Informatics (ICOEI 2022)
IEEE Xplore Part Number: CFP22J32-ART; ISBN: 978-1-6654-8328-5
timestamp, and other significant, appropriate information. It is by the other users without a specific digital signature and
worth noting that the block doesn’t contain the identities of so it is highly a secure technology and very much a
the people involved in the transaction. This block is then reliable one.
passed across all of the network nodes, and when the correct Many fields such as finance, medicine,
person uses his private key and finds a match with that block healthcare, supply chain, manufacturing, etc., and many
then the transaction is completed successfully. Apart from such industries can employ block chain technology in
undergoing financial transactions, the Blockchain can also do them to enable the safety and security of the data being
transactions related to properties, vehicles, etc. stored in their respective applications. Block chain is
developing technology with various benefits. With so
many advancements happening in this digital world, block
X. IMPACTS OF BLOCKCHAIN chain also emerged as one of the finest technologies to
have a look at and many companies are coming forward to
Blockchain has influenced a drastic change in society.
invest in the research and usage of this seemingly good
Blockchain has a wide range of applications and uses in
technology that is block chain.
healthcare. The ledger technology facilitates the secure
transfer of patient medical records, manages the medicine
supply chain, and helps healthcare researchers unlock XI. SYSTEM ARCHITECTURE
genetic code. Health care centers can construct a
In this application the hospital can store all kinds of
centralized database with the help of recent technology
patient medical data, which is of any kind such as pdfs,
and communicate the information with authorized people
images, text x-rays etc. It can store different types of medical
alone. Blockchain technology can build a decentralized
information such as scans, x-rays, prescriptions, medical
peer-to-peer network for organizations or applications in
conditions, allergies, infections, blood tests, test reports , and
various industries and fields for safe and secure
many other kinds of medical information that can be stored in
transactions. There are lot many applications of
the application. This system enables easy storage and access
Blockchain such as parking vehicles automatically and
of all kinds of medical related works of the users and thus
collection of toll fees etc. where people can pay for and get
enables easy carrying of the health records of the users. The
their services done. Transections can be monitored from
hospital can just feed all kinds of patients’ medical related
starting point of the transaction to till the end of a
data in the application and can save them and store them. The
successful transaction by all users in the supply chain [15].
data in the application is stored safely and securely in the
application ensuring high levels of security and thus keeping
Blockchain has made a great impact on society. the data safely without getting lost and enabling a trustworthy
Blockchain technology can be used as a secure platform interface to store people’s health related data. In this system,
for the healthcare industry to store sensitive patient data. healthcare workers get to sign up to the system and create
Health-related organizations can create a centralized their respective accounts in the system. Once the accounts
database with the technology and share the information have been created, each user gets assigned their respective
with only the appropriately authorized people. Blockchain patient ID, which uniquely identifies each user in the system.
technology can create a decentralized peer-to-peer network For the healthcare workers, whenever they want to access the
for organizations or applications in various industries and medical data of users, they can just enter the patient ID of
fields. It allows people to pay for things like toll fees, users and view all the medical-related details of the users
parking, etc. Transactions or information on a Block chain enabling easy sharing, accessing, viewing, and storing of
platform can be tracked from departure to the destination medical data of users.
point by all of the users in the supply chain.
Block chains can be set up to operate in a variety
of ways, using different mechanisms to secure a consensus
on transactions, seen only by authorized users, and denied
to everyone else. Bitcoin is the most well-known example
that shows how huge Block chain Technology has become.
Block chain’s prime application and the whole reason the
technology was developed in the first place, has helped
many people through financial services such as digital
wallets. One of the main features of blockchain technology
is the way it confirms and authorizes transactions. For
example, if two individuals wish to perform a transaction
with a private and public key, respectively, the first person
party would attach the transaction information to the
public key of the second party. It uses a digital signature
feature to conduct fraud-free transactions making it
impossible to corrupt or change the data of an individual
Authorized licensed use limited to: Universiti Kuala Lumpur. Downloaded on June 25,2022 at 09:43:37 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Sixth International Conference on Trends in Electronics and Informatics (ICOEI 2022)
IEEE Xplore Part Number: CFP22J32-ART; ISBN: 978-1-6654-8328-5
Authorized licensed use limited to: Universiti Kuala Lumpur. Downloaded on June 25,2022 at 09:43:37 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Sixth International Conference on Trends in Electronics and Informatics (ICOEI 2022)
IEEE Xplore Part Number: CFP22J32-ART; ISBN: 978-1-6654-8328-5
help of non-fungible tokens. Once the data is entered in the Genesis block. If anyone tries to change the data stored in any
app, the data gets encrypted using various hashing algorithms of the blocks, the entire hash values of all the blocks that
such as SHA-256 algorithms and then after successful follow that particular block will be changed and so it will be
encryption of the data, it gets stored in the form of blocks in easy to identify if any data is being changed and this is what
the database. After many such individual blocks are added, the makes the data stored in the block chain difficult to tamper
blocks get validated to maintain the integrity of the blockchain with. The block chain implementation in this system is done
and ensure that no tampering with data is been done. If the with the help of Python language and so the hashing algorithm
blocks get successfully validated, that block gets added to the used for developing the sys tem is SHA-256 with the help of a
existing block chain, otherwise, the block doesn’t get added to library called hashlib. The class called Minimum Block is
the existing block chain. created and it contains details such as data, timestamp, index,
and the previous hash, which is the hash value of the previous
block.
A function called hashing is used to hash the data of
the blocks using encoding utf-8 and the hash value is
converted into hexadecimal value using the function
hexdigest. If the hash value of the previous block and the
previous of the current block is not match, then it produces a
“wrong previous hash” message. If the hash value of current
block and the hashing () output of that same block is not same,
39 then it produces a “wrong hash at the block” message. If
the timestamp of the previous block is greater than the
timestamp of the current block, then it produces a “Backdating
at the block” message. The data that has been entered and
saved by the users will undergo all of these block chain
methods to encrypt the stored data before it gets stored in the
database.
Authorized licensed use limited to: Universiti Kuala Lumpur. Downloaded on June 25,2022 at 09:43:37 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Sixth International Conference on Trends in Electronics and Informatics (ICOEI 2022)
IEEE Xplore Part Number: CFP22J32-ART; ISBN: 978-1-6654-8328-5
XV. CONCLUSION
While conducting the experiments we simulated the As technical advancements are rampant in every field
number of users and evaluated the performance of the system. nowadays, its high time that we go paper-less when it comes
These simulations are run on the proposed framework and at to carrying medical documents and so implementation of our
the end, throughput is analyzed. It is observed while system could really benefit the society at a larger scale by
conducting this experiment that as the number of users and saving time and energy in maintaining so many health-related
requests increase the throughput of the system increased records in the form of physical documents. Thus our system
considerably in a linear manner. This linear increase in could help society in easy maintenance of their medical
throughput indicates the efficiency of the proposed records in a secure manner. We as engineers always look up to
framework. In JMeter, the throughput is represented in apply engineering principles in solving problems faced by
Data/time i.e. KB/sec units. society and people in their day-to-day lives and try to make
lives simple and easier by applying the principles of
engineering and technology and making lives better and
simpler to live. Thus our aim to develop this project is to
create a considerable amount of impact on people’s lives and
to reduce human effort.
We simulated the number of users for our system by [1]. A. Garba, Z. Chen, Z. Guan and G. Srivastava, "Light Ledger: A Novel
using JMeter. In JMeter latency is measured in terms of Block chain-Based Domain Certificate Authentication and Validation
Scheme," in IEEE Transactions on Network Science and Engineering, vol. 8,
milliseconds. The following graph gives an overview of the no. 2, pp. 1698-1710, 1 April-June 2021, doi: 10.1109/TNSE.2021.3069128.
average latency of our system along with the throughput. The
highest recorded latency in this experiment is 14ms. [2]. C. -T . Li, D. -H. Shih, C. -C. Wang, C. -L. Chen and C. -C. Lee, "A
Block chain Based Data Aggregation and Group Authentication Scheme for
Electronic Medical System," in IEEE Access, vol. 8, pp. 173904-173917,
The transaction size was calculated from a block size 2020, doi: 10.1109/ACCESS.2020.3025898.
perspective and was calculated in a generalized manner. The
patient's online transaction for bill payment could be [3]. Hao Jin, Yan Luo, Peilong Li (2019), ‘A Review of Secure and P rivacy-
represented as follows: Preserving Medical Data Sharing’.
[4]. J. Sun, X. Yao, S. Wang and Y. Wu, "Block chain-Based Secure Storage
and Access Scheme for Electronic Medical Records in IPFS," in IEEE
Access, vol. 8, pp. 59389-59401, 2020, doi: 10.1109/ACCESS.2020.2982964.
Authorized licensed use limited to: Universiti Kuala Lumpur. Downloaded on June 25,2022 at 09:43:37 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Sixth International Conference on Trends in Electronics and Informatics (ICOEI 2022)
IEEE Xplore Part Number: CFP22J32-ART; ISBN: 978-1-6654-8328-5
[13]. Xiaodong Yang, Ting Li, Long Wen, Caifen Wang (2020), ‘Medical
Data Sharing Scheme Based on Attribute Cryptosystem and Block chain
T echnology’.
[14]. X. Liu, Z. Wang, C. Jin, F. Li and G. Li, "A Blockchain -Based Medical
Data Sharing and Protection Scheme," in IEEE Access, vol. 7, pp. 118943 -
118953, 2019, doi: 10.1109/ACCESS.2019.2937685.
[16] K. U. maheswari and G. Shobana, "T he State of the art tools and
techniques for remote digital forensic investigations," 2021 3rd International
Conference on Signal Processing and Communication (ICPSC), 2021, pp.
464-468, doi: 10.1109/ICSPC51351.2021.9451718.
Authorized licensed use limited to: Universiti Kuala Lumpur. Downloaded on June 25,2022 at 09:43:37 UTC from IEEE Xplore. Restrictions apply.