0% found this document useful (0 votes)
16 views21 pages

OOP Final-2

Oop microproject

Uploaded by

Dinesh Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views21 pages

OOP Final-2

Oop microproject

Uploaded by

Dinesh Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

GOVERNMENT POLYTECHNIC JALGAON

DEPARTMENT OF INFORMATION TECHNOLOGY

Course:- Object Oriented Programming Using C++


Micr o Project Name:- Medical Lab Management
System

Submitted by

Roll No. Name


08 More Shital Nandu

35 More Ujwal Namdeo

40 Patil Dinesh Shivaji

55 Wani Kirti Chetan

Guided By
Mrs. S. R. Landge
(Lecturer in IT)
1
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

GOVERNMENT POLYTECHNIC, JALGAON (0018)

Program Name and Code : Information Technology (IF3I)

Course Name and Code : Object Oriented Programming

Using C++ (22316)

Academic Year : 2023-24

Semester : Third

A MICRO PROJECT On
Medical Lab Management System

Submitted by

Sr.No. Roll No. Name of student EnrollmentNo. Seat No.

1 08 More Shital Nandu 2200180338 355427


2 35 More Ujwal Namdeo 2200180371 355454
3 40 Patil Dinesh Shivaji 2200180379 355459
4 55 Wani Kirti Chetan 2200180397 355471

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.

Place: Jalgaon Enrollment No: 2200180338, 2200180371,

2200180379, 2200180397

Date: Exam Seat No: 355827, 355854, 355859,

355874

Mrs. S. R. Landge Mr. H. K. Nemade Dr. P. M. Patil


Course Teacher Head of the Department Principal

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.

Date: Signature of Student

4
INDEX

Sr No. Contents Page No.


1 Introduction 1
2 Source Code 2
3 Explanation of Code 11
4 Output 12
5 Application 14
6 Conclusion 15

5
Introduction

❖ Medical Lab Management System :-

A Medical Lab Management System is a comprehensive software solution


designed to streamline and optimize the operations of medical laboratories,
diagnostic centers, and healthcare facilities. It serves as a vital tool in the healthcare
industry, facilitating the efficient management of various laboratory processes, from
sample collection and processing to result reporting. This system integrates
technology to enhance the accuracy, speed, and security of laboratory procedures,
ultimately improving patient care and the overall healthcare ecosystem. It allows
for the seamless tracking of specimens, automates data entry, manages inventory,
and ensures compliance with regulatory standards.
Medical Lab Management Systems have become indispensable in modern
healthcare, playing a crucial role in the delivery of timely and reliable diagnostic
services.

❖ Software Used :- Dev C++

Dev C++ is a widely used, open-source integrated development environment


(IDE) for programming in the C and C++ languages. It provides a user-friendly
interface that allows developers to write, compile, debug, and execute code
efficiently. Dev C++ is particularly popular among students and beginners in the field
of programming due to its simplicity and ease of use. It is equipped with a powerful
code editor with features like syntax highlighting, code completion, and customizable
themes, making it a valuable tool for both learning and developing software. The IDE
also incorporates the MinGW (Minimalist GNU for Windows) compiler, which
enables developers to create native Windows applications. Dev C++ has an active
community, and while it may not be as feature-rich as some commercial alternatives,
it remains a valuable choice for those looking to start their journey in C and C++
programming without the complexity of more advanced IDEs

16
Source Code
#include<iostream>

#include<fstream>

#include<string.h>

#include<stdlib.h>

#include<conio.h>

#include<stdio.h>

using namespace std;

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);

cout << "\n\t\t\t\t\tEnter Patient Name : ";

2
cin >> patientName;

cout << "\n\t\t\t\t\tEnter Test Type : ";

cin >> testType;

cout << "\n\t\t\t\t\tEnter Test Result : ";

cin >> testResult;

cout << "\n\t\t\t\t----------------------------"<<endl;

fout<<patientName<<"\t"<<testType<<"\t"<<testResult<<"\n";

cout<<"\n\t\t\t\t -----Your record is added successfully----- ";

fout.close();

void search_record()

fin.open("Med.dat");

if(fin==0)

cout << "\n\t\t\t\t ------------------------- "<<endl;

cout<<"\n\t\t\t\t\t!!-------Add records first ------ !!";

3
else

cout<<"\n\t\t\t\t\tEnter name to search :";

cin>>str;

f=0;

while(1)

fin>>patientName>>testType>>testResult;

if(fin.eof())

break;

x = stricmp (patientName,str);

if(x==0)

cout << "\n\t\t\t\t ---------------------------- "<<endl;

