Documentation

SehatScan Documentation

Comprehensive guides and references to help you build with SehatScan AI health platform. From quick start to advanced integrations.

Quick Links

SehatScan AI Documentation

What is SehatScan?

SehatScan AI is an innovative AI-powered health risk assessment platform designed to help users understand and monitor their health through multiple analysis modalities. The application combines medical report analysis, facial health assessment, and comprehensive risk profiling to provide actionable health insights.

Core Mission

Transform medical reports and photos into actionable health insights using advanced AI and computer vision technology.

Key Value Propositions

  • Instant Medical Report Analysis: Upload lab reports and get AI-powered analysis of health metrics
  • Facial Health Assessment: Analyze facial features for potential health indicators
  • Comprehensive Risk Profiling: Combine multiple data sources for holistic health assessment
  • AI Health Assistant: Interactive chatbot for health-related questions and guidance
  • Historical Tracking: Monitor health trends over time with analysis history

Table of Contents

  1. Getting Started - Installation and configuration
  2. Architecture Overview - System design and structure
  3. Features Guide - Detailed feature documentation
  4. API Reference - API endpoints and usage
  5. Database Schema - Data models and relationships
  6. Authentication - Auth system documentation
  7. AI Integration - AI/ML features and Gemini API
  8. UI Components - Component library guide

Quick Overview

Technology Stack

CategoryTechnology
FrontendNext.js 16, React 19, TypeScript 5
StylingTailwind CSS 4, PostCSS
DatabasePostgreSQL (Supabase), Prisma ORM
AuthenticationClerk
AI/MLGoogle Gemini AI (Vision + Text)
PDF Generationhtml2canvas, jsPDF
ChartsRecharts
TestingVitest

Project Structure

SehatScan/
├── app/                    # Next.js App Router
│   ├── actions/           # Server Actions
│   ├── api/               # API Routes
│   ├── components/        # React Components
│   ├── dashboard/         # Protected Routes
│   └── page.tsx           # Landing Page
├── lib/                   # Utility Functions
├── types/                 # TypeScript Types
├── prisma/                # Database Schema
├── public/                # Static Assets
└── docs/                  # Documentation

Core Features

  1. Medical Report Scanning - AI-powered OCR and health metric extraction
  2. Facial Health Analysis - Visual health indicator detection
  3. Risk Assessment - Comprehensive health risk profiling
  4. AI Health Assistant - Context-aware conversational chatbot
  5. Analysis History - Track and review past analyses

Quick Start

# Clone the repository
git clone <repository-url>
cd SehatScan

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your credentials

# Generate Prisma client
npx prisma generate

# Run database migrations
npx prisma migrate dev

# Start development server
npm run dev

Visit http://localhost:3000 to access the application.


Environment Variables

Required environment variables:

# Database
DATABASE_URL="postgresql://..."
DIRECT_URL="postgresql://..."

# Supabase
NEXT_PUBLIC_SUPABASE_URL="https://..."
NEXT_PUBLIC_SUPABASE_ANON_KEY="..."

# AI Service
GEMINI_API_KEY="your-gemini-api-key"

# Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="pk_..."
CLERK_SECRET_KEY="sk_..."

See Setup Guide for detailed configuration instructions.


Documentation Index

DocumentDescription
setup.mdComplete installation and configuration guide
architecture.mdSystem architecture and design patterns
features.mdDetailed feature documentation
api-reference.mdREST API endpoints reference
database.mdDatabase schema and models
authentication.mdAuthentication system guide
ai-integration.mdAI/ML integration details
components.mdUI component library

License

This project is proprietary software. All rights reserved.


Support

For questions, issues, or feedback, please contact the development team or open an issue in the repository.