Next Article in Journal
Sensorless Speed Estimation for the Diagnosis of Induction Motors via MCSA. Review and Commercial Devices Analysis
Previous Article in Journal
Intelligent Network Applications Monitoring and Diagnosis Employing Software Sensing and Machine Learning Solutions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

BlockPres: A Novel Blockchain-Based Incentive Mechanism to Mitigate Inequalities for Prescription Management System

Service and Cloud Computing Research Lab, Auckland University of Technology, Auckland 1010, New Zealand
*
Author to whom correspondence should be addressed.
Submission received: 31 May 2021 / Revised: 6 July 2021 / Accepted: 9 July 2021 / Published: 25 July 2021
(This article belongs to the Section Internet of Things)

Abstract

:
The study presents a blockchain-based incentive mechanism intended to encourage those in underserved communities to engage with healthcare services. The smart healthcare system, which is the result of the amalgamation of advanced technologies, has emerged recently and is increasingly seen as essential to meet the needs of modern society. An important part of the healthcare system is the prescription management system, but studies show that prescription affordability and accessibility play a part in creating unequal access for underserved communities. This is a form of unequal access that results in those living in underserved communities to become disengaged from accessing healthcare services. In New Zealand, the prescription management system plays a crucial role and this study seeks to address the issue by presenting the BlockPres framework, which uses a novel incentive mechanism to encourage patients to participate and engage with services in order to be rewarded. The blockchain attribute of immutability in BlockPres enhances equality and participation by providing sophisticated authorisation and authentication capabilities for healthcare providers and patients. BlockPres empowers the patient by assigning ownership or control of some patient information to the patient. A simulation is carried out using the Ethereum blockchain and the evaluation of successful transaction completion and superficial performance assessment demonstrates that the blockchain would be sufficient to cope with the needs of a prescription management system. Furthermore, for the simulation, a BlockPres Smart Contract is developed using solidity and implemented in Remix. The Ropsten network is used as the simulation environment and the initial results show that the proposed incentive mechanism mitigates unequal access.

1. Introduction

This study uses blockchain technology to enable an incentive mechanism to encourage and attract patients to participate and engage with a Prescription Management System (PMS) and to receive some form of compensation that may be exchanged for the cost of future prescriptions, doctor visits and so on. The paper presents the blockchain based PMS, BlockPres, that addresses issues outlined below and seeks to resolve lack of trust and unfortunate perceptions of the healthcare system among underserved communities in New Zealand.
Healthcare data management is a process intended to improve patient outcomes through the treatment process, efficient tracking of disease, identifying causal relationships in the appearance of diseases, to guide the production of medicines, and to provide pathways for disease prevention. In general terms, a manual system collects data from patient interactions and visits and the data are stored in the patient record. The emergence of Electronic Health Records (EHR) in the Healthcare Information System (HIS) has enabled more efficient sharing of data within and between healthcare organisations, medical drug manufacturers, pharmacists, medical insurance providers, researchers and patients [1]. An HIS consists of a range of information systems, including the PMS [2].
This study focuses on the New Zealand PMS and issues related to underserved communities, in particular, the Māori and Pasifika. Research indicates that under served communities experience unequal access to HIS and, given the broad range of systems that people may interact with, this study specifically addresses the PMS. There are indications that as people experience unequal access, they also become disengaged from the services provided. Factors resulting in patients becoming disengaged include, amongst others, a lack of trust, the cost of treatment and prescriptions and the distance to the healthcare provider plus the cost of transport [2,3,4].
The process of storing (such as historical prescriptions) and transferring patient data across multiple entities is complicated by a heterogeneous and poorly integrated information systems environment [2]. This is not a new problem and there have been attempts at solving this problem before, for example, [3]. The PMS environment is crucial since the responsibility for maintaining an accurate prescription record is shared across healthcare providers. In this study, the proposed system is addressed with blockchain technology.
Blockchain technology is a distributed ledger that maintains its transaction history across a decentralised network of nodes that retain copies of the ledger. The blockchain is updated using a one of a large range of consensus based protocols. In that sense, there is an expectation that there is no trust in the community but that all contributing members have trust in the efficacy of the consensus protocol. The ledger then provides immutable transaction logs and they are typically open to public scrutiny [5].
The main contributions of this study are that by applying a blockchain technology solution, we hope to attain the following:
1.
An incentive mechanism to encourage underserved communities to participate in the delivery of healthcare services;
2.
A framework that seeks to change patient behaviours by altering perceptions about inequality or unequal access and to encourage underserved communities to participate and use the healthcare system;
3.
A system that provides a patient-centric approach where patients control parts of their record and the authorisation process.
The structure of the paper is as follow: Section 2 provides a survey of related work. Section 3 describes the problem being addressed in this study. Section 4 briefly describes the research method. In order to overcome the issue of inequalities, Section 5 presents the conceptual BlockPres PMS. Section 6 provides a description of the incentivisation scheme. Section 7 describes the application of cryptographic keys in BlockPres and, in Section 8, the protocols used in the system are described. Section 9 presents the experiments in which the BlockPres model is evaluated and the effectiveness for its prototype development is presented. The conclusion and directions for future work are presented in Section 10.

2. Related Work and Theoretical Foundation

In the HIS environment, sensitive private data are the norm and are distributed between healthcare providers as a matter of course [2]. What is of concern to providers are limited data accessibility and incomplete data where patients may suffer actual harm in HIS [4,6]. The data need to be delivered in a timely fashion and in a form that is compatible with the receiver [6,7]. For example, timely access to patient data is essential to ensure continuous and correct treatment [8] and the presentation of patient data in transfers between healthcare providers or treatment facilities [9]. This raises two issues, which include what data providers require to share the data and whether systems are in place to share the data seamlessly. To define relationships between providers, the blockchain solution MedRec applies smart contracts where relevant data are preserved on the ledger [10]. MedRec also empowers the patient to reject or accept a patient–provider relationship.
Overall, any improvement observed in the management of patient records should result in greater control of patients’ personal records [11]. The security of data held by providers is important and, thus, measures are required to detect and prevent intrusion [9]. Where poorly defined or managed access control policies exist, poor standards are applied to authentication methods, credential sharing or weak passwords are allowed; in this case, breaches can and do result [12]. Attempts to address these issues have been made and they include the two protocols for Distributed Ledger Technologies (DLT) to improve IEEE 8.02.15.6 and to establish secure links for mobile devices with unbalanced computational requirements and the other to distribute healthcare data among Pervasive Social Network devices [13]. An alternative approach is to provide the same level of security but with less overhead which renders it more challenging to discern access control privileges through the application of smart contracts [14] or with cryptographic signatures [15]. DLTs can also offer a decentralised and consensus-based approach to privacy, security measures and patient data tracking. In addition, if there is no single point of failure in a system, then it may be argued that the deployment of a DLT with its associated redundancy provides greater likelihood of the maintenance of data integrity [6].
The blockchain’s implied immutability means that once records are appended to the chain, they cannot be altered easily [13]. While this presents advantages such as preventing unauthorised changes, it also means that errors may be more challenging to correct in subsequent additions. In such a scenario, an error in data requires a new record to be appended and an interface that reads and reports on the DLT must retrieve the latest entry. Thus, to minimise error rates, the design of the HIS is critical for patient safety. Factors to consider when improving HIS include naturalness, consistency, error prevention, minimisation of cognitive load, interaction efficiencies, feedback mechanisms, effective use of language and customisability or flexibility [3]. Thus, these improvements provide caregivers, healthcare providers, clinicians and technicians more time for individual patients [16].
Instances exist where the quality or veracity of data may only be assured if there is third-party notarisation of a smart contract. For example, when a biomedical database is queried, the enquirer may need assurance that the data are valid [8]. Across the range of health services, the volume of data in HIS is enormous, complex and heterogeneous. Furthermore, the number of dependent and independent HIS that are poorly integrated, the constant updates to existing data, inconsistent data representation and data structures, missing and incomplete data and the difficulty in finding the required answers in large data sets returned from queries [17] renders knowledge discovery difficult and expensive. The DLT provides the opportunity to develop an enterprise bus or a searchable index [8]. Moreover, DLT applications in the areas of supply chain management and provenance tracking have been developed and this is particularly useful in the tracking of drugs with a chain of custody and permits the ability to trace where drugs have been or come from and provenance tracking permits the tracing of counterfeit drugs that may have found a path into the supply chain [18]. Another example of how accurate returns on queries facilitate knowledge acquisition from data is pandemic or epidemic identification by isolating, discovering and driving change for environmental conditions that impact public health [19].
Where patients pay directly for healthcare services and insurance may be used to reimburse costs, the insurer needs assurance that costs are accurate and not inflated [20]. Incorrect billing may be a result of inconsistencies in recorded data, inaccuracies in inpatient medical histories and patient information not shared with healthcare providers and stakeholders [8]; in this case, a DLT can provide transparency and accuracy in billing [21]. Furthermore, if a patient takes ownership of their health record, then the patient should be able to exercise greater control over their expenses and make decisions based on the financial impact of healthcare costs [22]. Smart contracts can be applied to a patient’s healthcare record as a means of alerting providers of treatments or tests that have already been undertaken or additional tests and treatments that may not be necessary [19].
Apart from those examples above, other examples that illustrate the development and implementation of blockchain based systems that use smart contracts include a framework to store patient’s data securely, where patient data are stored on a secure cloud and are accessible upon the authorisation of users [23]. The smart contract can also be used for secure communication between patients and professionals and can notify professionals about patient activities during their stay at hospitals. MeDShare is a blockchain-based system for medical data sharing and provides auditing, data provenance and the control and monitoring of patient data stored in cloud repositories [24]. Patient monitoring has also been proposed [25]. Another example provides an electronic healthcare system using blockchain for a wireless body area network. The system used wireless body sensors to collect patient data and sends it to the blockchain network [26]. To exchange data between healthcare providers, another solution uses magnetic resonance images as a formal method to capture patient information [27].
None of the studies found propose to solve healthcare access issues relative to underserved communities. Studies tend to focus on technological frameworks or variations on billing and security systems; therefore, this study addresses equality, engagement and incentives for underserved communities by using blockchain technology in the design of a PMS.

3. Problem Definition

A range of factors may serve to identify a group as being an underserved community. In addition to the factors that have been identified, we note that members of underserved communities tend to become disengaged from healthcare services. In this section, we describe some of the factors that are related to this study and we define the problem area. However, communities in other cultural or geographic regions may identify different sets of factors.
A common factor that affects a patient’s perception and trust towards the system is a personal belief held that the healthcare system treats the patient unfairly or does not provide equal access to services. This results in the patient becoming disengaged from the healthcare system. This may be because the patient sees the public health system as hostile and alienating and that may be a consequence of the patient’s inability to pay the cost of treatment and prescriptions, a patient living in a rural area may experience high transport costs or difficulties in getting to a hospital or clinic, the inability to take leave from work or personal beliefs that run counter to established medical practices [28].
Over the past several decades, developments in technology have seen a rapid growth of digital devices and technologies to improve HIS [29]. However, groups that are considered to be underserved have emerged over the same period [30] and, in this region, underserved Māori and Pasifika groups with limited access to digital infrastructure have been identified [28]. Factors that typify these groups, amongst others, are long-term medical or disability issues and cultural or language barriers. Additional problems are that underserved communities believe that the system treats them differently from what may be described as a “served” community. Consequently, lack of trust emerges and the unwillingness to make use of healthcare systems available results. In all these cases, social impacts arise when an unequal level of access to digital platforms exists, which in the current environment can result in an unequal level of healthcare delivery [31].
The level of health and well-being amongst Māori populations is reasonably well documented ([31,32], for example). Studies repeatedly show that there exists wellness gaps between Māori and non-Māori and that these include lifestyle factors, levels of existing health conditions and the life expectancy gap is more than eight years between the groups. Rates of smoking tobacco amongst the Māori is 50% higher than non-Māori, resulting in a mortality rate of up to 10%. Even though successive governments have made promises to reduce inequities over the past decade, the problem continues to increase and healthcare systems fail to overcome inequity problems in all population groups [33]. In addition, while recent developments and reforms in the delivery of healthcare services have been made, the problem still exists and accessibility remains, which contributes to inefficiencies and inequities.

4. Methodology

In order to design and develop a framework as a solution to the research problem described above, the Design Science Research (DSR) methodology is adopted [34]. This methodology is used because it allows the extension of boundaries in human and organisational capabilities by creating new and innovative artefacts. For this study, the DSR process is comprised of the following three phases: problem identification, solution design and evaluation. Each phase comprises different steps [35,36]. The design process incorporates the definition of the problem statement and the design of a framework as a conceptual model, which is then refined as a logical model that is evaluated in an iterative process of instantiations to determine the quality of the logical models. The primary purpose of this process is to produce an effective system in the form of blockchain-based PMS.

5. BlockPres Framework

In this section, the BlockPres framework is presented. Table 1 provides notations and descriptions used in the framework and details that follow. Since the overall BlockPres framework is extensive, this paper will only address those related to hospital and GP generated prescriptions.

5.1. System Components

This section provides descriptions of the entities or system participants involved in BlockPres. In order to enhance the efficiency of patient treatment and to build trust in the system, healthcare providers want to share patient healthcare records with peers. The framework consists of system components that include the New Zealand Ministry of Health (MOH), healthNZ and healthcare providers such as doctors, nurses, hospitals and pharmacies [37].
MOH 
The government agency that regulates healthcare systems running in New Zealand. All healthcare providers and pharmacies are registered with MOH. In BlockPres, MOH generates parameters for healthcare providers and provides a unique public key.
HealthNZ 
Exists in each district to control and manage healthcare providers and pharmacies. HealthNZ is responsible for the integration of services provided to healthcare providers and patients.
Healthcare providers 
Medical service providers who provide medical services to patients. The healthcare providers consist of medical staff such as doctors and nurses. Medical staff have access to local computer systems and HIS. In BlockPres, the doctor enters patient data and the data are copied to a hospital server. The local database maintains a private blockchain that verifies incoming blocks. The doctor broadcasts unique keywords generated from individual patient records to a public blockchain. Patient registration and prescription records are stored locally. When a healthcare provider receives a request from another healthcare provider to a access patient record, the public blockchain provides authentication of the entity.
User 
Users are patients in the system and are the primary entities in BlockPres. Patients can either register online to see the doctor or visit in person to obtain an appointment. Each user obtains a public key called a National Health Index (NHI) to interact with the healthcare provider or doctor. The specific NHI number is evidence that the patient receives the treatment and the doctor then generates the record.

5.2. System Design and Workflow

The BlockPres framework and its workflow (Figure 1) is divided into the following three sections: the application layer, data storage layer and service layer. The figure describes the patient’s registration and prescription process from a healthcare provider to a pharmacy and how patients obtain incentives; registration provides permission to their records. The capability to store data on blockchain and IPFS is also included.

5.3. BlockPres Application Layers

The application layer provides an Application Programming Interface (API) for the system participants. The system participants are denoted by the following.
Patients P T K ( P T 1 , P T 2 , P T 3 , P T m )
Doctors D T K ( D T 1 , D T 2 , D T 3 , D T m )
Nurses N K ( N 1 , N 2 , N 3 , N m )
Hospitals H K ( H 1 , H 2 , H 3 , H m )
Pharmacies  P H K ( P H 1 , P H 2 , P H 3 , P H m )
Figure 2 illustrates the booking and registration process. When the patient, P T K , is registered with BlockPres, they are provided with public and private identifiers (IDs). The IDs allow for further interactions on the system and the authorisation of events as they occur. The patient, P T K , obtains an appointment online by using the API or he can travel straight to the hospital. Figure 3 illustrates the consultation process and Figure 4 presents the prescription process of patients traveling from the healthcare provider to the pharmacy.

5.4. Data Storage Layer of Proposed Framework

Participant records are stored at the data storage layer. When a patient, P T K , visits a hospital H K or general practitioner G P S K for service, the H K administrator registers the patient’s presentation information; otherwise, the patient P T K registers online with a device and using the API (Figure 2).
Algorithm 1 presents the patient registration to the diagnostic service process. For any case, a Registry Contract, R C (part of the Smart Contract, S C ), is required to be signed. The patient, P T K , provides personal information and presentation information in the R C . During the consult, the doctor, D T K , assesses the patient, P T K , and, where it is required, prescribes treatment or makes a request for further testing (Figure 3). When a doctor, D T K , prescribes medication or makes a request for tests (Figure 4), a transaction will result and consists of the IDs for the doctor ( D T K ), patient ( P T K ), details of medications or tests, dosage instructions and a timestamp.
Algorithm 1: Patient visits the Hospital/GP for a specific problem
Sensors 21 05035 i001
When the transaction is assembled, the record is stored in a transaction pool to be added to a block in a D B for the hospital H K . When the pooled transactions have been validated, they are added to a public ledger. Note that no patient data are added at this point. The public ledger can only contain a record of the smart contract’s existence.
A patient, P T K , may then visit a pharmacy or other healthcare providers (Algorithms 2 and 3) and provide the public key to grant access to the prescription transaction (Figure 5). The pharmacy will use the patient’s ( P T K ) private key to decrypt the transaction. The service agent cannot have access to the key itself because this is an automated process. A record of the completed prescription is created, which is encrypted using the patient’s ( P T K ) private key and stored on a single chain and then submitted to the public chain.
Algorithm 2: Accessing patient’s record from a different healthcare provider
Sensors 21 05035 i002
Algorithm 3: Patient’s visits to a different hospital
Sensors 21 05035 i003

5.5. BlockPres Service Layer

In this layer, data are stored in a second layer by healthcare providers and uploaded to a public blockchain, P U b c , to provide services to the healthcare provider (Figure 6). The lower layer, H 1 , holds encrypted data from patients and information is stored in a healthcare provider database, D B , and then the data are broadcasted to the decentralised and distributed network. The selected systems are responsible for verifying the blocks of data before forwarding them to the public blockchain, P U b c . In this phase, the patient’s ( P T K ) record is stored in a public blockchain ( P U b c ), for example, the InterPlanetary File System (IPFS) [38,39,40]. IPFS is a Distributed File System (DFS) that operates as an alternative to the Domain Name System (DNS) that currently dominates the Internet. IPFS promises to distribute the World Wide Web and render it more efficient. IPFS is appropriate for this solution because it can store large files and the data can be retrieved using keywords or a hash of the related content [41,42,43].
Figure 7 illustrates communication and transaction processes between entities in the healthcare system and Algorithm 3 describes the process of obtaining patient records from various hospitals. When a third-party provider such as a pharmacy needs to access a patient record, permission is obtained from the patient ( P T K ). The healthcare provider sends a service request to the public blockchain, P U b c , and then to a healthcare provider, H p . The process of accessing the data is secured by public encryption with search keywords [42,44]. The healthcare provider must sign the patient’s P T K R C on the S C and then sign a Permission Contract to access the patient’s P T K data. In order to access the patient’s ( P T K ) data, a Permission Contract ( P C ) is used to sign an agreement between healthcare providers and to obtain confirmation from the patient ( P T K ) before sharing their data with other providers. Moreover, this phase includes an incentive mechanism (Algorithm 4) to encourage patients to use the healthcare system and to behave honestly when sharing medical records with healthcare providers. In return, patients will obtain incentives as Ethereum tokens by using the ERC-20 protocol [45,46]. Patients can use the tokens earned wherever they may be redeemed to obtain discounts on healthcare charges, to purchase coffee in a coffee shop, to purchase apparel from clothing stores and so on.
The BlockPres framework provides critical functions. The first function is to enhance equality across the PMS. Secondly, the network is decentralized and thus records are distributed since the blockchain is highly redundant [47,48]. Every network node receives an updated copy of all records [49,50]. Thirdly, the system provides integration, which enhances integrity and trust. The fourth function is to provide an incentive mechanism to encourage patients to participate and use the healthcare system and to behave honestly to obtain rewards in tokens.
Algorithm 4: Patient Obtaining Incentives
Sensors 21 05035 i004

6. Incentive Mechanism to Mitigate Unequal Access

In this section, an incentivisation mechanism to mitigate negative effects of unequal access to healthcare services is described. Perceptions that prevent engagement in the fulfilment of prescriptions may be overcome if patients are encouraged to participate through incentivisation. In this study, a system that incorporates cryptocurrencies might show positive benefits if an incentivisation scheme was introduced to the prescription fulfilment process. The incentive is to earn tokens as a reward for prescriptions that are successfully filled. The tokens may be redeemed for health services, products, services and so on. It is also possible that the patient can send their earned tokens to others to help them obtain additional services.
The incentive platform is built on a cryptocurrency blockchain with a specifically designed incentivisation protocol. Algorithm 4 provides an incentive or reward for patients that provide access to their records. When a patient signs up for the service using the API (Figure 8), the patient’s account creates a unique address for authorisation and identification. A patient crypto wallet is installed which enables the patient to receive rewards from the system. It is also necessary to link the system to appointment bookings and prescription repeats. The cases below show how the incentive is accounted for with respect to the patient’s wallet.
Case 1 
Whenever patients visit a healthcare provider or doctor for treatment and register with healthcare providers, the patient receives a reward (token). The workflow of the incentivisation process is illustrated in Figure 6.
Case 2 
When a patient is issued a prescription from the doctor and then visits a pharmacy to obtain the medication, the pharmacy enters the patient NHI to obtain the prescription. The access request alerts the doctor for authorisation and, at the same time, the patient receives an authorisation request. The patient receives a reward for providing authorisation for access with respect to obtaining prescription from the pharmacy.
Case 3 
Whenever the patient visits other healthcare providers or doctors, for example, in cases of emergency, the doctor accesses the patient’s previous record or history of treatments and prescriptions. The doctor sends a request to the patient healthcare provider for granting access to the patient’s record. In this case, the patient will receive permission requests from their healthcare provider doctor:“the provider, ABC, needs to access your record, do you give permission?” Once the patient’s permission is obtained, the patient will receive a reward.
Case 4 
When the healthcare provider shares a patient record for any purpose with any other healthcare provider, doctor and organisation, the patient will receive incentives (tokens) for permission to access the record.

7. Utilisation of Cryptographic Keys in BlockPres

In this section, the utilisation of cryptographic keys is described. Cryptographic keys play a significant role to ensure data privacy [51,52]. Public/private key pairs are used to provide P T K transaction confidentiality when the record traverses untrusted channels [53,54]. In BlockPres, there are multiple entities P T K , D T K , N K , A D , P H K and N S K and thus the system creates keys for each entity using a cryptographic method called El Gamal [55,56,57]. The key pair of an entity is symbolised by P K k and S K k , where P K k is a public key of an entity and S K k is a private or secret key of an entity. Moreover, the S K k must be kept secret by the entity, while P K k can be distributed among healthcare providers and other entities in the system. Therefore, the public key set is P K k = ( P K 1 , P K 2 , P K 3 , P K 4 , P K k ) . The secret or private key relation is established between entity A and B by using a secure algorithm (for example, AES) [57]. A Diffie–Hellman key exchange mechanism is responsible for establishing keys before communication occurs between A and B and it is only known to the entities communicating with one another [58,59,60]. The keys are required to ensure the integrity, security and authenticity of the transactions when both entities generate transactions [38,52].

7.1. Transactions Patterns

In BlockPres, a set of attributes is defined as a transaction related to the P T K prescription record and information inside the record is encrypted with S K between the sender and receiver. In this case, the sender and receiver can be P T K , D T K , healthcare providers and vice versa. There are three types of the transactions described in the following sections: Genesis transaction ( T x G e n ), D B transaction ( T X D B ) and P U b c transaction ( T X P U b c ).

7.2. Genesis Transaction

