HealthUnity Backend is a production-ready RESTful platform that connects patients and doctors through intelligent appointment management. The system features a conversational AI assistant called EVA powered by OpenAI’s GPT-4o-mini model, secure OAuth2 JWT authentication, comprehensive appointment lifecycle management, and automated email notifications. Built with Spring Boot and containerized with Docker, it demonstrates clean architecture principles with layered design and MCP tool integration for AI-driven healthcare operations.
Key Features:
- Full Appointment Lifecycle — Create, update, cancel, and complete medical appointments with real-time email confirmations
- EVA AI Assistant — Conversational virtual assistant leveraging Spring AI and OpenAI with MCP tools for natural language appointment management
- Doctor Discovery System — Paginated search with filters by specialty, advanced relevance ranking, and star ratings
- Doctor Dashboard — Real-time statistics, annual appointment calendar, schedule management, and attendance analytics
- Patient Profiles — Registration workflow, profile completion via OAuth2, and secure profile updates
- Social Features — Favorite doctors list and star-based review system with detailed comments
- OAuth2 JWT Security — Token-based authentication on all endpoints with custom 401 error handling
- Async Email Notifications — Styled HTML appointment confirmations sent asynchronously via Gmail SMTP
- MCP Integration — Model Context Protocol connects AI assistant to real backend tools for database operations
- Docker Multi-Stage Build — Gradle compilation to Eclipse Temurin JDK 17 runtime for optimized deployments