Skip to content

AkimiNomiya/oss-medical-record

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medical Record Sharing - GMO Blockchain Open Source

License

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.

DEMO

You can check the operation of this sample project on this page.

http://oss.blockchain.z.com/medical-record/

Explanation

Usage Guides

Create Z.com Cloud Blockchain environment

see Setup Development Environment

Install application

git clone --recursive https://github.com/zcom-cloud-blockchain/oss-medical-record.git
cd oss-medical-record/server
npm install

Create admin account

cd oss-medical-record
node server/create_admin_account.js

Configure for contracts

Create provider/config.json based on provider/config_template.json. Edit "adminAddress" and "adminGroupId". "adminGroupId" is a random string.

Deploy contracts

cd oss-medical-record/provider
truffle migrate

Set up for Z.com Cloud Blockchain

See Basic Configuration

  • Set CNS address on admin console
    1. Open a file 'provider/build/contracts/ContractNameService.json'

    2. Use 'networks.(network-id).address' as CNS address to register as ABI address on admin console

See Contract Creation Process

  • Set Contract ABIs on admin console
    1. Open following files
    'provider/build/contracts/History_v1.json'
    'provider/build/contracts/Organization_v1.json'
    'provider/build/contracts/Record_v1.json'
    1. Use 'networks.(network-id).address' and 'abi' values to register as Contract ABIs on admin console

Configure for server

Create server/config.json based on server/config_template.json. Edit "account" and "password" of admin which you created.

Configure for client

Create server/public/js/config.json based on server/public/js/config_template.json. Edit "CNS_ADDRESS" which you deployed.

Start application

cd oss-medical-record
node server/app.js

About

Open Source Medical Record Sharing Project for Ethereum.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published