A Windows Forms desktop application built with .NET 8 that helps hospital receptionists manage patients, appointments, doctors, and queues efficiently.
- Authentication – Login and signup with role-based access control (Admin, Doctor, Receptionist)
- Dashboard – Overview cards showing key statistics (appointments, patients, doctors)
- Patient Management – Register patients, track medical urgency, blood type, attendance rate, and no-show count
- Appointment Booking – Book, confirm, complete, or cancel appointments with priority scoring
- Queue Management – Real-time priority queue display with visual status indicators
- Doctor Management – Manage doctors, their specialties, departments, and time slots
- Reports – Generate appointment and attendance reports
- Admin Panel – Manage user accounts and approve/reject account creation requests
- Settings – Application configuration
| Layer | Technology |
|---|---|
| UI Framework | Windows Forms (.NET 8) |
| ORM | Entity Framework Core 9 |
| Database | Microsoft SQL Server |
| UI Controls | Guna.UI2.WinForms 2.0, LiveCharts.WinForms |
| Config | Microsoft.Extensions.Configuration.Json |
HospitalManagmentSys/
└── HospitalManagmentSys/
├── Program.cs # Application entry point
├── appsettings.json # Database connection string
├── BiussnessLogic/ # Service / business logic layer
│ ├── AppointmentService.cs
│ ├── DashbordServices.cs
│ ├── LoginService.cs
│ ├── QueueService.cs
│ ├── SessionManager.cs
│ ├── SignupService.cs
│ └── UserRequestService.cs
├── Data/
│ ├── AppDbContext.cs # EF Core database context
│ ├── Configuration/ # Entity type configurations
│ └── Models/ # Domain models
│ ├── Appointment.cs
│ ├── Attendance.cs
│ ├── Department.cs
│ ├── Doctor.cs
│ ├── Patient.cs
│ ├── TimeSlot.cs
│ ├── User.cs
│ └── UserRequest.cs
├── Migrations/ # EF Core migration files
└── Presentation/ # Windows Forms UI
├── AccountForm/ # Login, Signup, Admin panel
├── AppointmentForm/ # Book & view appointments
├── Dashbord/ # Dashboard & card controls
├── PatientForm/ # Patient registration & management
├── ProfilePatient/ # Patient profile view
├── QueueForm/ # Priority queue display
├── ReportsForm/ # Appointment reports
├── Settings/ # App settings
└── Controls/ # Shared UI controls (Sidebar, etc.)
| Model | Key Fields |
|---|---|
User |
Name, Email, Phone, Role (Admin/Doctor/Receptionist), PasswordHash |
Patient |
FullName, Phone, Email, BloodType, DateOfBirth, Gender, MedicalUrgency |
Doctor |
UserId, DepartmentId, Specialty, TimeSlots |
Department |
Name, Doctors |
Appointment |
PatientId, DoctorId, TimeSlotId, Date, Status, PriorityScore, QueueOrder |
Attendance |
Tracks patient check-in/check-out for appointments |
TimeSlot |
Available time slots for doctors |
UserRequest |
Pending account creation requests for admin approval |
Appointment statuses: Pending → Confirmed → Completed / Cancelled
Medical urgency levels: Low · Medium · High · Emergency
- .NET 8 SDK
- Visual Studio 2022 (with Windows Forms workload)
- SQL Server (any edition, including LocalDB or Express)
-
Open
appsettings.jsonand update the connection string to point to your SQL Server instance:{ "ConnectionStrings": { "DefaultConnection": "server=.;database=HospitalManagmentSystem;trust server certificate=true;integrated security=true;" } } -
Apply the Entity Framework Core migrations to create the database schema. From the project directory, run:
dotnet ef database update
-
Clone the repository:
git clone https://github.com/FatmaAli111/HospitalReciptionestManagmentSystem.git
-
Open
HospitalManagmentSys.slnin Visual Studio 2022. -
Restore NuGet packages (Visual Studio does this automatically on build).
-
Ensure the database connection string in
appsettings.jsonis correct. -
Press F5 or click Run to build and launch the application.
| Role | Capabilities |
|---|---|
| Admin | Manage all users, approve/reject account requests, full system access |
| Doctor | View own appointments and patient queue, update attendance |
| Receptionist | Register patients, book appointments, manage queue, generate reports |
This project is open source. Feel free to fork and adapt it for your needs.