How jinendra12kumar/pradoc works
PraDoc is a full-stack healthcare platform. Patients register and verify an account, discover doctors, book a time slot, attend an in-clinic or video consultation, and manage records, prescriptions, and reviews; doctors onboard and manage their schedules and consultations, while administrators oversee platform operations. The React app routes role-specific workflows to a FastAPI API, whose services implement domain logic over PostgreSQL, with Redis/OTP and asynchronous email capabilities. The map combines explicit routing and sampled service evidence with README-documented capabilities; several API and page implementations were not sampled, so uncertain calls are omitted.
Main entry points: router.py API router · App.jsx App routing · database.py PostgreSQL data layer · patient Patient journey
Components 33
Web experience
- Patient journey
frontend/src/pages/patient - Doctor workspace
frontend/src/pages/doctor - Admin console
frontend/src/pages/admin - Video consultation UI
frontend/src/pages/consultation/VideoConsultation.jsx - Sign-in and registration
frontend/src/pages/auth - App routing
frontend/src/App.jsx
API surface
- API router
backend/app/api/v1/router.py - Authentication endpoints
backend/app/api/v1/auth.py - Doctor endpoints
backend/app/api/v1/doctor.py - Appointment endpoints
backend/app/api/v1/appointments.py - Patient endpoints
backend/app/api/v1/patient.py - File endpoints
backend/app/api/v1/file_endpoints.py - Video endpoints
backend/app/api/v1/video.py - Review endpoints
backend/app/api/v1/reviews.py - Admin endpoints
backend/app/api/v1/admin.py
Healthcare services
- Appointment lifecycle
backend/services/appointment_service.py - Telemedicine sessions
backend/services/video_service.py - Medical files
backend/services/file_service.py - Ratings and reviews
backend/services/review_service.py - Platform administration
backend/services/admin_service.py - Email task dispatch
backend/tasks/email_tasks.py - Email delivery
backend/services/email_service.py
Identity and onboarding
- Auth and OTP
backend/services/auth_service.py - Doctor onboarding and discovery
backend/services/doctor_service.py - User repository
backend/repositories/user_repo.py - JWT role guard
backend/dependencies/auth.py
Runtime and data
- FastAPI application
backend/app/__init__.py - PostgreSQL data layer
backend/core/database.py - Redis OTP/cache
backend/core/redis_client.py
Other components
- Patients, doctors, admins
- Jitsi Meet
- Email provider
- RabbitMQ broker
Connections 44
- Patients, doctors, admins → App routing: uses
README.md - App routing → Sign-in and registration: routes
frontend/src/App.jsx - App routing → Patient journey: routes
frontend/src/App.jsx - App routing → Doctor workspace: routes
frontend/src/App.jsx - App routing → Video consultation UI: routes
frontend/src/App.jsx - App routing → Admin console: routes
frontend/src/App.jsx - Patient journey → Doctor endpoints: requests discovery
frontend/src/pages/patient/PatientHome.jsx - Patient journey → Doctor endpoints: searches doctors
frontend/src/pages/patient/DoctorSearch.jsx - Sign-in and registration → Authentication endpoints: authenticates
- Patient journey → Appointment endpoints: books appointments
- Doctor workspace → Appointment endpoints: manages schedule
- Video consultation UI → Video endpoints: starts consultation
- Admin console → Admin endpoints: manages platform
- API router → Authentication endpoints: registers
backend/app/api/v1/router.py - API router → Doctor endpoints: registers
backend/app/api/v1/router.py - API router → Appointment endpoints: registers
backend/app/api/v1/router.py - API router → Patient endpoints: registers
backend/app/api/v1/router.py - API router → File endpoints: registers
backend/app/api/v1/router.py - API router → Video endpoints: registers
backend/app/api/v1/router.py - API router → Review endpoints: registers
backend/app/api/v1/router.py - API router → Admin endpoints: registers
backend/app/api/v1/router.py - Authentication endpoints → Auth and OTP: delegates
backend/app/api/v1/auth.py - Doctor endpoints → Doctor onboarding and discovery: delegates
backend/app/api/v1/doctor.py - Review endpoints → Ratings and reviews: delegates
backend/app/api/v1/reviews.py - Admin endpoints → Platform administration: delegates
backend/app/api/v1/admin.py - Appointment endpoints → Appointment lifecycle: handles booking
- Video endpoints → Telemedicine sessions: handles sessions
- File endpoints → Medical files: handles uploads
- Auth and OTP → User repository: reads and writes
backend/services/auth_service.py - Auth and OTP → Redis OTP/cache: stores OTP
backend/services/auth_service.py - Auth and OTP → Email task dispatch: dispatches email
backend/services/auth_service.py - Email task dispatch → Email delivery: sends email
backend/tasks/email_tasks.py - Doctor onboarding and discovery → PostgreSQL data layer: persists profiles
backend/services/doctor_service.py - Doctor onboarding and discovery → Medical files: uploads documents
backend/services/doctor_service.py - JWT role guard → User repository: loads user
backend/dependencies/auth.py - JWT role guard → PostgreSQL data layer: gets session
backend/dependencies/auth.py - Appointment lifecycle → Email task dispatch: queues notifications
backend/services/appointment_service.py - Appointment lifecycle → PostgreSQL data layer: updates appointments
- Ratings and reviews → PostgreSQL data layer: reads and writes
backend/services/review_service.py - Telemedicine sessions → Jitsi Meet: embeds video
README.md - Email delivery → Email provider: delivers mail
README.md - Email task dispatch → RabbitMQ broker: queues tasks
README.md - FastAPI application → API router: mounts routes
backend/app/__init__.py - FastAPI application → PostgreSQL data layer: initializes data
backend/app/__init__.py