OOP Nitesh Microproject
OOP Nitesh Microproject
Date:10/12/2022
Talking about the features of the Hospital Management System, after logging in as a user he/she can
add new patient records, diagnosis information, check patient information, and view information
about the hospital. To delete a record, the user has to delete the file from the project folder as this
project focuses on adding and retrieving files. While adding a patient record, he/she has to provide
the details which includes the name of the patient, address, contact number, age, sex, blood group,
disease name and patient id number. Similarly, in adding diagnosis information of a particular patient
then he/she has to select the respective patient’s file and provide symptoms, Diagnosis, Medicines,
ask admission, and ward type. The user can view patients history easily as which displays each and
every detail of the patient.
Talking about the features of the Hospital Management System, after logging in as a user he/she can
add new patient records, diagnosis information, check patient information, and view information
about the hospital. To delete a record, the user has to delete the file from the project folder as this
project focuses on adding and retrieving files. While adding a patient record, he/she has to provide
the details which includes the name of the patient, address, contact number, age, sex, blood group,
disease name and patient id number. Similarly, in adding diagnosis information of a particular patient
then he/she has to select the respective patient’s file and provide symptoms, Diagnosis, Medicines,
ask admission, and ward type. The user can view patients history easily as which displays each and
every detail of the patient.
ALGORITHM:
1) START
2) DELCARE CLASS HMS
3) DECLARE VARIABLES IN PRIVATE VISIBILITY MODE
4) CREATE FUNCTION DEFINATION IN PUBLIC VISIBILITY MODE
5) CREATE FUNCTION GUI()
6) CREATE FUNTION INFO()
7) CREATE FUNCTION DATA()
8) CREATE FUNCTION DISPLAY()
9) CREATE OBJECT OF CLASS HMS IN MAIN FUNCTION()
10) DECLARE VARIABLE I OF INTEGER DATA TYPES ;
11) FOR(i=0;i<5;i++) , FUNCTION CALLING AND DISPLAYING DATA
12) END OF LOOP
13) STOP.
C++ PROGRAM FOR HOSPITAL MANAGEMENT SYSTEM:
#include<iostream.h>
#include<conio.h>
class HMS
{
private:
int patient_id;
float age;
char patient_name[20];
char address[15];
public:
int choice;
char disease_type[30];
void gui()
{
cout<<" WELCOME TO CITY HOSPITAL "<<endl;
cout<<" Enter choice = 1 for treatment in GOVERNMENT DEPARTMENT ";<<endl;
cout<<" Enter choice = 2 for treatment in PRIVATE DEPARTMENT "<<endl;
cout<<" Enter 11 for ORTHOPEDIC DISEASE TREATMENT "<<endl;
cout<<" Enter 12 for NEUROLOGY "<< endl;
cout<<" Enter 13 for CARDIOLOGY "<< endl;
}
void info()
{
cout<< " enter choice "<< endl;
cin>>choice;
cout<<" Enter te type of disease " <<endl;
cin>disease_type;
}
void data()
{
cout<<" ENTER THE DETAILS OF THE PATIENT " <<endl;
cout<<" Enter the patient id "<<endl;
cin>>patient_id;
cout<<" Enter the patient name "<<endl;
cin>>patient_name;
cout<<" Enter the age of the patient "<<endl;
cin>>age;
cout<<" Enter the address of the patient";
cin>>address;
}
void display()
{
cout<<" PATIENT'S INFORMATION IS: "<<endl;
cout<<" "<<endl;
if(choice==1)
{
cout<<" GOVERNMENT DEPARTMENT ";
cout<<" Patient ID "<<patient_id<<endl;
cout<<" Patient Name " << patient_name<<endl;
cout<<" disease type "<< disease_type<<endl;
cout<<" Age "<<age<<endl;
cout<<" Address "<<address<<endl;
}
elseif(choice==2)
{
cout<<" PRIVATE DEPARTMENT ";
cout<<" Patient ID "<<patient_id<<endl;
cout<<" Patient Name " << patient_name<<endl;
cout<<" disease type "<< disease_type<<endl;
cout<<" Age "<<age<<endl;
cout<<" Address "<<address<<endl;
cout<<" ";
}
else
return;
}
};
int main()
{
HMS a;
a.gui();
HMS h[5];
int i;
for(i=0;i<=4;i++)
{
h[i].info();
h[i].data();
h[i].display();
}
getch();
return 0;
}
OUTPUT:
0.6 Skill Developed/Learning Out Of This Micro-Project:
5 Quality of Prototype/Model
6 Report Preparation
8 Viva
6 Report Preparation
8 Viva
Comments / Suggestions about team work / leadership / inter-personal communication (If any):
Teacher Evaluation Sheet
6 Report Preparation
8 Viva
Comments / Suggestions about team work / leadership / inter-personal communication (If any):