DISTRIBUTED DATABASE PHARMACY MANAGEMENT SYSTEM (PMS) NURSYAFEEKA BINTI ZAINUDDIN This report is submitted in partial fulfillment of the requirements for the Bachelor of Computer Science (Database Management) FACULTY OF INFORMATION AND COMMUNICATION TECHNOLOGY UNIVERSITI TEKNIKAL MALAYSIA MELAKA 2008
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
DISTRIBUTED DATABASE PHARMACY MANAGEMENT SYSTEM (PMS)
NURSYAFEEKA BINTI ZAINUDDIN
This report is submitted in partial fulfillment of the requirements for the Bachelor of Computer Science (Database Management)
FACULTY OF INFORMATION AND COMMUNICATION TECHNOLOGY UNIVERSITI TEKNIKAL MALAYSIA MELAKA
2008
ABSTRACT
The Distributed Database Pharmacy Management System (PMS) is developed especially for Pharmacy Murni, which is located at Batu Pahat, Johor. This application is developed to manage the medicine inventory and provide backup and recovery for security management of information in the pharmacy. It is an online system which can only be access within three main users; there are database administrator, pharmacist and pharmacist assistant. Only authorized user can login into the system and view the PMS application. The database administrator will maintain the backup and recovery and user privilege to view the system. Besides that, pharmacist's job is to manage the sales record of medicine besides using the medicine selector to choose the suitable medicine for specific symptom name. Furthermore, the pharmacist assistant job is to manage the order, payment and supplier details. On the other hand, this PMS application is focused more on database management of medicine besides maintaining the backup and recovery for the records in the database. The methodology of this system is System Development Life Cycle, SDLC and Database Life Cycle, DBLC. An analysis study has been done based on the current manual system and all the problems statements and requirements have been identified. Moreover, PMS is three tier architecture system which involves client tier, application tier or business tier and database management tier. The interfaces for PMS have been designed according to the requirement and needs of the current market. This Distributed Database Pharmacy Management System, (PMS) will help to improve the performance of current situation and overcome the problems that arise nowadays.
ABSTRAK
Distributed Database Pharmacy Management System (PMS) telah dibangunkan khasnya untuk Farmasi Murni di Batu Pahat, Johor. Sistem ini dibangunkan untuk menguruskan inventori ubat-ubatan di dalam farmasi serta membekalkan backup and recovery untuk kawalan keselamatan maklurnat di dalam farmasi. Sistem ini boleh diakses melalui internet dan hanya boleh digunakan mtuk tiga pengguna iaitu pengurus pangkalan data, ahli f m a s i dan pembantu ahli farmasi. Hanya pengguna yang sah sahaja boleh mengakses data melalui aplikasi PMS. Pengurus pangkalan data akan mengawal backup and recovery clan menguruskan hak keistimewaan pengguna untuk melihat aplikasi sistern tersebut. Selain itu, ahli f m a s i bertugas untuk menguruskan rekod jualan ubat-ubatan selain menggunakan pemilih ubat-ubatan yang sesuai untuk gejala penyakit tertentu. Tambahan lagi, tugas pembantu ahli farmasi adalah untuk menguruskan tempahan, bayaran dan maklurnat pembekal. Dengan kata lain, aplikasi PMS lebih tertumpu kepada pengurusan pangkalan data untuk ubat-ubatan selain menguruskan backup and recovery untuk setiap rekod dalam pangkalan data. Metodologi sistem ini ialah kitaran hidup pembangunan sistem dan kitaran pangkalan data. Kajian telah dibuat berdasarkan sistem semasa yang manual dan semua kenyataan masalah clan keperluan sistem telah dikenal pasti. Tambahan lagi, PMS ialah tiga bahagian sistem senibina yang melibatkan bahagian pengguna, bahagian aplikasi atau bahagian perniagaan dan bahagian pangkalan data. Ruang antara-muka mtuk PMS telah di lakar berdasarkan keperluan pasarm. Distributed Database Pharmacy Management System, (PMS) akan membantu memperbaiki kebolehan dari situasi semasa dan mengatasi masalah yang dihadapi pada masa kini.
CHAPTER I
INTRODUCTION
1 . Project Background
Most of the pharmacies nowadays, like to use file system because it is a
traditional way and peoples are comfort with that way. But today, the technologies
has changes a lot and because of that almost all the application in the world prefer to
use computer as their stored information place. More recently, the pharmacy
management is focused on storing stock information such as types of medicines,
price, medication review and drug information. Currently, to keep track on sales
transaction such as stock and order information, manual recording system is used by
the pharmacist. This system has many disadvantages because the pharmacist always
busy with the sales transaction rather than managing the patient who comes to the
pharmacy.
In case of that, the Pharmacy Management System (PMS) will be developed
based on the manual system in the real situation in a pharmacy. Furthermore, it is a
web based application where user must open a web browser such as Intemet Explorer
or Mozilla Firefox in their computer and type the address of this Pharmacy
Management System in the address bar of the web browser. This system has security
issues such as the validation for usemame and password to prevent the intruder fiom
entering the system. Moreover, this system has two levels of user, which are
pharmacist, pharmacist assistant and database administrator. The pharmacist can
v i m all the information in the pharmacy such as medicine information, staff
information, supplier and order information. The assistant pharmacist can view and
updates the medicine information, supplier and order information. Moreover,
database administrator's job is to handle the backup and recovery process besides
managing the staff information. This application will be using Hypertext
PreProcessor (PHP), Apache HTTP Server and MySQL as the database.
1.2 Problem Statement
The problem statements are:-
a) The file system is less secure because the system has no user administration
level and is an unauthorized system where anyone can change the information
without notice of everybody.
b) The file system does not eficient enough for the pharmacist to do their work
because wasting of time to search the desired information such as the medicine
information.
c) Besides that, the data is difficult to search and sometimes it creates duplication
because redundant data in some part of information such as in supplier
information.
d) Moreover, the existing system cannot recover data to prevent lost of data.
1.3 Objective
Objectives outline the actions that will be taken to solve the problems that are
stated in the previous section. The following are the objectives for this project:
a) To develop a web based application with a high security level for the pharmacy
with user authentication and authorization.
b) To ease searching capability for retrieval of data.
C) To apply distributed database in web based application.
d) To increase the time performance in managing the medicine inventory.
1.4 Scope
The focus of this paper is on Pharmacy Management System, PMS which is an
online system that manages the order and medicine information. In this section, the
scope will be explained in terms of users, function and technologies.
1.4.1 Scope of System Users
There are three users in these systems which are pharmacist, pharmacist
assistant and database administrator.
a) Pharmacist
The pharmacist will be responsible on handling the manipulation aspects of
approving the suppliers and can only view the medicine, stock and sales records.
b) Assistant pharmacist
The assistant pharmacist will be responsible on managing the data in order
details, medicine information and stock's records.
c) Database administrator
The database administrator's job is to make sure that all data is safe by
handling the backup and recovery for all information transferred in the PMS.
1.4.2 Scope of Functions
This project will include five modules which consist of login module, backup
module, recovery module, medicine management module and maintain the database
(transaction log).
a) Login Module
Only an authorized user can login into the system by providing their correct
username and password to access the system.
b) Backup Module
This backup will be maintained by database administrator. Furthermore, this
module is used to make sure that all data in the tables is copied to other locations.
The database administrator only has to click on backup button then all the data will
be backups automatically.
c) Recovery Module
This recovery module involves in restoring the backup tables or database into
a specific location.
d) Medicine Management Module
This module provided medicine information, such as medicine id, name, price
per unit and expiry date. The system can add, update or delete the medicine
information.
e) Maintain the database (transaction log)
The database is maintained by database administrator (DBA) and the user
privilege will be controlled by the DBA. The data that is inserted or updated will be
recorded automatically in the tables of database by using trigger.
1.4.3 Scope of Technologies
Given that PMS is an online system, so the technologies used will be web-
based tools such as:
a) Apache Web Server Version 2.2.4
b) Hypertext Preprocessor (PHP) Version 5.2.3 as server side scripting language
a) MySQL Database Version 5.0.45
b) phpMyAdmin Database Manager Version 2.10.2
c) JavaScript as client side scripting language
d) AppServ Version 2.5.9 for Windows
1.5 Project Significance
For project significance, it will be explain based on user level such as database
administrator and pharmacist in the pharmacy. PMS provides backup and recovery to
ease the work of database administrator. Besides that, this project will help to ease
the staff works in the pharmacy and increase the work performance of the staff in
case of PMS's usability. The pharmacies can spend more time in serving the
customer who comes to the pharmacy and because of that the pharmacy will get
more attention to the public.
In addition, this project is better compared to manual system which using files
system to keep the sales record. It is because of the security issues that is
implemented in this system will help to increase security level in maintaining the
records information. Besides that, in terms of accessibility the data will be remains
save because of the different level of users had been applied in this project.
Moreover, this project is a dynamic and interactive web-based because it has
faster access through database to get the desired information. In case of that, the user
can get their desired information within a seconds or minutes rather than waiting for
a long time period. Additionally, the web page that will be created has a beautiful
interface and always following the standard documentation.
1.6 Expected Output
Hopefully this project will deliver a successful application that will fulfill the
objectives as mentioned before this. At the end, the new system for pharmacy
management system will be developed.
The system will provide functionalities as stated below:
a) Authentication and authorization login screen will be provided for user who
wants to access into the system by entering the correct usernarne and password.
b) Besides that, the user can access in minutes and manage the order information,
employee's information, medicine information and supplier information.
c) Additionally, the system has three level of user to ensure the security issues
which the low level only can view the records, medium level to update the
records and high level to handle backup and recovery especially for database
administrator.
d) Furthermore, the system has backup and recovery in case of time failure that
will help to maintain the data that is being transferred.
e) Consequently, the web site is a user-friendly to a novice user who does not
have a high knowledge in managing the web site.
1.7 Conclusion
In this chapter, a new system will be proposed for Pharmacy Murni at Batu
Pahat which is called as Pharmacy Management System (PMS). Furthermore, the
scenario of this company can be seen through this chapter. There are many problems
appear when the file system is used to store and searching staffs information,
medicine, order details and supplier's information. Therefore, this new system is
proposed to improve the file system by developing a simple and user friendly system
to the manager and staffs. Lastly, every record will be maintained in the database and
will be easier to manage. The next chapter will be cover about Literature Review and
Project Methodology.
CHAPTER I1
LITERATURE REVIEW AND PROJECT METHODOLOGY
2.1 Introduction
The purpose of this literature review is to give a summary of facts and
findings on this project. Moreover, this can be done by studying or finding the past
research, references, case study and other related finding. It will give a better
understanding to the need for this project and also help in designing the methodology
for this project. Meanwhile in the project methodology section will describe in detail
about the selected methodology or approach that will be used in this project. By
selecting the appropriate methodology, the productivity and quality of the project
will be increased and improved. In case of that, System Development Life Cycle
(SDLC) methodology and modified waterfall model has been selected for this
project.
Furthermore, the project requirement including hardware and software
requirements are also included in this chapter. And then, a Gantt chart will be created
to show the time line during the development of this project. Finally, the activities
for each stage will be described in detail in the section of project schedule and
milestone.
2.2 Facts and findings
This part of chapter is about facts and findings from the internet resources,
books and articles. Furthermore, this chapter is more focused on the existing system
and facts related to the approach and technique in developing the proposed system.
2.2.1 Domain
This project is aimed to develop a Pharmacy Management System (PMS)
which focuses on managing the inventory for medicine and storing the order details
in the proposed system. Moreover, the target users for this system are the pharmacist
and manager who work in the pharmacy. Furthermore, this proposed system will be
developed by using Hypertext PreProcessor (PHP), Apache HTTP Server and
MySQL as the database.
2.2.2 Existing system
Some examples of similar existing system are found and described in this
$ 8 4 . " r ' loll WEAI IWCARS P(LOVIOCRI 6 0 1 M l H U F l C T U l l C R I FOR P A V O l S
yom. > Dt,+,rnau.r > C u t ~ a l ~ l n t Z Uharmacy Man2g.m.m Soft-a,. a n d Serv#cer > ' .
@ q c x . ! b , , The Phsmasen p h m w system 15 the most aomonhcnrove M l P A A - m m f i a t oharman menapemem srKcm der~pned to ; r. r
+I*> t l ~ > r t ncmase &om- and pmtitabln~, uhslc imwnnnp olrmmsr ~atsfbCtlon Phwm-en omrtder swenar performance, h~chondlsh and rarld-class luooort.
Call R n O . 7 0 . 5 1 0 7
'&3 m rchcdds a dwmm?rabm
",I" R I L A ktmbutd p h - q management r y e m , Pharmasc~ h-. O'hnd out ~nfam-rn data and aoDhcaoan rn wnc- r t o n d on-rm m the ~harmacy, abOwml Of me *wmasew pror~dmg the pharmacy rth hil m w d aver m mformaaon and omd- rcmc+s,
Prodtlrrs R 5 p r v i c e l TTmd'meMna. :. , I ... .. . .. . ,
. , . . . . . - . . The Phamasan pharmacy ry$tem mpactl pharmacy w o M a ad h e n o throqh Rs vn- fcmrer end bendu:
... , .I, : , ; Virtual Pharlvacy Tour
L-d e n d l m state and federal gorcrnmm T l e a mur of (he . ! . . L . . . . ~ ( ~ ~ I a b o n r WUI bun-m ryrrrrn eomoloance and Pharmaren wmal
tuncbon*. PIL,rmd~l Integrated e n v e e r ) . --m . b w r for autonrabs
.. . ordenog. . . Improve v6tabtMI *ah penenc mbsuuomr a d
p-?.I w a b v e pr& alerts.
' r r . - . - ' - ' Prmen marp~nr wwh t k r W a d cari-to-rna(an pMnO sshedu(or
:ii. . -- s i . . .,,. Cul torn~r T ~ ~ t i n l ~ n i d l ? r . . .,. Pharm~ler ca m d kss ae fihnrr prexrm(lonr WA
inbprlted processes that dfasbvely mqethcr.
P I ~ a r ! n o ~ e r v Suite Products
P b , , . , ' , ? ;,>,. , I ,,,,.. ,. .. , 1,. ..L .',-. '. - , " i ~ - j l.., . : . P , ... . ,... .The P h s m a m system hn
/ . , . :_,.. , . . .I.
ndllv made me eff iom m
r . , - ~,,,, .. 7 ,.,.: .,<., ., . the oamt where I dant spend
. .,. ,. . , , ,. . - - Dme domg malntenanoc oo the hepvbcr, I don? $pad v
Figure 2.2: Website portal of Pharmasew Pharmacy Management System
(PPMS)
Figure 2.2 shows a website portal of Pharmaserv Pharmacy Management
System (PPMS). Additional, PPMS did not use user friendly approach for it system
environment or interface. Also, PPMS is not specifically use by the certain user, for
example pharmacist. It can be use by other people that access the internet. The
processes exist in this system are distribution service, pharmacy brand, Rx
purchasing programs, Front-end purchasing programs, merchandising, managed care,
marketing and advertising, pharmacy management software and services, ordering
and inventory management, and medication packaging.