Medical Record Sharing - GMO Blockchain Open Source
License is here.
Apart from forbidding the use of this software for criminal activity, this license is similar to the MIT License.
GMO Blockchain Open Source Common License document is here.
You can check the operation of this sample project on this page.
http://oss.blockchain.z.com/medical-record/
see Setup Development Environment
git clone --recursive https://github.com/zcom-cloud-blockchain/oss-medical-record.git
cd oss-medical-record/server
npm install
cd oss-medical-record
node server/create_admin_account.js
Create provider/config.json based on provider/config_template.json. Edit "adminAddress" and "adminGroupId". "adminGroupId" is a random string.
- Attention
At September 1, 2017, truffle should be used at version 3.4.5.
(There is a bug in web3.js related with truffle version 3.4.6 or later, and the deployment does not work properly.)
web3/web3.js#990
cd oss-medical-record/provider
truffle migrate
-
-
Open a file 'provider/build/contracts/ContractNameService.json'
-
Use 'networks.(network-id).address' as CNS address to register as ABI address on admin console
-
-
- Open following files
'provider/build/contracts/History_v1.json' 'provider/build/contracts/Organization_v1.json' 'provider/build/contracts/Record_v1.json'
- Use 'networks.(network-id).address' and 'abi' values to register as Contract ABIs on admin console
Create server/config.json based on server/config_template.json. Edit "account" and "password" of admin which you created.
Create server/public/js/config.js based on server/public/js/config_template.js. Edit "CNS" which you deployed.
cd oss-medical-record
node server/app.js