Medical Stock Management System (MeDSys).

MEDICAL STOCK MANAGEMENT SYSTEM (MeDSys)

NOOR HIDAYAH BINTI HARUN

This report is submitted in partial fulfillment of the requirements for the award of
Bachelor of Electronic Engineering (Computer Electronics) With Honours

Faculty of Electronic and Computer Engineering
Universiti Teknikal Malaysia Melaka

April 2009

iii

iv

v

Especially for my beloved family, friends and loved ones

vi


ACKNOWLEDGEMENT

Firstly, I would like to thank to Allah the Al-Mighty for blessing and guiding
me to finish my final year project successfully. In preparing this thesis, I was in
contact with many people, researchers, academicians, and practitioners. They have
contributed toward my understanding and thoughts. I wish to express my sincere
appreciation to my main project supervisor, Mrs Noor Mazlina Binti Mahmod, for
encouragement, guidance, critics and friendship. Without her continued support and
interest, this project would not have been the same as presented here.

I am also indebted to Poliklinik Mesra, especially Mr Mohd Tahir as the
doctor and other staffs involved directly or indirectly.

My fellow postgraduate students should also be recognized for their support.
My sincere appreciation also extends to all my colleagues and others who have
provided assistance at various occasions. Their views and tips are useful indeed.
Unfortunately, it is not possible to list all of them in this limited space. I am grateful
to all my family members.


vii

ABTRACT

Medical Stock Management System or MeDSys is being developed to
manage the medical stock or inventory for this system obviously for a small kind
industry that are in under develop and also required a small budget small industry.
Delivering the high levels of reliability and availability required of MeDSys required
not only great technology but also great operational processes. Building a scalable,
highly available system is a necessary process in becoming functional successful.
MeDSys is being developed to give convenience to the doctor and the medical
officer. Due to the existing system is still manual, it has caused some problems, such
as face some difficulties in finding certain information and take too long in searching
some files because of the disorder management and supervision. This suggested
system is focuses on manage the stock transaction and record all the medical
suppliers / vendors for the clinic. This system is allow the user to do the maintenance
of the system by add, delete and modify the data to the database. The methodology
that use in developing this project is waterfall model. The waterfall model derives its
name due to the cascading effect from one phase to the other. This project is also
using the object-oriented approach to develop system. Software that uses to manage

the database is Microsoft Access while the using of Microsoft Visual Studio.NET is
to build a dynamic system and all the documentation is proposed by using Microsoft
Office. Hopefully this system can meet the user requirements and make the system
management smoothly.

viii

ABTRACT

Sistem Pengurusan Stok atau MeDSys ini dibangunkan untuk memudahkan
pengendalian stok untuk industri kecil dan mempunyai bajet kecil. Untuk
menghasilkan MeDSys yang dipercayai dan berkebolehan, ia bukan hanya
bergantung kepada proses operasi. Kebolehan yang tinggi pada sistem amat penting
untuk menjadikan sistem ini beroperasi dengan sempurna. MeDSys dibangunkan
untuk doktor dan pegawai perubatan bagi memudahkan pengurusan. Oleh sebab
sistem semasa masih lagi dijalankan secara manual, beberapa masalah telah wujud
seperti kesukaran dalam mencari maklumat tertentu dan mengambil masa yang lama
untuk mencari beberapa fail pengurusan. Sistem cadangan ini hanya meliputi dalam
pengurusan stok dan merekod semua pembekal-pembekal perubatan untuk klinik.
Sistem ini juga membenarkan pengguna untuk menyelenggarakan sistem dengan

menambah, menghapuskan dan mengubah data dripada pengkalan data. Metodologi
yang digunakan untuk membangunkan projek ini ialah ‘waterfall model’. Gabungan
waterfall model ini terhasil daripada kesan satu proses kepada proses yang lain.
Project ini menggunakan object-oriented approach untuk membangunkan sistem.
Perisian yang dipilih untuk menguruskan pangkalan data ialah Microsoft Access
manakala perisian aplikasi pula menggunakan Micorsoft Visual Studio.NET untuk
membangunkan sistem yang dinamik dan Microsoft Office untuk dokumentasi.
Diharapkan sistem ini dapat memenuhi kehendak pengguna dan melicinkan proses
pengurusan penyelidikan.

ix

CONTENT

CHAPTER

TITLE

PAGE


PROJECT TITLE
CONFIRMATION REPORT STATUS

I

DECLARATION

iii

