How consulta-pronta/web works
ConsultaPronta is a web platform for patient triage, health follow-up, and communication with health professionals. The main patient workflow is registration or login, authenticated navigation, recording and reviewing symptoms (including symptom history), and accessing exams and reports; professional exam views are also present. The architecture separates routing and authentication, user-facing health pages, Firebase-backed services, and shared data models. Some page implementations and service modules were not excerpted, so their internal interactions are omitted unless the source index or README documents them.
Main entry points: index.ts Route guard · NavBar.vue Navigation bar · symptomService.ts Symptom records · firebase.ts Firebase services
Components 20
Access and routing
- Route guard
src/router/index.ts - Registration
src/stores/signUpStore.ts - Sign-in
src/stores/signInStore.ts - Password recovery
src/pages/authentication/RecuperarSenha.vue - Auth state
src/stores/authStore.ts
Health workflows
- Patient dashboard
src/pages/DashboardUsuario.vue - Symptom entry
src/components/forms/FormSintoma.vue - Symptom history
src/pages/HistoricoUsuario.vue - Patient exams
src/pages/ExamesUsuario.vue - Professional exams
src/pages/ExamesProfissional.vue - Patient reports
src/pages/RelatoriosUsuario.vue
Data and services
- Firebase services
src/config/firebase.ts - User records
src/services/userService.ts - Symptom records
src/services/symptomService.ts - Exam records
src/services/examService.ts - Symptom model
src/models/symptomModel.ts - Exam model
src/models/examModel.ts
Shared interface
- Navigation bar
src/components/NavBar.vue - Symptom card
src/components/cards/SymptomCard.vue
Other components
- Patient or professional
Connections 33
- Patient or professional → Route guard: opens routes
src/router/index.ts - Route guard → Auth state: sets user
src/router/index.ts - Route guard → Patient dashboard: routes to
src/router/index.ts - Route guard → Symptom history: routes to
src/router/index.ts - Route guard → Patient exams: routes to
src/router/index.ts - Route guard → Patient reports: routes to
src/router/index.ts - Route guard → Registration: routes to
src/router/index.ts - Route guard → Sign-in: routes to
src/router/index.ts - Route guard → Password recovery: routes to
src/router/index.ts - Registration → Firebase services: creates auth user
src/stores/signUpStore.ts - Registration → User records: creates profile
src/stores/signUpStore.ts - Sign-in → Firebase services: uses authentication
src/stores/signInStore.ts - Password recovery → Firebase services: uses authentication
src/pages/authentication/RecuperarSenha.vue - Auth state → User records: loads profile
src/stores/authStore.ts - User records → Firebase services: uses Firestore
src/services/userService.ts - Symptom records → User records: gets user reference
src/services/symptomService.ts - Symptom records → Symptom model: converts documents
src/services/symptomService.ts - Exam records → Exam model: uses exam model
src/services/examService.ts - Patient dashboard → Symptom records: loads symptoms
src/pages/DashboardUsuario.vue - Patient dashboard → Navigation bar: renders
src/pages/DashboardUsuario.vue - Patient dashboard → Symptom card: renders
src/pages/DashboardUsuario.vue - Symptom entry → Symptom records: submits symptoms
src/components/forms/FormSintoma.vue - Symptom entry → Symptom model: uses symptom data
src/components/forms/FormSintoma.vue - Symptom history → Symptom records: loads symptoms
src/pages/HistoricoUsuario.vue - Symptom history → Symptom entry: renders form
src/pages/HistoricoUsuario.vue - Symptom history → Symptom card: renders
src/pages/HistoricoUsuario.vue - Patient exams → Exam records: loads exams
src/pages/ExamesUsuario.vue - Patient exams → Exam model: uses exam model
src/pages/ExamesUsuario.vue - Patient exams → Navigation bar: renders
src/pages/ExamesUsuario.vue - Professional exams → Navigation bar: renders
src/pages/ExamesProfissional.vue - Patient reports → Navigation bar: renders
src/pages/RelatoriosUsuario.vue - Navigation bar → Auth state: reads user
src/components/NavBar.vue - Navigation bar → Firebase services: signs out
src/components/NavBar.vue