Genesis transaction ( T x G e n ) (Equations (1) and (2)) creates the first hash in a new blockchain. Initially, the transaction is created when the P T K registers and is stored in a hospital database. The D B stores data from the connected department in a hospital, for example, a surgical dept where the following is the case:
T x G e n  is a genesis transaction created by any user in the system;
t x i d  is a transaction ID;
P T i d  is a patient ID;
S K P  is a secret key;
P K P  is a public key;
S C  is a smart contract;
D B  is a private database;
S i g n s 1 , s 2 , s 3 , s 4 , s n  is a message signed by the patient/doctor using a private key which contains attributes related patients medical record.
T x G e n = R e g ( [ F n a m e , L n a m e , A d d , ] , S K P , P K P , S C , S i g n )
T x G e n = ϵ n c ( [ t x i d , P T i d , S i g n ( s 1 , s 2 , s 3 , s 4 , s n , P K P ) ] , S K P , D B )
Equation (2) is the encrypted transaction created by the users in using a private key.

7.3. Local Database Transaction

In order to store the prescription record, P T K , in the hospital DB and for validation, this transaction (Equation (3)) is created by the healthcare provider: D T K , N K and administration. The transaction can be represented as a tuple where, in addition to the previous variables, the following are included:
T x D B  is a DB transaction created by any user in the system;
D T K  is a Doctor ID;
S K d  is a doctor secret key;
P K d  is a doctor public key.
T x D B = ϵ n c ( [ t x i d , P T i d , S i g n ( s 1 , s 2 , s 3 , s 4 , s n , P K P ) ] , S K P , [ D T K , S K d , P K d , S i g n ( s 1 , s 2 , s 3 , s 4 , s n , D B ) ] )
Equation (3) is the encrypted transaction created by the healthcare providers to store the patient record using the private key.

7.4. Public Blockchain Transaction

Healthcare providers generate this transaction (Equation (4)) to upload patient records as keywords to IPFS, which works as a P U b c in the system. The transaction accesses the record at a healthcare provider if and only if the patient has a prescription record. This transaction is represented as a tuple below.
T x P U b c  is a public blockchain transaction;
K w  is a keywords search by healthcare providers in a P U b c ;
P R d  is a patient record.
T x P U b c = ϵ n c ( [ t x i d , P T i d , P K P ] , [ D T 2 I D , P K d , S i g n , k w , S C , D B ] , P U b c )
In the transaction above, H 2 sends a request to H 1 D B from P U b c to access a specific patient record. By signing SC using a public and private key, the transaction in Equation (5) represents the reply from H 1 , providing the patient record and allowing H 2 access to the patient record.
T x P U b c = ϵ n c ( [ t x i d , P T i d , P K P ] , [ D T 2 I D , P K d , S i g n , k w , S C , D B , P R d ] , P U b c )

8. BlockPres Protocol Description

In this section, the protocols applied in BlockPres are described. The protocol comprises the three following phases: Setup, User Registration (which includes Encryption and Decryption) and Incentive Mechanism.

8.1. Phase 1: Setup ( λ )

The hospital, H 2 , runs the setup algorithm and takes the security parameter ( λ ) as input. The output of the system setup parameter is the public key ( P K ) and master key ( M K ). Then H 2 publishes the public key on media or in a database. H 1 encrypts the M K and embeds it into the transaction. H 1 also runs the smart contract on the blockchain. The smart contract provides access to D T or H 2 as encrypted indexes stored on the blockchain network. When H 2 sends a request for registration to H 1 , H 2 first needs to check the identity of the H 1 . After confirming the H 1 , H 2 assigns an attribute set S and adds the H 1 Ethereum account address to the smart contract, whereupon H 2 generates S K .

8.2. Phase 2: User Registration

This algorithm, run by H 1 , takes the input of P T , N H I and D T attributes S. The output will be S K . The D T private key is encrypted and secured using the AES algorithm and attached to the Ethereum account. The encrypted key is generated using the Diffie–Hellman key exchange protocol and H 1 sends the P T transaction ID and smart contract non-repudiation signature through a secured channel.

8.2.1. Encryption

The encryption algorithm runs by H K and consists of the following algorithms.
EncryptingFile 
This algorithm takes input in a shared file and provides as output the ciphertext C T , K and k w . The H K selects a set of keywords, k w , from the shared file, key K from AES keyspace and uploads the C T to IPFS.
KeyEncryption 
This algorithm takes input P K as the public parameter, K as the file encryption key and the location of the file. It provides an output of ciphertext C T . H K uses K to encrypt ciphertext and the location and uses the AES algorithm to encrypt file key K. The algorithm uses public parameters to encrypt K and the ciphertext. H K randomly selects the AES key, K, to encrypt C T and embeds it into the Ethereum transaction.
IndexGen 
To access or share a file, this algorithm is run by either D T or H K . It takes input a keyword, k w , and P T N H I . The output of this algorithm is a keyword index based on P T N H I from the smart contract initiated by both parties.

8.2.2. Decryption

This algorithm is run by H K to access a P T record or file. It takes the file location in C T , AES encrypted keys K, D T and the secret key, S K , of the individual accessing the file. The output of this algorithm will be the original file. Based on the index keyword search, k w , of smart contracts, D T or H K reads the transactions from the Ethereum network. If the access policy meets the attribute S, then D T or H K decrypts the C T to obtain the original file from the IPFS.

8.3. Phase 3: Incentive Mechanism Process

This algorithm is run by H 1 to access P T records from H 2 as a request from P U b c . It takes the input of P T , N H I , C T , k w and P T ( P K ) . H 1 sends an authorisation request to P T to grant access. In return, P T will receive a T k from H 1 which is stored in a Wallet.

9. Experimental Results

This section presents an evaluation of the BlockPres framework and model. Section 9.1 details the simulation preparation, the environment and system specifications. Section 9.2 presents the preliminary simulation to validate the effectiveness of an instantiation of the model. When satisfied with the performance of the blockchain, an instantiation of BlockPres is presented in Section 9.3 and the effectiveness of the model is assessed.

9.1. System Specification and Simulation Environment

The evaluation uses the Ethereum network to perform a simulation of BlockPres. The Ethereum network provides more features than the bitcoin network [59,60], for example, the application of smart contracts and scripting through Solidity [38,61], that Ethereum consumes less computational power to validate transactions [62,63], Ethereum is able to validate more transactions per second than bitcoin [63] and the capability to build Decentralized Applications (DApps).
This simulation makes use of the Remix Integrated Development Environment (IDE), which uses the Solidity language to simulate the creation and use of Smart contracts [61]. In addition, Ganache is also used, which is a blockchain-based environment that provides virtual accounts that are linked to the Remix IDE and enables the execution of smart contracts. The ability for Ganache to produce unique IDs, the provision of mining processes to validate transactions and the ability to write the transactions to the blockchain provides the core functions in the simulation. Moreover, every virtual account has predefined amounts in the form of ether stored. Virtual accounts use these predefined ether amounts as a cryptocurrency [38]. The third important component is MetaMask, which is a browser extension that provides connectivity with Ganache and the Remix IDE [64]. The initial simulation is run on a local machine with the following specifications: Macbook Pro, HDD volume of 500 GB, 16 GB of RAM, CPU is a X64-based Intel processor running at 1.61 GHz and a 64-bit operating system.

9.2. Experiment 1: Preliminary Simulation for Blockchain Environment

To verify that a blockchain can process a sufficient number of service requests, two months of Ethereum transactions have been analysed [62]. The evaluation assesses the performance metrics block size, number of transactions per block, transactions per second, total number of transactions, median confirmation time and average block size.
The data shown in Figure 9 illustrates Ethereum blockchain performance during the simulation. The blockchain grew at a more or less constant rate, at 2.686 GB per day (Figure 9a), but during that period the median confirmation time was less constant (Figure 9b), although the overall median confirmation time is 10.2 min per block. The number of unique transactions per block is 2200 (Figure 9c) and the average block size is 1.2 MB (Figure 9d). In terms of average speed, the Ethereum blockchain network executed six transactions per second (Figure 9e) with a total number of transactions processed per day of 360,000 (Figure 9f).
Consideration of the raw data allows a summary conclusion that Ethereum is sufficient to cope with the needs of BlockPres. This solution meets the basic requirements of BlockPres and satisfies the needs of storage and retrieval of patient records in a secure and trusted environment.

9.3. Experiment 2: Validation of the BlockPres model

Gas is a fundamental component of the Ethereum blockchain and its use impacts transaction speed and computational power [62,64]. There is an assumed difference in cost if Proof of Work (PoW) or Proof of Stake (PoS) are used. On the Ethereum network, each time a transaction is completed, a smart contract is executed and a cost is incurred measured as gas. The amount of gas consumed is the cost of mining blocks and sending them to the blockchain network. The unit of gas depends on the size of the block or smart contract complexity. For example, a simple transfer may use as much as 21,000 gas whereas a more complex transaction such as that seen in a complicated financial transaction could use more than 1,000,000 gas [65]. These issues have largely been resolved on the Ethereum ecosystem but the potential remains for excessive transaction costs.
Each unit of gas has a price referred to as the “gas price”. Gas prices are denoted in Gwei [66], where 1 ETH = 10 1 8 Gwei. Given a Gwei price of five, a 21,000 gas transaction would cost 21,000 × 5 = 105,000 Gwei. The transaction cost can be calculated by using Equation (6) [65].
Total Cos t Gwei = Gas Used × Gas Cos t
A comparison of PoW and PoS is carried out on the simulation and shown in Table 2 and Figure 10. PoW is shown as the blue bars and PoS as the orange bars in the figure.
Table 2 shows a comparison of PoS versus PoW transactions per second. Overall, the present data show that PoS takes less time to validate a transaction, such that, in 0.5 s, PoS validates 2.5 transactions compared with PoW which validates 0.5 transaction or that it takes around twice as long to process the first transaction. The gap closes over longer periods but, on the face of it, the appearance is that PoS is somewhat more time efficient.
S E = σ n
A Standard Error ( S E ) is calculated (Equation (7)) where S E represents the standard deviation of the transactions and total number n of transactions per second. The standard deviation shows the variability and dispersion of the transactions. The S E of PoW is ± 0.86 and PoS is ± 1.54 , indicating that the mean value of transactions is close to the actual mean value and that, relatively, the error rate of PoW is less than PoS.
The Straight-line fit and R 2 are applied to calculate the variation in transactions. The value y = 0.7086 x shows the difference in time when transactions increase and 2.02 represents the y i n t e r c e p t . The value of R 2 at 0.9806 implies a correlation between transaction and time.
The smart contract deployment cost is set as a default gas price of ten (10) gwei. Various applications of smart contracts consume different amounts of gas. Table 3 and Figure 11 illustrate the gas consumption of the two consensus mechanisms simulated in the system. To calculate the transaction cost and execution cost of PoS and PoW, two algorithms are deployed on the smart contract. The minimum transaction and execution gas of PoS is 3,000,000 with a file size of 75 kb. The minimum transaction gas for PoW is 28,000,000. The experimental analysis shows that PoS is more efficient than PoW in terms of gas consumption on both the transaction and execution of blocks and processing of smart contracts. The PoW requires a lot of computational power to verify blocks and needs significant execution time.
In Figure 11  S E , the straight-line fit and R 2 are calculated. The S E shows the variability and dispersion of the smart contract deployment cost for PoW and PoS. The S E of PoW is ± 46 × 10 6 for file size 12,098 kb; ± 41 × 10 6 for 6086 kb; ± 35 × 10 6 for 3043 kb; ± 32 × 10 6 for 2034 kb; ± 27 × 10 6 for 456 kb; and ± 23 × 10 6 for 75 kb. The S E of PoS is ± 16 × 10 6 for file size 12,098 kb; ± 12 × 10 6 is for 6098 kb; ± 9 × 10 6 for 3043 kb; ± 7 × 10 6 for 2034 kb; ± 4.5 × 10 6 for 456 kb; and ± 2 × 10 6 for 75 kb. The S E implies that the mean value of deployment cost is close to the actual mean value and that the deployment cost of PoW is relatively high compared with PoS. The straight-line fit (y) and R 2 are calculated to determine the change in deployment cost. The y value shows the difference in cost when the file size increases in both PoS and PoW. The R 2 value shows the correlation between cost and file size.
The smart contract includes the functions to add, delete, access and retrieve files (Figure 12 and Table 4). The gas is consumed whenever a healthcare provider adds a file to the blockchain network, deletes an existing file from the network with the permission of the record owner, access a file when a patient visits another healthcare provider and retrieves it. Here, the files are prescriptions generated by the healthcare provider and uploaded to the smart contract. Figure 12 and Table 4 present the minimum transaction and execution cost of functions deployed on smart contracts.
The S E calculated for the gas consumption cost of the add function is ±43,432 for 6098 kb; ±38,993 for 3043 kb; ±35,003 for 2034 kb; ±26,321 for 456 kb; and ±15,022 for 75 kb. S E for the delete function is ±24,011 for 6098 kb; ±19,012 for 3043 kb; ±15,001 for 2034 kb; ±14,210 for 456 kb; and ±13,211 for 75 kb. The S E for access functions is ±65,900 for 6098 kb; ±49,324 for 3043 kb; ±33,021 for 2034 kb; ±6003 for 456 kb; and ±5541 for 75 kb. S E for the retrieve function is ±71,122 for 6098 kb; ±12,431 for 3043 kb; ±12,001 for 2034 kb; ±9229 for 456 kb; and ±7671 for 75 kb. S E implies that the mean value of gas consumption cost of functions is close to the actual mean. The straight-line fit is 74,623 and R 2 is 0.902 calculated as the change in Gas consumption and correlation between Gas and file size.
Figure 13 and Table 5 show a comparison of transaction latency and throughput. Transaction latency (Figure 13a) is how much time it takes for a miner to validate a transaction. The latency is calculated as an average of transactions (Equation (8)) run on the simulated system and measured in milliseconds (ms). The average time to validate transactions is 2343 ms and miners validate five transactions in 9234 ms. The S E calculated for Figure 13a are 0.5 transactions in ± 932 ms, 1 in ± 1912 , 2 in ± 2401 , 3 in ± 3405 , 4 in ± 4532 and 5 in ± 7098 . The straight fit line is 878.26, which shows the change in latency, and R 2 is 0.9357, which shows a correlation between latency and transactions.
Latency = Total time Total Tx
Throughput (Figure 13b) is how much time it takes for a transaction be validated and is the average of the total time it takes to process transactions over the overall total of time (Equation (9)).
Throughput = Total Time tx Total Time
The simulation data in Figure 9 shows that as the number of users increase, the throughput also increases in a linear fashion. This provides some evidence of the efficiency of the BlockPres system. The S E of transactions over throughput are five transactions in ± 300 ms, 15 in ± 900 ms, 25 in ± 600 ms, 30 in ± 1900 ms, 35 in ± 2400 ms and 40 in ± 3000 ms. The straight fit line is 377.38, which shows the change in throughput, and R 2 is 0.9856, implying a correlation between throughput and transactions.
The transaction and execution cost of adding entities to the smart contract (Table 6 and Figure 14) are calculated as Gwei. The entities are hospitals, doctors, pharmacies and associated functions such as the adding of prescriptions, modification of prescriptions and so on. The cost varies depending on what consensus algorithm is used to perform the smart contract functions. The transaction and execution cost of adding an entity is 260,000, verifying an entity is 125,000, adding and modifying costs are 105,000 and 85,000, respectively, and the costs of adding a pharmacy are 95,000 and 86,000. The S E for the transaction and execution costs of adding a hospital are ±250,000 and ±210,000; costs for adding a doctor are ±280,000 and ±230,000; costs for verifying a doctor are ±100,000 and ±90,000; costs for adding prescription are ±7000 and ±6530; costs for modifying prescription are ±9500 and ±6430; and costs for adding a pharmacy are ±6400 and ±6210. By highlighting the difference between transaction and execution cost, the straight-fit lines for transaction and execution costs are 38.2411 and 32.1808. R 2 is 0.7621 for the transaction cost and 0.7904 for execution cost, which indicates a correlation between execution cost and transaction cost.

10. Conclusions and Future Work