SUPERVISORS CONFIRMATION

iv

DEDICATION

v

ACKNOWLEDGEMENT

vi


ABSTRACT

vii

ABSTRAK

viii

TABLE OF CONTENTS

ix

LIST OF TABLE

xiv

LIST OF FIGURE

xv


LIST OF ABBREVIATION

xviii

LIST OF APPENDIX

xix

INTRODUCTION

1.1

Project Overview

1

1.2

Project Description


2

1.3

Project Objectives

3

1.4

Problem Statement

4

1.5

Scope of Project

5


1.5.1

Project Scope

5

1.5.2

Scope Of User

5

1.5.3

Scope Of System

6

x


II

1.6

Project Methodology

6

1.7

Project Structure

7

LITERATURE REVIEW

2.1

Overview Literature Review


8

2.2

Information Gathering Method

9

2.3

Fact And Finding

9

2.3.1

Poliklinik Mesra

9

2.3.2

Case Study Through Thesis

10

2.3.3

Case Study Through Website

11

2.3.4

Case Study Finding

16

2.3.5

General Function Related With

17

Medsys System
2.4

Software Requirement

18

2.4.1

Visual Studio.NET

19

2.4.2

Visual Basic.NET

19

2.4.3
2.4.4
2.5

2.6

Difference Between VB And
VB.NET
Microsoft Access

20
21

System Development Approach

22

2.5.1

Waterfall Model

22

2.5.2

Advantage & Disadvantage

23

Conclusion

23

xi
III

METHODOLOGY

3.1

Methodology Over review

24

3.2

Method Of Collecting Data

25

3.2.1

Research

27

3.2.2

Analysis

27

3.2.3

Design

28

3.2.4

Implementation

29

3.2.5

Test

29

3.3

Medsys Flow

30

3.3.1

31

3.3.2

3.5

32

Medsys.Vb
Adding Control To Form

33

3.3.4

Modified Hungarian Notation

34

Create Database Using

35

Microsoft Access

3.3.6

Code Editor

36

3.3.7

Built And Run MeDSys.Vb

36

Fundamentals Of Programming In Visual
Basic

37

3.4.1

Arithmetic Operations

37

3.4.2

Variable

38

3.4.3

Integer Data Type

38

3.4.4

String

29

3.4.5

Format Output With Zones

40

General Procedure

41

3.5.1

41

3.5.2
3.6

Create New Application

3.3.3

3.3.5

3.4

Install Visual Studio 2005

Sub Procedure, Part I
Difference

Between

Event

Procedure And Sub Procedure

42

Repetition

42

3.6.1

42

If Statement

xii
3.6.2
3.7

44

3.7.1

ADO.NET

45

3.7.2

Medsys Connection

47

Connecting To An OLE DB
Data Source

48

3.7.4

Data Adapter

49

3.7.5

Dataset

52

3.7.6
3.7.7

IV

43

Database Files

3.7.3

3.8

Try Statement

Relations Between Datatables
In A Dataset
Window Form

Conclusion

53
53
54

RESULT AND DISCUSSION

4.1

Expected Result

55

4.2

Functional Requirement

56

4.3

Functional Analysis

59

4.4

MeDSys System

61

4.4.1

Main menu

61

4.4.2

Main Login

62

4.4.3

Doctor Login

63

4.4.4

Medical officer Login

64

4.4.5

Doctor & Medical registration

65

4.4.6

Doctor menu

66

4.4.7

Staff menu

67

4.4.8

Info

68

4.4.9

Stock Detail

69

4.4.10

Stock Edit

70

4.4.11

Stock adjustment

71

4.4.12

Payment

72

xiii

4.5

V

4.4.13

Damage Stock

73

4.4.14

Vendor Profile

74

4.4.15

Generate report

75

4.4.16

Damage report

76

4.4.17

Stock report

77

4.4.18

Doctor profile

78

4.4.19

Staff profile

79

4.4.20

Logout

80

Flow Chart Of System

81

CONCLUSION AND RECOMMENDATION
5.1

Conclusion

98

5.2

Recommendation

99

V

REFERENCE

100

VI

APPENDIX

101

xiv

LIST OF TABLE

NO

TITLE

PAGE

2.1

Links system

11

2.2

Functions of the system

17

2.3

Soft requirement

18

2.4

Data type changes

20

3.4

Hungarian Notation

34

3.5

Arithmetic Operations

37

3.20

Classes of ADO.NET

46

3.22

Description of display database

47

3.24

Common OLE DB provider names

49

3.25

list connection object in data tab of the toolbox

50

3.26

properties of adapter supports

51

3.27

class model diagram for the DataSet and related classes

52

4.1

Doctor and medical officer menu form

57

4.3

Function analysis for MeDsys

59

xv

LIST OF FIGURE

NO

TITLE

2.5

Schematic illustrating the Waterfall model

22

3.1

Phases of system

26

3.2

Microsoft Development Environment

31

3.3

Flow of created new application

32

3.4

Toolbox contains

33

3.6

Database.mdb

35

3.7

Coding in MeDSys

36

3.8

Error List

36

3.10

List box output

37

3.11

Variable declaration

38

3.12

Integer variable

38

3.13

Code assignment statement and if statement

39

3.14

Output zones

40

3.15

Sub procedure and Function procedures

41

3.16

program for if statement

42

3.17

Flow chat of If statement

43

3.18

Try … Catch structure

43

3.19

Components of ADO.NET

45

3.21

Flow to display database data in bound control on a
form

PAGE

47

3.23

Connection to open database.mdb

48

3.28

Example Of registration form GUI

53

4.2

MeDSys Operation

58

xvi
4.4

Main menu form

61

4.5

Login form

62

4.6

Doctor Login form

63

4.7

Medical Officer form

64

4.8

Registration form

65

4.9

Doctor menu form

66

4.10

Medical Officer menu form

67

4.11

Info form

68

4.12

Stock Detail form

69

4.13

Stock Edit form

70

4.14

Stock Adjustment form

71

4.15

Payment form

72

4.16

Damage form

73

4.17

Vendor Profile form

74

4.18

Generate Report form

75

4.19

Damage Report form

76

4.20

Stock Report form

77

4.21

Doctor Profile form

78

4.22

Medical Officer profile form

79

4.23

Logout form

80

4.24

Flowchart of the MeDSys system

81

4.25

Flowchart of Doctor Login form

82

4.26

Flowchart of Medical officer(M.O) Login form

83

4.27

Flowchart Doctor Menu form

84

4.28

Flowchart Doctor Menu form

85

4.29

Flowchart of Info form

86

4.30

Flowchart of MeDSys Stock form

87

4.31

Flowchart of stock detail form

88

4.32

Flowchart of Stock Edit form

89

4.33

Flowchart of Stock Adjustment form

90

4.34

Flowchart of Payment form

91

4.35

Flowchart of vendor form

92

xvii
4.36

Flowchart of Medical Officer form

93

4.37

Flowchart of Generates report form

94

4.38

Flowchart of damage form

95

4.39

Flowchart of Doctor form

96

xviii

LIST OF ABBREVIATION

C
CMS

Clinic management system

G
GUI

Graphic user interface

M
MeDSys

Medical stock management system

MIS

Management Information system

S
SSAM

Sales, Stock and Accounts Manager

V
VB6

Visual basic 6

VB.NET

Visual basic .net

VS.NET

Visual studio.net

xix

LIST OF APPENDIX

NO

TITLE

PAGE

A

Logo

101

B

Gant Chart

102

C

User Case Diagram

103

D

MeDSys Coding

104

E

Slide

131

F

Class model diagrams for the DataSet and related classes

134

CHAPTER I

INTRODUCTION

1.1

PROJECT OVERVIEW

This chapter gives a general introduction to (MeDSys). Section 1.2 is
introduction to the project or MeDSys system. Section 1.3 states the objective for the
project. Section 1.4 highlights problem or opportunities that initiated the system.
Section 1.5 specifies the scope of the system developed. Section 1.6 describe about
the project methodology that used. Section 1.7 provides the report structure of the
system.

2
1.2

PROJECT DESCRIPTION

MeDSys will be developed to manage the medical stock or inventory for this
system obviously for a small industry that are under develop want which required a
small budget small industry. This system is base on research at Poliklinik Mesra
Ayer Keroh. Since the clinic is a new clinic, hence, the MeDSys is very beneficial to
be applied as it can systematically handle the medical inventory of the clinic from the
beginning. The user for this system is the doctor and medical officer. There is no
nurse in the clinic because the nurse requires a degree. The medical officer is a
person who helping the doctor to do the registration and medication so that the
medication officer can help the doctor when the doctor is giving treatment to
patients.

