Ethereum Blockchain. Smart contract used to create a unique patient reference ID which can be used over the hospital network
I have made a simple Web Application with Ethereum Solidity Contract for creating unique Patient ID for reference.
Login
Username: Apollo,Malar,Metha,Best,Frontier
Note: Kindly change in the account js file with your hosted azure http provider.
Password: password
For creating using Azure, steps are given below..
Azure setup:
-
Create Microsoft Azure Account.
-
create a rsource group with blockchain and deploy ethereum consortium blockchain over there.
-
you can set 2 mining nodes and 1 transaction nodes.
-
After creation you access that using putty. also you will get rpc end point link over there.
Connecting ethereum consortium from console use putty .
-
In putty set the ip address link and port then connect using the password created at the Azure.
-
After connected give a command "geth attach" to work on with the geth javascript console.
-
now you can use apis over here.
-
Initially when ethereum is deployed you will have a default account that will be set as the coinbase account.
-
So from that default account you can transfer ether's to other accounts , which can be used when some transaction is to be carried out by the address.
-
Each transaction needs gas price for the transaction to be mined.
-
you create account using "personal.newAccount()" and after creating dont forget to unlock it using "personal.unlockAccount(eth.accounts[1])"
Solidity.
-
Solidity code you can view the code in remix solidity viewer i have described the function in comment lines.
-
After pasting in online copy the web3deploy and paste it in the geth console it returns the contract address that should be pasted in the account js at contract address.
-
then copy the interface part in remix and paste it in account js at abi.
-
Each time you use the function in javascript with prefix "contract" because the solidity contract code is deployed in the var contract at the contract address.
Html,css,javascript,bootstrap are attached.