In this paper, a blockchain-based solution is proposed to address issues with patients that experience unequal access to healthcare services. The use of blockchain technology has previously been demonstrated to be of use in HIS. In this study, the solution provides an incentive mechanism to encourage users to engage with health services by using the system and sharing their medical records with healthcare providers. In designing the system, consideration is given to how the principles that underlie blockchain technology can be applied to HIS. From this, BlockPress encourages users to use the system and to receive rewards as tokens.
The DSR methodology is applied for the successful execution of the project: by designing a blockchain-based framework to record the process of prescriptions issued by a healthcare provider, to receive rewards and to provide access to patient records. The healthcare provider and patient can track and authorise transactions during application of public and private keys. Transactions are secured using established cryptographic methods for authentication and authorisation. Moreover, in order to enable critical decisions, the patient obtains control of their data.
An initial evaluation assessed transaction speed and the results demonstrate that this blockchain is, at the very least, suitable for application for BlockPres. Following this, simulations of the model are instantiated on the Ethereum blockchain, which takes advantage of the smart contract and utilises the Solidity language. The simulations are performed using the Remix IDE and Ropsten test network to collect performance data from different consensus mechanisms. The results of the simulations provide promising outcomes.
In the next phases, a BlockPres prototype that utilises the information from this study is being developed. Central to the research direction of this prototype will be to determine the use and application of the incentivisation scheme. In addition, methods for the calculation of incentives that are based on patient input, verification and distribution of incentives between patients, security and privacy of patient accounts and so on will be examined. The prototype will also incorporate IPFS for data storage and retrieval.

Author Contributions

