Delivering the right medical information, to the right provider, at the right time.
A comprehensive AI-powered clinical decision support system built for the Impiricus HackGT challenge, featuring specialized medical agents, real-time collaboration, and intelligent health management.
- Provider Dashboard: Clinical risk assessment with evidence-based recommendations
- Patient View: Simplified, empathetic explanations in plain language
- Risk Scoring Engine: Rule-based assessment of pancreatic cancer risk factors
- Literature Integration: Relevant study summaries based on risk factors
- Dynamic Questionnaires: Targeted follow-up questions based on chief complaints
- Insurance Integration: ICD-10/CPT code mapping with cost estimates
- Dual-Mode Interface: Seamless switching between provider and patient views
- 4 Specialized Medical Agents:
- Dr. Sarah Chen - Diagnostic Specialist (risk assessment, symptom analysis)
- Dr. Michael Rodriguez - Treatment Specialist (therapy options, protocols)
- Dr. Lisa Wang - Health Routine Specialist (preventive care, lifestyle)
- Jennifer Thompson - Care Coordinator (scheduling, follow-ups)
- Intelligent Query Routing: Automatically selects the best specialist for each medical query
- Agent Collaboration: Multiple agents can contribute to complex medical decisions
- Confidence Scoring: Each response includes specialist confidence levels
- Conversation Memory: Agents maintain context across patient interactions
- Live AI Conversations: Powered by Google Gemini 2.5 Flash API
- Voice Recognition: Hands-free interaction with Web Speech API
- Real-Time Collaboration: Multi-provider Socket.IO integration
- Smart Suggestions: Context-aware follow-up question recommendations
- Personalized Health Routines: AI-generated daily care plans
- Google Calendar Sync: Automatic appointment and routine scheduling
- Intelligent Reminders: Smart notifications for medications and appointments
- Care Coordination: Automated provider scheduling and referrals
- Frontend: React 18 + TailwindCSS + Socket.IO Client
- Backend: Node.js + Express + Socket.IO Server
- AI Integration: Google Gemini 2.5 Flash API
- APIs: RESTful endpoints with real-time WebSocket support
- Agent System: Custom Mastra-inspired multi-agent architecture
- Calendar: Google Calendar API integration
- Data: Mock patient database with clinical scenarios
- Node.js 16+
- Google Gemini API key
- (Optional) Google Calendar API credentials
cd backend
npm install
# Create .env file with your API keys
echo "GEMINI_API_KEY=your_gemini_api_key_here" > .env
echo "NODE_ENV=development" >> .env
echo "PORT=5000" >> .env
npm startServer runs on http://localhost:5000
cd frontend
npm install --legacy-peer-deps
npm startApplication runs on http://localhost:3000
GET /api/patients- Get all patientsGET /api/patients/:id- Get specific patientPOST /api/risk- Calculate risk assessmentPOST /api/study- Get literature summaryPOST /api/questionnaire- Generate follow-up questionsPOST /api/insurance- Get insurance/billing codes
POST /api/ai/chat- Send message to AI agent systemGET /api/ai/conversation/:sessionId- Get conversation historyPOST /api/calendar/schedule- Schedule appointmentsPOST /api/health-routine/generate- Generate personalized health routinePOST /api/health-routine/schedule- Schedule routine to calendar
join_session- Join collaboration sessionprovider_joined- Provider joined sessionnew_annotation- New medical annotationai_response- Real-time AI response
The application includes 4 preloaded patient cases:
- Sarah Johnson (65F) - High risk: New diabetes + weight loss + family history
- Robert Chen (58M) - Medium risk: Weight loss + smoking history
- Maria Rodriguez (72F) - Medium risk: New diabetes + elevated CA 19-9
- James Wilson (45M) - Low risk: Routine checkup, minimal symptoms
- Select patient from sidebar
- Review AI-powered risk assessment with specialist insights
- Chat with specialized medical agents for diagnosis and treatment
- Generate personalized health routines
- Schedule appointments and coordinate care
- View insurance codes and cost estimates
- Toggle to "Patient View"
- See simplified, empathetic risk explanation
- Chat with AI assistant about concerns
- Receive personalized health routine
- View calendar-synced care plan
- User asks medical question
- System routes to appropriate specialist agent
- Agent analyzes query with medical expertise
- Response includes agent name and confidence score
- Other agents can collaborate on complex cases
- "What's the risk assessment for this patient?"
- "How should we interpret these lab results?"
- "What additional tests should we order?"
- "What treatment options are available?"
- "How should we manage this patient's care?"
- "What's the recommended protocol?"
- "Create a health routine for this patient"
- "What lifestyle changes do you recommend?"
- "Help with diet and exercise planning"
- "Schedule a follow-up appointment"
- "Coordinate with specialists"
- "What's the care timeline?"
Built during HackGT 2024 for the Impiricus challenge. Demonstrates cutting-edge integration of AI agents, clinical decision support, and patient communication tools.
- AI Agent Routing: NLP-based query classification and specialist assignment
- Risk Algorithm: Weighted scoring based on age, symptoms, family history, labs
- Study Matching: Dynamic literature lookup based on primary risk factors
- Code Mapping: Automated ICD-10/CPT suggestion with cost estimation
- Dual UX: Provider-technical vs patient-friendly presentation layers
- Real-Time Sync: Socket.IO for live collaboration and updates
- Calendar Integration: Automated scheduling with Google Calendar API
- Voice Interface: Web Speech API for hands-free operation
GEMINI_API_KEY=your_gemini_api_key
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_REDIRECT_URI=http://localhost:5000/auth/google/callback
NODE_ENV=development
PORT=5000
- Real AI Conversations: Live chat with Google Gemini 2.5 Flash
- Specialist Routing: Queries automatically routed to the right medical expert
- Voice Input: Click microphone to speak your questions
- Health Routines: Generate and sync personalized care plans
- Smart Scheduling: One-click appointment booking
- Real-Time Collaboration: Multiple providers can join sessions
Built with β€οΈ for better patient care through AI-powered clinical decision support.