# ashvin21005/vaxtracks10 architecture

> Architecture diagram of the GitHub repository ashvin21005/vaxtracks10, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ashvin21005/vaxtracks10
- Repository: https://github.com/ashvin21005/vaxtracks10

## Overview

Vaxtrack is a Laravel vaccination-management application for child registration, immunization recording and scheduling, clinic operations, inventory, SMS reminders, and CHO monitoring. The principal workflow registers a child and guardian, records historical or administered doses, then recalculates protocol schedules and related reminders. Operations and monitoring provide distinct inventory, SMS, forecasting, and dashboard capabilities. The README is Laravel boilerplate rather than product documentation; unsampled subsystems are included from the source index and tree, with uncertain relationships omitted or marked unverified.

Main entry points: [`app/Http/Controllers/OperationsWorkflowController.php`](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/OperationsWorkflowController.php) (Operations workflow), [`app/Services/EpiScheduleService.php`](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/EpiScheduleService.php) (EPI scheduling), [`routes/web.php`](https://github.com/ashvin21005/vaxtracks10/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/PatientController.php`](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/PatientController.php) (Patient registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Application access"]
  node_web_routes["Web routes<br/>[web.php]"]
end

subgraph group_care["Patient and immunization"]
  node_patient_ui["Patient registration"]
  node_registration["Registration checks"]
  node_epi["EPI scheduling"]
  node_child[("Child records<br/>[Child.php]")]
  node_guardian[("Guardian records<br/>[Guardian.php]")]
  node_immunization[("Immunization records")]
  node_schedule[("Vaccination schedules")]
  node_vaccine[("Vaccine catalog<br/>[Vaccine.php]")]
  node_historical_import["Historical data import"]
end

subgraph group_operations["Clinic operations"]
  node_workflow["Operations workflow"]
  node_inventory["Inventory service"]
  node_thresholds["Inventory thresholds"]
  node_sms_gateway["SMS gateway service<br/>[SkySmsService.php]"]
  node_sms_records[("SMS notifications")]
end

subgraph group_oversight["CHO oversight"]
  node_dashboard["Dashboard metrics"]
  node_cho_monitoring["Station monitoring"]
  node_forecast["Demand forecasting"]
  node_station[("Health stations<br/>[HealthStation.php]")]
end

node_staff(("Clinic staff"))

node_staff -.->|"uses"| node_web_routes
node_web_routes -->|"routes to"| node_patient_ui
node_web_routes -->|"routes to"| node_workflow
node_web_routes -->|"routes to"| node_dashboard
node_web_routes -->|"routes to"| node_cho_monitoring
node_patient_ui -->|"checks duplicates"| node_registration
node_patient_ui -->|"creates doses; syncs"| node_epi
node_patient_ui -->|"creates and updates"| node_child
node_patient_ui -->|"creates and updates"| node_guardian
node_epi -->|"validates and writes"| node_immunization
node_epi -->|"generates schedules"| node_schedule
node_epi -->|"removes reminders"| node_sms_records
node_epi -->|"loads protocols"| node_vaccine
node_workflow -->|"manages stock"| node_inventory
node_workflow -->|"syncs schedules"| node_epi
node_workflow -->|"checks thresholds"| node_thresholds
node_workflow -->|"sends SMS"| node_sms_gateway
node_workflow -->|"reads and updates"| node_sms_records
node_historical_import -->|"loads catalog"| node_vaccine
node_dashboard -->|"checks stock"| node_thresholds
node_cho_monitoring -->|"requests forecast"| node_forecast
node_forecast -->|"uses stock data"| node_inventory
node_cho_monitoring -->|"loads stations"| node_station

click node_web_routes "https://github.com/ashvin21005/vaxtracks10/blob/main/routes/web.php"
click node_patient_ui "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/PatientController.php"
click node_registration "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/PatientRegistrationService.php"
click node_epi "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/EpiScheduleService.php"
click node_child "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/Child.php"
click node_guardian "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/Guardian.php"
click node_immunization "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/ImmunizationRecord.php"
click node_schedule "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/VaccinationSchedule.php"
click node_vaccine "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/Vaccine.php"
click node_workflow "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/OperationsWorkflowController.php"
click node_inventory "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/VaccineInventoryService.php"
click node_thresholds "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/InventoryThresholdService.php"
click node_sms_gateway "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/SkySmsService.php"
click node_sms_records "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/SmsNotification.php"
click node_historical_import "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/Api/V1/HistoricalDataImportController.php"
click node_dashboard "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/DashboardController.php"
click node_cho_monitoring "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/ChoMonitoringController.php"
click node_forecast "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/DemandForecastService.php"
click node_station "https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/HealthStation.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_web_routes toneBlue
class node_patient_ui,node_registration,node_epi,node_child,node_guardian,node_immunization,node_schedule,node_vaccine,node_historical_import toneAmber
class node_workflow,node_inventory,node_thresholds,node_sms_gateway,node_sms_records toneMint
class node_dashboard,node_cho_monitoring,node_forecast,node_station toneRose
class node_staff toneIndigo
```

## Components

### Application access

- [Web routes](https://github.com/ashvin21005/vaxtracks10/blob/main/routes/web.php): `routes/web.php`

### Patient and immunization

- [Patient registration](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/PatientController.php): `app/Http/Controllers/PatientController.php`
- [Registration checks](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/PatientRegistrationService.php): `app/Services/PatientRegistrationService.php`
- [EPI scheduling](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/EpiScheduleService.php): `app/Services/EpiScheduleService.php`
- [Child records](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/Child.php): `app/Models/Child.php`
- [Guardian records](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/Guardian.php): `app/Models/Guardian.php`
- [Immunization records](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/ImmunizationRecord.php): `app/Models/ImmunizationRecord.php`
- [Vaccination schedules](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/VaccinationSchedule.php): `app/Models/VaccinationSchedule.php`
- [Vaccine catalog](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/Vaccine.php): `app/Models/Vaccine.php`
- [Historical data import](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/Api/V1/HistoricalDataImportController.php): `app/Http/Controllers/Api/V1/HistoricalDataImportController.php`

### Clinic operations

- [Operations workflow](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/OperationsWorkflowController.php): `app/Http/Controllers/OperationsWorkflowController.php`
- [Inventory service](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/VaccineInventoryService.php): `app/Services/VaccineInventoryService.php`
- [Inventory thresholds](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/InventoryThresholdService.php): `app/Services/InventoryThresholdService.php`
- [SMS gateway service](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/SkySmsService.php): `app/Services/SkySmsService.php`
- [SMS notifications](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/SmsNotification.php): `app/Models/SmsNotification.php`

### CHO oversight

- [Dashboard metrics](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Station monitoring](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Http/Controllers/ChoMonitoringController.php): `app/Http/Controllers/ChoMonitoringController.php`
- [Demand forecasting](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Services/DemandForecastService.php): `app/Services/DemandForecastService.php`
- [Health stations](https://github.com/ashvin21005/vaxtracks10/blob/main/app/Models/HealthStation.php): `app/Models/HealthStation.php`

### Other components

- **Clinic staff**

## Connections

- Clinic staff → Web routes: uses
- Web routes → Patient registration: routes to (evidence: `routes/web.php`)
- Web routes → Operations workflow: routes to (evidence: `routes/web.php`)
- Web routes → Dashboard metrics: routes to (evidence: `routes/web.php`)
- Web routes → Station monitoring: routes to (evidence: `routes/web.php`)
- Patient registration → Registration checks: checks duplicates (evidence: `app/Http/Controllers/PatientController.php`)
- Patient registration → EPI scheduling: creates doses; syncs (evidence: `app/Http/Controllers/PatientController.php`)
- Patient registration → Child records: creates and updates (evidence: `app/Http/Controllers/PatientController.php`)
- Patient registration → Guardian records: creates and updates (evidence: `app/Http/Controllers/PatientController.php`)
- EPI scheduling → Immunization records: validates and writes (evidence: `app/Services/EpiScheduleService.php`)
- EPI scheduling → Vaccination schedules: generates schedules (evidence: `app/Services/EpiScheduleService.php`)
- EPI scheduling → SMS notifications: removes reminders (evidence: `app/Services/EpiScheduleService.php`)
- EPI scheduling → Vaccine catalog: loads protocols (evidence: `app/Services/EpiScheduleService.php`)
- Operations workflow → Inventory service: manages stock (evidence: `app/Http/Controllers/OperationsWorkflowController.php`)
- Operations workflow → EPI scheduling: syncs schedules (evidence: `app/Http/Controllers/OperationsWorkflowController.php`)
- Operations workflow → Inventory thresholds: checks thresholds (evidence: `app/Http/Controllers/OperationsWorkflowController.php`)
- Operations workflow → SMS gateway service: sends SMS (evidence: `app/Http/Controllers/OperationsWorkflowController.php`)
- Operations workflow → SMS notifications: reads and updates (evidence: `app/Http/Controllers/OperationsWorkflowController.php`)
- Historical data import → Vaccine catalog: loads catalog (evidence: `app/Http/Controllers/Api/V1/HistoricalDataImportController.php`)
- Dashboard metrics → Inventory thresholds: checks stock (evidence: `app/Http/Controllers/DashboardController.php`)
- Station monitoring → Demand forecasting: requests forecast (evidence: `app/Http/Controllers/ChoMonitoringController.php`)
- Demand forecasting → Inventory service: uses stock data (evidence: `app/Services/DemandForecastService.php`)
- Station monitoring → Health stations: loads stations (evidence: `app/Http/Controllers/ChoMonitoringController.php`)
