Professional Documents
Culture Documents
List of Tables
1|Page
List of figures
2|Page
1.1. Introduction
Technology is spreading its wing in almost every walks of human life activities. Now a day it is
better if every activity is done using new technology in order to fulfil the need of human being,
Organization and Enterprise. As today’s world there are all organizations needs to be preferable,
computable and work on fastest way in order to satisfy user’s interest i.e. they should have
facilitate their activities in computerized way. Hence Pharmacy management system is a system
that is designed to improve accuracy and to enhance the performance of the task in the pharmacy
like, registration of drugs, searching drugs information, checking expired date of drugs, report
and other tasks. It is a computer and web based system which helps employee’s to facilitate the
activity of the pharmacy in appropriate manner. The pharmacy has two places which the drugs
are available. These are stock and store. The stock is the place in which the drug that needs to be
sold is stored. And the store is the place in which the new bought drug is stored. Currently all
activities in the pharmacy performed manually. It requires the pharmacist monitor manually each
drug that is available in the pharmacy or not. This usually leads to mistakes as the workload of
the pharmacist increases.
3|Page
1.2. Architectural Design
A software system is a set of communicating entities that collaborates to perform task. The
architecture used for the system is a three tier Client/Server Architecture. The client tier is the
applications user interface containing data entry forms and client side applications. It displays
data to the user. Users interact directly with the application through user interface. A web server
is a program that runs on a network server (computer) to respond to HTTP requests. The most
commonly used web servers is Apache. The web server used in this system is Apache. HTTP is
used to transfer data across the Internet. The third tier, called the data tier, maintains the
applications data. It stores these data in a database management system (DBMS).
Component diagrams are often used to model high-level software components and how they
interact. The interfaces between these components become clear as the model grows, which
provides a much clear delineation of duties of each component. So from that point component
diagrams are used to visualize the physical components in a system. Component diagrams can 70
also be described as a static implementation view of a system. Static implementation represents
the organization of the components at a particular moment. It does not describe the functionality
of the system but it describes the components used to make those functionalities.
4|Page
Figure 2 component Diagram
5|Page
1.4 Design Class Diagram
Class diagram is a static diagram. It represents the static view of software. Class diagram is not
only used for visualizing, describing, and documenting different aspects of a system but also for
constructing executable code of the software. Class diagram describes the attributes and
operations of a class and also the constraints imposed on the system. The class diagrams are
widely used in the modeling of object-oriented systems because they are the only UML
diagrams, which can be mapped directly with object-oriented languages. Class diagram shows a
collection of classes, interfaces, associations, collaborations, and constraints. It is also known as
a structural diagram. The purpose of the class diagram can be summarized as:
6|Page
Class model Analysis
User
userId
firstName
lastName
sex
address
phoneNo
Login()
Logout()
7|Page
1.4.1. Design Class Diagram Description
8|Page
Class name Attribute/operation Description
Cashier Username Giving the name of the cashier
Password To authenticates the users of the
system
Generate report() Generate reports
Prepare Bill() Prepare Bills to request payment
Print Bill() Print Bill
Table 3 Class Description of Cashier
9|Page
Class name Attribute/operation Description
Store User Name Giving the name of the Store
Coordinator coordinator
Password To authenticates the users of the
system
Check Expire Date() Check expired date of drugs in the
store
View Available View available drugs in the store
Drugs()
Generate Report () Generate report to the manager
Delete Expired Delete expired drugs in the store
Drugs()
Register New Drugs() Register new drugs
Update Drugs() Updates drugs in the store
10 | P a g e
Class name Attribute/operation Description
Bill Bill no Indicate the bill no
Customer name To show customers name
Drug name To show drugs name
Quantity Show quantity
Total price Indicate total price
Table 7 Class Description of Bill Preparation
Use Case: A use case describes a sequence of actions that provide a measurable value to
an actor
Actor: An actor represents a person, organization or any external system that interacts
with the system
11 | P a g e
pharmacy management system usecase diagram
Add comment
Accept order
View order <<Extend>>
<<Extend>>
Supplier
Reject order
Send order
<<Include>>
<<Include>>
Update
View comment account
Create
Search drug info <<Include>>
account Admin
Deactivate
account
customer
<<Include>>
check expired <<Include>>
date
<<Include>> <<Include>>
view available drug <<Include>>
in the stock <<Include>>
<<Include>>
prepare bill
<<Include>>
<<Include>
Login
process payments <<Include>>
delete expired
<<Include>>
drugs info <<Extend>>
store cordinator
12 | P a g e
1.5.1 Use case description
The following consecutive tables show the use case description for each of the use cases that has
identified in the above use case diagram. Each table contains the use case name, short
description, pre-condition, post condition, Basic subjects of action and alternative subject of
action the actor initiates and interacts with the use case, description of the use case and typical
subject of events that show the interaction between the actor and the use case which enable the
team to easily depict the functions of the proposed system
13 | P a g e
Alternative course of action 9. If the username and password The system displays”
is incorrect please enter correct
username and password t”
message. and returns to
basic course of action 3
Alternative course of If the information is invalid, The system display error message and
action go to step 2
Table 10 use case description for create user account
14 | P a g e
Use case number UC 03
Priority High
Description The store coordinator register drugs information when new drugs come in to the
store
Precondition The store coordinator must login with his/her own username and password.
15 | P a g e
Use case number UC 04
Use case name prepare bill
Actor Cashier
Description The Cashier calculate bill for customer during the customer buy
drugs
Pre-condition The Cashier must login to the system by using his/her username
and password
Post-condition The Cashier can calculate the bill for the customer
Basic course of action User action System response
1.click prepare bill link 2.The system display the form
3. The cashier fills the 4. The system calculates the bill and
required information and display.
click on calculate button. 6. the system print the receipt
5.the cashier generate 7. Use case end.
receipt and click print
button
16 | P a g e
Use case number UC 05
Alternative course of action 7. If the modified information is The system displays” please
invalid enter correct input”
message. and returns to
basic course of action 4
Table 13 use case description for update drugs information
17 | P a g e
Use case number
UC 06
Use case name View Available Drugs in the store
Priority High
Actor Store coordinator and Manager
Description: Store coordinator and Manager can view available drugs in the
store
Precondition The Store coordinator and manager should create account and
have user name and password.
Table 14 use case description for view available drugs in the store
18 | P a g e
Use case number UC 07
Use case name Delete Expired drugs information
Priority High
Actor Store coordinator
Description If the drugs are expired, they must be deleted from the system
Pre-condition The Store coordinator must check the expired date of the drugs
Post-condition The Store coordinator can delete drugs information from the system
19 | P a g e
1.6. Sequence Diagram
Sequence diagrams show the interaction between participating objects in a given use case. They
are helpful to identify the missing objects that are not identified in the analysis object model. To
see the interaction between objects, the following describe the sequence diagram of each
identified use cases.
error
Constraint Constraint
Constraint
Constraint
Constraint
Constraint
Constraint
20 | P a g e
Explanation
Activity in the system is shown by messages that pass between the objects. These messages are
represented by a line with an arrow. Messages can be sent back and forth, from left to right, and the
arrow shows which is the receiver and which the sender of the message. The arrows are usually
labeled so that you can easily understand the content of the message.
Once the page has loaded, you’re usually presented with a form that allows you to enter your
credentials. This is often just your email address and a password. You enter your data and submit
the form, and this is when the sequence diagram kicks in and shows how useful it can be.
admin <<acyor>> admin choice page<<ui>> create account form <<ui>> system controller user account<<DB>>
create account
Constraint Constraint
Constraint
Constraint Constraint
Explanation
Once the page has loaded, admin or user is usually presented with a form that allows creating, or in
other words the information that is used to sign up for the site. The admin requests create account
form and the form displays then fill form using personal credentials, then credential details is
checked by the system and generate error if any otherwise display successfully created account as
an alert message.
21 | P a g e
Register drugs
Constraint
click on add drugs link()
Register add drugs form
Constraint
Constraint
Constraint
display successfully registered message
Constraint
Constraint
Explanation
In the register drugs page store coordinator after login , clicks on add drugs link , then registers
drugs to be added after display form for registering drugs, then enters drug information and
clicks add bottom , the system checks drug coordinator inputs and database is stored if no error is
generated , then alert successfulness message.
22 | P a g e
View
availabledrugs
User<actor> User choice page<ui> View drugs info<ui> System controller drug info<DB>
Select from combo box& click view button check available drugs Constraint
Request drug information
Constraint
Display drugs information
Constraint
Constraint Constraint Constraint
Constraint
Explanation
In this page actor of view available drugs clicks on view available drugs link, then request to
view page and combo box is displayed, then actor selects from combo box and clicks view
bottom, then check directs to page check available drugs , request drug information , then lastly
displays drugs information.
23 | P a g e
Casher drugs
Casher<actor> choicepage<ui calculate bill <ui> System controller Print
info<DB>
Constraint > Constraint
Constraint Constraint Constraint Constraint
Constraint Constraint
enter drugs information & click calculate button
check user in put
fetch drug price & calculate
Constraint Constraint
Constraint Constraint
Constraint
Explanation
Actor is the cashier and clicks on calculate bill link , then requests calculate bill page , then
calculate bill page is displayed by System interface ,then cashier inters drugs information and
clicks calculate bill bottom , system checks user input , then fetches drug and calculates user
input requests , then displays total price , then cashier clicks print bottom and prints bill .
24 | P a g e
Store store coordinator check expire system Drugs
coordinator<actor choicepage<ui> datepage<ui> controller info<DB>
>
Constraint Constraint Constraint Constraint Constraint
Constraint Constraint
Constraint
Display expired drugs information
Constraint
display successfully deleted
Constraint
Constraint
Explanation
Actor is store coordinator and the page is delete expired drugs information, actor clicks on check
expired drugs link, then requests page of its type, then the page is displayed, then enters current
drug date and clicks the check button, system checks user input, if valid, then checks expired
date for the drugs, then displays expired drugs information, then actor checks on delete button,
then delete expired drugs information, then display successfulness message by the system.
25 | P a g e
Store coordinator update drugs update
Store coordinator<<actor>> Drugs info<<DB>>
choice<<ui>> page<<ui>> controller
Constraint Constraint Constraint Constraint Constraint
Constraint
Constraint Display drug information
Constraint
Constraint Constraint
Display updated successfully
Constraint
26 | P a g e
Explanation
Actor is the store coordinator and the page is update drugs information.
Store coordinator clicks on update drugs link, then request update form and the form is displayed
by the system, then actor selects drug name and clicks on view button, then drug information is
displayed, then the store coordinator updates the drug information and clicks save button, then
system checks for validating user inputs and generate error if any and if no such errors are there
the drug information is saved, then lastly system displays successfulness of user input as an alert.
27 | P a g e