How phoenix-0701/bkmed works
MedFlow combines a patient/doctor/admin healthcare portal with a NestJS API and a separate medical NLP/chat AI package. The principal workflow is account access, finding doctors and availability, booking and managing appointments, and recording consultation notes; administration and patient/doctor profile management are additional branches. The AI package includes a train/evaluate pipeline and backend chat services. The README provides no usable architecture detail, and several listed modules were not sampled, so uncertain integrations are shown only as unverified links or omitted.
Main entry points: prisma.service.ts Application database · page.tsx Doctor search and booking · appointments.service.ts Appointments and notes · ConsultationModal.tsx Consultation workflow
Components 24
Web portal
- Login and registration
medflow-client/app/register/RegisterForm.tsx - Doctor search and booking
medflow-client/app/patient/booking/page.tsx - Patient dashboard and history
medflow-client/app/patient/page.tsx - Doctor schedule
medflow-client/app/doctor/page.tsx - Consultation workflow
medflow-client/app/doctor/ConsultationModal.tsx - Admin dashboard
medflow-client/app/admin/page.tsx
Healthcare API
- Authentication
medflow-server/src/auth/auth.service.ts - Profiles and doctors
medflow-server/src/users/users.service.ts - Schedules and leave
medflow-server/src/availabilities/availabilities.service.ts - Appointments and notes
medflow-server/src/appointments/appointments.service.ts - Admin operations
medflow-server/src/admin/admin.service.ts - Application database
medflow-server/src/prisma/prisma.service.ts
Medical AI
- Training and evaluation entry
medflow-ai/src/main.py - Model trainer
medflow-ai/src/trainer.py - Dataset loading
medflow-ai/src/data_loader.py - ViMQ extraction model
medflow-ai/src/model/model.py
AI services
- HTTP AI service
medflow-ai/backend/fastapi_app.py - gRPC chat service
medflow-ai/backend/grpc_server.py - Chat prompts and helpers
medflow-ai/backend/prompt.py - ViMQ integration
medflow-ai/backend/vimq_integration.py
Other components
- Patient
- Doctor
- Administrator
- Cloudinary
Connections 25
- Patient → Login and registration: registers or logs in
- Patient → Doctor search and booking: searches and books
- Patient → Patient dashboard and history: views account
- Doctor → Doctor schedule: manages schedule
medflow-client/app/doctor/page.tsx - Doctor → Consultation workflow: conducts consultation
- Administrator → Admin dashboard: manages portal
- Login and registration → Authentication: sends credentials
- Doctor search and booking → Profiles and doctors: requests doctor listings
- Doctor search and booking → Schedules and leave: requests open slots
- Doctor search and booking → Appointments and notes: submits booking
- Doctor schedule → Appointments and notes: fetches schedule
- Consultation workflow → Appointments and notes: updates consultation
- Admin dashboard → Admin operations: requests administration
- Authentication → Application database: reads and writes users
medflow-server/src/auth/auth.service.ts - Profiles and doctors → Application database: reads and writes profiles
medflow-server/src/users/users.service.ts - Schedules and leave → Application database: reads and writes schedules
medflow-server/src/availabilities/availabilities.service.ts - Appointments and notes → Application database: reads and writes appointments
medflow-server/src/appointments/appointments.service.ts - Admin operations → Application database: reads and writes admin data
medflow-server/src/admin/admin.service.ts - Training and evaluation entry → Model trainer: creates and runs
medflow-ai/src/main.py - Model trainer → Dataset loading: loads datasets
medflow-ai/src/trainer.py - Model trainer → ViMQ extraction model: uses model utilities
- Consultation workflow → HTTP AI service: may request AI assistance
- gRPC chat service → Chat prompts and helpers: uses chat prompts
- HTTP AI service → ViMQ integration: may delegate inference
- Profiles and doctors → Cloudinary: uploads avatars