# reinzihardt/java_hands_ons architecture

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

- Interactive diagram: https://gitdiagram.com/reinzihardt/java_hands_ons
- Repository: https://github.com/reinzihardt/java_hands_ons

## Overview

DentalBlank is a console-based dental clinic manager. A user selects menu actions to maintain patient records, book appointments, view schedules, cancel bookings, and review daily totals; the program starts with sample data and stores records in in-memory parallel arrays. The single Java file combines menu handling, domain operations, validation, and state rather than separating them into packages. The README documents the broader flows; the excerpt confirms the menu dispatch and selected booking logic, but does not expose every implementation detail.

Main entry points: [`DentalBlank.java`](https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java) (Menu and input)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Console interaction"]
  node_menu["Menu and input<br/>[DentalBlank.java]"]
end

subgraph group_clinic["Clinic workflows"]
  node_patients["Patient records<br/>[DentalBlank.java]"]
  node_booking["Appointment booking<br/>[DentalBlank.java]"]
  node_schedule["Schedule display<br/>[DentalBlank.java]"]
  node_cancellation["Appointment cancellation<br/>[DentalBlank.java]"]
  node_summary["Daily summary<br/>[DentalBlank.java]"]
  node_validation["Validation and helpers<br/>[DentalBlank.java]"]
end

subgraph group_state["In-memory state"]
  node_sample["Sample data loader<br/>[DentalBlank.java]"]
  node_records[("Patient and appointment arrays<br/>[DentalBlank.java]")]
end

node_user(("Clinic staff"))

node_user -->|"chooses actions"| node_menu
node_menu -->|"loads at startup"| node_sample
node_menu -->|"dispatches patient actions"| node_patients
node_menu -->|"dispatches booking"| node_booking
node_menu -->|"dispatches schedule view"| node_schedule
node_menu -->|"dispatches cancellation"| node_cancellation
node_menu -->|"dispatches summary"| node_summary
node_patients -->|"reads and updates"| node_records
node_booking -->|"selects patient"| node_patients
node_booking -->|"checks conflicts"| node_validation
node_booking -->|"saves appointment"| node_records
node_schedule -->|"reads appointments"| node_records
node_cancellation -->|"updates status"| node_records
node_summary -->|"aggregates appointments"| node_records
node_menu -->|"validates input"| node_validation

click node_menu "https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java"
click node_patients "https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java"
click node_booking "https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java"
click node_schedule "https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java"
click node_cancellation "https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java"
click node_summary "https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java"
click node_validation "https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java"
click node_sample "https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java"
click node_records "https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java"

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_menu toneBlue
class node_patients,node_booking,node_schedule,node_cancellation,node_summary,node_validation toneAmber
class node_sample,node_records toneMint
class node_user toneIndigo
```

## Components

### Console interaction

- [Menu and input](https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java): `DentalBlank.java`

### Clinic workflows

- [Patient records](https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java): `DentalBlank.java`
- [Appointment booking](https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java): `DentalBlank.java`
- [Schedule display](https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java): `DentalBlank.java`
- [Appointment cancellation](https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java): `DentalBlank.java`
- [Daily summary](https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java): `DentalBlank.java`
- [Validation and helpers](https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java): `DentalBlank.java`

### In-memory state

- [Sample data loader](https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java): `DentalBlank.java`
- [Patient and appointment arrays](https://github.com/reinzihardt/java_hands_ons/blob/main/DentalBlank.java): `DentalBlank.java`

### Other components

- **Clinic staff**

## Connections

- Clinic staff → Menu and input: chooses actions (evidence: `README.md`)
- Menu and input → Sample data loader: loads at startup (evidence: `DentalBlank.java`)
- Menu and input → Patient records: dispatches patient actions (evidence: `DentalBlank.java`)
- Menu and input → Appointment booking: dispatches booking (evidence: `DentalBlank.java`)
- Menu and input → Schedule display: dispatches schedule view (evidence: `README.md`)
- Menu and input → Appointment cancellation: dispatches cancellation (evidence: `README.md`)
- Menu and input → Daily summary: dispatches summary (evidence: `README.md`)
- Patient records → Patient and appointment arrays: reads and updates (evidence: `README.md`)
- Appointment booking → Patient records: selects patient (evidence: `DentalBlank.java`)
- Appointment booking → Validation and helpers: checks conflicts (evidence: `DentalBlank.java`)
- Appointment booking → Patient and appointment arrays: saves appointment (evidence: `DentalBlank.java`)
- Schedule display → Patient and appointment arrays: reads appointments (evidence: `README.md`)
- Appointment cancellation → Patient and appointment arrays: updates status (evidence: `README.md`)
- Daily summary → Patient and appointment arrays: aggregates appointments (evidence: `README.md`)
- Menu and input → Validation and helpers: validates input (evidence: `DentalBlank.java`)
