This repository contains the backend API source code for Shakhsni, a Hospital Management System powered by an NLP Microservice.
The system follows a Service-Oriented Architecture (SOA) approach, decoupling the core Laravel backend from the Python AI service.
graph LR
Client[Client App] --> API[Laravel API]
API --> Service[Service Layer]
Service --> AI[Python Flask AI]
AI --> Prediction
- PHP: 8.1+
- Laravel: 10.x
- Python: 3.9+ (requests, specialized libs)
- Database: MySQL 8.0+
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
php artisan serveNavigate to the AI service directory (if applicable) or ensure the Python environment is active.
pip install -r requirements.txt
python model.py- Authentication:
Sanctumimplementation for stateless JWT. - Appointments:
AppointmentServicemanaging slots and status. - Diagnostics:
MedicineServiceinteracting with the ML Model.
- Architecture: See
.showcase/README.mdfor in-depth analysis. - API Spec: See Postman collection in
.notes/.
Maintained by Ziad Gamal