cout<<"\t\t\t\t!! ------ Your report is successfully

found ------ !!"<<endl;

cout<<"\n\t\t\t\t\t Patient Name :

"<<patientName;

cout<<"\n\t\t\t\t\t Test Type : "<<testType;

cout<<"\n\t\t\t\t\t Test Result : "<<testResult;

f=1;

4
}

if(f==0)

cout << "\n\t\t\t\t--------------------"<<endl;

cout<<"\n\t\t\t\t\tSorry "<<str<<"'s report is not found";

fin.close();

void Delete_record()

fin.open("Med.dat");

if(fin==0)

cout << "\n\t\t\t\t ------------------------------"<<endl;

cout<<"\n\t\t\t\t\t!!-------Add records first ------ !!";

else

5
fout.open("Temp.dat") ;

cout<<"\n\t\t\t\t\tEnter name to delete :";

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 )

cout << "\n\t\t\t\t---------------------------"<<endl;

cout<<"\n\t\t\t\t\tSorry "<<str<<"'s report is not found";

6
else

cout << "\n\t\t\t\t -------------------------------"<<endl;

cout<<"\n\n\t\t\t\t ----"<<str<<"'s report is successfully

deleted ---- ";

fout.close();

fin.close();

remove("Med.dat");

rename("Temp.dat","Med.dat");

void Display_all()

fin.open("Med.dat");

if(fin==0)

cout << "\n\t\t\t\t- - - - - - - - - - - - - - - - - - "<<endl;

cout<<"\n\t\t\t\t\t!!-------Add records first------- !!";

7
}

else

cout << "\t\t\t\t-------------------------------------------"<<endl;

cout<<"\t\t\t\t Patient Name\t||\tTest Type\t||\tTest

Result\n"; cout << "\t\t\t\t---------------------------" << endl;

while(1)

fin>>patientName>>testType>>testResult;

if(fin.eof())

break;

cout<<"\n\t\t\t\t"<<patientName<<"\t||\t"<<testType

<<"\t||\t"<<testResult<<endl

cout << "\t\t\t\t---------------------------------" << endl;

fin.close();

int main()

8
int choice;

Medtest report;

do {

system("cls");

cout << "\n\t\t\t\t---------------------------------------------";

cout << "\n\t\t\t\t|| WELCOME TO MEDICAL LAB MANAGEMENT


SYSTEM ||";

cout<<"\n\t\t\t\t-------------------------------------------"<<endl;

cout << "\n\t\t\t\t\t -| [1] Add Test Report |-"<<endl;

cout << "\n\t\t\t\t\t-| [2] Search Test Reports |-"<<endl;

cout << "\n\t\t\t\t\t -| [3] Delete Test Report |-"<<endl;

cout << "\n\t\t\t\t\t-| [4] View all test Report |-"<<endl;

cout << "\n\t\t\t\t\t\t-| [5] Exit |-"<<endl;

cout << "\n\t\t\t\t------------------------------------------"<<endl;

cout << "\n\t\t\t\t\tEnter your choice : ";

cin >> choice;

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:

cout << "\n\t\t\t\t-------------------------------------------"<<endl;

cout << " \t\t\t\t\t\t!!GOOD BYE!!" ;

cout << "\n\t\t\t\t----------------------------------------";

break;

default:

cout << "\n\t\t\t\t------------------------------------------"<<endl;

cout << "\n\t\t\t\t\tInvalid choice. Please try again." << endl;

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.

The system offers a straightforward menu-driven interface for users


to interact with these features. It also provides basic error handling and
data file management to ensure the integrity of the records. However, it's
important to note that this system has a simplistic design and limited error
handling capabilities.

For practical use, a more comprehensive Medical Lab Management


System would require additional features such as user authentication,
improved error handling, and database integration for scalability and
security. Additionally, modern GUI frameworks or web-based interfaces
would enhance user-friendliness and accessibility.

11
Outputs

12
13
Application

• Patient Test Reports Management:

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

In conclusion, a medical lab management system is a crucial and


indispensable tool for modern healthcare facilities. Overall, a well-designed
medical lab management system is a valuable asset that contributes to the overall
effectiveness and reliability of healthcare services, ultimately benefiting both
healthcare providers and patients. this program serves as a basic medical test record
management system, allowing users to add, search, delete, and view test reports.
However, there are areas for improvement, such as better input validation and data
handling, error handling for file operations, and more user-friendly interface.

15
References

• www.mocdoc.in
• www.cybrosys.com
• www.osplabs.com
• www.agilent.com

16

You might also like