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
v
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.
vii
ABTRACT
viii
ABTRACT
ix
CONTENT
CHAPTER TITLE PAGE
PROJECT TITLE
CONFIRMATION REPORT STATUS
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
I 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
x
1.6 Project Methodology 6
1.7 Project Structure 7
II 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
Medsys System
17
2.4 Software Requirement 18
2.4.1 Visual Studio.NET 19
2.4.2 Visual Basic.NET 19
2.4.3 Difference Between VB And
VB.NET 20
2.4.4 Microsoft Access 21
2.5 System Development Approach 22
2.5.1 Waterfall Model 22
2.5.2 Advantage & Disadvantage 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 Install Visual Studio 2005 31 3.3.2 Create New Application
Medsys.Vb 32
3.3.3 Adding Control To Form 33 3.3.4 Modified Hungarian Notation 34 3.3.5 Create Database Using
Microsoft Access 35
3.3.6 Code Editor 36
3.3.7 Built And Run MeDSys.Vb 36 3.4 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
3.5 General Procedure 41
3.5.1 Sub Procedure, Part I 41 3.5.2 Difference Between Event
Procedure And Sub Procedure 42
3.6 Repetition 42
xii
3.6.2 Try Statement 43
3.7 Database Files 44
3.7.1 ADO.NET 45
3.7.2 Medsys Connection 47
3.7.3 Connecting To An OLE DB
Data Source 48
3.7.4 Data Adapter 49
3.7.5 Dataset 52
3.7.6 Relations Between Datatables
In A Dataset 53
3.7.7 Window Form 53
3.8 Conclusion 54
IV 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
xiii
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
4.5 Flow Chart Of System 81
V CONCLUSION AND RECOMMENDATION
5.1 Conclusion 98
5.2 Recommendation 99
V REFERENCE 100
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
xv
LIST OF FIGURE
NO TITLE PAGE
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 47
3.23 Connection to open database.mdb 48 3.28 Example Of registration form GUI 53
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
xvii 4.36 Flowchart of Medical Officer form 93 4.37 Flowchart of Generates report form 94
4.38 Flowchart of damage form 95
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
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
CHAPTER I
INTRODUCTION
1.1 PROJECT OVERVIEW
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.
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.
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.
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