# bemts-hhs/annual-trauma-report-2025 architecture

> Architecture diagram of the GitHub repository bemts-hhs/annual-trauma-report-2025, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bemts-hhs/annual-trauma-report-2025
- Repository: https://github.com/bemts-hhs/annual-trauma-report-2025

## Overview

This repository appears to be an R project for an annual trauma report. The file names suggest data loading, demographic and injury-mechanism analysis, sex-related checks, and an executive summary, with shared setup and environment utilities. The README contains only the project title, and no source excerpts are available, so the workflow and relationships between these components cannot be verified; the graph therefore shows responsibilities suggested by file names without asserting connections.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data inputs"]
  node_census_data["Census data"]
  node_data_load["Data loading<br/>[data_load.R]"]
  node_death_data["Death data<br/>[death_data.R]"]
end

subgraph group_analysis["Trauma analysis"]
  node_demographics["Demographics<br/>[demographics.R]"]
  node_mechanism_nature["Mechanism and nature<br/>[mechanism_nature.R]"]
  node_sex_errors["Sex data checks<br/>[sex_errors.R]"]
end

subgraph group_report["Report output"]
  node_executive_summary["Executive summary"]
end

subgraph group_support["Runtime support"]
  node_helpers["Helpers<br/>[helpers.R]"]
  node_environment_variables["Environment variables"]
  node_packages["Packages<br/>[packages.R]"]
  node_setup["Setup<br/>[setup.R]"]
  node_session_info["Session information<br/>[session_info.R]"]
end

click node_census_data "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/census_bureau_data.R"
click node_data_load "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/data_load.R"
click node_death_data "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/death_data.R"
click node_demographics "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/demographics.R"
click node_mechanism_nature "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/mechanism_nature.R"
click node_sex_errors "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/sex_errors.R"
click node_executive_summary "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/executive_summary.R"
click node_helpers "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/helpers.R"
click node_environment_variables "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/environment_variables.R"
click node_packages "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/packages.R"
click node_setup "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/setup.R"
click node_session_info "https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/session_info.R"

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_census_data,node_data_load,node_death_data toneBlue
class node_demographics,node_mechanism_nature,node_sex_errors toneAmber
class node_executive_summary toneMint
class node_helpers,node_environment_variables,node_packages,node_setup,node_session_info toneRose
```

## Components

### Data inputs

- [Census data](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/census_bureau_data.R): `R/census_bureau_data.R`
- [Data loading](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/data_load.R): `R/data_load.R`
- [Death data](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/death_data.R): `R/death_data.R`

### Trauma analysis

- [Demographics](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/demographics.R): `R/demographics.R`
- [Mechanism and nature](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/mechanism_nature.R): `R/mechanism_nature.R`
- [Sex data checks](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/sex_errors.R): `R/sex_errors.R`

### Report output

- [Executive summary](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/executive_summary.R): `R/executive_summary.R`

### Runtime support

- [Helpers](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/helpers.R): `R/helpers.R`
- [Environment variables](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/environment_variables.R): `R/environment_variables.R`
- [Packages](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/packages.R): `R/packages.R`
- [Setup](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/setup.R): `R/setup.R`
- [Session information](https://github.com/bemts-hhs/annual-trauma-report-2025/blob/main/R/session_info.R): `R/session_info.R`
