OOP Final-2
OOP Final-2
Submitted by
Guided By
Mrs. S. R. Landge
(Lecturer in IT)
1
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
Semester : Third
A MICRO PROJECT On
Medical Lab Management System
Submitted by
2
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
Certificate
This is to certify that More Shital, More Ujwal, Patil Dinesh, Wani Kirti. Roll
No. 8, 35, 40, 55 of IF3I of Diploma In Information Technology, Government
Polytechnic, Jalgaon (Code:0018) completed the Micro Project satisfactorily in the
course Object Oriented Programming using C++ for the Academic Year 2023-24 as
prescribed in the curriculum.
2200180379, 2200180397
355874
Seal of
Institution
3
GOVERNMENT POLYTECHNIC
JALGAON
-SUBMISSION-
We More Shital, More Ujwal, Patil Dinesh, Wani Kirti. Roll No. 8, 35, 40, 55
asa students of IF3I of the Programme Information Technology humbly submit that
we have completed the Micro-Project work time to time as described in this report by
our own skills and study in the academic year 2023 – 24 as per instructions and
guidance of Mrs. S. R. Landge. We have not copied the report or its any appreciable
part from anyother literaturein contravention of the academic ethics.
4
INDEX
5
Introduction
16
Source Code
#include<iostream>
#include<fstream>
#include<string.h>
#include<stdlib.h>
#include<conio.h>
#include<stdio.h>
ifstream fin;
ofstream fout;
class Medtest
char patientName[50],testType[50],testResult[50],str[50];
int x,f;
public:
void Add_record()
fout.open("Med.dat",ios::app);
2
cin >> patientName;
fout<<patientName<<"\t"<<testType<<"\t"<<testResult<<"\n";
fout.close();
void search_record()
fin.open("Med.dat");
if(fin==0)
3
else
cin>>str;
f=0;
while(1)
fin>>patientName>>testType>>testResult;
if(fin.eof())
break;
x = stricmp (patientName,str);
if(x==0)
"<<patientName;
f=1;
4
}
if(f==0)
fin.close();
void Delete_record()
fin.open("Med.dat");
if(fin==0)
else
5
fout.open("Temp.dat") ;
cin>>str;
f=0;
while(1)
fin>>patientName>>testType>>testResult;
if(fin.eof())
break;
x=stricmp(patientName,str);
if( x==0 )
f = 1;
else
fout<<patientName<<"\t"<<testType<<"\t"<<testResul
<<"\n";
if( f==0 )
6
else
fout.close();
fin.close();
remove("Med.dat");
rename("Temp.dat","Med.dat");
void Display_all()
fin.open("Med.dat");
if(fin==0)
7
}
else
while(1)
fin>>patientName>>testType>>testResult;
if(fin.eof())
break;
cout<<"\n\t\t\t\t"<<patientName<<"\t||\t"<<testType
<<"\t||\t"<<testResult<<endl
fin.close();
int main()
8
int choice;
Medtest report;
do {
system("cls");
cout<<"\n\t\t\t\t-------------------------------------------"<<endl;
switch (choice)
case 1:
9
report.Add_record()
break;
case 2:
report.search_record();
break;
case 3:
report.Delete_record();
break;
case 4:
report.Display_all();
break;
case 5:
break;
default:
getch();
10
} while (choice != 5);
return 0;
❖ Explanation of Code:-
The Medical Lab Management System is a command-line program
developed in C++ that allows users to manage and maintain patient test
records. The system provides several key functionalities:
Adding Test Records: Users can add test records by entering patient
details such as name, test type, and test results. The records are stored in a
data filefor future retrieval.
Searching Test Records: The system enables users to search for specific
test records by entering the patient's name. It displays the patient's test
details iffound.
Deleting Test Records: Users can delete test records by entering the
patient'sname. The system removes the specified record from the data file.
Viewing All Test Records: Users can view all the test records stored in
thesystem, displaying patient names, test types, and test results.
11
Outputs
12
13
Application
Store and manage patient test reports, including their names, test types, and results .
• Patient Data Tracking:
Keep a record of patient information, making it easier to retrieve and update
patient data.
• Report Retrieval:
Quickly search for and retrieve specific test reports by patient name,
streamlining patient care.
• Data Deletion:
Safely delete outdated or irrelevant test reports from the system.
• Data Backup:
Regularly back up patient test report data to prevent data loss and ensure data
integrity.
• Record Keeping:
Maintain a historical record of all patient test reports, which can be useful for
long-term patient care.
• Report Generation:
Generate detailed reports for specific patients or types of tests, aiding in data
analysis and research.
• User-Friendly Interface:
Provide a user-friendly menu-driven interface for lab staff, making it easy for
them to add, search, and manage test reports.
• Security and Privacy:
Implement access controls and security measures to protect patient data and
maintain privacy compliance.
14
Conclusion
15
References
• www.mocdoc.in
• www.cybrosys.com
• www.osplabs.com
• www.agilent.com
16