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

Hospital Management System Project

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

Minor Project 2 : Hospital Management System

Learning Objectives

The designing of the Hospital Management System project helps the student to:
 Create C++ classes with structures defined in them
 Call the functions declared in the classes and the attributes defined in the
structures
 Develop and display main menu and its sub-menu
 Change the menu options during runtime
 Store data of the patients in arrays

Understanding the Hospital Management System Project

The Hospital Management System Project is a menu based application, which takes the data of
new patients being admitted in a hospital as input and saves all the data in arrays. When you
run the Hospital management System application then a menu appears with three options;
Enter New Patient Information, View Details of Existing Patients and Exit Application. The Enter
New Patient Information option allows you to enter information related to a new patient of the
hospital. The View Details of Existing Patients option displays all the patient details on the
basis of registration number, starting from 1. This registration number keeps increasing, as
more patient records are added to the Hospital Management System. This Registration number
is automatically generated while a new record of a patient is entered. The following figure
shows the menu of the Hospital Management System.

Developing the Hospital Management System


The Hospital Management System helps to manage the data related to patients of a hospital.
To develop the Hospital Management System, you need to:
 Create the class, ClassHospital
 Create the class, DOB
 Create the class, ValidateDate

Creating class ClassHospital


The ClassHospital class is created by defining the structures PatientAddressDetails and
PatientPersonalInfo. The PatientAddressDetails structure contains attributes such as Address,
City and State related to the patient. The PatientPersonalInfo structure contains attributes such
as name, registration number, bloodgroup, nature of disease, allotted ward number and
allotted bed number. The definition of ClassHospital class also includes the declaration of
member functions, which include AddPatientInfo, ViewPatientDetails and ShowMenu. The
AddPatientInfo member function allows a user to enter information related to a patient. The
ViewPatientDetail member function allows a user to view the information related to a patient.
The ShowMenu member function helps display the menu for the Hospital Management System.
Creating the DOB and ValidateDate Class
The DOB and ValidateDate classes help to validate the dates entered by the user of the
application as date of birth of the patient.

You might also like