HemAI

hackathonproject-description2nd-place

What is HemAI?

HemAI is an AI-powered web application designed to analyze and interpret blood test reports. The platform provides detailed insights, visualizations, and recommendations based on the uploaded blood test results. It aims to make medical information more accessible and understandable to patients who might struggle with interpreting complex blood test reports.

Purpose of the HemAI

The primary purpose of HemAI is to bridge the gap between clinical blood test reports and patients' understanding of their health status. Many patients receive blood test results without fully comprehending what the various parameters mean for their health. Traditional approaches often leave patients confused or dependent on medical professionals for interpretation.

HemAI addresses this challenge by leveraging artificial intelligence to provide clear, accessible explanations of blood test results. The platform helps users understand abnormal values, potential health concerns, and recommended actions. By offering multilingual support, the application serves users from different countries, further enhancing accessibility to important health information.

Core Functions

1. Blood Test Report Analysis

  • Upload PDF blood test reports for AI-powered analysis
  • Receive detailed interpretations of test results
  • Identify abnormal values and their significance
  • Get personalized health insights based on test parameters
  • View reference ranges and deviation analysis

2. Chat/Consultation Module

  • Ask questions about test results and receive AI-generated responses
  • Manage chat sessions for continued conversations
  • Get detailed information about specific parameters
  • Receive clarification on medical terminology
  • Explore potential implications of test results

3. Report Generation & Visualization

  • Visualize test results with intuitive charts and graphs
  • Download comprehensive analysis reports in PDF format
  • Track changes in parameters over time
  • Compare results against standard reference ranges
  • Receive doctor referral recommendations based on results

4. Subscription & Credit System

  • Access basic features with free tier membership
  • Utilize credits for comprehensive report analysis
  • Choose from different subscription levels (Free, Mid, High)
  • Manage account settings and subscription preferences
  • Track credit usage and analysis history

5. Multilingual Support

  • Access the platform in English, Turkish, and Spanish
  • Dynamic routing with language parameter
  • Consistent user experience across all supported languages
  • Culturally relevant health information and recommendations
  • Language-specific reference ranges where applicable

Technical Requirements

Technology Stack:

Frontend

  • Framework: Next.js (App Router)
  • UI Library: React 19
  • Styling: Tailwind CSS
  • Visualization: Recharts
  • PDF Processing: jsPDF, jspdf-autotable
  • UI Components: Radix UI-based components
  • Internationalization: i18next

Backend

  • API Layer: tRPC
  • ORM: Prisma
  • Database: PostgreSQL
  • Authentication: NextAuth.js (Auth.js)
  • AI Integration: Google Generative AI (@google/generative-ai)

Database Schema:

  • User: User information, credit system, subscription level
  • AnalysisReport: Uploaded reports and analysis results
  • ChatSession: User-AI chat sessions
  • ChatMessage: Chat content (user and assistant messages)

Key Features:

  • Responsive design with dark/light theme support
  • Dynamic multi-language routing with [lang] parameter
  • Credit-based report analysis system
  • Three subscription tiers with different features
  • Secure authentication and user management
  • AI-powered interpretation and consultation
  • PDF generation and processing capabilities

HemAI represents an innovative approach to healthcare technology, combining advanced AI capabilities with user-friendly design to democratize access to medical information. By helping patients better understand their blood test results, it empowers them to take more active roles in managing their health.