{"id":26048593,"url":"https://github.com/jackkweyunga/med-chain-demo","last_synced_at":"2025-07-08T21:36:28.737Z","repository":{"id":247245502,"uuid":"825324560","full_name":"jackkweyunga/med-chain-demo","owner":"jackkweyunga","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-07T15:02:59.000Z","size":22026,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-07T16:27:23.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackkweyunga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-07T13:16:40.000Z","updated_at":"2024-07-07T16:27:34.042Z","dependencies_parsed_at":"2024-07-07T16:38:50.511Z","dependency_job_id":null,"html_url":"https://github.com/jackkweyunga/med-chain-demo","commit_stats":null,"previous_names":["jackkweyunga/med-chain-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackkweyunga%2Fmed-chain-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackkweyunga%2Fmed-chain-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackkweyunga%2Fmed-chain-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackkweyunga%2Fmed-chain-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackkweyunga","download_url":"https://codeload.github.com/jackkweyunga/med-chain-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242481952,"owners_count":20135631,"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":[],"created_at":"2025-03-08T00:27:04.846Z","updated_at":"2025-03-08T00:27:05.509Z","avatar_url":"https://github.com/jackkweyunga.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"http://www.amitmerchant.com/electron-markdownify\"\u003e\u003cimg src=\"https://github.com/JeffreytheCoder/med-chain/blob/master/client/src/assets/tealNoBG-cropped.png?raw=true\" alt=\"Markdownify\" width=\"300\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eA blockchain-based Electrical Medical Records (EMR) system.\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#key-features\"\u003eKey Features\u003c/a\u003e •\n  \u003ca href=\"#how-it-works\"\u003eHow It Works\u003c/a\u003e •\n  \u003ca href=\"#how-to-use\"\u003eHow To Use\u003c/a\u003e •\n  \u003ca href=\"#support\"\u003eSupport\u003c/a\u003e\n\u003c/p\u003e\n\n## Key Features\n\nMedChain is powered by [IPFS](https://ipfs.tech/), where every patient's medical records are stored on the distributed file system, not owned by any centralized entity like hospitals or governments. Each patient has a digital identity on [Ethereum](https://ethereum.org/) blockchain, who and whose doctor can access medical records by interacting with smart contracts. \n\nOn MedChain,\n\n- A healthcare provider can register using a crypto wallet like Metamask.\n- The healthcare provider can register a patient by using the public address of the patient’s wallet, usually provided during an appointment.\n- The health provider can search for a patient’s records using the address, and upload a new record for the patient. \n- The patient can also view his or her records, after connected with a wallet which address is registered by the health provider.\n\nThis project is the 3rd place winner of [NextStep Hacks 2022](https://devpost.com/software/medchain-k4wzry).\n\n## How It Works\n\nThere are three major components of MedChain:\n\n1. React client (connected with MetaMask)\n2. Solidity smart contract on Ethereum blockchain\n3. Interplanetary file system (IPFS)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://d112y698adiu2z.cloudfront.net/photos/production/software_photos/002/187/785/datas/original.png\" width=\"700\"/\u003e\n\u003c/p\u003e\n\nThe client first connects with crypto wallet, and use smart contract to mint a patient or doctor block if the public address of the user’s wallet is not registered.\n\nThe client can upload a record file to IPFS, which address is linked to a patient block in ETH chain. The client can get all record addressed stored in a patient block from smart contract, and get a record file by its address from IPFS.\n\n## How To Use\n\nInstall Truffle globally if you haven't.\n\n```sh\n$ npm install -g truffle\n```\n\nInstall Truffle dependencies and deploy smart contracts to local Ethereum network like [Ganache](https://trufflesuite.com/ganache/). \n\n```sh\n$ cd truffle\n$ npm install\n$ truffle compile\n$ truffle deploy\n```\n\nInstall React dependencies and start React app. \n\n```sh\n$ cd ../client\n$ npm install\n$ npm start\n```\n\nAdd your Infura IPFS project ID and secret to `.env`. You can create an project [here](https://www.infura.io/).\n\n```\nREACT_APP_IPFS_PROJECT_ID={YOUR_IPFS_PROJECT_ID}\nREACT_APP_IPFS_PROJECT_SECRET={YOUR_IPFS_PROJECT_SECRET}\n```\n\nYou should be able to see the application running at http://localhost:3000.\n\n\n## Support\n\nIf you like this project, please leave a star ⭐️. This helps more people to know this project.\n\n---\n\u003e GitHub [@jeffreythecoder](https://github.com/JeffreytheCoder/JeffreytheCoder) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Twitter [@jeffreyzepengyu](https://twitter.com/jeffreyzepengyu)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackkweyunga%2Fmed-chain-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackkweyunga%2Fmed-chain-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackkweyunga%2Fmed-chain-demo/lists"}