Research Article

BIoMT Modular Infrastructure: The Recent Challenges, Issues, and Limitations in Blockchain Hyperledger-Enabled E-Healthcare Application

Table 2

Contract 1: implementation of smart contracts for medical information management and privacy.

System constraints and initialization: blockchain hyperledger fabric-enabled healthcare medical information engineer system manage (pDeviceReg())
   Start e-healthcare distributed applications
   Schedule addresses and manage
   Preserve changes in the ledger
Data and constant: blockchain hyperledger fabric-enable engineer initiate process of edger/device registration and receive request via e-healthcare distributed applications
   Activities addresses schedule accordingly
   Int main():
   Type.File[a.txt];
   Device ID,
   (dID());
   Patient device registration,
   (pdReg());
   Patient ID,
   (pID());
   Patient name,
   (pName());
   Blockchain timestamp,
   [execute];
   Hyperledger fabric engineer maintain all the registration addresses,
   Records validation details,
   Update ledger,
   Counter (each time when new event occur);
   The engineer examine, analysis, verify, validate, and records all the details of patients’ devices,
   Responsible and authorized set of nodes;
If   int main():
    Type.File[a.txt] = blockchain fabric engineer (true)
Then,
   If check device ID = true
   Then, change state of ledger
   And records additional details, device ID (dID()), patient device registration (pdReg()),
   Patient ID (pID()), patient name (pName()), blockchain timestamp [execute];
   Else
   Record, maintain ledger, error generation, change state,
   Traceback,
   Terminate;
Else
   Record, maintain ledger, error generation, change state,
   Traceback,
   Terminate;
Output: edger registration edgeregister()/pDeviceReg();
System constraints and initialization: blockchain hyperledger fabric-enabled healthcare medical information engineer system manage ((newNodeTransaction()) and (updateTransPreserve()))
   Start e-healthcare distributed applications
   Schedule addresses and manage
   Preserve changes in the ledger
Data and constant: blockchain hyperledger fabric-enable engineer initiate process of new transactions information and receive request via e-healthcare distributed applications
   Activities addresses schedule accordingly
   Int main ():
   Type.File[a.txt];
   Patient service,
   (pService());
   Physician counseling,
   (pCounseling());
   New transaction,
   (nTransaction());
   Update ledger,
   (uLedger());
   Blockchain timestamp,
   [execute];
   Hyperledger fabric engineer maintain all the new nodes transactions addresses,
   Records verification and validation details,
   Update ledger,
   Counter +1 (each time when new event occur);
   Engineer examines, analyses, verifies, validates, and records all the details of patients’ devices,
   Responsible and authorized set of nodes;
If int main():
   Type.File[a.txt] = blockchain fabric engineer (true)
Then,
   If check device ID = true
   Then change state of ledger
   And records additional details, patient service pService(), physician counseling (pCounseling()), new transaction (nTransaction()), update ledger (uLedger()), blockchain timestamp [execute];
   Else
   Record, maintain ledger, error generation, change state,
   Traceback,
   Terminate;
Else
   Record, maintain ledger, error generation, change state,
   Traceback,
   Terminate;
Output: add new nodes transactions (newNodeTransaction()); and update nodes transactions
System constraints and initialization: blockchain hyperledger fabric-enabled healthcare medical information engineer system manage (hashRecord()))
   Start e-healthcare distributed applications
   Schedule addresses and manage
   Preserve changes in the ledger
Data: blockchain hyperledger fabric-enable engineer initiate process of hash-based re-encryption for e-healthcare distributed applications-related ledger security
   Activities addresses schedule accordingly
   Int main ():
   Type.File[a.txt];
   Protect each transaction,
   (pETrans());
   Medical ledger management and privacy,
   (mLMPrivacy());
   Generate hashes for individual record,
   (gHash());
   Protect storage,
   (pStorage());
   Blockchain timestamp,
   [execute];
If int main():
   Type.File[a.txt] = blockchain fabric engineer (true)
Then,
   If check device ID = true
   Then change state of ledger
   And records additional details, protect each transaction (pETrans()), medical ledger management and privacy (mLMPrivacy()), generate hashes for individual record (gHash()), protect storage (pStorage()), blockchain timestamp [execute];
   Else
   Record, maintain ledger, error generation, change state,
   Traceback,
   Terminate;
Else
   Record, maintain ledger, error generation, change state,
   Traceback,
   Terminate;
Output: ReEncrption (hashRecord());