Sunteți pe pagina 1din 34

PHARMACY MANAGEMENT SYSTEM 2019

INTRODUCTION:

The project named “Pharmacy management system”, a medical information system is a


client/server based application.

An interactive application for managing both stock and billing which helps in
maintaining the records of the medicine , the users and store details and also reduce the
word of searching the medicine . The main aim of this application is to apply technology
is supporting the pharmacist and the store to reduce the human effort on searching and
automation of the billing.

The project has been developed on the basis of “Stocking managing” and its “billing
process” being presently used in the medical stores for storing and retrieving the
available information in the store.

The user has to get his username and password from the admin by providing the name,
address, phone number, id proof. And can get the access to the application. Without the
username and password he cannot get access to the application.

In this application we have four types of users who have their specified work to perform
and while logging into the applications he should know his destination to log in. and in
this we can manage all the stocks of the store and can manage it.

In this admin and the manager are the two who have almost all the permissions to work
with.

BITS HITECH COLLEGE Page 1


PHARMACY MANAGEMENT SYSTEM 2019

OBJECTIVE:
The main objective of the application is to automate the existing system of
manually maintained records of the counter sales, purchases, recorder levels, supplier and
customer monetary positions and other related transactions made by the seller.

This application can be used by any other store to automate the process of
manually maintaining the records related to the subject of maintaining the stock and
liquid flows.

User characteristics of pharmacy management system:


“The system” has basically four types of users,

1. Administrator.
2. Manager.
3. Pharmacist.
4. Cashier.

1. Administrator is the one who controls the complete system. He can manage all
the functionalities of the system. Administrator validates user information and
creates them. And he looks over the stock in the database.
2. Manager is the one of the user who can view and manage the stocks in the
database and can view all the users of the application. He can even view the
prescription generated by the cashier.
3. Pharmacist is also a user of the application who adds the stock to the database
and manager the stocks in the database. And he generates the prescription
with a unique invoice no which is used by the cashier for the payment process.
4. Cashier is also a user this application who takes the invoice no and generate
the bill or invoice of the medicine and takes the money from the customer by
diff means like cash, o[ credit card etc.

BITS HITECH COLLEGE Page 2


PHARMACY MANAGEMENT SYSTEM 2019

PROBLEM DEFINITION:
The transaction related to purchase, sale and returns are maintained manually at present.

These are not automated and an application is required to relate all of them relatively and
logically so that the current system can be replaced and accepted without major changes
and problems.

The application should provide quick access to the records maintained and must
reveal the important reviews about the business so that the growth can be easily
compared and should provide with the various reports showing the related details so that
the important decisions could be taken easily.

ABOUT PHP
PHP is a powerful server-side scripting language designed for creating dynamic and
interactive websites.

PHP is a programming language that can do all sorts of things evaluate from data sent
from a browser, build custom web content to serve the browser, talk to a database, and
even send and receive cookies. Php is the widely-used, free, and efficient alternative to
competitions such as Microsoft’s ASP.

PHP is perfectly suited for web development and can be embedded directly into the
HTML code.it can be developed on most web servers and on almost every operating
system and platform free of charge. php is installed on more than 20 million websites and
1 million web servers.

Php syntax is very similar to perl, C. Php is often used together with Apache(web server)
on various operating systems. It also supports ISAPI and can be used with the
Microsoft’s IIS on windows.

The PHP code is interpreted by a web server with a PHP processor module, which
generates the resulting web page: PHP commands can be embedded directly into an
HTML source document rather than calling an external file to process data. It has also
evolved to include a command-line interface capability and can be use in standalone
graphical applications.

BITS HITECH COLLEGE Page 3


PHARMACY MANAGEMENT SYSTEM 2019

ADVANTAGES OF PHP:
 PHP is easy to understand and learn, particularly for those who have a
background in HTML or JavaScript.
 PHP uses very limited systems resources and will not interface unduly with the
running of other processed.
 PHP uses a modular system of extensions that unable into interact with other
tools such as XML and encrypting scripts.
 PHP uses can customize the language by writing their own extensions and
executable scripts
 PHP is compatible with the vast majority of servers(Apachc,IIS,etc.)and is
capable of running on most platforms (UNIX,windows,etc.)
 PHP is open-source and is freely available to download and manipulate according
to individual requirements .

SERVER SUPPORT:-
It generally runs on a web server like Apache.I also supports ISAPI and microsoft’s IIS
on windows.

DATABASE SUPPORT:-
Php supports many databases like MySQL, Infomix, Oracle, Syasc, Solid, PostgreSQL,
Generic, ODBC etc. The most popular used in MySQL.

WHAT CAN PHP DO?


 PHP can generate dynamic page content.
 PHP can create, open, read, write, delete, and close files on the server.
 PHP can collect form data.
 PHP can send and receive cookies.
 PHP can add, delete, and modify data in your database.
 PHP can restrict users to access some pages on your website.
 PHP can encrypt data.

WHY PHP?

 PHP runs on various platforms(Windows,Linux,UNIX,Mac OS X,etc)


 PHP is compatible with almost all servers used today (Apache,IIS,etc)

BITS HITECH COLLEGE Page 4


PHARMACY MANAGEMENT SYSTEM 2019

 PHP supports a wide range of databases.


 PHP is free.Download it from the official PHP resource www.php.ncr
 PHP is easy to learn and runs efficiently on the server side.

WHAT IS A PHP FILE?

 PHP files can contain text, HTML, CSS, JavaScript and PHP code.
 PHP code is executed on the server, and the result is returned to the browser as
plain HTML.
 PHP files have extension “.php”.

ABOUT MYSQL:

MySQL is the world’s most popular open source database, enable the cost
effective delivery of reliable, high performance and scalable web based and
embedded database application.
On top of that, it is very commonly used in conjunction with php scripts to create
powerful and dynamic server side applications.

MySQL is easy to use, yet extremely powerful, secure and scalable. And because
of its small size and speed, it is the ideal database solutions for wedsites.

ARCHITECTURE OF MYSQL:

MySQL runs over TCP/IP ,making it highly accessible and capable of integrating
into a web environment. Clients across multiple platforms can access my sql
databases through the use of scripting language such as php or perl or c.

Benefits:
 It’s easy to use.
 It is secured.

BITS HITECH COLLEGE Page 5


PHARMACY MANAGEMENT SYSTEM 2019

 It is inexpensive.
 It is fast.
 It is scalable.
 It manages memory very well.
 It supports novell cluster services.
 It runs on many operating systems.
 It supports several development interfaces.

COMMANDS:

INSERT INTO: the INSERT INTO statement is used to add new records to
database table.

SELECT: the SELECT STATEMENT is used to select data from a database.

WHERE: the WHERE CLAUSE is used to extract only those records that fulfill
specified criteria.

UPDATE: the UPDATE STATEMENT is used to update existing records in a


table.

DELETE: the DELETE FROM table is used to delete records from a database
table.

ABOUT APACHE HTTP SERVER:

Apache is generally recognized as world’s most web server(HTTP server).


Originally designed for UNIX environments,the apache web server has been
ported to windows and other network operating systems.the name “Apache”
derives from the word “patchy” that the apache developers used to describe early
versions of their softwares.

The apache web server provides a full range of web server features, including
CGI,SSL,and Virtual domains. Apache also supports plug-in modules for
extensibility. Apache is free software, distributed by Apache software foundation
that promotes various free and open source advanced web technologies.

BITS HITECH COLLEGE Page 6


PHARMACY MANAGEMENT SYSTEM 2019

Apache features a modular design and supports dynamic selection of extension


modules at run time. Some of its strong points are its range of possible
customization, dynamic adjustment of the number of server processes and whole
range of available modules including many authentication mechanisms, server-
parsed HTML,server-side includes,access control,CERN http meta files emulsion,
proxy caching etc. Apache also supports multiple virtual homing.Seperate Debi a
packages are available for php3, mod_perl, java servelet support apache-SSL, and
other common extensions.

BITS HITECH COLLEGE Page 7


PHARMACY MANAGEMENT SYSTEM 2019

SYSTEM ANALYSIS.
OVERALL DESCRIPTION

Software requirements are documentation that completely describes the behavior that is
required for the software, before the software is designed, built and tested.

SRS’s are typically developed during the first stages of “requirements Development”,
which is the initial product development phase in which information is gathered about
what requirements are needed. This information-gathering stage can include onsite visits,
questionnaries,surveys,interviews and perhaps a return-on-investment(ROI) analysis or
needs analysis.

PRODUCT PERSPECTIVE:

This software can be used to carry our Stock and bill automation of the medicine data.
The main objective of this software is to automate an application. The invoice and stock
is hidden under a security medium under the user id and password. The application is also
protected with a password security to provide another layer of security.

USER CHARACTERISTICS:

 A user is provided with two levels in this software; they manage the stock in the
application and manage the invoice.
 A user should possess a minimum knowledge of the browser and using the
application.

ASSUMPTIONS AND DEPENDENCIES:

Most problem statements are ambiguous, incomplete or even inconsistent. Some


requirements are just plain wrong, some requirements, although precisely stated, have
unpleasant consequences on the system behavior or impose unreasonable implementation
costs. The analyst must work with the requestor to refine the requirements so they
represent the requestor’s true intent. This involves challenging the requirements and
probing for missing information.

BITS HITECH COLLEGE Page 8


PHARMACY MANAGEMENT SYSTEM 2019

Feasibility study :

After doing the project Pharmacy Management System, study and analyzing all
the existing or required functionalities of the system. The next task is to do the
feasibility study for the project. All projects are feasible given unlimited resource
and infinite time.

Feasibility study includes consideration of all the possible ways to provide a


solution to the given problem.

 Economical Feasibility : This is very important aspect to be considered


while developing a project. We decided the technology based on minimum
possible cost factor.

 Technical Feasibility : This includes a study of function performance and


constraints that may affect the ability to achieve an acceptable system.

 Operational Feasibility :No doubt the proposed system is fully GUI based
that is very user friendly. A proper training has been conducted to let
know the essence of the system to the users so that they feel comfortable
with new system.

BITS HITECH COLLEGE Page 9


PHARMACY MANAGEMENT SYSTEM 2019

SYSTEM SPECIFICATION

HARDWARE SPECIFICATION:

processor : PENTIUM

RAM : 1GB

Hard disk : 500GB

Monitor : LED.

Mouse : USB.

Keyboard : Standard 108 keys.

SOFTWARE SPECIFICATION:

Software : XAMPP .

Operating system : Windows 10.

Browser : Google Chrome, Mozilla Firefox.

Front end : PHP.

Back end : MYSQL.

Server : APACHE.

BITS HITECH COLLEGE Page 10


PHARMACY MANAGEMENT SYSTEM 2019

DATAFLOW DIAGRAM
A data flow diagram (DFD) is a graphical representation of the “flow” of data
through information systems. DFD’s can also be used for the visualization of data
processing (Structured design).

A DFD also known as “bubble chart” has the purpose of clarifying system
requirements and identifying major transformations. It shows the flow of data
through a system. It is a graphical tool because it presents a picture. The DFD
may be partitioned into levels that represent increasing information flow and
functional detail. Four simple notations are used to complete a DFD.

REGISTRATION DFD:

REGISTRATION
DB

USER ENTER CHECK


DETAILS VALIDITY

Successful
LOGIN PAGE

LOGI

BITS HITECH COLLEGE Page 11


PHARMACY MANAGEMENT SYSTEM 2019

LOGIN DFD:

LOGIN DB

USER ENTER CHECK


USERNAME VALIDITY
&PASSWORD

Successful

MAIN PAGE

LOGI

BITS HITECH COLLEGE Page 12


PHARMACY MANAGEMENT SYSTEM 2019

USECASE DIAGRAM:

login

View
users

Authorize
ADMIN

View
orders

logout

register

login

Enter
USERS details

View
orders

BITS HITECH COLLEGE Page 13


PHARMACY MANAGEMENT SYSTEM 2019

CODING:

<?php

session_start();

include_once('connect_db.php');

if(isset($_SESSION['username'])){

$id=$_SESSION['admin_id'];

$user=$_SESSION['username'];

}else{

header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])
."/index.php");

exit();

?>

<!DOCTYPE html>

<html>

<head>

<title><?php echo $user;?> - Pharmacy Sys</title>

<link rel="stylesheet" type="text/css" href="style/mystyle.css">

<link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />

<link rel="stylesheet" type="text/css" href="style/dashboard_styles.css" media="screen"


/>

<script src="js/function.js" type="text/javascript"></script>

<style>

#left_column{

BITS HITECH COLLEGE Page 14


PHARMACY MANAGEMENT SYSTEM 2019

height: 470px;

</style>

</head>

<body>

<div id="content">

<div id="header">

<h1><a href="#"><img src="images/hd_logo.jpg"></a> Pharmacy Sys</h1></div>

<div id="left_column">

<div id="button">

<ul>

<li><a href="admin.php">Dashboard</a></li>

<li><a href="admin_pharmacist.php">Pharmacist</a></li>

<li><a href="admin_manager.php">Manager</a></li>

<li><a href="admin_cashier.php">Cashier</a></li>

<li><a href="logout.php">Logout</a></li>

</ul>

</div>

</div>

<div id="main">

<!-- Dashboard icons -->

<div class="grid_7">

<a href="admin.php" class="dashboard-module">

BITS HITECH COLLEGE Page 15


PHARMACY MANAGEMENT SYSTEM 2019

<img src="images/admin_icon.jpg" width="75" height="75" alt="edit" />

<span>Dashboard</span>

</a>

<a href="admin_pharmacist.php" class="dashboard-module">

<img src="images/pharmacist_icon.jpg" width="75" height="75" alt="edit"


/>

<span>Pharmacist</span>

</a>

<a href="admin_manager.php" class="dashboard-module">

<img src="images/manager_icon.png" width="75" height="75" alt="edit" />

<span>Manager</span>

</a>

<a href="admin_cashier.php" class="dashboard-module">

<img src="images/cashier_icon.jpg" width="75" height="75" alt="edit" />

<span>Cashier</span>

</a>

</div>

</div>

<div id="footer" align="Center"> Pharmacy Sys 2013. Copyright All Rights


Reserved</div>

</div>

</body>

</html>

BITS HITECH COLLEGE Page 16


PHARMACY MANAGEMENT SYSTEM 2019

DATABASE DESIGN:
ADMIN:

Field Data type Width


Admin id Tinyint 5
Username Varchar 10
Password Varchar 10
Date Datetime

Manager:
Fields Data type Width

Manager id tinyint 5

First name Varchar 15

Last name Varchar 15

Staff id Varchar 10

Postal address Varchar 20

Phone Varchar 12

Email Varchar 20

Username Varchar 10

Password Varchar 10

Date datetime

BITS HITECH COLLEGE Page 17


PHARMACY MANAGEMENT SYSTEM 2019

PHARMACIST:
Fields Data type Width

Pharmacist id tinyint 5

First name Varchar 15

Last name Varchar 15

Staff id Varchar 10

Postal address Varchar 20

Phone Varchar 12

Email Varchar 20

Username Varchar 10

Password Varchar 10

Date datetime

CASHIER:
Fields Data type Width

Cashier id tinyint 5

First name Varchar 15

Last name Varchar 15

Staff id Varchar 10

Postal address Varchar 20

Phone Varchar 12

Email Varchar 20

Username Varchar 10

Password Varchar 10

Date datetime

BITS HITECH COLLEGE Page 18


PHARMACY MANAGEMENT SYSTEM 2019

OUTPUT SCREENS

The home page for the project pharmacy management system is as below:-

BITS HITECH COLLEGE Page 19


PHARMACY MANAGEMENT SYSTEM 2019

BITS HITECH COLLEGE Page 20


PHARMACY MANAGEMENT SYSTEM 2019

BITS HITECH COLLEGE Page 21


PHARMACY MANAGEMENT SYSTEM 2019

The authorized pharmacist can perform the operations that are shown in the below screen.
He can able to see the prescriptions. The below output screen shows that how the
pharmacist can login to the system.

BITS HITECH COLLEGE Page 22


PHARMACY MANAGEMENT SYSTEM 2019

The operations performed by the pharmacist are: prescription and stock managing.

The below screen diplays the prescription that are checked by the pharmacist.

BITS HITECH COLLEGE Page 23


PHARMACY MANAGEMENT SYSTEM 2019

The below screen shows that how the pharmacist can create the user prescription.

The pharmacist can also manage the stock that which stock is available and which is not
available.

BITS HITECH COLLEGE Page 24


PHARMACY MANAGEMENT SYSTEM 2019

By entering the medicine details the pharmacist can manage the stock.

The login page for manager is as below

BITS HITECH COLLEGE Page 25


PHARMACY MANAGEMENT SYSTEM 2019

The can have the authority to look after the system that are shown in the below screen.

BITS HITECH COLLEGE Page 26


PHARMACY MANAGEMENT SYSTEM 2019

The manager is only authorized person to check the system, who can see who the
pharmacists, cashiers and managers are.

BITS HITECH COLLEGE Page 27


PHARMACY MANAGEMENT SYSTEM 2019

The manager can also view the prescriptions

BITS HITECH COLLEGE Page 28


PHARMACY MANAGEMENT SYSTEM 2019

The manger can also view the stocks.

In view prescription field the manager is authorized to add the medicine.

BITS HITECH COLLEGE Page 29


PHARMACY MANAGEMENT SYSTEM 2019

The login page for the cashier is.

The cashier can perform the following operations.

BITS HITECH COLLEGE Page 30


PHARMACY MANAGEMENT SYSTEM 2019

The cashier has to generate the invoice for the customers that who purchased the
medicine.

BITS HITECH COLLEGE Page 31


PHARMACY MANAGEMENT SYSTEM 2019

CONCLUSION
The project has made us aware of the immense capabilities and the various uses oh PHP,
MYSQL and Apache server both individually and combined. We have raised one step
further in terms of Designing and developing a combined management system of both
stock managing and billing automation which can opt for any of the related stores. It has
been opted to provide updated notification to the employee and the owner of the store.

Here we conclude that the Pharmacy Management System is developed to satisfy the
complete needs of medical store for their necessary usage.

ADVANTAGES
The main advantage of this project is that it reduces the human efforts and it
makes easy to check the stocks and manage invoices.

The system make easy to find out the stock that are available or not.

 Low cost of ownership.


 It is a flexible system that can be customized as per your requirement.
 It is helpful in increasing productivity and resultantly profitability.
 It boosts of simple,user-friendly and efficient user-interface design,as all
the key elements are taken care during the designing of the system.
 The system is reliable and secure as during the development of the
system,all the major threats were considered and all preventive measures
are also taken care of.

BITS HITECH COLLEGE Page 32


PHARMACY MANAGEMENT SYSTEM 2019

FUTURE SCOPE:

The scope of pharmacy brings a huge day by day management of patients by providing
the efficient drug delivery system. The need for pharmacy becomes more evident in the
provision of essential drugs. In the coming decades,pharmacists are expected to become
more integral with in the health care system. Rather than simply dispensing
medication,pharmacists are increasingly expected to be compensated for their patient care
skills. They also provide clinical services to their patients. These include all medications
analysis like precsrption, non-prescription and herbals being taken by the patient.
Pharmacy education plays an important role in guiding pharmacists to move in a right
direction and dosage of medicine. Use is highly recommended by them for the patients.

BITS HITECH COLLEGE Page 33


PHARMACY MANAGEMENT SYSTEM 2019

REFERENCE
1. Pharmacy management system report by chandresh raj
www.academia.edu

2. www.youtube.com.

3. www.w3school.com.

BITS HITECH COLLEGE Page 34

S-ar putea să vă placă și