# Homoeopathy System with Kent's Repertory

A complete web-based homoeopathy practice management system featuring Kent's Repertory, Materia Medica, and AI-powered case analysis.

## Features

### Core Features
- ✅ Complete Kent's Repertory with unlimited rubric depth
- ✅ Intelligent repertorization engine (grade weights 1-4)
- ✅ Case management with follow-up tracking
- ✅ Materia Medica with remedy details
- ✅ AI integration (Gemini/DeepSeek) for case analysis
- ✅ Role-based access (Admin & Doctor)
- ✅ Subscription management
- ✅ Responsive Bootstrap 5 UI

### Technical Features
- Raw PHP + MySQL (no frameworks)
- PDO for database security
- AJAX for smooth UX
- PDF export for cases
- Database backup/restore
- Email/SMS reminders
- RESTful API endpoints

## System Requirements

- PHP 7.4 or higher
- MySQL 5.7 or higher
- Apache/Nginx web server
- 256MB RAM minimum
- 100MB storage (plus database)

## Installation

### Quick Install

1. **Upload files** to your web server
2. **Set permissions**: `chmod 755 config/`
3. **Run installer**: Visit `http://yourdomain.com/install.php`
4. **Follow instructions** to setup database and admin account
5. **Delete install.php** for security

### Manual Install

```bash
# 1. Create database
mysql -u root -p -e "CREATE DATABASE homoeopathy_kent"

# 2. Import schema
mysql -u root -p homoeopathy_kent < database/schema.sql

# 3. Configure
cp .env.example .env
# Edit .env with your database credentials

# 4. Set permissions
chmod 755 config/
chmod -R 755 assets/uploads/