Conceptualisation, A.K. and A.L.; methodology, A.K. and A.L.; software and validation, A.K.; writing—original draft preparation, A.K. and A.L.; writing—review and editing, A.K. and A.L.; project administration, A.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by Precision Driven Health: Ref No. 832-blockchains.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Coleman, J.J. Prescribing in 2019: What are the safety concerns? Expert Opin. Drug Saf. 2019, 18, 69–74. [Google Scholar] [CrossRef]
  2. Cartwright-Smith, L.; Gray, E.; Thorpe, J.H. Health information ownership: Legal theories and policy implications. Vanderbilt J. Entertain. Technol. Law 2016, 19, 207. [Google Scholar]
  3. Howe, J.L.; Adams, K.T.; Hettinger, A.Z.; Ratwani, R.M. Electronic Health Record Usability Issues and Potential Contribution to Patient Harm. JAMA 2018, 319, 1276–1278. [Google Scholar] [CrossRef]
  4. Meng, W.; Tischhauser, E.W.; Wang, Q.; Wang, Y.; Han, J. When intrusion detection meets blockchain technology: A review. IEEE Access 2018, 6, 10179–10188. [Google Scholar] [CrossRef]
  5. Nakamoto, S. Bitcoin: A Peer-to-Peer Electronic Cash System. Available online: https://bitcoin.org/bitcoin.pdf (accessed on 4 July 2021).
  6. Han, H.; Huang, M.; Zhang, Y.; Bhatti, U.A. An Architecture of Secure Health Information Storage System Based on Blockchain Technology. In International Conference on Cloud Computing and Security; Springer: Berlin/Heidelberg, Germany, 2018; pp. 578–588. [Google Scholar] [CrossRef]
  7. Litchfield, A.; Khan, A. A Review of Issues in Healthcare Information Management Systems and Blockchain Solutions. In Proceedings of the International Conference on Information Resources Management, Association for Information Systems (AIS), Auckland, New Zealand, 27–29 May 2019; Volume 1. [Google Scholar]
  8. Gokalp, E.; Gokalp, M.O.; Çoban, S.; Eren, P.E. Analysing Opportunities and Challenges of Integrated Blockchain Technologies in Healthcare. In EuroSymposium on Systems Analysis and Design; Springer: Berlin/Heidelberg, Germany, 2018; pp. 174–183. [Google Scholar] [CrossRef]
  9. Chen, Y.; Ding, S.; Xu, Z.; Zheng, H.; Yang, S. Blockchain-based medical records secure storage and medical service framework. J. Med. Syst. 2019, 43, 5. [Google Scholar] [CrossRef] [PubMed]
  10. Azaria, A.; Ekblaw, A.; Vieira, T.; Lippman, A. Medrec: Using blockchain for medical data access and permission management. In Proceedings of the 2016 2nd International Conference on Open and Big Data (OBD), Vienna, Austria, 22–24 August 2016; pp. 25–30. [Google Scholar] [CrossRef]
  11. Sadiku, M.N.; Eze, K.G.; Musa, S.M. Blockchain Technology in Healthcare. IJASRE 2018, 4, 154–159. [Google Scholar] [CrossRef]
  12. Dias, J.A.P.; Reis, L.; Ferreira, H.S.; Martins, A. Blockchain for Access Control in e-Health Scenarios. arXiv 2018, arXiv:1805.12267. [Google Scholar]
  13. Zhang, J.; Xue, N.; Huang, X. A secure system for pervasive social network-based healthcare. IEEE Access 2016, 4, 9239–9250. [Google Scholar] [CrossRef]
  14. Dagher, G.G.; Mohler, J.; Milojkovic, M.; Marella, P.B. Ancile: Privacy-preserving framework for access control and interoperability of electronic health records using blockchain technology. Sustain. Cities Soc. 2018, 39, 283–297. [Google Scholar] [CrossRef]
  15. Xia, Q.; Sifah, E.B.; Smahi, A.; Amofa, S.; Zhang, X. BBDS: Blockchain-based data sharing for electronic medical records in cloud environments. Information 2017, 8, 44. [Google Scholar] [CrossRef]
  16. Alshamari, M. Usability Factors Assessment in Health Information System. Intell. Inf. Manag. 2016, 8, 170. [Google Scholar] [CrossRef] [Green Version]
  17. Hosseinkhah, F.; Ashktorab, H.; Veen, R. Challenges in data mining on medical databases. In Database Technologies: Concepts, Methodologies, Tools, and Applications; IGI Global: Hershey, PA, USA, 2009; pp. 1393–1404. [Google Scholar]
  18. Sylim, P.; Liu, F.; Marcelo, A.; Fontelo, P. Blockchain Technology for Detecting Falsified and Substandard Drugs in Distribution: Pharmaceutical Supply Chain Intervention. JMIR Res. Protoc. 2018, 7, e10163. [Google Scholar] [CrossRef] [PubMed]
  19. Rabah, K. Challenges & Opportunities for Blockchain Powered Healthcare Systems: A Review. Mara Res. J. Med. Health Sci. 2017, 1, 45–52. [Google Scholar]
  20. Nardi, E.A.; Lentz, L.K.; Winckworth-Prejsnar, K.; Abernethy, A.P.; Carlson, R.W. Emerging issues and opportunities in health information technology. J. Natl. Compr. Cancer Netw. 2016, 14, 1226–1233. [Google Scholar] [CrossRef]
  21. Patel, V. A framework for secure and decentralized sharing of medical imaging data via blockchain consensus. Health Inform. J. 2018, 24, 1–14. [Google Scholar] [CrossRef] [PubMed]
  22. Kaur, H.; Alam, M.A.; Jameel, R.; Mourya, A.K.; Chang, V. A Proposed Solution and Future Direction for Blockchain-Based Heterogeneous Medicare Data in Cloud Environment. J. Med. Syst. 2018, 42, 156. [Google Scholar] [CrossRef] [Green Version]
  23. Chen, J.; Ma, X.; Du, M.; Wang, Z. A Blockchain Application for Medical Information Sharing. In Proceedings of the 2018 IEEE International Symposium on Innovation and Entrepreneurship (TEMS-ISIE), Beijing, China, 30 March–1 April 2018; pp. 1–7. [Google Scholar] [CrossRef]
  24. Xia, Q.; Sifah, E.B.; Asamoah, K.O.; Gao, J.; Du, X.; Guizani, M. MeDShare: Trust-less medical data sharing among cloud service providers via blockchain. IEEE Access 2017, 5, 14757–14767. [Google Scholar] [CrossRef]
  25. Griggs, K.N.; Ossipova, O.; Kohlios, C.P.; Baccarini, A.N.; Howson, E.A.; Hayajneh, T. Healthcare Blockchain System Using Smart Contracts for Secure Automated Remote Patient Monitoring. J. Med. Syst. 2018, 42, 1–7. [Google Scholar] [CrossRef]
  26. Wang, J.; Han, K.; Alexandridis, A.; Chen, Z.; Zilic, Z.; Pang, Y.; Jeon, G.; Piccialli, F. A blockchain-based eHealthcare system interoperating with WBANs. Future Gener. Comput. Syst. 2020, 110, 675–685. [Google Scholar] [CrossRef]
  27. Brunese, L.; Mercaldo, F.; Reginelli, A.; Santone, A. A blockchain based proposal for protecting healthcare systems through formal methods. Procedia Comput. Sci. 2019, 159, 1787–1794. [Google Scholar] [CrossRef]
  28. Graham, R.; Masters-Awatere, B. Experiences of Māori of Aotearoa New Zealand’s public health system: A systematic review of two decades of published qualitative research. Aust. N. Z. J. Public Health 2020, 44, 193–200. [Google Scholar] [CrossRef]
  29. Stephen, K.H. Disability and the Digital Divide; Technical Report Disability Statistics Abstract Number 22; ERIC: New York, NY, USA, 2000. [Google Scholar]
  30. Goslee, S.; Conte, C. Losing Ground Bit by Bit: Low-Income Communities in the Information Age; What’s Going On Series; Technical Report ED424333; ERIC: New York, NY, USA, 1998. [Google Scholar] [CrossRef]
  31. Collins, J.F.; Tutone, V.; Walker, C. Kidney Disease in Māori and Pasifika in New Zealand. In Chronic Kidney Disease in Disadvantaged Populations; Elsevier: Amsterdam, The Netherlands, 2017; pp. 157–166. [Google Scholar]
  32. Lawson-Te Aho, K.; Fariu-Arikia, P.; Ombler, J.; Aspinall, C.; Howden-Chapman, P.; Pierse, N. A principles framework for taking action on Māori/Indigenous Homelessness in Aotearoa New Zealand. SSM Popul. Health 2019, 8. [Google Scholar] [CrossRef]
  33. Goodyear-Smith, F.; Ashton, T. New Zealand health system: Universalism struggles with persisting inequities. Lancet 2019, 394, 432–442. [Google Scholar] [CrossRef]
  34. Dresch, A.; Lacerda, D.P.; Antunes, J.A.V. Design science research. In Design Science Research; Springer: Berlin/Heidelberg, Germany, 2015; pp. 67–102. [Google Scholar]
  35. Furda, R.; Gregus, M. Advanced Information Technologies and Techniques for Healthcare Digital Transformation and Adoption. Data-Centric Bus. Appl. Evolvements Bus. Inf. Process. Manag. 2019, 2, 19. [Google Scholar] [CrossRef]
  36. Wieringa, R.; Morali, A. Technical action research as a validation method in information systems design science. In International Conference on Design Science Research in Information Systems; Springer: Berlin/Heidelberg, Germany, 2012; pp. 220–238. [Google Scholar] [CrossRef]
  37. Key Health Sector Organisations and People. Available online: https://www.health.govt.nz/new-zealand-health-system/key-health-sector-organisations-and-people (accessed on 4 July 2021).
  38. Ismail, L.; Materwala, H. Blockchain Paradigm for Healthcare: Performance Evaluation. Symmetry 2020, 12, 1200. [Google Scholar] [CrossRef]
  39. Fan, K.; Wang, S.; Ren, Y.; Li, H.; Yang, Y. MedBlock: Efficient and Secure Medical Data Sharing Via Blockchain. J. Med. Syst. 2018, 42, 136. [Google Scholar] [CrossRef]
  40. Brodersen, C.; Kalis, B.; Leong, C.; Mitchell, E.; Pupo, E.; Truscott, A. Blockchain: Securing a New Health Interoperability Experience; Technical Report; Accenture LLC: Reston, VA, USA, 2016. [Google Scholar]
  41. Christidis, K.; Devetsikiotis, M. Blockchains and smart contracts for the internet of things. IEEE Access 2016, 4, 2292–2303. [Google Scholar] [CrossRef]
  42. Ray, J. Consortium Chain Development. Available online: https://bit.ly/3eRAAjA (accessed on 4 July 2021).
  43. Bell, L.; Buchanan, W.J.; Cameron, J.; Lo, O. Applications of Blockchain Within Healthcare. Blockchain Healthc. Today 2018, 1, 1–7. [Google Scholar] [CrossRef] [Green Version]
  44. Battah, A.; Madine, M.; Alzaabi, H.; Yaqoob, I.; Salah, K.; Jayaraman, R. Blockchain-based Multi-Party Authorization for Accessing IPFS Encrypted Data. IEEE Access 2020, 8, 196813–196825. [Google Scholar] [CrossRef]
  45. Gervais, A.; Karame, G.O.; Wüst, K.; Glykantzis, V.; Ritzdorf, H.; Capkun, S. On the security and performance of proof of work blockchains. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, 24–28 October 2016; pp. 3–16. [Google Scholar] [CrossRef]
  46. Ye, H.; Park, S. Reliable Vehicle Data Storage Using Blockchain and IPFS. Electronics 2021, 10, 1130. [Google Scholar] [CrossRef]
  47. Vasin, P. Blackcoin’s Proof-of-Stake Protocol v2. Available online: https://blackcoin.co/blackcoin-pos-protocolv2-whitepaper.pdf (accessed on 4 July 2021).
  48. Hussein, A.F.; Arun Kumar, N.; Ramirez-Gonzalez, G.; Abdulhay, E.; Tavares, J.M.R.; de Albuquerque, V.H.C. A Medical Records Managing and Securing Blockchain Based System Supported by a Genetic Algorithm and Discrete Wavelet Transform. Cogn. Syst. Res. 2018, 52, 1–11. [Google Scholar] [CrossRef] [Green Version]
  49. Zhou, L.; Wang, L.; Sun, Y. Mistore: A blockchain-based medical insurance storage system. J. Med. Syst. 2018, 42, 149. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  50. Zhang, P.; Walker, M.A.; White, J.; Schmidt, D.C.; Lenz, G. Metrics for assessing blockchain-based healthcare decentralized apps. In Proceedings of the 2017 IEEE 19th International Conference on e-Health Networking, Applications and Services (Healthcom), Dalian, China, 12–15 October 2017; pp. 1–4. [Google Scholar] [CrossRef]
  51. Guo, R.; Shi, H.; Zhao, Q.; Zheng, D. Secure attribute-based signature scheme with multiple authorities for Blockchain in electronic health records systems. IEEE Access 2018, 776, 1–12. [Google Scholar] [CrossRef]
  52. Zheng, X.; Mukkamala, R.R.; Vatrapu, R.; Ordieres-Mere, J. Blockchain-based personal health data sharing system using cloud storage. In Proceedings of the 2018 IEEE 20th International Conference on e-Health Networking, Applications and Services (Healthcom), Ostrava, Czech Republic, 17–20 September 2018; pp. 1–6. [Google Scholar] [CrossRef] [Green Version]
  53. Rohr, J.; Wright, A. Blockchain-Based Token Sales, Initial Coin Offerings, and the Democratization of Public Capital Markets; Technical Report Paper No. 527, Legal Studies Research Paper No. 338; University of Tennessee: Knoxville, TN, USA, 2017. [Google Scholar] [CrossRef] [Green Version]
  54. King, S.; Nadal, S. Ppcoin: Peer-to-Peer Crypto-Currency with Proof-of-Stake. Available online: http://people.cs.georgetown.edu/~clay/classes/fall2017/835/papers/peercoin-paper.pdf (accessed on 4 July 2021).
  55. Al Omar, A.; Bhuiyan, M.Z.A.; Basu, A.; Kiyomoto, S.; Rahman, M.S. Privacy-friendly platform for healthcare data in cloud based on blockchain environment. Future Gener. Comput. Syst. 2019, 95, 511–521. [Google Scholar] [CrossRef]
  56. Wood, G. Ethereum: A Secure Decentralised Generalised Transaction Ledger. Available online: http://gavwood.com/paper.pdf (accessed on 4 July 2021).
  57. Friedhelm, V.; Lüders, B.K. Measuring ethereum-based erc20 token networks. In International Conference on Financial Cryptography and Data Security; Springer: Berlin/Heidelberg, Germany, 2019; pp. 113–129. [Google Scholar] [CrossRef]
  58. Dyson, S.F.; Buchanan, W.J.; Bell, L. Scenario-based creation and digital investigation of ethereum ERC20 tokens. Forensic Sci. Int. Digit. Investig. 2020, 32, 200894. [Google Scholar] [CrossRef]
  59. Ropsten Testnet Explorer. Available online: https://ropsten.etherscan.io/ (accessed on 4 July 2021).
  60. Zheng, Z.; Xie, S.; Dai, H.; Chen, X.; Wang, H. An overview of blockchain technology: Architecture, consensus, and future trends. In Proceedings of the 2017 IEEE International Congress on Big Data (BigData Congress), Honolulu, HI, USA, 25–30 June 2017; pp. 557–564. [Google Scholar] [CrossRef]
  61. Kamel Boulos, M.; Wilson, J.; Clauson, K. Geospatial blockchain: Promises, challenges, and scenarios in health and healthcare. Int. J. Health Geogr. 2018, 17, 25. [Google Scholar] [CrossRef]
  62. Rahman, M.S.; Khalil, I.; Mahawaga Arachchige, P.C.; Bouras, A.; Yi, X. A novel architecture for tamper proof electronic health record management system using blockchain wrapper. In Proceedings of the 2019 ACM International Symposium on Blockchain and Secure Critical Infrastructure, Auckland, New Zealand, 7–12 July 2019; ACM: New York, NY, USA, 2019; pp. 97–105. [Google Scholar] [CrossRef]
  63. Gordon, W.; Catalini, C. Blockchain Technology for Healthcare: Facilitating the Transition to Patient-Driven Interoperability. Comput. Struct. Biotechnol. J. 2018, 16, 224–230. [Google Scholar] [CrossRef]
  64. Dong, X.; Guo, Y.; Li, F.; Dong, L.; Khan, A. Combination Model of Heterogeneous Data for Security Measurement. J. Univers. Comput. Sci. 2019, 25, 270–281. [Google Scholar] [CrossRef]
  65. Zhou, Y.; Yang, B.; Yu, Y.; Khan, A. Efficient chosen-ciphertext secure hybrid encryption scheme tolerating continuous leakage attacks. J. Chin. Inst. Eng. 2019, 42, 39–47. [Google Scholar] [CrossRef]
  66. Daniel, R.; Roth, B. Gwei: Ethereum Base Units. Available online: https://gwei.io (accessed on 5 July 2021).
Figure 1. BlockPres Framework.
Figure 1. BlockPres Framework.
Sensors 21 05035 g001
Figure 2. BlockPres booking and registration process.
Figure 2. BlockPres booking and registration process.
Sensors 21 05035 g002
Figure 3. BlockPres consultation process.
Figure 3. BlockPres consultation process.
Sensors 21 05035 g003
Figure 4. BlockPres prescription process.
Figure 4. BlockPres prescription process.
Sensors 21 05035 g004
Figure 5. BlockPres data storage process.
Figure 5. BlockPres data storage process.
Sensors 21 05035 g005
Figure 6. BlockPres service layer processes.
Figure 6. BlockPres service layer processes.
Sensors 21 05035 g006
Figure 7. BlockPres transaction processes.
Figure 7. BlockPres transaction processes.
Sensors 21 05035 g007
Figure 8. BlockPres incentive mechanism.
Figure 8. BlockPres incentive mechanism.
Sensors 21 05035 g008
Figure 9. Raw Data of Experiment 1.
Figure 9. Raw Data of Experiment 1.
Sensors 21 05035 g009
Figure 10. Comparison of transaction speed between PoW and PoS.
Figure 10. Comparison of transaction speed between PoW and PoS.
Sensors 21 05035 g010
Figure 11. Comparison of smart contract deployment cost of PoW and PoS.
Figure 11. Comparison of smart contract deployment cost of PoW and PoS.
Sensors 21 05035 g011
Figure 12. Gas consumption cost to add, delete, access and retrieve files.
Figure 12. Gas consumption cost to add, delete, access and retrieve files.
Sensors 21 05035 g012
Figure 13. Comparison of transaction latency and throughput.
Figure 13. Comparison of transaction latency and throughput.
Sensors 21 05035 g013
Figure 14. Function cost comparison for transactions and execution.
Figure 14. Function cost comparison for transactions and execution.
Sensors 21 05035 g014
Table 1. Notations used in the BlockPres framework.
Table 1. Notations used in the BlockPres framework.
SymbolDescriptionSymbolDescription
H P K Healthcare Provider P K P Patient Public Key
T X Transactions S K P Patient Secret Key
H K Hospitals P K d Doctor Public Key
L a b K Laboratory S K d Doctor Secret Key
N K Nurse S C Smart Contract
D T K Doctor R C Registry Contract
S T K Other Staff H ( ) Hash function
P T K Patient I D T P Identity of Patients
A D K Hospital Administration K w Keywords
T S Time StampmMessage
P H K Pharmacy P R d Patients record
G P S K General Practitioner StationKKey
N H I National Health Index A D H B Auckland District Health Board
M O H Ministry of Health D B Database
Table 2. Comparison of Transactions per second, PoW vs. PoS.
Table 2. Comparison of Transactions per second, PoW vs. PoS.
TransactionPoSPoW
Per Second(Transaction)(Transaction)
0.52.50.5
13.60.8
1.54.21.8
25.13.1
2.55.43.5
36.24.3
Table 3. Comparison of Smart Contract deployment cost of PoS vs. PoW.
Table 3. Comparison of Smart Contract deployment cost of PoS vs. PoW.
File Size (kb)PoSPoW
Gas (mill.)Gas (mill.)
12,0982.051.0
60981.545.0
30431.240.0
20341.035.0
4566.031.0
753.028.0
Table 4. Gas consumption cost to add, delete, access and retrieve files.
Table 4. Gas consumption cost to add, delete, access and retrieve files.
File Size (kb)Functions (as Gas Consumed)
Add FileDelete FileAccess FileRetrieve File
609856,33429,11079,90079,110
304351,02327,99058,00916,012
203446,80025,12037,10014,540
45636,61022,231921012,203
7524,02220,021700110,012
Table 5. Transaction latency and throughput.
Table 5. Transaction latency and throughput.
LatencyThroughput
TransactionsLatency (ms)PatientsThroughput (ms)
0.511235300
1234310500
23000201300
34590251600
46712302400
59234403000
Table 6. Function cost comparison for transactions and execution.
Table 6. Function cost comparison for transactions and execution.
FunctionTransaction CostExecution Cost
Add hospital290,000240,000
Add doctor330,000270,000
Verify doctor130,000120,000
Add prescription100,00090,000
Modify Prescription110,00080,000
Add pharmacy95,00086,000
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Litchfield, A.; Khan, A. BlockPres: A Novel Blockchain-Based Incentive Mechanism to Mitigate Inequalities for Prescription Management System. Sensors 2021, 21, 5035. https://0-doi-org.brum.beds.ac.uk/10.3390/s21155035

AMA Style

Litchfield A, Khan A. BlockPres: A Novel Blockchain-Based Incentive Mechanism to Mitigate Inequalities for Prescription Management System. Sensors. 2021; 21(15):5035. https://0-doi-org.brum.beds.ac.uk/10.3390/s21155035

Chicago/Turabian Style

Litchfield, Alan, and Arshad Khan. 2021. "BlockPres: A Novel Blockchain-Based Incentive Mechanism to Mitigate Inequalities for Prescription Management System" Sensors 21, no. 15: 5035. https://0-doi-org.brum.beds.ac.uk/10.3390/s21155035

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop