0% found this document useful (0 votes)
38 views56 pages

MEDICINEE MANAGEMENT SYSTEM CS - Maanas K N

The document describes a proposed Medicine Management System (MMS) project. The objectives of the MMS are to streamline inventory management, improve medication dispensing accuracy, enable real-time monitoring and alerts, provide patient-centric care, ensure regulatory compliance, digitize prescription management, enhance data security, facilitate data analytics, allow mobile access, and optimize costs. The proposed system features include a user-friendly interface, centralized database, inventory management, prescription digitization, barcode scanning, automated ordering, medication administration records, reporting/analytics, and role-based access controls.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views56 pages

MEDICINEE MANAGEMENT SYSTEM CS - Maanas K N

The document describes a proposed Medicine Management System (MMS) project. The objectives of the MMS are to streamline inventory management, improve medication dispensing accuracy, enable real-time monitoring and alerts, provide patient-centric care, ensure regulatory compliance, digitize prescription management, enhance data security, facilitate data analytics, allow mobile access, and optimize costs. The proposed system features include a user-friendly interface, centralized database, inventory management, prescription digitization, barcode scanning, automated ordering, medication administration records, reporting/analytics, and role-based access controls.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 56

PM SHRI KENDRIYA

VIDYALAYA CRPF YELAHANKA


BENGALURU

PROJECT REPORT
MEDICINE MANAGEMENT SYSTEM

picture of project to be put


By:- MAANAS KHATOKAR N
Class- 12A
Roll No.-13

PM SHRI KENDRIYA VIDYALAYAPM CRPF


YELAHANKA, BANGALORE-64

CERTIFICATE
This is to certify that candidate MAANAS
KHATOKAR N Admission no: 6697 has successfully
completed the project Work entitled "MEDICINE
MANAGEMENT SYSTEM" in the subject Computer
Science laid down in the regulations of CBSE for
the purpose of Practical Examination in Class XII to
be held in KENDRIYA VIDYALAYA SCHOOL.

(Mr. JITENDRA SHARMA)


PGT - COMPUTER SCIENCE External Examiner:
Principal

ACKNOWLEDGEMENT
I would like to Mr. Jitendra Sharma, PGT Computer Science
express my sincere gratitude to all those who have supported
me throughout the completion of this computer science
project.

I would like to extend my appreciation to my classmates and


friends who have provided continuous support, brainstorming
sessions, and valuable discussions. Their contributions have
enriched the project and made the journey more enjoyable.

I am grateful to the participants who volunteered their time and


participated in user testing, surveys, or interviews for this project.
Their feedback and insights have been pivotal in evaluating the
effectiveness and usability of the developed solution.

Last but not least, I would like to thank my parents for their
unwavering support, patience, and encouragement throughout
this endeavour. Their belief in me and their constant motivation
have been the driving force behind my determination to
complete this project successfully.
INDEX
01 INTRODUCTION

02 OBJECTIVES OF THE PROJECT

03 PROPOSED SYSTEM

04 REQUIREMENT

05 PROCEDURE

06 DATA- FLOW- DIAGRAM

07 FLOW CHART

08 SOURCE CODE

09 OUTPUT

10 BIBLIOGRAPHY
INTRODUCTION:
In the fast-paced and dynamic field of healthcare, efficient
management of medicines is crucial for ensuring the well-being of
patients and the smooth operation of medical facilities. Traditional
methods of manual record-keeping and inventory management often
lead to errors, delays, and inefficiencies. To address these challenges,
the Medicine Management System (MMS) is designed to
revolutionize the way medicines are handled, tracked, and
administered within healthcare organizations.

Objective: The primary objective of the Medicine Management


System is to streamline the entire process of medicine management,
from procurement to dispensing, with the aim of improving accuracy,
reducing errors, and enhancing overall operational efficiency in
healthcare settings.

Key Features:

1. Inventory Management:
● Real-time tracking of medicine inventory levels.
● Automatic alerts for low stock and expiration dates.
● Efficient reordering and restocking mechanisms.
2. Patient Information:
● Integration with patient records for personalized
medication management.
● History tracking for prescribed medications and adherence
monitoring.
3. Prescription Management:
● Digital recording of prescriptions and medication orders.
● Automated verification and cross-referencing for potential
drug interactions.
4. User Roles and Permissions:
● Role-based access control for different healthcare
professionals.
● Ensures data security and confidentiality.
5. Reporting and Analytics:
● Generation of comprehensive reports on medication usage,
stock levels, and trends.
● Data analytics to identify patterns and optimize inventory
planning.
6. Barcode Scanning:
● Utilizes barcode technology for quick and accurate
identification of medicines.
● Minimizes errors in dispensing and administration.
7. Mobile Accessibility:
● Enables healthcare professionals to access the system
remotely for on-the-go medication management.
● Improves responsiveness and facilitates timely decision-
making.
8. Compliance and Regulations:
● Adherence to regulatory standards and guidelines for
medication management.
● Helps in maintaining compliance with healthcare
regulations.

OBJECTIVES OF THE
PROJECT:
The objectives of the Medicine Management System (MMS) project
are multi-faceted, aiming to address various challenges within the
healthcare domain and enhance the overall management of medicines.
Here are the key objectives of the project:

Efficient Inventory Management:


Streamline the tracking and management of medicine inventory to
ensure optimal levels, minimize wastage, and prevent stockouts.

Accuracy in Medication Dispensing:


Implement mechanisms, such as barcode scanning and automated
verification, to reduce errors in dispensing medicines and improve
patient safety.

Real-time Monitoring and Alerts:


Enable real-time monitoring of medicine stock levels and automatic
alerts for low inventory or impending expiration dates, facilitating
timely actions.

Patient-Centric Medication Management:


Integrate patient records to provide personalized medication
management, ensuring that prescribed medications align with
individual patient needs and medical history.

Compliance with Regulations:


Ensure adherence to regulatory standards and guidelines governing
the procurement, storage, and dispensing of medications, enhancing
the system's reliability and legality.

Streamlined Prescription Management:


Digitize and automate the prescription process to improve accuracy,
reduce paper-based errors, and facilitate seamless communication
between healthcare professionals.

Enhanced Data Security and Privacy:


Implement robust user roles and permissions to safeguard patient
information, maintaining confidentiality and compliance with
privacy regulations.

Data Analytics for Informed Decision Making:


Incorporate reporting and analytics features to generate insights into
medication usage patterns, stock trends, and other relevant metrics,
empowering administrators with data-driven decision-making
capabilities.

Integration with Existing Systems:


Ensure seamless integration with other healthcare information
systems to facilitate interoperability and avoid data silos within the
healthcare organization.

Mobile Accessibility for Flexibility:


Develop a mobile-friendly interface to allow healthcare professionals
to access the system remotely, enabling flexibility and timely
decision-making.

Training and User Adoption:


Implement training programs for healthcare staff to ensure effective
adoption of the system, maximizing its benefits and minimizing
resistance to change

Cost Optimization:
Reduce operational costs by minimizing manual efforts, preventing
medication errors, and optimizing inventory levels.

Scalability for Future Growth:


Design the system with scalability in mind, allowing for easy
expansion and adaptation to the evolving needs of the healthcare
organization
PROPOSED SYSTEM:
The proposed Medicine Management System (MMS) is an advanced
and integrated solution aimed at transforming the way healthcare
facilities manage medicines. This system leverages cutting-edge
technologies to streamline the entire medication lifecycle, from
procurement to patient administration. The following features outline
the key components of the proposed system:
1. User-friendly Interface:
● The system will feature an intuitive and user-friendly interface
accessible to healthcare professionals with varying levels of
technical expertise.
● Graphical representations and dashboards will provide a quick
overview of critical information.
2. Centralized Database:
● A robust, centralized database will store and manage
comprehensive information about medicines, including details
such as drug composition, dosage, manufacturer, and expiry
dates.
● Patient records, prescriptions, and medication history will also
be securely stored.
3. Inventory Management:
● Real-time tracking of medicine inventory levels to ensure
accurate stock information.
● Automated alerts will notify staff of low stock levels, potential
shortages, or upcoming expirations.
4. Prescription Digitization:
● Integration with Electronic Health Records (EHRs) for seamless
digitization of prescriptions.
● Optical Character Recognition (OCR) technology for accurate
extraction of information from handwritten prescriptions.
5. Barcode Scanning:
● Utilization of barcode technology for quick and error-free
identification of medicines.
● Integration with handheld devices for efficient scanning during
receiving, storage, and dispensing.
6. Automated Order and Reorder System:
● Implementation of an automated ordering system that initiates
purchase requests based on predefined thresholds and historical
consumption patterns.
● Electronic communication with suppliers to streamline the
procurement process.
7. Medication Administration Record (MAR):
● Digital recording of medication administration, ensuring
accurate tracking of patient adherence and reducing the
likelihood of errors.
● Integration with patient records to provide a holistic view of the
patient's medication history.
8. Reporting and Analytics:
● Comprehensive reporting tools for generating detailed analytics
on medication usage, stock levels, and trends.
● Customizable reports to facilitate data-driven decision-making.
9. Role-based Access Control:
● Implementation of role-based access control to ensure data
security and confidentiality.
● Different levels of access for healthcare professionals based on
their roles and responsibilities.
10. Mobile Accessibility:
● Development of a mobile application for remote access, enabling
healthcare professionals to manage medications on-the-go.
● Secure authentication measures to protect patient data.
11. Compliance and Audit Trail:
● Adherence to regulatory standards and guidelines for
medication management.
● A detailed audit trail to track all system activities, promoting
transparency and accountability.
12. Integration with External Systems:
● Integration capabilities with other healthcare systems such as
Electronic Health Records (EHRs), Pharmacy Information
Systems (PIS), and Hospital Information Systems (HIS) for
seamless information flow.
REQUIREMENT
RAM- Minimum 4GB
ROM- Minimum 512 GB
SYSTEM TYPE- bit Operating System
PROCESSOR- Intel core i3.
MYSQL
PYTHON COMPILE

PROCEDURE:
1. Open the Python IDLE Compiler.
2. Write the source code.
3. Save the program.
4. Compile the code.
5. Run the code.
6. Debug the program if any error occurs.
7. Save the program after debugging.
DEVICE FLOW DIAGRAM

LEVEL 0
LRLELVE

MEDICINE OUTPUT
MANAGEMENT
SYSTEM
INPUT LEVEL 0 OUTPUT
1.1 1.2 1.3
Add
record Display
all
Search
by ID
records

Welcome_screen()

1.
7
1.
MAIN
MENU 8
Export
to csv Exit

1.4 1.
1. 6
51
Search Modify Delete
by name by ID by ID
input screen to be put
SOURCE CODE

# Importing the MySQL connector module


import mysql.connector

# Importing PrettyTable for displaying items


from prettytable import PrettyTable

# Importing csv
import csv

# Printing the welcome message for the Medicine


Management System
print('''

----------------------------------------------
WELCOME TO MEDICINE MANAGEMENT SYSTEM
----------------------------------------------
''')
# Establishing a connection to the MySQL database server
mydb = mysql.connector.connect(host='localhost',
user='root',
passwd='')

# Creating a cursor object to interact with the database


mycursor = mydb.cursor()

# Creating the 'sales_vdo' database if it does not exist and


setting it as the current database
mycursor.execute('create database if not exists sales_vdo')
mycursor.execute('use sales_vdo')

# Creating tables for login, purchase, and stock if they do not


exist
mycursor.execute('create table if not exists login(username
varchar(25) not null, password varchar(25) not null)')
mycursor.execute('create table if not exists stock(pcode int
not null, pname varchar(25) not null, quantity int not null,
price int not null)')
# Committing the changes to the database
mydb.commit()

# Initializing a variable 'z' to count the number of records in


the 'login' table
z=0
mycursor.execute('select * from login')
for i in mycursor:
z += 1

# Inserting a default login record if no records are found


if z == 0:
mycursor.execute('insert into login values("username",
"123")')
mydb.commit()

# Main program loop


while True:
# Displaying options for user to choose: Admin, Customer,
Exit
print('''
1. Admin
2. Exit\n
''')

# Getting user's choice


ch = int(input("Enter you choice: "))

if ch == 1:

# Admin login section


pwd = input("Enter password: ")
mycursor.execute('select * from login')

for i in mycursor:
username, password = i

if pwd == password:
# Admin menu options
print('\n •─────⋅ WELCOME ADMIN
─────•')
loop2 = 'y'
while loop2 == 'y' or loop2 == 'Y':

def add_item():

global loop2

# Adding a new item to the stock


loop = 'y'

while loop == 'y' or loop == 'Y':


pcode = int(input("Enter product code: "))
pname = input("Enter product name: ")
quantity = int(input("Enter product quantity:
"))
price = int(input("Enter product price: "))
mycursor.execute("insert into stock
values('"+str(pcode)+"', '"+pname+"', '"+str(quantity)+"',
'"+str(price)+"')")
mydb.commit()
print('\nRecords Successfully Added !')
loop = input("\nDo you want to enter more
items(y/n): ")

loop2 = input("Do you want to continue editing


stock(y/n): ")

def update_item():

global loop2

# Updating the price of an item in the stock


loop = 'y'

while loop == 'y' or loop == 'Y':


pcode = int(input("Enter product code: "))
new_price = int(input("Enter new price: "))
mycursor.execute("update stock set price =
'"+str(new_price)+"' where pcode = '"+str(pcode)+"'")
mydb.commit()
print('\nRecords Successfully Updated !')
loop = input("\nDo you want to change price
of any other item(y/n): ")
loop2 = input("Do you want to continue editing
stock(y/n): ")

def delete_item():

global loop2

# Deleting an item in the stock


loop = 'y'

while loop == 'y' or loop == 'Y':


pcode = int(input("Enter product code: "))
mycursor.execute("delete from stock where
pcode = '"+str(pcode)+"'")
mydb.commit()
print("\nDeleted item successfully !")
loop = input("\nDo you want to delete any
other item(y/n): ")

loop2 = input("Do you want to continue editing


stock(y/n): ")
def display_item():

global loop2

# Displaying items in the stock using


PrettyTable
mycursor.execute("select * from stock")

# Creating a PrettyTable instance


table = PrettyTable()

table.field_names = ["Product Code", "Product


Name", "Quantity", "Price"]

for i in mycursor:
t_code, t_name, t_quan, t_price = i

# Adding a row to the table


table.add_row([t_code, t_name, t_quan,
t_price])

# Printing the table


print(table)
m = input("\nPress Enter to continue")

def change_passwd():

global loop2

# Changing password
old_password = input("Enter old Password: ")
mycursor.execute("select * from login")

for i in mycursor:
username, password = i
if old_password == password:
new_password = input("Enter new
Password: ")
mycursor.execute("update login set
password = '"+new_password+"'")
mydb.commit()
print("\nPassword successfully changed !")
m = input("\nPress Enter to continue")
# Function to export records to CSV
def export_to_csv():

mycursor.execute("select * from stock")


records = mycursor.fetchall()

with open('item_records.csv', 'w', newline='') as


file:

w = csv.writer(file)
w.writerow(["Product Code", "Product
Name", "Quantity", "Price"])
w.writerows(records)
print('Successfully exported to csv!')
m = input("\nPress Enter to continue")

print('''\n
1. Add new item
2. Updating price
3. Deleting item
4. Display all items
5. To change the password
6. Export records to CSV
7. Log Out\n
''')

ch = int(input("Enter you choice: "))

# Handling admin choices


if ch == 1:
add_item()

elif ch == 2:
update_item()

elif ch == 3:
delete_item()

elif ch == 4:
display_item()

elif ch == 5:
change_passwd()
elif ch == 6:
export_to_csv()

elif ch == 7:
print("\nLogged Out !")
break

else:
print('\nWrong password')
m = input("Press Enter to retry\n")

elif ch == 2:
# Exiting the program
break
POST IMPLEMENTATION
DEBUGGING

During the program compilation,


there were few syntax errors in
user defined function as well as
in built in function .And due to
which the desired output was not
shown. The errors got rectified
after carefully analysing the
code.Now the code is
successfully running without any
sort of error.
OUTPUT SCREEN
OUTPUT CODE
DEBUGGING

SQL
BIBLIOGRAPHY:

1. Google
2. ChatGPT
3. CS Textbook
4. YOUTUBE
THANK YOU

You might also like