Secure. Transparent. Fraud-proof.
MediChain is a prescription verification system that ensures the authenticity of medical prescriptions using AI and blockchain.
It helps prevent medical fraud, promotes trust in healthcare, and makes prescription validation accessible — even in remote areas.
Prescription fraud and tampering are major issues in healthcare, leading to:
- Misuse of restricted medicines
- Black market circulation
- Forged doctor signatures and details
- Difficulty in verifying authenticity, especially in rural areas
MediChain combines AI-based prescription data extraction with blockchain storage to create a tamper-proof verification system.
- Upload Prescription → Doctor or patient uploads a typed prescription.
- AI Extraction → Key details (doctor ID, medicine name, dosage, date) are parsed.
- Blockchain Storage → Prescription hash & metadata are stored on a public blockchain.
- QR Code Verification → Each verified prescription gets a QR code for instant authentication.
- Secure Lookup → Pharmacists or patients scan the QR code to validate authenticity.
- Digital Prescription Generation – Doctors can issue secure, typed prescriptions.
- Unique QR Code for Each Prescription – Encodes verification details for fast scanning.
- Instant Verification – Pharmacies can scan and verify prescriptions in real time.
- Secure Doctor Database – Only registered and verified doctors can issue prescriptions.
- Blockchain-Ready Architecture – Option to store verification records on blockchain for immutability and audit trail.
- Offline-Friendly – Verification works even with minimal internet connectivity (QR scan + local database check).
- User-Friendly Web App – Simple UI for doctors, pharmacies, and admins.
Frontend: Typescript, Tailwind CSS, qrcode.react
Backend: Node.js, Express.js
Database: MongoDB
Blockchain: Solidity, Polygon Mumbai Testnet, Ethers.js, MetaMask
AI Integration: OpenAI GPT-4o (for extracting key data from typed prescriptions)
medichain/
│
├── backend/ # Backend server & APIs
├── frontend/ # React frontend
├── contracts/ # Smart contracts
├── docs/ # Documentation & diagrams
└── README.md
- Doctor Login → Doctor enters prescription details.
- AI Parsing → GPT-4o extracts and formats key data.
- Blockchain Storage → Prescription hash stored on Polygon Mumbai.
- QR Code Generation → QR linked to verification API.
- Verification → Anyone can scan QR to check blockchain authenticity.
- OCR for handwritten prescriptions
- Integrate with national e-health systems
- Add analytics dashboard for regulator insights (prescribing patterns, anomalies)
- A mobile app for rural pharmacists with offline sync
- @ssid18 – AI & Blockchain Integration
- @Dakshx07 – Frontend Development & UI
- @lakshitsoni26 – Backend & API Development