Skip to content

Repository files navigation

🏥 MedChain

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.


📺 Project Resources


✨ Key Features

🛡️ Blockchain Integrity & Auditing

  • 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.

🧠 Mental Health & Wellness

  • 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.

🆘 Emergency Access System

  • 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.

🩺 Clinical Management

  • 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.

🤖 AI-Powered Insights

  • Symptom Analysis: Leverages Groq SDK for intelligent medical data processing.
  • Automated Summaries: High-level overviews of patient history for quick clinical review.

💳 Financials & Communication

  • Telemedicine: Integrated video consultations via Agora RTC.
  • Payments: Secure transaction handling via Razorpay.
  • Notifications: Real-time alerts and email updates (Supabase/Brevo).

🛠️ Technology Stack

Layer Technologies
Frontend Next.js TailwindCSS TypeScript
Backend Node.js Express MongoDB
Blockchain Solidity Hardhat Ethers.js
Services Supabase Cloudinary Razorpay

📁 Project Structure

medchain/
├── backend/          # Express API, MongoDB models, & Business logic
├── frontend/         # Next.js Application (App Router)
├── blockchain/       # Hardhat environment & Solidity Smart Contracts
└── README.md         # This file

🚀 Quick Start (Windows)

  1. Clone the repository:

    git clone https://github.com/LanishaThomas/medchain.git
    cd medchain
  2. Install Dependencies:

    # Root level scripts to install everything
    cd backend && npm install
    cd ..\frontend && npm install
    cd ..\blockchain && npm install
  3. Environment Setup: Ensure you have .env files configured in both backend/ and frontend/ directories (refer to .env.example if available).

  4. Launch the Application:

    # Use the provided batch files for easy startup
    .\start-backend.bat
    .\start-frontend.bat

⚖️ License

Distributed under the MIT License. See LICENSE for more information.

About

Blockchain-powered healthcare platform for secure EHR, appointments, teleconsultation, prescriptions & audit trails.

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages