Skip to content

siddvoh/Hospital-DBMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hospital-DBMS

A C++ hospital management system with three user roles, file-based record storage, and an appointment routing workflow.

The system stores patient records in a binary file and gives each role its own console menu. Patients request appointments, admins review and forward them, and doctors confirm or reject them. Each role authenticates with its own password. The whole thing is a single C++ file with no external dependencies beyond the standard library, which makes it easy to read end to end and a useful reference for file-based record management and role-based access in C++.

Released as open source under the MIT license. See LICENSE.

Roles

  • Patient views their profile and upcoming appointments, requests new appointments, and changes their password.
  • Doctor reviews appointment requests forwarded by the admin, lists patients for a given date, estimates the daily collection, edits patient diagnosis and medication, and changes their password.
  • Admin reviews incoming appointment requests (confirm, forward to doctor, or reject), adds, edits, removes, and searches patient records, and changes their password.

Appointment workflow

  1. A patient requests an appointment for a chosen date.
  2. The admin sees the request and can confirm it, forward it to the assigned doctor, or reject it.
  3. If forwarded, the doctor sees the request and can confirm or reject it.
  4. A confirmed appointment is written back to the patient's record as their next visit date.

Data model

Each patient record stores: patient ID, name, age, date of birth, gender, blood group, number of visits, next visit date, identified disorder, prescribed medication, and assigned doctor. Records are kept sorted by patient ID in a binary file (Hospital.dat).

Building and running

This project uses legacy C++ headers (fstream.h, conio.h, stdio.h) and compiles with a DOS-era compiler such as Turbo C++. On a modern toolchain it is a reading reference rather than something that builds directly, because the Borland-specific headers are not part of standard C++.

To build in Turbo C++:

  1. Open Hospital Management System.CPP in the Turbo C++ IDE.
  2. Compile and run.

Generated data files (Hospital.dat, password files, temp files) are written to the working directory at runtime.

License

MIT. See LICENSE. The source is open and free to read, fork, and adapt.

About

A C++ hospital management system with patient, doctor, and admin roles, file-based record storage, and an appointment routing workflow. Single file, no external dependencies. Open source under the MIT license.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages