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