mediCaRE
MedOps Platform using AI and Chainlink CRE for transparent healthcare practices
What it is
mediCaRE is a decentralized healthcare platform that tackles the fragmented, fraud-prone, and inefficient state of modern healthcare infrastructure. Hospitals today cannot exchange patient records, insurance claims take weeks to process while billions are lost to fraud, counterfeit drugs kill nearly a million people annually, and provider credentialing can drag on for months. These are not separate issues but interconnected failures of centralized systems that put patient safety and data privacy at risk.
mediCaRE solves this by unifying six healthcare modules into a single blockchain-powered application orchestrated by Chainlink's CRE. The platform manages encrypted electronic health records stored on IPFS with on-chain indexing and patient-controlled consent, ensuring patients own their data and can grant or revoke access at any time. Insurance is handled through ERC-721 NFT policies where claims are automatically adjudicated by a multi-agent AI swarm of three specialized bots that reach Byzantine fault-tolerant consensus, with every decision's reasoning hashed on-chain for full transparency. The pharmaceutical supply chain uses ERC-1155 batch tokens with IoT sensor integration to track drugs from manufacturer to patient and detect counterfeits in real time.
Chainlink is deeply embedded throughout the platform. Seventeen CRE workflows power everything from emergency glass-break access that bypasses consent for life-threatening situations with an immutable audit trail, to privacy-preserving clinical trial matching where patient eligibility is computed inside Trusted Execution Environments so only a boolean result is ever exposed. CCIP enables cross-chain insurance settlement and multi-chain health record sharing. Confidential HTTP ensures that API calls to FHIR servers, AI models, and World ID never expose credentials to blockchain nodes. World ID provides Sybil-resistant proof-of-personhood so that every provider and patient is verified as a unique human without revealing their identity.
The platform also includes DAO governance with token-weighted voting for research proposals and IRB compliance scoring, a treasury dashboard with graph-based fraud detection that can auto-pause payouts when anomalies are detected, AI-generated visit summaries and longitudinal medical histories, and a real-time audit log tracking all on-chain events across six deployed smart contracts. Six role-based demo accounts allow judges to explore the platform as an admin, patient, doctor, insurer, paramedic, or researcher, each seeing a tailored view. The entire system is live and deployed with a Next.js frontend, Express backend, and Supabase cloud database, with all contracts verified on a Tenderly Virtual TestNet.
How it Works
mediCaRE is built as a full-stack decentralized application with three main layers. The smart contract layer consists of six Solidity 0.8.28 contracts deployed on a Tenderly Virtual TestNet — EHRStorage for health records, InsurancePolicy as ERC-721 NFT policies, SupplyChain as ERC-1155 pharmaceutical batch tokens, CredentialRegistry for provider verification, Governance for DAO voting, and MockStablecoin for payouts. All contracts use OpenZeppelin 5.6.1 with AccessManager, ReentrancyGuard, and custom errors, compiled and deployed via Hardhat with full Tenderly verification.
The backend is an Express.js TypeScript server using ethers.js v6 for blockchain interactions, Supabase PostgreSQL for auth and session storage, JWT for role-based authentication, and Azure OpenAI GPT-4o for AI-powered features like visit summarization, multi-agent claim adjudication, and longitudinal medical history generation. It integrates with IPFS via Pinata for encrypted record storage, the FHIR R4 standard via hapi.fhir.org for healthcare interoperability, and the World ID API for proof-of-personhood verification.
The frontend is a Next.js 16 application with React 19, TailwindCSS v4, and thirdweb v5 for wallet connectivity and contract reads.
The entire system is orchestrated by 17 CRE workflows that coordinate blockchain operations with external APIs, AI agents, and cross-chain messaging via CCIP. The app is deployed live on Railway with the frontend and backend as separate services.
Links
Created by
- Vishwa Kumaresh