How mauriston/doencasepareceresjrs works
Guia Médico Naval is a PWA for JRS/HNRe medical examiners, combining normative references with operational casework. A principal workflow is opening and scheduling a health inspection, managing its records and related examinations/interviews, then preparing documents and communicating results. Other documented branches include competitions, specialist opinions, minor medical examinations, and service schedules. The map emphasizes those domain stages and the shared app/backend layers; many feature implementations were not sampled, so undocumented internal connections are omitted.
Main entry points: App.tsx App shell · firestoreInspecoes.ts Inspection records · useAcoesISFicha.tsx Inspection actions · Inspecoes.tsx Inspection workspace
Components 22
Application shell
- App shell
App.tsx - Route map
config/routes.ts - Sign in
components/Login.tsx - Home dashboard
components/Home.tsx
Health inspections
- Inspection workspace
components/Inspecoes.tsx - Inspection records
services/firestoreInspecoes.ts - Inspection status rules
utils/inspecoes.ts - Inspection actions
components/ficha/inspecoes/useAcoesISFicha.tsx - Interview records
services/entrevistasIS.ts - Pericial documents
servidor/documentos/is/servico.ts
Operational workflows
- Competitions
components/ConcursosJRS.tsx - Specialist opinions
components/Pareceres.tsx - Minor examinations
components/PericiaMenor.tsx - SPA service schedule
components/EscalaSpa.tsx - Normative guides
components/DiseaseGuide.tsx
Shared platform
- Firebase authentication
services/firebaseAuth.ts - API client
services/apiClient.ts - Application server
server.ts
Other components
- Medical examiner
- Firebase services
- Google Calendar
- Generative AI
Connections 22
- Medical examiner → App shell: uses
README.md - App shell → Route map: resolves routes
App.tsx - App shell → Sign in: shows
App.tsx - App shell → Home dashboard: shows
App.tsx - Sign in → Firebase authentication: authenticates
- Medical examiner → Inspection workspace: manages inspections
README.md - Inspection workspace → Inspection records: reads and writes
- Inspection records → Inspection status rules: uses status rules
services/firestoreInspecoes.ts - Inspection actions → Inspection records: updates records
components/ficha/inspecoes/useAcoesISFicha.tsx - Inspection actions → Interview records: observes interviews
components/ficha/inspecoes/useAcoesISFicha.tsx - Inspection actions → Pericial documents: generates documents
- Inspection workspace → Google Calendar: synchronizes appointments
README.md - Medical examiner → Competitions: manages competitions
README.md - Medical examiner → Specialist opinions: requests opinions
README.md - Medical examiner → Minor examinations: handles cases
README.md - Medical examiner → SPA service schedule: checks schedule
README.md - Medical examiner → Normative guides: consults guidance
README.md - API client → Firebase authentication: gets ID token
services/apiClient.ts - API client → Application server: sends API requests
services/apiClient.ts - Firebase authentication → Firebase services: initializes Firebase
services/firebaseAuth.ts - Inspection records → Firebase services: uses Firestore
services/firestoreInspecoes.ts - Application server → Generative AI: uses Gemini
server.ts