# muhammadeidl/hastane-klinik-randevu-sistemi architecture

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

- Interactive diagram: https://gitdiagram.com/muhammadeidl/hastane-klinik-randevu-sistemi
- Repository: https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi

## Overview

This tree contains standalone Python OOP models and a console demonstration, not the Flask/SQLite web application described in the README. The visible runtime models cover branches, doctors, patients, services, and appointment status/conflict handling; `main.py` demonstrates separate base classes. The README documents a fuller role-based booking and administration workflow, but its named app, model, and database files are absent, so that capability is shown as an unverified subsystem rather than an implemented flow. Relationships below follow the excerpts; the documented web workflow remains unverified.

Main entry points: [`Appointment.py`](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Appointment.py) (Appointment), [`MedicalService.py`](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/MedicalService.py) (Medical Service), [`MedicallService.py`](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/MedicallService.py) (Service Manager), [`Doctor.py`](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Doctor.py) (Doctor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_domain["Domain Models"]
  node_branch["Clinic Branch<br/>[ClinicBranch.py]"]
  node_doctor["Doctor<br/>[Doctor.py]"]
  node_patient["Patient<br/>[Patient.py]"]
  node_medical_service["Medical Service<br/>[MedicalService.py]"]
  node_service_manager["Service Manager<br/>[MedicallService.py]"]
  node_user["User<br/>[User.py]"]
end

subgraph group_booking["Appointment Handling"]
  node_appointment["Appointment<br/>[Appointment.py]"]
  node_appointment_manager["Appointment Manager<br/>[Appointment.py]"]
end

subgraph group_demo["Console Demo"]
  node_demo_models["Demo Models<br/>[main.py]"]
end

subgraph group_documented["Documented Web System"]
  node_web_booking["Web Booking"]
  node_hospital_admin["Hospital Administration"]
end

node_visitor(("System User"))

node_appointment_manager -->|"creates"| node_appointment
node_appointment -->|"references"| node_patient
node_appointment -->|"references"| node_doctor
node_appointment -->|"reads price"| node_medical_service
node_service_manager -->|"manages"| node_medical_service
node_visitor -.->|"books appointments"| node_web_booking
node_visitor -.->|"manages clinic"| node_hospital_admin

click node_branch "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/ClinicBranch.py"
click node_doctor "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Doctor.py"
click node_patient "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Patient.py"
click node_medical_service "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/MedicalService.py"
click node_service_manager "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/MedicallService.py"
click node_appointment "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Appointment.py"
click node_appointment_manager "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Appointment.py"
click node_demo_models "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/main.py"
click node_web_booking "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Services"
click node_hospital_admin "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Services"
click node_user "https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/User.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_branch,node_doctor,node_patient,node_medical_service,node_service_manager,node_user,node_visitor toneBlue
class node_appointment,node_appointment_manager toneAmber
class node_demo_models toneMint
class node_web_booking,node_hospital_admin toneRose
```

## Components

### Domain Models

- [Clinic Branch](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/ClinicBranch.py): `ClinicBranch.py`
- [Doctor](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Doctor.py): `Doctor.py`
- [Patient](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Patient.py): `Patient.py`
- [Medical Service](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/MedicalService.py): `MedicalService.py`
- [Service Manager](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/MedicallService.py): `MedicallService.py`
- [User](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/User.py): `User.py`

### Appointment Handling

- [Appointment](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Appointment.py): `Appointment.py`
- [Appointment Manager](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Appointment.py): `Appointment.py`

### Console Demo

- [Demo Models](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/main.py): `main.py`

### Documented Web System

- [Web Booking](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Services): `Services`
- [Hospital Administration](https://github.com/muhammadeidl/hastane-klinik-randevu-sistemi/blob/main/Services): `Services`

### Other components

- **System User**

## Connections

- Appointment Manager → Appointment: creates (evidence: `Appointment.py`)
- Appointment → Patient: references (evidence: `Appointment.py`)
- Appointment → Doctor: references (evidence: `Appointment.py`)
- Appointment → Medical Service: reads price (evidence: `Appointment.py`)
- Service Manager → Medical Service: manages (evidence: `MedicallService.py`)
- System User → Web Booking: books appointments (evidence: `README.md`)
- System User → Hospital Administration: manages clinic (evidence: `README.md`)
