# qatrackplus/qatrackplus architecture

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

- Interactive diagram: https://gitdiagram.com/qatrackplus/qatrackplus
- Repository: https://github.com/qatrackplus/qatrackplus

## Overview

QATrack+ is a Django quality-management application for radiation-therapy and diagnostic-imaging equipment. Its central workflow is recording and reviewing QC activity, with equipment and service-event records supporting maintenance tracking; reports summarize operational data. The README also identifies break-fix/preventative maintenance as a product capability. Connections below are limited to README statements and relationships listed in the SOURCE INDEX; several substantial subsystems are represented from the file tree without asserting unverified runtime wiring.

Main entry points: [`qatrack/qa/models.py`](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/models.py) (QC records), [`qatrack/service_log/models.py`](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/service_log/models.py) (Service events), [`qatrack/qa/views/perform.py`](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/views/perform.py) (QC execution), [`qatrack/reports/filters.py`](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/reports/filters.py) (Report filters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_qc["Quality control"]
  node_qc_workflow["QC execution<br/>[perform.py]"]
  node_qc_forms["QC forms<br/>[forms.py]"]
  node_qc_review["QC review<br/>[review.py]"]
  node_qc_models[("QC records<br/>[models.py]")]
  node_qc_trees["QC organization<br/>[trees.py]"]
  node_qc_signals["QC events<br/>[signals.py]"]
  node_attachments[("Attachments<br/>[models.py]")]
end

subgraph group_maintenance["Equipment maintenance"]
  node_faults[("Fault tracking<br/>[models.py]")]
  node_service_events[("Service events<br/>[models.py]")]
  node_service_forms["Service forms<br/>[forms.py]"]
  node_parts[("Parts inventory<br/>[models.py]")]
  node_units[("Equipment registry<br/>[models.py]")]
end

subgraph group_platform["Shared platform"]
  node_notifications["Notifications"]
  node_scheduling["Scheduling<br/>[scheduling.py]"]
  node_tasks["Background tasks<br/>[tasks.py]"]
  node_dates["Date utilities<br/>[dates.py]"]
  node_email["Email utilities<br/>[email.py]"]
end

subgraph group_reporting["Reporting and access"]
  node_api["REST API"]
  node_reports["Reports"]
  node_report_filters["Report filters<br/>[filters.py]"]
end

node_user(("Facility staff"))

node_user -->|"records QC"| node_qc_workflow
node_qc_workflow -->|"uses records"| node_qc_models
node_qc_forms -->|"uses records"| node_qc_models
node_qc_review -->|"reviews records"| node_qc_models
node_qc_workflow -->|"uses attachments"| node_attachments
node_qc_workflow -->|"references faults"| node_faults
node_qc_workflow -->|"references events"| node_service_events
node_qc_models -->|"references equipment"| node_units
node_qc_models -->|"uses schedules"| node_scheduling
node_qc_models -->|"uses dates"| node_dates
node_qc_signals -->|"handles model events"| node_qc_models
node_qc_signals -->|"updates events"| node_service_events
node_service_forms -.->|"records events"| node_service_events
node_service_events -->|"references equipment"| node_units
node_faults -->|"references events"| node_service_events
node_notifications -->|"schedules notices"| node_tasks
node_tasks -->|"uses email"| node_email
node_reports -->|"uses filters"| node_report_filters
node_report_filters -->|"filters events"| node_service_events
node_report_filters -->|"filters equipment"| node_units
node_qc_review -->|"references QC report"| node_reports

click node_qc_workflow "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/views/perform.py"
click node_qc_forms "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/views/forms.py"
click node_qc_review "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/views/review.py"
click node_qc_models "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/models.py"
click node_qc_trees "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/trees.py"
click node_qc_signals "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/signals.py"
click node_attachments "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/attachments/models.py"
click node_faults "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/faults/models.py"
click node_service_events "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/service_log/models.py"
click node_service_forms "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/service_log/forms.py"
click node_parts "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/parts/models.py"
click node_units "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/units/models.py"
click node_notifications "https://github.com/qatrackplus/qatrackplus/tree/master/qatrack/notifications"
click node_scheduling "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qatrack_core/scheduling.py"
click node_tasks "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qatrack_core/tasks.py"
click node_dates "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qatrack_core/dates.py"
click node_email "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qatrack_core/email.py"
click node_api "https://github.com/qatrackplus/qatrackplus/tree/master/qatrack/api"
click node_reports "https://github.com/qatrackplus/qatrackplus/tree/master/qatrack/reports"
click node_report_filters "https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/reports/filters.py"

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_qc_workflow,node_qc_forms,node_qc_review,node_qc_models,node_qc_trees,node_qc_signals,node_attachments toneBlue
class node_faults,node_service_events,node_service_forms,node_parts,node_units toneAmber
class node_notifications,node_scheduling,node_tasks,node_dates,node_email toneMint
class node_api,node_reports,node_report_filters toneRose
class node_user toneIndigo
```

## Components

### Quality control

- [QC execution](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/views/perform.py): `qatrack/qa/views/perform.py`
- [QC forms](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/views/forms.py): `qatrack/qa/views/forms.py`
- [QC review](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/views/review.py): `qatrack/qa/views/review.py`
- [QC records](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/models.py): `qatrack/qa/models.py`
- [QC organization](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/trees.py): `qatrack/qa/trees.py`
- [QC events](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qa/signals.py): `qatrack/qa/signals.py`
- [Attachments](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/attachments/models.py): `qatrack/attachments/models.py`

### Equipment maintenance

- [Fault tracking](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/faults/models.py): `qatrack/faults/models.py`
- [Service events](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/service_log/models.py): `qatrack/service_log/models.py`
- [Service forms](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/service_log/forms.py): `qatrack/service_log/forms.py`
- [Parts inventory](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/parts/models.py): `qatrack/parts/models.py`
- [Equipment registry](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/units/models.py): `qatrack/units/models.py`

### Shared platform

- [Notifications](https://github.com/qatrackplus/qatrackplus/tree/master/qatrack/notifications): `qatrack/notifications`
- [Scheduling](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qatrack_core/scheduling.py): `qatrack/qatrack_core/scheduling.py`
- [Background tasks](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qatrack_core/tasks.py): `qatrack/qatrack_core/tasks.py`
- [Date utilities](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qatrack_core/dates.py): `qatrack/qatrack_core/dates.py`
- [Email utilities](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/qatrack_core/email.py): `qatrack/qatrack_core/email.py`

### Reporting and access

- [REST API](https://github.com/qatrackplus/qatrackplus/tree/master/qatrack/api): `qatrack/api`
- [Reports](https://github.com/qatrackplus/qatrackplus/tree/master/qatrack/reports): `qatrack/reports`
- [Report filters](https://github.com/qatrackplus/qatrackplus/blob/master/qatrack/reports/filters.py): `qatrack/reports/filters.py`

### Other components

- **Facility staff**

## Connections

- Facility staff → QC execution: records QC (evidence: `README.md`)
- QC execution → QC records: uses records (evidence: `qatrack/qa/views/perform.py`)
- QC forms → QC records: uses records (evidence: `qatrack/qa/views/forms.py`)
- QC review → QC records: reviews records (evidence: `qatrack/qa/views/review.py`)
- QC execution → Attachments: uses attachments (evidence: `qatrack/qa/views/perform.py`)
- QC execution → Fault tracking: references faults (evidence: `qatrack/qa/views/perform.py`)
- QC execution → Service events: references events (evidence: `qatrack/qa/views/perform.py`)
- QC records → Equipment registry: references equipment (evidence: `qatrack/qa/models.py`)
- QC records → Scheduling: uses schedules (evidence: `qatrack/qa/models.py`)
- QC records → Date utilities: uses dates (evidence: `qatrack/qa/models.py`)
- QC events → QC records: handles model events (evidence: `qatrack/qa/signals.py`)
- QC events → Service events: updates events (evidence: `qatrack/qa/signals.py`)
- Service forms → Service events: records events
- Service events → Equipment registry: references equipment (evidence: `qatrack/service_log/models.py`)
- Fault tracking → Service events: references events (evidence: `qatrack/faults/models.py`)
- Notifications → Background tasks: schedules notices (evidence: `qatrack/notifications/apps.py`)
- Background tasks → Email utilities: uses email (evidence: `qatrack/notifications/service_log_review/tasks.py`)
- Reports → Report filters: uses filters (evidence: `qatrack/reports/service_log/service_times.py`)
- Report filters → Service events: filters events (evidence: `qatrack/reports/service_log/service_times.py`)
- Report filters → Equipment registry: filters equipment (evidence: `qatrack/reports/service_log/service_times.py`)
- QC review → Reports: references QC report (evidence: `qatrack/qa/views/review.py`)