To develop this system, a thorough research is needed to be done to get the
related information of this project. This system was developed smoothly with
collects enough information through interview, observation, research from internet
and discuss with project supervisor. This system can add more function which is
suitable for this system and all these function can reduce the workload for user.
Beside that, this system also can enhance the functionality of the existing system
after the research had been done to make this system more effective and easy to use
by the user.

The main feature of the system is it can manage the stock transaction (i.e.
stock purchasing, stock out, stock problem (i.e. expired, etc.)). This system also can
record all the staff and medical supplier profile such as doctor and medical officer
profile.

This system basically has separate into two users that is doctor and medical
officer. Doctor is administrator of the system where he can access and modify all the
function. Medical officer is a client of this system where he has a limited accessed of
this system. For example medical officer cannot generate the damage report but
doctor can access and generate this damage report.

3
This system will be developed using Visual Basic.Net software which
integrates with Microsoft Access. This database-driven system also can be used as a
tracking system to search and retrieve particular suppliers based on specific query
criteria.

1.3

PROJECT OBJECTIVE

MeDSys emphasize on developing functional management system for the
database record storage and it is bringing many benefits to the user. This project it
provides a various applications for the ‘clinic system’. This application can be more
useable when the several objectives were study during the project. In this case, there
are several main objectives for this project such as below;

a)

MeDSys will help to reduce man-hours per job and reduce the risk of lost
information and improve the clinic productivity.

b)

To develop a stock database management system and implement this system.

c)

To provide more convenience, effective and systematic system to manage and
maintain the stock inventory and medical suppliers.

d)

To provide more accurate and neat data / information according to specific
format standardization. To build a database-driven system to organized the
data storage for easier and better data handling, searching and retrieval.

e)

To made are system is user friendly with windows based application and
labeling of controls. It can eliminate the time-consuming and potentially in
accurate method of hand written notes and manual counting.

f)

To provide a safety storage for all the stock and vendor information, it can
reduce the risk which the record is damage cause by a flood.

4
1.4

PROBLEM STATEMENT

The main purpose of this project is to create a new idea to overcome problem
in our daily live. Nowadays, most clinics’ system is hardly to handle. Two
perspectives of problem which is a clinic with an existing system and a clinic without
existing system have to be clarified so a clinic with system is free problem and has
extra feature can be developed to help the user to do their daily routine.

For the clinic without system or manual system, many problems was
determine such as some staffs will face some difficulties in finding certain
information and take too long in searching some files because of the disorder
management and supervision. Besides that, the manual system also results some
troubles in controlling the stock IN and OUT, moreover all the data that has been
kept may have high risk in missing or damage. The manual systems are also often
giving problems for a new staff to learn and adapt with the disorder system
especially in memorize names of files, the schedules and how the system should be
managed. Furthermore, because of the non-systematic data systems, the auditing the
account for each month or year will take days to complete it.

Other then that manual system does not check the medicine storage and it will
cause the storage of medicine. This case will bring bad image for the clinic. Also the
medical officer use files system to keep track of all the stock and vendor record.
Thus, they take a long time to find the stock and vendor record manually.

To overcome these problems, a proper, convenient and systematic system
will be developed. It focuses more on controlling and monitoring the stocks and
avoids any stocks missing and redundancy data. This system will be a user friendly.
In addition, this system will give many advantages to the user. For example,
manageable systems that save cost, times and allow the efficiency in stock
supervision.

5
1.5

SCOPES

1.5.1

Project scope

This system is including the facilities of maintenance of products list, stock
and other related information. The system functionalities of MeDSys will cover from
inventory recording which include the inventory registration, inventory allocation
and the supplier or vendor information, who involve in the inventory management
and maintenance process. MeDSys provides functions to record all the report and
maintenance / service status from time to time, to manipulate and update the record.

1.5.2

Scope of user

MeDSys is used by the doctor and the medical officer. No nurse in this clinic
because the nurse required a degree. The medical officer is a person who is helps the
doctor when the doctor is busy for giving the treatment to the patients. This system
will differentiate the doctor and the medical officer password to justify what type of
user can access which form from the system. Doctor is administrator and medical
officer is a client in this system where some application cannot access by medical
officer and can access by doctor such as generate report.

a)

Doctor

The system will facilitate the job of the doctor to monitor the hold function in
this system such as stock in and out. Also the doctor can generate the damage and
stock report.

b)

Medical Officer

The system allows the medical officer to manage the stock transaction (i.e.
stock purchasing, stock out, stock problem (i.e. expired, etc.)). The system also
record all the medical suppliers / vendors for the clinic.