MedChain is a state-of-the-art, integrated healthcare platform designed to revolutionize medical data management. By combining Blockchain technology for immutable auditing, AI-driven insights, and a modern Next.js frontend, MedChain ensures patient records are secure, transparent, and easily accessible to authorized personnel.
- 📄 Documentation Files: Google Drive Folder
- 🎥 Demo Video: Watch the MedChain Demo
- Immutable Audit Trail: Every access or modification to a medical record is hashed and anchored on the blockchain (Polygon Amoy).
- Tamper Detection: Built-in consistency checks compare local database state against blockchain records to flag any unauthorized data changes.
- Mood Tracking: Log and visualize daily emotional states.
- Gratitude Journal: A persistent, digital journal for daily reflections.
- Wellness Tools: Integrated breathing exercises and calming ambient sounds.
- Quick Access: Secure protocol for emergency responders to access vital patient information.
- Time-Limited Sessions: Access is automatically logged and expires after a set period.
- Medical Records: Comprehensive storage for history, allergies, and chronic conditions.
- E-Prescriptions: Doctors can issue and manage prescriptions digitally.
- Appointment Scheduling: Integrated booking system for in-person and online consultations.
- Symptom Analysis: Leverages Groq SDK for intelligent medical data processing.
- Automated Summaries: High-level overviews of patient history for quick clinical review.
- Telemedicine: Integrated video consultations via Agora RTC.
- Payments: Secure transaction handling via Razorpay.
- Notifications: Real-time alerts and email updates (Supabase/Brevo).
| Layer | Technologies |
|---|---|
| Frontend | |
| Backend | |
| Blockchain | |
| Services |
medchain/
├── backend/ # Express API, MongoDB models, & Business logic
├── frontend/ # Next.js Application (App Router)
├── blockchain/ # Hardhat environment & Solidity Smart Contracts
└── README.md # This file
-
Clone the repository:
git clone https://github.com/LanishaThomas/medchain.git cd medchain
-
Install Dependencies:
# Root level scripts to install everything cd backend && npm install cd ..\frontend && npm install cd ..\blockchain && npm install -
Environment Setup: Ensure you have
.envfiles configured in bothbackend/andfrontend/directories (refer to.env.exampleif available). -
Launch the Application:
# Use the provided batch files for easy startup .\start-backend.bat .\start-frontend.bat
Distributed under the MIT License. See LICENSE for more information.