How jvgprogramming/dots_daily-v2 works
This is a tuberculosis-care management product with a Laravel API, a Next.js web portal, and a Flutter mobile app (the mobile tree shown contains platform runners, not the app’s Dart feature code). The main documented-in-source workflow is staff patient registration: the API delegates registration to a transactional service that creates patient and related TB records, then returns a patient resource. Treatment tracking and adherence/reporting form another substantial domain branch. Web pages indicate broader dashboard, medication, monitoring, AI, notification, search, and settings capabilities; their API wiring cannot be confirmed from the excerpts. No README content was provided.
Main entry points: dashboard-shell.tsx Portal shell · TreatmentsController.php Treatment API · ReportsController.php Reports API · PatientController.php Patient API
Components 29
Web portal
- Portal shell
web/components/layout/dashboard-shell.tsx - Patient management
web/app/(dashboard)/patients/page.tsx - Registration wizard
web/components/features/patients/PatientRegistrationWizard.tsx - Dashboard
web/app/(dashboard)/dashboard/page.tsx - Medications
web/app/(dashboard)/medications/page.tsx - Monitoring
web/app/(dashboard)/monitoring/page.tsx - Treatments
web/app/(dashboard)/treatments/page.tsx - Reports
web/app/(dashboard)/reports/page.tsx - AI assistance
web/app/(dashboard)/ai/page.tsx - Notifications
web/app/(dashboard)/notifications/page.tsx - Global search
web/components/layout/global-search.tsx - Settings
web/app/(dashboard)/settings/page.tsx
API and identity
- Authentication API
backend/app/Http/Controllers/API/Auth/AuthController.php - API response base
backend/app/Http/Controllers/API/BaseApiController.php - User account
backend/app/Models/User.php
Patient and TB care
- Patient API
backend/app/Http/Controllers/API/PatientController.php - Registration service
backend/app/Services/PatientRegistrationService.php - Patient record
backend/app/Models/Patient.php - Patient response
backend/app/Http/Resources/PatientResource.php - AI records
backend/app/Models/AiRecommendation.php
Treatment and insights
- Treatment API
backend/app/Http/Controllers/API/TreatmentsController.php - Treatment plan
backend/app/Models/TreatmentPlan.php - Medication logs
backend/app/Models/MedicationLog.php - Adherence calculations
backend/app/Support/Adherence.php - Follow-up schedule
backend/app/Support/FollowUps.php - Reports API
backend/app/Http/Controllers/API/ReportsController.php - Monitoring API
backend/app/Http/Controllers/API/MonitoringController.php - Medication inventory API
backend/app/Http/Controllers/API/MedicationInventoryController.php
Other components
- Care staff
Connections 30
- Care staff → Portal shell: uses portal
- Patient management → Registration wizard: opens wizard
- Registration wizard → Patient API: submits registration
- Portal shell → Dashboard: presents
- Portal shell → Patient management: presents
- Portal shell → Medications: presents
- Portal shell → Monitoring: presents
- Portal shell → Treatments: presents
- Portal shell → Reports: presents
- Portal shell → AI assistance: presents
- Portal shell → Notifications: presents
- Portal shell → Global search: presents
- Portal shell → Settings: presents
- Authentication API → User account: creates and authenticates
backend/app/Http/Controllers/API/Auth/AuthController.php - Patient API → Registration service: delegates registration
backend/app/Http/Controllers/API/PatientController.php - Registration service → Patient record: creates and updates
backend/app/Services/PatientRegistrationService.php - Registration service → User account: creates account
backend/app/Services/PatientRegistrationService.php - Patient API → Patient response: serializes patient
backend/app/Http/Controllers/API/PatientController.php - Patient record → User account: belongs to
backend/app/Models/Patient.php - Patient record → Treatment plan: has treatment plans
backend/app/Models/Patient.php - Treatment API → Treatment plan: reads and updates
backend/app/Http/Controllers/API/TreatmentsController.php - Treatment API → Medication logs: aggregates dose logs
backend/app/Http/Controllers/API/TreatmentsController.php - Treatment API → Adherence calculations: calculates adherence
backend/app/Http/Controllers/API/TreatmentsController.php - Treatment API → Follow-up schedule: derives follow-ups
backend/app/Http/Controllers/API/TreatmentsController.php - Reports API → Adherence calculations: uses adherence
backend/app/Http/Controllers/API/ReportsController.php - Reports API → Treatment plan: reads plans
backend/app/Http/Controllers/API/ReportsController.php - Reports API → Medication logs: reads dose logs
backend/app/Http/Controllers/API/ReportsController.php - Monitoring → Monitoring API: requests monitoring
- Medications → Medication inventory API: requests inventory
- AI assistance → AI records: uses AI records