0% found this document useful (0 votes)
7 views2 pages

Hospital Management

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 2

Certainly!

Here's a detailed summary of the Hospital Management System project in C++:

### Features:

1. *Add Patient Data:*

- The system allows adding patient records, including name, age, gender, blood group, address,
and contact information.

- The information is stored in arrays corresponding to different data fields.

2. *Display Patients:*

- Displays all patient records currently stored in the system.

- Shows patient details including name, age, gender, blood group, address, and contact
information.

3. *Delete Patient:*

- Enables the removal of a patient's data from the system by entering the patient's name.

4. *Menu-Based System:*

- Utilizes a menu-driven interface for user interaction.

- Options are presented using a numbered menu.

- Users can select options by entering the corresponding numbers.

### Implementation Details:

- *Data Storage:*

- Patient information is stored in parallel arrays (string and int) for different attributes such as
name, age, gender, blood group, address, and contact.

- Arrays are used to manage a maximum number of patients (MAX_PATIENTS) defined in the
program.

- *Functions:*

- addPatient(): Prompts the user to enter patient information using cin and stores it in the arrays.

- displayPatients(): Displays all existing patient records stored in the arrays.

- deletePatient(): Removes the patient's data by name from the arrays.


- *Menu and User Interaction:*

- A menu interface is presented using cout statements with numbered options.

- The user's choice is received through cin.

- A switch statement directs program flow based on the user's input.

### How to Use:

1. Upon running the program, the user is presented with a menu displaying available options.

2. The user selects an option by entering the corresponding number.

3. For adding a patient, the user enters patient details as prompted.

4. To display all patient records, the system presents the stored patient information.

5. To delete a patient, the user enters the name of the patient they wish to remove from the system.

### Possible Enhancements:

- Implementation using structures or classes for better organization and encapsulation.

- Implementation of additional functionalities such as searching for a patient's record by name or


specific criteria.

- Incorporation of error handling to manage invalid inputs or edge cases.

This summary covers the key aspects, functionalities, and implementation details of the Hospital
Management System in C++.

You might also like