Skip to content

krishna2426/ThalaConnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ThalaConnect

AI-Powered Blood Donation Platform for Thalassemia Patients in India

ThalaConnect is a comprehensive, mobile-first platform that connects Thalassemia patients with life-saving blood donors through AI-powered matching, personalized education, and community support. Built by Blood Warriors to address the critical challenges faced by Thalassemia patients in accessing timely blood transfusions.

๐ŸŒŸ Features

AI-Powered Donor Matching :

  • Real-time Prediction: AI algorithms predict donor availability using geolocation and donation history.
  • Smart Matching: 98% accuracy in matching patients with compatible donors.
  • Urgency-based Prioritization: Critical cases get priority matching.
  • Distance Optimization: Find the nearest available donors.

Secure & Compliant Platform :

  • DPDPA Compliant: Adheres to India's Digital Personal Data Protection Act.
  • Role-based Access: Separate interfaces for patients, donors, and healthcare providers.
  • Encrypted Communication: Secure messaging between all parties.
  • Verified Users: Trust badges and verification system.

Personalized Education :

  • Adaptive Learning: Content tailored to literacy level and treatment history.
  • Interactive Modules: Engaging courses on Thalassemia management.
  • Progress Tracking: Monitor learning journey with achievements.
  • Expert Content: Medical information reviewed by healthcare professionals.

Gamification & Community :

  • Donor Recognition: Points, badges, and leaderboards.
  • Community Support: Patient forums and support groups.
  • Achievement System: Motivational rewards for engagement.
  • Success Stories: Inspiring patient and donor testimonials.

Comprehensive Blood Management

  • Emergency Requests: One-click emergency blood assistance
  • Appointment Scheduling: Seamless coordination with healthcare providers.
  • Donation Tracking: Complete history of donations and transfusions.
  • Integration Ready: Compatible with e-RaktKosh and Blood Bridge APIs.

Quick Start

Prerequisites

  • Node.js 18.17 or later
  • npm 9.0 or later
  • Git (for cloning)

Installation

  1. Clone the repository ```bash git clone https://github.com/krishna2426/ThalaConnect.git cd thalaconnect ```

  2. Install dependencies ```bash npm install ```

  3. Set up environment variables ```bash cp .env.example .env.local

    Edit .env.local with your configuration

    ```

  4. Run the development server ```bash npm run dev ```

  5. Open your browser ``` http://localhost:3000 ```

Usage

For Patients

  1. Register as a patient with medical details.
  2. Complete Profile with blood type and location.
  3. Find Donors using AI-powered matching.
  4. Schedule Appointments with healthcare providers.
  5. Learn & Grow through personalized education modules.
  6. Connect with the community for support.

For Donors

  1. Sign Up as a blood donor.
  2. Verify Profile for trust and safety.
  3. Set Availability and donation preferences.
  4. Respond to Requests from patients in need.
  5. Earn Recognition through the gamification system.
  6. Track Impact of your donations.

For Healthcare Providers

  1. Register with medical credentials.
  2. Manage Patients and appointment schedules.
  3. Coordinate Care with other providers.
  4. Access Resources for better patient management.
  5. Contribute Content to the education platform.

Technology Stack

Frontend

  • Next.js 14 - React framework with App Router.
  • TypeScript - Type-safe development.
  • Tailwind CSS - Utility-first styling.
  • shadcn/ui - Modern UI components.
  • Lucide React - Beautiful icons.

Backend (Ready for Integration)

  • RESTful APIs - FHIR-compliant endpoints.
  • Authentication - JWT-based security.
  • Database - PostgreSQL/MongoDB ready.
  • Real-time - WebSocket support for notifications.

AI & Analytics

  • Machine Learning - Donor matching algorithms.
  • Geolocation - Location-based services.
  • Predictive Analytics - Availability forecasting.
  • Personalization - Content recommendation engine.

Project Structure

``` thalaconnect/ โ”œโ”€โ”€ app/ # Next.js App Router pages โ”‚ โ”œโ”€โ”€ (auth)/ # Authentication pages โ”‚ โ”œโ”€โ”€ dashboard/ # User dashboards โ”‚ โ”œโ”€โ”€ donors/ # Donor discovery โ”‚ โ”œโ”€โ”€ education/ # Learning platform โ”‚ โ”œโ”€โ”€ community/ # Social features โ”‚ โ””โ”€โ”€ layout.tsx # Root layout โ”œโ”€โ”€ components/ # Reusable UI components โ”‚ โ”œโ”€โ”€ ui/ # shadcn/ui components โ”‚ โ””โ”€โ”€ custom/ # Custom components โ”œโ”€โ”€ lib/ # Utility functions โ”œโ”€โ”€ hooks/ # Custom React hooks โ”œโ”€โ”€ types/ # TypeScript definitions โ”œโ”€โ”€ public/ # Static assets โ””โ”€โ”€ styles/ # Global styles ```

๐Ÿ”ง Configuration

Environment Variables

Create a .env.local file in the root directory:

```env

Application

NEXT_PUBLIC_APP_URL=http://localhost:3000 NEXT_PUBLIC_APP_NAME=ThalaConnect

Manual Deployment

```bash

Build for production

npm run build

Start production server

npm start ```

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Code Standards

  • ESLint for code linting
  • Prettier for code formatting
  • TypeScript for type safety
  • Conventional Commits for commit messages

๐Ÿ“‹ Roadmap

Phase 1 (Current) โœ…

  • Core platform development.
  • AI donor matching algorithm.
  • User authentication system.
  • Basic education modules.
  • Community features.

Phase 2 (Q2 2024) ๐Ÿšง

  • Real-time notifications.
  • Advanced AI features.
  • Mobile app development.
  • Healthcare provider integrations.
  • Multi-language support.

Phase 3 (Q3 2024) ๐Ÿ“‹

  • Telemedicine integration.
  • Financial assistance module.
  • Advanced analytics dashboard.
  • Blockchain audit trails.
  • IoT device integration.

Phase 4 (Q4 2024) ๐Ÿ”ฎ

  • Machine learning optimization.
  • Predictive health analytics.
  • Government system integration.
  • International expansion.
  • Research collaboration platform.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Blood Warriors - Founding organization.
  • Thalassemia Patients - For their invaluable feedback.
  • Healthcare Providers - For medical expertise.
  • Open Source Community - For the amazing tools and libraries.
  • Donors - The real heroes saving lives every day.

Connecting lives, one donation at a time

About

A demo for project created as a part of Ai-For-Good Hackathon

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published