{"id":21045141,"url":"https://github.com/arrjunpradeep/medic-chain","last_synced_at":"2025-05-15T17:33:32.941Z","repository":{"id":47391141,"uuid":"212952449","full_name":"ArrjunPradeep/Medic-Chain","owner":"ArrjunPradeep","description":"A Blockchain based medical records management system that has been implemented on Ethereum platform","archived":false,"fork":false,"pushed_at":"2019-10-05T06:12:49.000Z","size":40451,"stargazers_count":24,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-07T11:56:39.770Z","etag":null,"topics":["admin","blockchain","blockchain-network","contract","devchain","ethereum","geth","health-records","medical-record","medicalrecord","patient","records-management","smart-contract","testing","testnet","truffle"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArrjunPradeep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-05T06:05:47.000Z","updated_at":"2023-02-26T23:43:12.000Z","dependencies_parsed_at":"2022-08-12T20:51:27.760Z","dependency_job_id":null,"html_url":"https://github.com/ArrjunPradeep/Medic-Chain","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrjunPradeep%2FMedic-Chain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrjunPradeep%2FMedic-Chain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrjunPradeep%2FMedic-Chain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArrjunPradeep%2FMedic-Chain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArrjunPradeep","download_url":"https://codeload.github.com/ArrjunPradeep/Medic-Chain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225366609,"owners_count":17463071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","blockchain","blockchain-network","contract","devchain","ethereum","geth","health-records","medical-record","medicalrecord","patient","records-management","smart-contract","testing","testnet","truffle"],"created_at":"2024-11-19T14:20:10.746Z","updated_at":"2024-11-19T14:20:11.581Z","avatar_url":"https://github.com/ArrjunPradeep.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Medic@Chain\n\n### A blockchain-based Medical Records Management System\n\n\u003cp align=\"right\"\u003e\n  \u003cimg src=\"Video/Medic@Chain.png\" width=\"100%\" height=\"100%\"\u003e\n\u003c/p\u003e\n\nToday, doctors \u0026 health professionals are limited in the level of care they can provide because due to inability to view your complete, accurate health records. The proposed solution is a blockchain network created by the Health Department, who registers the doctors in this network. The doctors can publish patients medical records safely on blockchain network.\n\n\n## System Requirements\n\n1. Operating System : Ubuntu 16.04\n2. System RAM : 4GB or Above\n\n## Step by step instructions for installing / setting up the application for use\n\n**Step 1:** Download the repostory using the command:  \n```\n Git Clone \"https://gitlab.com/ced_b3_projects/ced-b3-g10.git\"\n ```\n**Step 2:** Install the dependecies using the command: \n```\n npm Install  \n ```\n**Step 3:** Use the following command to compile smart contract:  \n```\n truffle compile  \n ```\n**Step 4:** Use one of the following commands to connect to the devchain,private or public chain:  \n\n**Devchain:**\n\n1: Run the chain using following command\n```\ngeth --datadir dev --networkid \"4002\" --rpc --rpcport 8545 --ipcpath \"~/.ethereum/geth.ipc\" --rpccorsdomain \"*\" --rpcapi \"db,personal, eth, web3, net\" --dev\n```\n2: In new terminal find coin base address and Copy to app.js\n```\ngeth attach\n\u003e eth.accounts\n```\n3: Copy coin base address to app.js.Create 4 more accounts and pass ether to them using following comments\n```\npersonal.newAccount(\"\")//4 times\neth.sendTransaction({from:eth.accounts[0],to:eth.accounts[1],value:100000000000000000000})//pass 100 ether to each account\n```\n4: Cut the chain and rerun the chain using following comment to unlock the new accounts\n```\ngeth --datadir dev --networkid \"4002\" --rpc --rpcport 8545 --ipcpath \"~/.ethereum/geth.ipc\" --rpccorsdomain \"*\" --rpcapi \"db,personal, eth, web3, net\" --dev --unlock 1,2,3,4 --allow-insecure-unlock\n```\n*Password: Enter Key*\n\n**Private chain:** \n```\ncd geth\n\ngeth --identity \"miner\" --networkid 4002 --datadir data --nodiscover --mine --rpc --rpcport \"8545\" --port \"8191\" --unlock 0,1,2,3 --password password.txt --ipcpath \"~/.ethereum/geth.ipc\" --rpccorsdomain \"*\" --rpcapi \"db,eth,net,web3,personal\" --allow-insecure-unlock \n```\n\nstart mining using the following command in new terminal, before doing any transaction:  \n```\n  geth attach \n\n  miner.start()  \n```\n*Password: Enter Key*\n\n**Ropsten:**  \n\n1: Run the chain using following command\n```\n geth --testnet --syncmode \"light\" --datadir \"rop\" --rpc --rpcapi \"db,eth,net,web3,personal\" --rpcport \"8545\"  --rpccorsdomain \"*\" --allow-insecure-unlock\n```\n2: use java script console and connect to running chain.\n```\n    geth attach http://127.0.0.1:8545\n```\n3: Wait for the node to synch fully (will take some time). use the below command to know the status\n```\n    eth.syncing\n```\n    false - incase no synching happening (same for synching finished also), otherwise will show the status\n\n4: Create a new account using the following command\n```\n    personal.newAccount(\"\")\n```\n     The password is an enter\n\n    create 3 more accounts\n\n3: Transfer ether to each account using metamask account\n\n4:Cut and ReRun the chain using following command\n```\ngeth --testnet --syncmode \"light\" --datadir \"rop\" --rpc --rpcapi \"db,eth,net,web3,personal\" --rpcport \"8545\"  --rpccorsdomain \"*\" -unlock 0,1,2,3 --allow-insecure-unlock\n ```\n**Step 5:** Use the following command to deploy the smart contract to the connected chain: \n```\n truffle migrate  \n ```\n**Step 6:** Run the dapp using the command  \n```\n npm start  \n```\n## Execution Flow:\n\n**Step 7:** Login as admin to register the doctors. Admin has the privilege to register or delist the doctors.\n\n**Step 8:** Only registered doctors can add health records of patients. The patient registration will be done at this point of time.\n\n**Step 9:** Only registered patients can access the patient login portal. The registered patients can view their health records history. Also the patients can view the health records w.r.t respective doctors.\n\n**Step 10:** Only patients has the privilege to grant access to doctor, so that the doctor can view the respective patients health records for a particular period. The patients can revoke the access given to doctor at any point of time.\n\n**Step 11:** Registered doctors can view patient health records only when access to doctor is given by patient.\n\nEND\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farrjunpradeep%2Fmedic-chain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farrjunpradeep%2Fmedic-chain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farrjunpradeep%2Fmedic-chain/lists"}