Skip to content

venkamita/Patient-Record-Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Patient-Record-Management

🏥 Hospital Record Management System in C

This project is a simple command-line based Hospital Record Management System developed in C. It allows users to manage patient records and assign doctors based on symptoms, using file handling and basic struct-based data management.

📂 Features

  • Add a new patient with ID, name, age, symptoms, and appointment date
  • View patient history by ID or name
  • Assign doctors based on patient symptoms (doctor.txt)
  • Update patient records
  • Delete patient records
  • Uses persistent storage through patient.txt

🛠️ File Structure

  • hospitalrecord.c – Contains the full implementation
  • patient.txt – Stores all patient records (created automatically if not present)
  • doctor.txt – Doctor database used for assigning based on symptoms

Sample doctor.txt format:

101:Dr. Sharma:General:Physician:1234567890:cough:1,2,3
102:Dr. Mehta:Cardiology:Cardiologist:9876543210:chest pain:4,5

🧾 Notes

Maximum 5 symptoms per patient

Doctor assignment is based on exact match of one symptom from doctor.txt

For unmatched symptoms, the default assigned doctor is General Physician

👨‍💻 Author

Made with ❤️ by Sharat Doddihal B.Tech CSE @ PES University

Also pursuing BS in Data Science and Applications @ IITM Online

📜 License

This project is open source and free to use under the MIT License.

🧪 Final Notes

The code is logically sound and should work well when:

  • doctor.txt exists and follows the expected format.
  • You don’t enter invalid types (no error handling for string input in numeric fields).

About

semester -1 C project .

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages