# lavanya691/healthcare-appointment architecture

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

- Interactive diagram: https://gitdiagram.com/lavanya691/healthcare-appointment
- Repository: https://github.com/lavanya691/healthcare-appointment

## Overview

Health4 is an Angular healthcare appointment application with login and role-based registration, patient scheduling and appointment viewing, doctor availability and appointment viewing, and receptionist appointment management. The visible workflow runs from routed screens through HttpService to an API; AuthService stores session details in browser local storage. The supplied tree and excerpts contain no server implementation or README capability description, so the API is modeled as external and backend processing is not expanded. Edges are limited to relationships shown in excerpts or the source index.

Main entry points: [`health4-main/client/src/app/app-routing.module.ts`](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/app-routing.module.ts) (Route table), [`health4-main/client/src/services/http.service.ts`](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/services/http.service.ts) (HTTP service), [`health4-main/client/src/app/login/login.component.ts`](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/login/login.component.ts) (Login), [`health4-main/client/src/app/app.module.ts`](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/app.module.ts) (Angular app module)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell and routing"]
  node_app_module["Angular app module<br/>[app.module.ts]"]
  node_routing["Route table"]
  node_app_component["App shell<br/>[app.component.ts]"]
  node_dashboard["Dashboard"]
  node_ui["UI screen<br/>[ui.component.ts]"]
  node_bootstrap["Angular bootstrap<br/>[main.ts]"]
end

subgraph group_identity["Identity and registration"]
  node_login["Login<br/>[login.component.ts]"]
  node_registration["Role registration"]
  node_auth["Session and role state<br/>[auth.service.ts]"]
end

subgraph group_appointments["Appointment workflows"]
  node_schedule["Patient scheduling"]
  node_patient_appointments["Patient appointments"]
  node_doctor_appointments["Doctor appointments"]
  node_doctor_availability["Doctor availability"]
  node_receptionist_appointments["Receptionist appointments"]
end

subgraph group_integration["HTTP and configuration"]
  node_http_service["HTTP service<br/>[http.service.ts]"]
  node_environment["API configuration"]
end

node_user(("Healthcare user"))
node_api["Healthcare API"]

node_user -.->|"uses screens"| node_routing
node_routing -->|"routes to"| node_login
node_routing -->|"routes to"| node_registration
node_routing -->|"routes to"| node_dashboard
node_routing -->|"routes to"| node_schedule
node_routing -->|"routes to"| node_patient_appointments
node_routing -->|"routes to"| node_doctor_appointments
node_routing -->|"routes to"| node_doctor_availability
node_routing -->|"routes to"| node_receptionist_appointments
node_routing -->|"routes to"| node_ui
node_app_module -->|"imports"| node_routing
node_app_module -->|"bootstraps"| node_app_component
node_bootstrap -->|"loads"| node_app_module
node_app_component -->|"checks session"| node_auth
node_login -->|"submits credentials"| node_http_service
node_login -->|"saves session"| node_auth
node_registration -->|"registers role"| node_http_service
node_schedule -->|"schedules visit"| node_http_service
node_patient_appointments -->|"fetches visits"| node_http_service
node_doctor_appointments -->|"fetches visits"| node_http_service
node_doctor_availability -->|"updates availability"| node_http_service
node_receptionist_appointments -->|"reschedules visits"| node_http_service
node_http_service -->|"reads token"| node_auth
node_http_service -->|"reads API config"| node_environment
node_http_service -->|"sends requests"| node_api

click node_app_module "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/app.module.ts"
click node_routing "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/app-routing.module.ts"
click node_app_component "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/app.component.ts"
click node_dashboard "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/dashbaord/dashbaord.component.ts"
click node_ui "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/ui/ui.component.ts"
click node_login "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/login/login.component.ts"
click node_registration "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/registration/registration.component.ts"
click node_auth "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/services/auth.service.ts"
click node_schedule "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/schedule-appointment/schedule-appointment.component.ts"
click node_patient_appointments "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/patient-appointment/patient-appointment.component.ts"
click node_doctor_appointments "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/doctor-appointment/doctor-appointment.component.ts"
click node_doctor_availability "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/doctor-availability/doctor-availability.component.ts"
click node_receptionist_appointments "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/receptionist-appointments/receptionist-appointments.component.ts"
click node_http_service "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/services/http.service.ts"
click node_environment "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/environments/environment.development.ts"
click node_bootstrap "https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/main.ts"

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_app_module,node_routing,node_app_component,node_dashboard,node_ui,node_bootstrap,node_user toneBlue
class node_login,node_registration,node_auth toneAmber
class node_schedule,node_patient_appointments,node_doctor_appointments,node_doctor_availability,node_receptionist_appointments,node_api toneMint
class node_http_service,node_environment toneRose
```

## Components

### App shell and routing

- [Angular app module](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/app.module.ts): `health4-main/client/src/app/app.module.ts`
- [Route table](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/app-routing.module.ts): `health4-main/client/src/app/app-routing.module.ts`
- [App shell](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/app.component.ts): `health4-main/client/src/app/app.component.ts`
- [Dashboard](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/dashbaord/dashbaord.component.ts): `health4-main/client/src/app/dashbaord/dashbaord.component.ts`
- [UI screen](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/ui/ui.component.ts): `health4-main/client/src/app/ui/ui.component.ts`
- [Angular bootstrap](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/main.ts): `health4-main/client/src/main.ts`

### Identity and registration

- [Login](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/login/login.component.ts): `health4-main/client/src/app/login/login.component.ts`
- [Role registration](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/registration/registration.component.ts): `health4-main/client/src/app/registration/registration.component.ts`
- [Session and role state](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/services/auth.service.ts): `health4-main/client/src/services/auth.service.ts`

### Appointment workflows

- [Patient scheduling](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/schedule-appointment/schedule-appointment.component.ts): `health4-main/client/src/app/schedule-appointment/schedule-appointment.component.ts`
- [Patient appointments](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/patient-appointment/patient-appointment.component.ts): `health4-main/client/src/app/patient-appointment/patient-appointment.component.ts`
- [Doctor appointments](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/doctor-appointment/doctor-appointment.component.ts): `health4-main/client/src/app/doctor-appointment/doctor-appointment.component.ts`
- [Doctor availability](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/doctor-availability/doctor-availability.component.ts): `health4-main/client/src/app/doctor-availability/doctor-availability.component.ts`
- [Receptionist appointments](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/app/receptionist-appointments/receptionist-appointments.component.ts): `health4-main/client/src/app/receptionist-appointments/receptionist-appointments.component.ts`

### HTTP and configuration

- [HTTP service](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/services/http.service.ts): `health4-main/client/src/services/http.service.ts`
- [API configuration](https://github.com/lavanya691/healthcare-appointment/blob/main/health4-main/client/src/environments/environment.development.ts): `health4-main/client/src/environments/environment.development.ts`

### Other components

- **Healthcare user**
- **Healthcare API**

## Connections

- Healthcare user → Route table: uses screens
- Route table → Login: routes to (evidence: `health4-main/client/src/app/app-routing.module.ts`)
- Route table → Role registration: routes to (evidence: `health4-main/client/src/app/app-routing.module.ts`)
- Route table → Dashboard: routes to (evidence: `health4-main/client/src/app/app-routing.module.ts`)
- Route table → Patient scheduling: routes to (evidence: `health4-main/client/src/app/app-routing.module.ts`)
- Route table → Patient appointments: routes to (evidence: `health4-main/client/src/app/app-routing.module.ts`)
- Route table → Doctor appointments: routes to (evidence: `health4-main/client/src/app/app-routing.module.ts`)
- Route table → Doctor availability: routes to (evidence: `health4-main/client/src/app/app-routing.module.ts`)
- Route table → Receptionist appointments: routes to (evidence: `health4-main/client/src/app/app-routing.module.ts`)
- Route table → UI screen: routes to (evidence: `health4-main/client/src/app/app-routing.module.ts`)
- Angular app module → Route table: imports (evidence: `health4-main/client/src/app/app.module.ts`)
- Angular app module → App shell: bootstraps (evidence: `health4-main/client/src/app/app.module.ts`)
- Angular bootstrap → Angular app module: loads (evidence: `health4-main/client/src/main.ts`)
- App shell → Session and role state: checks session (evidence: `health4-main/client/src/app/app.component.ts`)
- Login → HTTP service: submits credentials (evidence: `health4-main/client/src/app/login/login.component.ts`)
- Login → Session and role state: saves session (evidence: `health4-main/client/src/app/login/login.component.ts`)
- Role registration → HTTP service: registers role (evidence: `health4-main/client/src/app/registration/registration.component.ts`)
- Patient scheduling → HTTP service: schedules visit (evidence: `health4-main/client/src/app/schedule-appointment/schedule-appointment.component.ts`)
- Patient appointments → HTTP service: fetches visits (evidence: `health4-main/client/src/app/patient-appointment/patient-appointment.component.ts`)
- Doctor appointments → HTTP service: fetches visits (evidence: `health4-main/client/src/app/doctor-appointment/doctor-appointment.component.ts`)
- Doctor availability → HTTP service: updates availability (evidence: `health4-main/client/src/app/doctor-availability/doctor-availability.component.ts`)
- Receptionist appointments → HTTP service: reschedules visits (evidence: `health4-main/client/src/app/receptionist-appointments/receptionist-appointments.component.ts`)
- HTTP service → Session and role state: reads token (evidence: `health4-main/client/src/services/http.service.ts`)
- HTTP service → API configuration: reads API config (evidence: `health4-main/client/src/services/http.service.ts`)
- HTTP service → Healthcare API: sends requests (evidence: `health4-main/client/src/services/http.service.ts`)
