Senior Project Final
Senior Project Final
Senior Project Final
It is obviously believed that the Food, Medicine, and Healthcare Administration and Control
Authority (FMHACA) is responsible for drug control for the safety and well-being of all citizens
through the detection of counterfeit drugs prevention and control.
This Project is about Drug and Drug Related Validation System for Addis Ababa. It is Web
based application and assisted with Mobile Application. The Web based application helps the
organization to manage centrally and providing any information related to drug. The mobile
application is used to validate the drug.
This document can be used as a reference for anyone who is interested to upgrade the web
application as well as the mobile application which is develop now and these will develop an
advanced Drug and Drug Related Validation System for Addis Ababa City and the rest of the
cities and towns for a better Drug and Drug Related Validation System.
I|P a g e
ACKNOWLEDGEMENT
First of all, we would like to use this opportunity to express our gratitude and many thanks to
God for helping us go through all the challenges we faced particularly in the past four years.
Next, we want to thank Instructor MekuriaSinke, our advisor, for his great advice and assistance
in making this project. Our family for encouraging and supporting us in every way.
We also thank the Food, Medicine, and Healthcare Administration and Control Authority
(FMHACA) that cooperated to provide us the information we required for the project.
We are also thankful for Instructor Biniyam G/Medhin for supporting of the web and android
application development and all staff members of CPU College, Computer Science department
and all our class mates for their lovely cooperation to accomplish our project successfully.
II|P a g e
Table of Contents
ABSTRACT....................................................................................................................................................... I
ACKNOWLEDGEMENT ................................................................................................................................... II
Table of Contents ......................................................................................................................................... III
List of Finger ............................................................................................................................................... VIII
List of Tables ................................................................................................................................................. X
CHAPTER ONE ............................................................................................................................................... 1
1. Project Proposal Document .................................................................................................................. 1
1.1 Introduction .................................................................................................................................. 1
1.1.1 Background ............................................................................................................................... 1
1.2 Statement of the Problem ............................................................................................................ 3
1.3 Objective ....................................................................................................................................... 3
1.3.1 General objective ...................................................................................................................... 3
1.3.2 Specific objective ...................................................................................................................... 3
1.4 Scope of the project ...................................................................................................................... 4
1.5 Limitation ...................................................................................................................................... 4
1.6 Methodology................................................................................................................................. 4
1.6.1 Data Gathering Methodology ................................................................................................... 4
1.6.2 Development Tools ................................................................................................................... 5
1.7 Project Significance ....................................................................................................................... 6
1.8 Task Break Down ........................................................................................................................... 6
1.8.1 Team Task Break Down ............................................................................................................. 6
1.8.2 Cost Break Down ....................................................................................................................... 7
1.9 roject Schedule ............................................................................................................................. 8
2 Requirement Analysis Document ......................................................................................................... 9
2.1 Introduction .................................................................................................................................. 9
2.2 Current System ............................................................................................................................. 9
2.3 Functional Requirement ............................................................................................................. 10
2.4 Nonfunctional requirement ........................................................................................................ 11
2.4.1 User Interface and Human Factors ......................................................................................... 11
2.4.2 Documentation ....................................................................................................................... 11
III|P a g e
2.4.3 Pseudo Requirements ............................................................................................................. 12
2.4.4 Hardware and Software Consideration .................................................................................. 12
2.4.5 Performance Characteristics ................................................................................................... 12
2.4.6 Error Handling and Extreme Conditions ................................................................................. 12
2.4.7 System Interfacing .................................................................................................................. 12
2.4.8 Quality Issues .......................................................................................................................... 12
2.4.9 System Modification ............................................................................................................... 12
2.4.10 Security Issues ......................................................................................................................... 13
2.4.11 Resources and Management Issues ........................................................................................ 13
2.4.12 Content organization .............................................................................................................. 13
2.4.13 Reliability................................................................................................................................. 13
2.4.14 Availability ............................................................................................................................... 13
2.4.15 Dependability .......................................................................................................................... 13
2.4.16 Performance............................................................................................................................ 13
2.4.17 Scalability ................................................................................................................................ 13
2.5 System models ............................................................................................................................ 14
2.5.1 Use Case .................................................................................................................................. 14
2.5.2 Drug and Drug Related Validation Use Case Diagram ............................................................ 14
2.5.2.1 Actors ...................................................................................................................................... 15
2.5.2.2 Use Case Description............................................................................................................... 16
2.5.2.2.1 Login Use Case Description ................................................................................................. 16
2.5.2.2.2 Manage User Account ......................................................................................................... 17
2.5.2.2.3 Search Drug InformationUse Case Description ................................................................... 18
2.5.2.2.4 Send Drug Information for Validity Check .......................................................................... 19
2.5.2.2.5 Add Drug/Supplier/Pharmacy Information Use Case Description ...................................... 20
2.5.2.2.6 Update Supplier/Pharmacy Information Use Case Description.......................................... 21
2.5.2.2.7 Submit Drug Information Use Case Description ................................................................. 22
2.5.2.2.8 Generate Report Use Case Description .............................................................................. 23
2.5.3 Scenario................................................................................................................................... 24
2.5.3.1 Manage Account Scenario ...................................................................................................... 24
2.5.3.1.1 Change User Account Password Scenario........................................................................... 24
2.5.3.1.2 Create User Account Scenario ............................................................................................ 24
IV|P a g e
2.5.3.1.3 Active/Inactive User Account Scenario ............................................................................... 25
2.5.3.2 Search Drug Information Scenario .......................................................................................... 25
2.5.3.3 Send Drug Information for Validity Check Scenario ............................................................... 25
2.5.3.4 Submit Drug Information Scenario ......................................................................................... 26
2.5.3.5 Valid/Invalid Response Scenario ............................................................................................. 26
2.5.3.6 Add Drug/Supplier/Pharmacy Information Scenario .............................................................. 27
2.5.3.7 Update Supplier/Pharmacy Information Scenario .................................................................. 27
2.5.3.8 Generate Report Scenario....................................................................................................... 28
2.5.4 Sequence Diagram .................................................................................................................. 29
2.5.4.1 Login Sequence Diagram ......................................................................................................... 29
2.5.4.2 Create User Account Sequence Diagram ................................................................................ 30
2.5.4.3 Change User Account Password Sequence Diagram .............................................................. 31
2.5.4.4 Active/Inactive User Account Sequence Diagram .................................................................. 32
2.5.4.5 Search Drug Information Sequence Diagram.......................................................................... 33
2.5.4.6 Send Drug Information for Validity Check Sequence Diagram ............................................... 34
2.5.4.7 Add Drug/Supplier/Pharmacy Information Sequence Diagram ............................................. 35
2.5.4.8 Update Supplier/Pharmacy Information Sequence Diagram ................................................. 36
2.5.4.9 Generate Report Sequence Diagram ...................................................................................... 37
2.5.5 Activity Diagram ...................................................................................................................... 38
2.5.5.1 Login Activity Diagram ............................................................................................................ 38
2.5.5.2 Create User Account Activity Diagram .................................................................................... 39
2.5.5.3 Change User Account Password Activity Diagram .................................................................. 40
2.5.5.4 Active/Inactive User Account Activity Diagram ...................................................................... 41
2.5.5.5 Search Drug Information Activity Diagram ............................................................................. 42
2.5.5.6 Send Drug Information for Validity Check Activity Diagram ................................................... 43
2.5.5.7 Add Drug/Supplier/Pharmacy Information Activity Diagram ................................................. 44
2.5.5.8 Update Supplier/Pharmacy Information Activity Diagram ..................................................... 45
2.5.5.9 Generate Report Activity Diagram .......................................................................................... 46
2.5.6 State Diagram.......................................................................................................................... 47
2.5.6.1 Manage Account ..................................................................................................................... 47
2.5.6.2 Add/Update Drug/Supplier/Pharmacy Information ............................................................... 48
2.5.6.3 Send Drug Information............................................................................................................ 49
V|P a g e
2.5.7 User Interface.......................................................................................................................... 50
2.5.7.1 FMHACA Ethiopia Home Page ................................................................................................ 50
2.5.7.2 Login User Interface ................................................................................................................ 50
Create User Account User Interface ....................................................................................................... 51
2.5.7.3 Change User Account Password User interface ...................................................................... 51
2.5.7.4 Register Drug Information User Interface .............................................................................. 52
2.5.7.5 Register Supplier Information User Interface ......................................................................... 52
2.5.7.6 Register Pharmacy Information User Interface ...................................................................... 53
2.5.7.7 Register Supplier Information User Interface ......................................................................... 53
2.5.8 Class Diagram .......................................................................................................................... 54
Chapter Three ............................................................................................................................................. 55
3. System Design Document ................................................................................................................... 55
3.1. Introduction ................................................................................................................................ 55
3.2. Design of the System .................................................................................................................. 55
3.2.1. Design Goals ............................................................................................................................ 55
3.2.2. User Interface.......................................................................................................................... 55
3.2.3. Documentation ....................................................................................................................... 55
3.2.4. Performance............................................................................................................................ 55
3.2.5. Availability ............................................................................................................................... 55
3.2.6. Reliability................................................................................................................................. 56
3.2.7. Modifiability ............................................................................................................................ 56
3.2.8. Portability ................................................................................................................................ 56
3.3. Current Software Architecture ................................................................................................... 56
3.4. Proposed Software Architecture ................................................................................................ 56
3.5. System Decomposition ............................................................................................................... 57
3.6. Hardware and Software Mapping ............................................................................................... 64
3.7. Data Management ...................................................................................................................... 64
3.8. Access Control ............................................................................................................................. 65
3.9. Class Interfaces ........................................................................................................................... 66
3.10. Security, trend analysis, system upgrade ............................................................................... 67
3.10.1. Supplier ................................................................................................................................... 67
3.10.2. Supplier Type .......................................................................................................................... 68
VI|P a g e
3.10.3. Dosage Form ........................................................................................................................... 68
3.10.4. Drug Category ......................................................................................................................... 69
3.10.5. Pharmacy ................................................................................................................................ 70
3.10.6. Drug Info ................................................................................................................................. 71
3.10.7. Country.................................................................................................................................... 73
3.10.8. Sub city .................................................................................................................................... 73
Chapter Four ............................................................................................................................................... 74
4. Object Design Document (ODD) ......................................................................................................... 74
4.1. Introduction ................................................................................................................................ 74
4.2. Object design trade-offs ............................................................................................................. 74
Memory Vs User Interfaces Design............................................................................................................. 74
Speed Vs. Spaces ......................................................................................................................................... 75
Delivery Time Vs Quality ............................................................................................................................. 75
4.3. Interface documentation guide lines .......................................................................................... 75
4.4. Packages Definitions ................................................................................................................... 76
4.5. Class Interfaces ........................................................................................................................... 77
4.5.1. Class Definitions ...................................................................................................................... 77
Chapter Five ................................................................................................................................................ 81
5. Implementation .................................................................................................................................. 81
5.1. Introduction ................................................................................................................................ 81
5.2. Tools and Technologies Utilized for Implementation ................................................................. 81
5.3. Android Apps and Web application DDRVS ................................................................................ 82
5.4. The Prototype ............................................................................................................................. 82
5.5. Sample Code ............................................................................................................................... 82
6. User Manual ........................................................................................................................................ 94
CONCLUSION............................................................................................................................................. 100
REFERENCES .............................................................................................................................................. 101
ABBREVIATIONS AND ACRONYMS...........................................................................................................102
VII|P a g e
List of Finger
VIII|P a g e
Figure 41 Register Drug/Supplier/Pharmacy Subsystem ............................................................................ 62
Figure 42 Update Supplier/Pharmacy Subsystem ...................................................................................... 62
Figure 44 Generate Report Subsystem ....................................................................................................... 63
Figure 45 Hardware and Software Mapping ............................................................................................... 64
Figure 46 Class Interfaces ........................................................................................................................... 66
Figure 47 Supplier Dependencies ............................................................................................................... 67
Figure 48 Supplier Type Dependencies....................................................................................................... 68
Figure 49 Drug form Dependencies ............................................................................................................ 69
Figure 50 Drug Category Dependencies ..................................................................................................... 69
Figure 51 Pharmacy Dependencies............................................................................................................. 71
Figure 52 Drug Info Dependencies.............................................................................................................. 72
Figure 53 Country Dependencies ................................................................................................................ 73
Figure 54 Sub_City Dependencies .............................................................................................................. 73
Figure 55 Packages Definitions ................................................................................................................... 76
Figure 56 Drug Class Interfaces................................................................................................................... 78
Figure 57 Supplier Class Interfaces ............................................................................................................. 79
Figure 58 Pharmacy Class Interfaces .......................................................................................................... 80
Figure 59 FMHACA Home page ................................................................................................................... 94
Figure 60 UI Tabs......................................................................................................................................... 95
Figure 61 Supplier Registration Form ......................................................................................................... 95
Figure 62 Supplier Information Form 2....................................................................................................... 96
Figure 63 Supplier Information Form 3....................................................................................................... 97
Figure 64 Display Supplier Information Form 1 .......................................................................................... 98
Figure 65 Display Supplier Information Form 2 .......................................................................................... 98
Figure 66 Create a User Account ................................................................................................................ 99
Figure 67 Change a User Account Password............................................................................................... 99
IX|P a g e
List of Tables
X|P a g e
CHAPTER ONE
With the majority of the world’s population seeking required medications for various illnesses
and medical conditions day-in-day-out, there is a need for appropriate pharmaceutical drugs. The
agencies responsible for regulating and approving these pharmaceutical drugs are doing their
best to provide the general population with at least a yearly update of all registered drugs
approved for various distributions at local drug stores, hospital pharmacies, private pharmacies
and licensed chemical sellers. However, due to challenging factors such as cost of production,
middlemen distribution, research and legal issues, accessibility and reliable source of sale, there
have been more issues arising from the illegal and unregistered pharmaceutical drugs. There is
also no guarantee of an individual seeking medical help through the use of prescription drugs.
Records gained after each annual registration will be made available and it will provide the
various stakeholders with information regarding pharmaceutical drugs allowed for regulation on
the local drug markets and also the manufacturers responsible for each drug distribution. The
stakeholders to make use of the information available include manufacturers, medical
institutions, pharmacies and pharmaceutical drug importers, distributors and the general public.
The provision or availability of the system will help the public to be aware of the pharmaceutical
drugs that have being approved by the authority in charge. Also, to improve the quality of life by
the healthcare community and life in general, and awareness of unregistered and/or counterfeit
pharmaceutical drugs to the public and stakeholders. This information of registered
pharmaceutical drugs needs to be integrated and made accessible to the majority of population to
enable them to view for themselves.
1.1.1 Background
The Ministry of Health is responsible for the accessibility of quality health service to all citizens
throughout the country. Although, a number of special programs have been operational, in the
last few years, the primary health care quality still requires due attention. However, various
challenges, assumptions and bureaucratic hurdles have been hampering the progress in quality
health care delivery system. Because of this, the health care service is arbitrarily regulated
inefficiently.
In recognition to the health sector reform in Ethiopia, the regulation of all health care elements
are clearly defined from the provider and purchaser, and is redesigned to provide the public, a
dramatic result with respect to low cost, short time, high quality, and large amount of service.
1|P a g e
Accordingly, health and health related services and products quality regulation core process is
redesigned in the purpose of protecting the public from any emerging health risks.
Vision:
Mission:
“To promote and protect the public health by ensuring safety and quality of products and health
service through registration, licensing and inspection of health professionals, pharmaceuticals
food establishments and health institutions and provision of up-to-date regulatory information
while promoting rational medicine use.”
Goal
Drug reporting and verification establishments like Ethiopian FMHACA (Food, Medicines
and Healthcare Administration and Control Authority), require efficient and brilliant technique
and flexible system for proper drug management. Its main objective is to ensure every
counterfeit drug producing companies are eliminated in Ethiopia. In recent years, there has been
a rapid growth in counterfeit drugs incident which as claim a lot of lives in the country, this
predicament has created the need to build an application that will address most of the issues
address in this project work. This project work will be of vital importance to these sectors as it
will be design to address most of their challenges.
2|P a g e
1.2 Statement of the Problem
The current System Problems are:
1.3 Objective
3|P a g e
1.4 Scope of the project
The Drug verification and authentication system project helps to ensure the genuineness and
authenticity of the drugs used within the country imported from any part of the country to ours
(Addis Ababa, Ethiopia) for citizens in the domestic market and produced in our country. The
project covers all the drugs sold in our capital city Addis Ababa.
1.5 Limitation
Due to time, cost and other resources, the project will not cover the followings.
1.6 Methodology
1.6.1 Data Gathering Methodology
To collect the necessary information about the existing manual DDRVS (Drug and Drug Related
Validation System) process, data methodology is the key and helps in gathering information. In
developing this project, we have been using the following data gathering methodologies.
Interview: Interviewing employees of the FMHACA, customer, drug importers and pharmacies to
understand the situation of the existing manual work and to identify the problem clearly.
4|P a g e
Advantages: -
• The respondent is able to raise the issues she/he feels are important and express ideas in
her/his own words.
• To collect detailed information about participant’s experiences and impressions about the
existing works flow.
• To obtain feedback.
Observation: It was useful to observe how jobs are done, how information flows
and observing the way they used to perform the required task.
• To understand the situation of existing manual work and assessing whether certain
program outcomes have been met.
Document analysis: studying the documents that are used in the past, like Paper based source,
such as Research papers.
- Laptop Computer
- Samsung Edge 6plus
Software: -
- Microsoft SQL Server 2014
- Visual Studio 2015
- Android Studio 2.1.1
- Microsoft VISIO 2010
- Microsoft office 2010
- Microsoft Project 2013
- Microsoft Windows 2010
5|P a g e
1.7 Project Significance
This project will present in a precise manner, the importance of drugs validity and authenticity to
our health. It is believed that if this project work is fully implemented, it will help to reduce the
rate of counterfeit drugs production and uses among individual. It is also expected that the study
will benefit the manufacturers of this drugs that is the original company and industry; because
they will have more sales as the citizens will go for the original one, and the counterfeit will have
no sales in the market anymore.
This project will be useful to the end users or the customers in helping them to verify the drugs
they buy for medication. It is expected that the findings will expose counterfeit drug sellers in the
market and their production companies. By this exposure, the pharmaceutical industry will learn
more and stand by manufacturing quality products. It is possible that by this outcome, counterfeit
pharmaceutical industries will realistically adjust to the standard of production approved by the
world Health Organization (WHO).
6|P a g e
1.8.2 Cost Break Down
NAME TYPE QUANTITY COST
Transportation -- 670
Total 37,750.90
Table 2Cost Break Down
7|P a g e
1.9 ProjectSchedule
8|P a g e
Chapter Two
In the previous chapter, we tried to show clearly how counterfeit drugs are dangerous to the
people, how the current system works, and although the current system is unable to control and
manage counterfeit drugs.
In this chapter, we will show the proposed system models and how counterfeit drugs can be
identified.
The fundamental purpose of drugs verification and validation is to protect public health and to
ensure that drugs on national markets are safe, effective and of good quality, and used in
accordance with good practices. Drugs are important aspects of public health and must be
available and accessible to the public. To improve access to drugs, good governance is crucial
and contributes to health systems strengthening. Good governance in the pharmaceutical sector
refers to the formulation and implementation of appropriate policies and procedures that ensure
the effective, efficient and ethical management of drugs verification and validation, in a manner
that is transparent, accountable and follows the rule of law.
9|P a g e
Consume significance resources like stationary materials, man power in preparing drug
registration and daily reports.
The provision or availability of the system will help the public to be aware of the pharmaceutical
drugs that have being approved by the authority in charge. Also, to improve the quality of life by
the healthcare community and life in general, and awareness of unregistered and/or counterfeit
pharmaceutical drugs to the public and stakeholders.
Register
o Local drug producers: registers accredited and licensed drug producers who are
located in Ethiopia
o Importers: register official drug importers licensed by FMHACA
o Donors: register donors who donate drugs
o Drug stores/pharmacies: Register drug stores/pharmacies which are located in
Addis Ababa.
o Drugs: the system registers all kinds of drugs with their details which are locally
produced or imported.
Verify
o The genuineness of drugs: the system will identify whether the drug is genuine
or counterfeit whenever a user requests.
o The expired drugs: the system alerts and inactivate the expired drugs
Identify
o The type of drug: the system identifies the classification of each drug whenever
it requests
o The drug needs prescription or not: the system will differentiate between drugs
over the counter and those drugs needs prescription
Remove and update
o Drug information: the system enables the administrator to add new drug/s, delete
registered drug/s, and update drug/s information
o Producer information: the system enables the administrator to add new local
producer/s, delete registered producer/s, and update producer/s information
10|P a g e
o Importer information: the system enables the administrator to add new
importer/s, delete registered importer/s, and update importer/s information
o Donor information: the system enables the administrator to add new donor/s,
delete registered donor/s, and update donor/s information
o Drug store/pharmacy information: the system enables the administrator to add
new drug store/s or pharmacy/s, delete registered drug store/s or pharmacy/s, and
update drug store/s or pharmacy/s information
Generate report: the system enables the user to generate a periodical report
Each system also consists of non-functional requirements. In this case, when user checks drug
validity via SMS, the system needs to make response of it.
2.4.2 Documentation
The activities and outputs of each system development stage in the project workflow
will be properly documented. The documents produced at the end of each stage
should be organized and compiled together at the end of the project for future
reference, system maintenance & enhancement, and to give support. Other different
documentations shall also be compiled and provided at the completion of the project
which includes:
User Training manual
Complete Reference document
Compiled help System
11|P a g e
2.4.3 Pseudo Requirements
The prototype will be developed by extending and customizing open source
Android studio, Microsoft visual studio and Microsoft SQL development
technology to simplify implementation, maintenance and future enhancement. The
servers should run windows operating system and android, which is one of the most
widely used operating system.
12|P a g e
2.4.10 Security Issues
Security requirements are included in a system to ensure:
Unauthorized access to the system and its data not to be allowed
Ensure the integrity of the system from accidental or malicious attack
The access permissions for system data may only be changed by the system’s data
administrator
All external communications between the system’s data server and clients must be
encrypted
2.4.13 Reliability
Reliability is the ability of a system to perform its required functions under stated
conditions for a specific period of time constraints on the run-time behavior of the
systems can be considered under two separate headings
2.4.14 Availability
Availability is the system available for service when requested by end-users.
2.4.15 Dependability
Dependability of a computing system is the ability to deliver service that can
justifiably, be trusted by users
2.4.16 Performance
Performance requirements concern the speed of operation of a system
Types of performance requirements are response requirements (how quickly the
system reacts to a user input) throughout requirements (how much the system can
accomplish within a specified amount of time)
2.4.17 Scalability
The system should be easily modifiable and incorporate others functionality to
future growth
13|P a g e
2.5 System models
A system model is an abstraction describing a problem domain and/or a solution to a problem
domain
Login
Manage Account
Submit Drug
Information
Add, Update,
Delete Drug Info
Supplier
Add, Update, Delete
Record Office
Supplier Info
Generate Report
DDRV Ext System
Manager
Valid/Not Valid
14|P a g e
2.5.2.1 Actors
Actors represent people, organization, or system external to a system and interact with a system.
DDRVS will have six actors that interact with the system. These are:
a. System Administrator
b. Record Office
c. Manager
d. Supplier
e. User
f. DDRV Ext. System (Drug and Drug Related Validation External System)
15|P a g e
2.5.2.2 Use Case Description
16|P a g e
2.5.2.2.2 Manage User Account
Use Case Name Manage User Account
Identifier UC002Manage User Account
17|P a g e
2.5.2.2.3 Search Drug InformationUse Case Description
Use Case Name Search Drug Information
Identifier UC003Search Drug Information
18|P a g e
2.5.2.2.4 Send Drug Information for Validity Check
Use Case Name Send Drug Information for Validity
Check
Identifier UC004Send Drug Information for Validity Check
Actor User
19|P a g e
2.5.2.2.5 Add Drug/Supplier/Pharmacy Information Use Case Description
Use Case Name Add Drug/Supplier/PharmacyInformation
Identifier UC005 Add Drug/Supplier/PharmacyInformation
20|P a g e
2.5.2.2.6 Update Supplier/Pharmacy Information Use Case Description
Use Case Name Update Supplier/Pharmacy
Information
Identifier UC006 Update Supplier/Pharmacy Information
21|P a g e
2.5.2.2.7 Submit Drug Information Use Case Description
Use Case Name Submit Drug Information
Identifier UC007Submit Drug Information
Actor Supplier
Basic course of action 1. Supplier records each of the drugs which are
imported/producedusingMicrosoft excel
according to the format given from FMHACA
2. Supplier saves the file with .CSV or .PDF file
format
3. Supplier gives the file to the Record Office in
soft and hard copy
Exit conditions
22|P a g e
2.5.2.2.8 Generate Report Use Case Description
Use Case Name Generate Report
Identifier UC008 Generate report
Actor Manager
23|P a g e
2.5.3 Scenario
2.5.3.1 Manage Account Scenario
2.5.3.1.1 Change User Account Password Scenario
Scenario Name Manage Account (Change User Account Password)
24|P a g e
2.5.3.1.3 Active/Inactive User Account Scenario
Scenario Name Manage Account (Active/Inactive User Account)
25|P a g e
2.5.3.4 Submit Drug Information Scenario
Scenario Name Submit Drug Information
26|P a g e
2.5.3.6 Add Drug/Supplier/Pharmacy Information Scenario
Scenario Name Add Drug/Supplier/Pharmacy Information
27|P a g e
2.5.3.8 Generate Report Scenario
Scenario Name Add Supplier Information
28|P a g e
2.5.4 Sequence Diagram
29|P a g e
2.5.4.2 Create User Account Sequence Diagram
login
Return Result
(else)
User Account Created Successfully
30|P a g e
2.5.4.3 Change User Account Password Sequence Diagram
login
Password Changed
Password Changed Successfully
31|P a g e
2.5.4.4 Active/Inactive User Account Sequence Diagram
login
32|P a g e
2.5.4.5 Search Drug Information Sequence Diagram
Enter ID/Name
Respond Result
(else)
View Search Result
33|P a g e
2.5.4.6 Send Drug Information for Validity Check Sequence Diagram
Respond Result
Result Viewed
34|P a g e
2.5.4.7 Add Drug/Supplier/Pharmacy Information Sequence Diagram
login
Supplier/Pharmacy Registered
35|P a g e
2.5.4.8 Update Supplier/Pharmacy Information Sequence Diagram
login
Search Supplier/Pharmacy
Supplier/Pharmacy Updated
36|P a g e
2.5.4.9 Generate Report Sequence Diagram
login
Generate
Generate Report
37|P a g e
2.5.5 Activity Diagram
Login
View Admin
Home Page
38|P a g e
2.5.5.2 Create User Account Activity Diagram
Login
valid information
Logout
39|P a g e
2.5.5.3 Change User Account Password Activity Diagram
Login
Invalid information
valid information
Password Changed
Logout
40|P a g e
2.5.5.4 Active/Inactive User Account Activity Diagram
Login
Logout
41|P a g e
2.5.5.5 Search Drug Information Activity Diagram
Login
Enter ID/Name
Go to Search Box
Logout
42|P a g e
2.5.5.6 Send Drug Information for Validity Check Activity Diagram
Invalid Information
Valid Information
Response Received
43|P a g e
2.5.5.7 Add Drug/Supplier/Pharmacy Information Activity Diagram
Login
Invalid Information
Error Displayed
Valid Information
Drug/Supplier/Pharmacy Registered
Logout
44|P a g e
2.5.5.8 Update Supplier/Pharmacy Information Activity Diagram
Login
Search Supplier/Pharmacy
Invalid Information
Error Displayed
Valid Information
Supplier/Pharmacy Updated
Logout
45|P a g e
2.5.5.9 Generate Report Activity Diagram
Login
Go to Report Tab
Click on Generate
Logout
46|P a g e
2.5.6 State Diagram
Create
User name Create User
Exist Account
existed
inactive reactive
Inactive
47|P a g e
2.5.6.2 Add/Update Drug/Supplier/Pharmacy Information
Add Supplier
or Pharmacy
Create
Supplier or Pharmacy Add Supplier
Existed or Pharmacy
Existed
Update Update
Add
Supplier or Pharmacy
48|P a g e
2.5.6.3 Send Drug Information
Fill Drug
Information
DDRV Send
Send Drug
Existed
Information
System Existed
Response
Receives
49|P a g e
2.5.7 User Interface
50|P a g e
Create User Account User Interface
51|P a g e
2.5.7.4 Register Drug Information User Interface
52|P a g e
2.5.7.6 Register Pharmacy Information User Interface
53|P a g e
2.5.8 Class Diagram
54|P a g e
Chapter Three
3.2.3. Documentation
System Administrator and user of the system should be provided with proper documentation on
how to manage and use the system.
3.2.4. Performance
Since the system is available online for users, there may be many users using the systems at a
time; so the system should have to support multiple users at a time concurrently.
3.2.5. Availability
The system should be available at any time the user wants to access. That means the system
should be available 24 hours to provide the service.
55|P a g e
3.2.6. Reliability
The output of the system has to be always similar for the same request.
3.2.7. Modifiability
The system should be easily modifiable to support changes or upgrading without causing
problem to other systems functionality. To insure this, the system should be designed in Object
Oriented design method and implemented in Object Oriented Language.
3.2.8. Portability
The server side of the system should support requests coming from different platforms via
standard web browsers. The client side of the system should run on all android mobile phones.
The type of architecture used for the proposed system is a three tier client/server distributed
architecture, which is the client tier (UI), the middle tier (BL) and the data tier (DAL). The data
tier maintains the applications data; whereas the middle tier (web/application server) implements
the business logic, controller logic and presentation logic to control the interaction between the
application’s clients and data. The controller logic processes client requests to retrieve data from
the database. Business rules enforced by the business logic command how clients can and cannot
access application data and how applications process data.
A web server is a program that runs on a network server (computer) to respond to HTTP
requests. The most commonly used web servers are Internet Information Server (IIS). The web
server used in this system is IIS. HTTP is used to transfer data across the Internet; it is the
standard protocol for moving data across the internet.
And 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. The client tier interacts with the web/application server to make requests and to
retrieve data from the database. It then displays to the user the data retrieved from the server.
The web application is designed by ASP.NET and the mobile application is designed by Android
studio.
56|P a g e
Figure 31System Architecture diagram
DDRVS System
Web
Android
App
App
57|P a g e
System Admin Subsystem
<<Re-direct>>
<<Submit>>
<<Client Page>> <<link>> <<Form>> <<Server Page>>
Home Page Login Validate Admin
User Account DB
<<Server Page>>
Admin Page
<<Manage Account>>
<<Server Page>>
Manage Account
<<Client Page>>
Manage Account
<<Active/Inactive
<<Create Account>> <<Change Passwordt>> Account>>
58|P a g e
Create User Account Subsystem
<<Link>>
<<Submit>> <<Bulid>>
<<Server Page>>
>
Create User Account ct>
ele
<<Redirect>>
<<S
<<Server Page>>
<<Link>>
User Account List
User Account
DB
User Account
DB
<<Client Page>>
Change User Account
Password
User Account DB
<<Link>>
59|P a g e
Active/Inactive Account Subsystem
<<Client Page>>
Active/Inactive
Account
User Account DB
<<Link>>
<<Re-direct>>
<<Submit>>
<<Client Page>> <<link>> <<Form>> <<Server Page>>
Home Page Login Admin
User DB
Record Office
Page
60|P a g e
Search Drug Information Subsystem
<<Link>>
<<Submit>>
<<Server Page>>
>>
Search Drug
ect
Sel
<<Redirect>>
<<Server Page>> <<Server Page>>
<<
<<Server Page>>
Drug Information <<Link>>
Viewed
Drug
DB
Drug
DB
<<Link>>
>>
<<Submit>>
ct
le
Se
<<
<<Redirect>>
<<Server Page>> <<Server Page>> <<Server Page>>
Drug Info Valid Data Error Message
<<Bulid>> <<Link>>
Drug
DB
Drug
DB
61|P a g e
Register Drug/Supplier/Pharmacy Subsystem
>>
<<Link>>
ect
Sel
<<Submit>> <<Bulid>>
<<
<<Server Page>>
Register Drug/
Supplier/Pharmacy
<<Server Page>> <<Redirect>>
<<Server Page>>
Valid Drug/Supplier/
Error Message
Pharmacy Register
<<Link>>
Drug
DB
<<Link>>
<<Submit>> <<Bulid>>
<<Server Page>>
>
lect>
Update Supplier/
Pharmacy
<< S e
<<Server Page>>
Update Supplier/ <<Link>>
Pharmacy List
Drug
DB
Drug
DB
62|P a g e
Manager Subsystem
<<Re-direct>>
<<Submit>>
<<Client Page>> <<link>> <<Form>> <<Server Page>>
Home Page Login Admin
User DB
Manager
Page
<<Generate Report>>
<<Server Page>>
Generate Report
<<Client Page>>
Generate Report
DB
<<Link>>
63|P a g e
3.6. Hardware and Software Mapping
The hardware software mapping of the system shows the relationship between nodes and
Independent software components. The systems client application can be deployed on android
mobile device and desktop computers, the application server deploys the application subsystems
and the system resides on Database server.
64|P a g e
3.8. Access Control
Object Create Manage Send drug Submit Search Drug Register Update View Report
Account Account ID for Drug Information Drug/Supplier Drug/Supplier Drug/Supplie
Actor Verification Information /Pharmacy /Pharmacy r/Pharmacy
Information Information Information
Manager View()
65
3.9. Class Interfaces
66
3.10. Security, trend analysis, system upgrade
3.10.1. Supplier
A: Attribute
ID: IntThis attribute stores the Supplier ID of the Supplier that will added to Supplier table.
Code: nvarchar(50)his attribute stores the Code of the Supplier that will added to Supplier
table.
SupplierNmae: nvarchar(50)This attribute stores the name of the Supplier that will added to
Supplier table.
SupplerType: nvarchar(50)This attribute stores the type of Supplier that will added to
Supplier table.
PostCode: nvarchar(50)This attribute stores the Post Code of the Supplier that will added to
Supplier table.
PhoneNumber: nvarchar(50)This attribute stores the Phone Number of the Supplier that will
added to Supplier table.
ContactPerson: nvarchar(50)This attribute stores the name of Contact person of the Supplier
that will added to Supplier table.
SubCity: nvarchar(50)This attribute stores the Sub city of the Supplier that will added to
Supplier table.
Woreda: Int This attribute stores the Worda of the Supplier that will added to Supplier table.
B. Operations
+RegisterSupplier(): This function register Supplier to the Supplier table with full information.
+UpdateSupplierStatus (): This function update the status of the Supplier according to the new
Information.
+view (): This function helps users/citizen and FMHACA to view Supplier Information
C. Dependencies with Other Classes
67
3.10.2. Supplier Type
A. Attribute
ID: intThis attribute stores the ID of the Supplier type that will added to Suppliertype table.
Type: nvarchar(50) this attribute stores the type of the Sypplier that will added to Suppliertype
table.
B. Operations
+RegisterSuppliertype(): This function registertype of Supplierto the Suppliertypetable with full
information.
C. Dependencies with Other Classes
68
C. Dependencies with Other Classes
69
3.10.5. Pharmacy
A: Attribute
ID: nvarchar(50)This attribute stores the ID of the Pharmacy that will added to Pharmacy
table.
Code: nvarchar(50)This attribute stores the Code of the Pharmacy that will added to Pharmacy
table.
PharmacyName: nvarchar(50)This attribute stores the Name of the Pharmacy that will added
to Pharmacy table.
IsActive: bitThis attribute stores the pharmacy is licensed or not
IsPharmacy: bitThis attribute identifies the organization type
SubcityId: intThis attribute stores the SubCity ID of the Pharmacy that will added to Subcity
table
Woreda: nvarchar:(50)This attribute stores the woreda of the Pharmacy that will added to
Pharmacy table.
Tele:nvarchar(50)This attribute stores the Telephone Number of the Pharmacy that will added
to Pharmacy table.
Mobile: nvarchar(50)This attribute stores the Mobile Number of the Pharmacy that will added
to Pharmacy table.
contactPerson: nvarchar(50) This attribute stores the contactPersonof the Pharmacy that will
added to Pharmacy table.
B. Operations
+RegisterPharmacy(): This function register Pharmacy to the Pharmacy table with full
information.
+UpdatePharmacyStatus (): This function update the status of the Pharmacy according to the
new Information.
+view (): This function helps citizen and FMHACA officer to view Pharmacy Information
70
C. Dependencies with Other Classes
71
dosageFormId: intThis attribute stores the dosageFormId of the Drug that will be added to the
Drug Info table.
dosageStrength: nvarchar (50)This attribute stores the dosage Strength of the Drug that will
be added to the Drug Info table.
supplierId: intThis attribute stores the supplierId that will be added to the Drug Info table.
Prescription: bitThis attribute stores the prescription of the Drug that will be added to the
Drug Info table.
createdBy: nvarchar(50)This attribute stores the createdBy of the Drug that will be added to
the Drug Info table.
createdDate: DatetimeThis attribute stores the createdDate of the Drug that will be added to
the Drug Info table.
updatedBy: nvarchar(50) This attribute stores the updated By of the Drug information that
will be added to the Drug Info table.
updatedDate: nvarchar(50)This attribute stores the updatedDate of the Drug information that
will be added to the Drug Info table.
B. Operations
+Register_ Drug (): This function register Drug to the Drug Info table with full information.
+Update Drug Status (): This function update the status of the Drug according to the new Status.
+view (): This function helps FMHACA officer and Citizen to view Drug Information
C. Dependencies with Other Classes
72
3.10.7. Country
A. Attribute
id: intThis attribute stores the id of the country that will added to country table.
Country:nvarchar(50)This attribute stores the country of the manufacturer country of the drug
that will added to country table.
B. Operations
+Register_ drugcategory(): This function registersthe country of drug manufacturerto the
countrytable with full information.
73
Chapter Four
The Second section of the ODD, packages describes the decomposition of subsystem into
packages and the file organization of the code. This include an overview of each packages, its
dependencies with other packages, and its expected usage.
The third section, Classinterfaces, describes the classes and their public interfaces.
This includes an overview of each Class, its dependencies with other Classes and packages, its
public attributes, operation, and exceptions they can raise.
In this section, we will describe different packages with the interactions between them and the
class interfaces with their attributes and operations that accommodate on it. We design the
objects from the sub system point of view we pass through object design trade-offs the following
conditions.
74
Speed Vs. Spaces
DDRVS should give priority to speed than space.
Delivery Time VsQuality
If testing of DDRVStime is late, schedule ofDDRVS could be delivered with known bugs and
correct them latter.
Some of the rules we rules we used while designing are listed below:
Every part of the code is commented and well-ordered and that makes it easy to read
for the developers and administrators during time of maintenance.
Indentation is also cantered for the purpose of readability.
Class and function names should be descriptive of their function.
Packages are written in sentence case letters.
Constants are written in Capital letters with underscores
Methods when they are combinations of words are written starting with Capital case
letters followed by small letters and internals uppercase letters ,while single word
method are written with lower case letters.
All /**…**/ comments will be written by using javadoc conventions.
75
4.4. Packages Definitions
Internet
Drug Info Com.ddrvs.dal
Service Supplier
-code:nvarchar Pharmacy -Connection:string
-code:nvarchar -catagoryId:int -Comaned:string
-code:nvarchar
-name:nvarchar -genericName::nvarchar
-contactPerson -brandName:nvarchar
-pharmacyName:nvarchar -Data Table:object
-isActive:bit -DataAdapter:object
-tele:nvarchar -productionDate:datetime
-isPharmacy:bit
-mobile:nvarchar -expireDate:datetime -DataSet:obect
-subcityId:int
-poBox:nvarchar -countryId:int
Database -woreda:nvarchar
-supplierTypeId:int -manufacturedBy:nvarchar
-tele:nvarchar +ExectureQuery():object
-isLicensed:bit -batchNumber:nvarchar
-mobile:nvarchar
-serialNumber:nvarchar +ExecuteNonQuery():object
-contactPerson:nvarchar
DBtable -dosageFormId:int
+Add() -dosageStrength:nvarchar +Add()
+Update() -supplierId:int +Update()
+Delete() -prescription:bit +Delete()
+New() +New()
+Select() +Add()
+Update() +Select()
+Delete()
+New()
+Select()
+Search()
UI Package
Drug Info
Supplier
Pharmacy
-code:nvarchar
-code:nvarchar -catagoryId:int -code:nvarchar
-name:nvarchar -genericName::nvarchar -pharmacyName:nvarchar
-contactPerson -brandName:nvarchar -isActive:bit
-tele:nvarchar -productionDate:datetime -isPharmacy:bit
-mobile:nvarchar -expireDate:datetime -subcityId:int
-poBox:nvarchar -countryId:int -woreda:nvarchar
-supplierTypeId:int -manufacturedBy:nvarchar -tele:nvarchar
-isLicensed:bit -batchNumber:nvarchar -mobile:nvarchar
-serialNumber:nvarchar -contactPerson:nvarchar
-dosageFormId:int
+Add() -dosageStrength:nvarchar +Add()
+Update() -supplierId:int +Update()
+Delete() -prescription:bit +Delete()
+New() +New()
+Add() +Select()
+Select()
+Update()
+Delete()
+New()
+Select()
+Search()
In this part of the ODD we have five packages;BL package, DAL package, User Interface
package, the Data base package, Outer package (for Validity service). Every one of the
listed packages are responsible to one or more features of the system.
The Business Logic is a central package and is responsible for managing the other packages. It
monitors the overall system goals like registration & management of add, update, delete, new,
select drug, supplier and pharmacy information and generate report.
76
User Interface (UI)
This package is the user interface package & consists of user interfaces which are
responsible for the interaction between users and the system.
DAL (Data Access Layer)
This package consists the Execute-Query and Execute-Non-Query
Outer package
This package responsible for internet service, infrastructure of the ETC, which is a
medium to connect a user to the system for the purpose of drug validation.
Database package
This package is responsible for the DDRVS database and tables.
CDrugInfo Class
This class is responsible for managing Drug’s information.
Attributes
77
Drug Info <<pre
<<Postcondition>>
Condition>>
<<Pre Condition>> Drug registered
<<pre condition>> -code:nvarchar
The form filled with
records -catagoryId:int
-genericName::nvarchar
-brandName:nvarchar
-productionDate:datetime <<pre
<<Postcondition>>
Condition>>
-expireDate:datetime Drug updated
<<Pre condition>>
<<pre Condition>> -countryId:int
Drug table must have
record/s
-manufacturedBy:nvarchar
-batchNumber:nvarchar
-serialNumber:nvarchar <<pre
<<Postcondition>>
Condition>>
-dosageFormId:int Drug deleted
<<Pre condition>>
<<pre Condition>> -dosageStrength:nvarchar
Drug table must have -supplierId:int
record/s
-prescription:bit <<pre
<<Postcondition>>
Condition>>
Form cleared
<<pre condition>>
<<Pre Condition>>
+Add()
+Update()
+Delete()
+New()
<<pre
<<Postcondition>>
Condition>>
+Select()
Drug selected
<<Pre condition>>
Condition>> +Search()
<<pre
Drug table must have
record/s
<<pre
<<Postcondition>>
Condition>>
<<Pre
<<pre Condition>>
condition>> Record found
Drug table must have
record/s
Methods
Attributes
78
Name: it holds the name of asupplierwhich is registered
contactPerson: it holds the name of apersonwho is responsible for a specific
supplier
tele: it holds the fixed line phone number of a supplier
mobile: it holds the mobile phone number of a supplier
poBox: it holds the P.O.Box code of a supplier
isLicensed: which identifies a supplier is licensed or not
<<pre
<<Pre condition>>
Condition>> <<Post Condition>>
<<pre condition>>
The form filled with Supplier registered
records
Supplier
<<Pre condition>>
<<pre Condition>> -code:nvarchar
Supplier table must -name:nvarchar <<pre
<<Postcondition>>
Condition>>
have record/s Supplier updated
-contactPerson
-tele:nvarchar
-mobile:nvarchar
<<Pre Condition>>
<<pre condition>> -poBox:nvarchar
Supplier table must -supplierTypeId:int <<pre
<<Postcondition>>
Condition>>
have record/s -isLicensed:bit Supplier deleted
<<pre
<<Pre condition>>
Condition>>
+Add() <<pre
<<Postcondition>>
Condition>>
+Update() Form cleared
+Delete()
+New()
+Select()
<<pre
<<Postcondition>>
Condition>>
<<pre
<<Pre condition>>
Condition>> Supplier selected
Supplier table must
have record/s
Methods
Save()- holds the logic, responsible for saving Supplier’s information.
Update()-holds the logic, responsible for updating Supplier’s information.
Delete()-holds the logic, responsible for removing Supplier’s information.
Select()-holds the logic, responsible for retrieving Supplier’s information
fromgrid view to the drug registration form.
New()-holds the logic, responsible for clearingthe supplier
registrationform.
CRegisterParmacy Class
This class isresponsible for managing Pharmacy’s information.
Attributes
Id: which identifies suppliers uniquely
Code: a special supplier identifier which identifies a single supplier
pharmacyName: it holds the name of asupplierwhich is registered
isActive: which identifies a pharmacy is active or not
79
isPharmacy: which identifies either a pharmacy or a drug store
woreda: it holds the pharmacy’s location
tele: it holds the fixed line phone number of a pharmacy
mobile: it holds the mobile phone number of a pharmacy
contactPerson: it holds the name of apersonwho is responsible for a specific
pharmacy
<<pre
<<Pre condition>>
Condition>> <<Postcondition>>
<<pre Condition>>
The form filled with Pharmacy registered
records
<<Pre condition>>
<<pre Condition>> Pharmacy
Pharmacy table must <<pre
<<Postcondition>>
Condition>>
-code:nvarchar Pharmacy updated
have record/s
-pharmacyName:nvarchar
-isActive:bit
-isPharmacy:bit
<<Pre Condition>>
<<pre condition>> -subcityId:int
Pharmacy table must <<pre condition>>
<<Post Condition>>
-woreda:nvarchar
have record/s Pharmacy deleted
-tele:nvarchar
-mobile:nvarchar
-contactPerson:nvarchar
<<pre
<<Pre condition>>
Condition>> <<pre
<<Postcondition>>
Condition>>
+Add() Form cleared
+Update()
+Delete()
+New()
+Select() <<pre
<<Postcondition>>
Condition>>
<<pre M
<<Pre condition>>
Condition>>
Pharmacy selected
Pharmacy table must
have record/s
e
Methods
80
Chapter Five
5. Implementation
The previous chapter presented the detail of the proposed Android apps and Web application
DDRVS. This chapter discusses the prototype implementation of the system by stating the
objectives of the prototype, tools and technologies used.
5.1. Introduction
The prototype implementation developed in this project is principally aimed at providing
proof of Web Application and mobile app DDRVS management system can replace the semi-
automated registration that is currently going on in Addis Ababa.
• Visual Studio 2015 with the language visual C# and ASP.Net server is used for
developing the desktop machine edition of the prototype.
• Microsoft SQL Server 2014 database server version 8.0 is used for persistent data
management on the m-learning server.
• Android SDK Android is a software stack for mobile devices that includes an operating
system, middleware and key applications. The Android SDK provides the tools and APIs
necessary to begin developing the application on the Android platform using the Java
programming language.
• Microsoft Windows Server 2012 R2 Operating System is used for the DDRVS
registration management system.
82
<NavigationButtonStyleBackColor="White"BorderColor="#507CD1"
BorderStyle="Solid"BorderWidth="1px"Font-Names="Verdana"
ForeColor="#284E98"/>
<SideBarButtonStyleBackColor="#507CD1"Font-Names="Verdana"
ForeColor="White"/>
<SideBarStyleBackColor="#507CD1"Font-Size="0.9em"VerticalAlign="Top"/>
<StepStyleFont-Size="0.8em"/>
</asp:CreateUserWizard>
<asp:Panelrunat="server"ID="pnlOne">
<tablestyle="width: 100%">
<tr>
<tdcolspan="4">
<h1class="title ui-widget-header ui-corner-all"style="border: 1px solid rgb(66, 151,
215); background: rgb(92, 156, 204) url('') repeat-x 50% 50%; color: rgb(255, 255, 255);
border-radius: 5px; height: 85px; padding: 0px 10px 10px; font-family: Arial, Helvetica,
sans-serif; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing:
normal; orphans: 2; text-align: left; text-indent: 0px; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;">Drug Information</h1>
</td>
</tr>
<tr>
<tdcolspan="2">
<asp:LabelID="lblMsg"runat="server"ForeColor="#0066FF"></asp:Label>
</td>
<tdstyle="width: 162px;">
</td>
<td>
<asp:ScriptManagerID="ScriptManager1"runat="server">
</asp:ScriptManager>
</td>
83
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label2"runat="server"CssClass="form-text"Text="Code"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px; width: 162px;">
<asp:TextBoxID="txtDCode"runat="server"CssClass="form-group"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="height: 19px; width: 51px"></td>
<tdstyle="width: 169px; height: 19px; border-style: inset; border-width: 3px; padding:
1px 4px">
<asp:LabelID="Label3"runat="server"Text="Name"></asp:Label>
</td>
<tdstyle="height: 19px; border-style: inset; border-width: 3px; padding: 1px 4px; width:
162px;">
<asp:TextBoxID="txtDName"runat="server"></asp:TextBox>
</td>
<tdstyle="height: 19px"></td>
</tr>
<tr>
<tdstyle="height: 24px; width: 51px"> </td>
<tdstyle="width: 169px; height: 24px; border-style: inset; border-width: 3px; padding:
1px 4px">
<asp:LabelID="Label4"runat="server"Text="Catagory"></asp:Label>
</td>
<tdstyle="height: 24px; border-style: inset; border-width: 3px; padding: 1px 4px; width:
162px;">
<asp:DropDownListID="drpDCatagory"runat="server">
<asp:ListItemValue="1">Antibiotic</asp:ListItem>
<asp:ListItemValue="2">ARVD</asp:ListItem>
<asp:ListItemValue="3">GIT</asp:ListItem>
<asp:ListItemValue="4">Antihelmetic</asp:ListItem>
<asp:ListItemValue="5">ENT</asp:ListItem>
<asp:ListItemValue="6">Dermatologic</asp:ListItem>
<asp:ListItemValue="7">CNS</asp:ListItem>
<asp:ListItemValue="8">Antisychotic</asp:ListItem>
<asp:ListItemValue="9">NSAIDs</asp:ListItem>
<asp:ListItemValue="10">Respiratory</asp:ListItem>
<asp:ListItemValue="11">Anticancer</asp:ListItem>
<asp:ListItemValue="12">Antidiabetic</asp:ListItem>
</asp:DropDownList>
</td>
<tdstyle="height: 24px"> </td>
</tr>
<tr>
<tdstyle="height: 24px; width: 51px"> </td>
<tdstyle="width: 169px; height: 24px; border-style: inset; border-width: 3px; padding:
1px 4px">
<asp:LabelID="Label5"runat="server"Text="Generic Name"></asp:Label>
</td>
<tdstyle="height: 24px; border-style: inset; border-width: 3px; padding: 1px 4px; width:
162px;">
<asp:TextBoxID="txtDGeneric"runat="server"></asp:TextBox>
</td>
84
<tdstyle="height: 24px"> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label6"runat="server"Text="Bramd Name"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px; width: 162px;">
<asp:TextBoxID="txtDBrand"runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label7"runat="server"Text="Production Date"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px; width: 162px;">
<asp:TextBoxID="txtDPDate"runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label8"runat="server"Text="Expire Date"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px; width: 162px;">
<asp:TextBoxID="txtDExpDate"runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label9"runat="server"Text="Country"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px; width: 162px;">
<asp:TextBoxID="txtDCountry"runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label10"runat="server"Text="Manufactured By"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px; width: 162px;">
<asp:TextBoxID="txtDMBy"runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px"> </td>
<tdstyle="width: 162px">
<asp:LinkButtonID="lnkDNext"runat="server"class="current"OnClick="btnNext_Click">Next</as
p:LinkButton>
85
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px"> </td>
<tdstyle="width: 162px"> </td>
<td> </td>
</tr>
</table>
<p>
</p>
<asp:PanelID="pnlTwo"runat="server"Visible="False">
<tablestyle="width: 100%">
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label1"runat="server"Text="Batch Number"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px;"colspan="2">
<asp:TextBoxID="txtDBatch"runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label11"runat="server"Text="Serial Number"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px;"colspan="2">
<asp:TextBoxID="txtDSerial"runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="height: 24px; width: 51px"> </td>
<tdstyle="width: 169px; height: 24px; border-style: inset; border-width: 3px; padding:
1px 4px">
<asp:LabelID="Label12"runat="server"Text="Dosage Form"></asp:Label>
</td>
<tdstyle="height: 24px; border-style: inset; border-width: 3px; padding: 1px
4px;"colspan="2">
<asp:DropDownListID="drpDDForm"runat="server">
<asp:ListItemValue="1">Oral</asp:ListItem>
<asp:ListItemValue="2">Ophthalmic</asp:ListItem>
<asp:ListItemValue="3">Inhalational</asp:ListItem>
<asp:ListItemValue="4">Parenteral</asp:ListItem>
<asp:ListItemValue="5">Suppository</asp:ListItem>
</asp:DropDownList>
</td>
<tdstyle="height: 24px"></td>
</tr>
<tr>
<tdstyle="height: 24px; width: 51px"> </td>
<tdstyle="width: 169px; height: 24px; border-style: inset; border-width: 3px; padding:
1px 4px">
<asp:LabelID="Label13"runat="server"Text="Dosage Strength"></asp:Label>
</td>
86
<tdstyle="height: 24px; border-style: inset; border-width: 3px; padding: 1px
4px;"colspan="2">
<asp:TextBoxID="txtDDStrength"runat="server"></asp:TextBox>
</td>
<tdstyle="height: 24px"> </td>
</tr>
<tr>
<tdstyle="height: 24px; width: 51px"> </td>
<tdstyle="width: 169px; height: 24px; border-style: inset; border-width: 3px; padding:
1px 4px">
<asp:LabelID="Label14"runat="server"Text="Suplier ID"></asp:Label>
</td>
<tdstyle="height: 24px; border-style: inset; border-width: 3px; padding: 1px
4px;"colspan="2">
<asp:TextBoxID="txtDSupId"runat="server"></asp:TextBox>
</td>
<tdstyle="height: 24px"> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label15"runat="server"Text="Prescription"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px; width: 84px;">
<asp:RadioButtonID="rdoPreYes"runat="server"GroupName="Pre"Text="Yes"/>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px; width: 84px;">
<asp:RadioButtonID="rdoPreNo"runat="server"GroupName="pre"Text="No"/>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label16"runat="server"Text="Created By"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px;"colspan="2">
<asp:TextBoxID="txtDCBy"runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label17"runat="server"Text="Created Date"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px;"colspan="2">
<asp:TextBoxID="txtDCDate"runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label18"runat="server"Text="Updated By"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px;"colspan="2">
<asp:TextBoxID="txtDUBy"runat="server"></asp:TextBox>
87
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px; border-style: inset; border-width: 3px; padding: 1px 4px">
<asp:LabelID="Label19"runat="server"Text="Update Date"></asp:Label>
</td>
<tdstyle="border-style: inset; border-width: 3px; padding: 1px 4px;"colspan="2">
<asp:TextBoxID="txtDUDate"runat="server"></asp:TextBox>
</td>
<td> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px">
<asp:LinkButtonID="lnkDNew"runat="server"OnClick="lnkDNew_Click">New</asp:LinkButton>
</td>
<tdcolspan="2">
<asp:LinkButtonID="btnDSave"runat="server"OnClick="btnDSave_Click">Save</asp:LinkButton>
</td>
<td> </td>
</tr>
</table>
<p>
</p>
<tablestyle="width: 50%">
<tr>
<tdcolspan="4">
</td>
</tr>
<tr>
<tdcolspan="4"> </td>
</tr>
<tr>
<tdstyle="width: 51px"> </td>
<tdstyle="width: 169px"> </td>
<td> </td>
<td> </td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
</asp:Content>
88
Android App Sample Code
packageddrvs.com.ui;
importandroid.os.Bundle;
importandroid.support.design.widget.FloatingActionButton;
importandroid.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
importandroid.view.Gravity;
importandroid.view.View;
importandroid.widget.Button;
importandroid.widget.EditText;
importandroid.widget.Toast;
importcom.qa.ddrvs.R;
importjava.sql.Connection;
importjava.sql.ResultSet;
importjava.sql.ResultSetMetaData;
importjava.sql.Statement;
importddrvs.com.connetction.ConnectionClass;
EditText _batchNo1;
EditText _batchNo2;
Button _btncheck;
@Override
super.onCreate(savedInstanceState);
89
setContentView(R.layout.activity_validet_app);
setSupportActionBar(toolbar);
fab.setOnClickListener(new View.OnClickListener() {
@Override
.setAction("Action", null).show();
});
init();
//Validation
String ed = _batchNo1.getText().toString().trim();
_btncheck.setEnabled(true);
else
90
_btncheck.setEnabled(true);
String bn = validateDrug(_batchNo1.getText().toString());
_btncheck.setOnClickListener(new View.OnClickListener(){
@Override
String id = _batchNo1.getText().toString();
String bn = validateDrug(id);
msg.setGravity(Gravity.CENTER, 0, 0);
msg.show();
else
msg.setGravity(Gravity.CENTER, 0, 0);
msg.show();
});
91
private String validateDrug(String batchNo) {
String bn = "";
String z="";
try {
if (con == null) {
} else {
ResultSetrs = stmt.executeQuery(query);
ResultSetMetaDatametaData = rs.getMetaData();
try {
while (rs.next()) {
//Integer id, String date, String fxtype, long fxBuyer, long fxSeller, String bank, String
curType
bn = rs.getString("batchNumber");
finally {
stmt.close();
92
}
isSuccess = false;
z = "Exceptions";
returnbn;
93
Chapter Six
6. User Manual
The User Manual contains all essential information for the user to make full use of the
information system. This manual includes step-by-step procedures for system access and use.
The user manual shows all necessary steps by graphically
94
To Register Supplier:
Login with a privileged user account Click on Register menuClick on Supplier
Figure 60 UI Tabs
Fill the form with appropriate data Click on SaveConfirmation message will appear
95
To Update Supplier:
Login with a privileged user account Select a record from grid viewthe record will
display on the formChange any of the record on the form Click on Savebutton
Confirmation message will appear
96
To Delete Supplier:
Login with a privileged user account Select a record from grid viewClick on Delete
button Confirmation message will appear
Figure 63 Supplier Information Form 3
97
To See Registered Suppliers:
Open the FMHACA home page Click on Registered menuClick on Registered
Supplier
Note: If you want to Register, Update, Delete and to see Registered Drug Information and
Pharmacy you can use the same step as you use for supplier.
98
To Create a User Account:
Open FMHACA’s home pageClick on Register as a new userYou will be asked to
login with a privileged user account Fill the form with the appropriate
informationClick on Create User
99
CONCLUSION
DRUG AND DRUG RELATED VALIDATION SYSTEM (DDRVS) in one of the problem
in the country and Addis Ababa, takes the highest number of counterfeit drugs sold. Food,
Medicine, and Healthcare Administration and Control Authority (FMHACA) is the
organization responsible for controlling and administration of drugs.
To minimize the impact of counterfeit drugs in Ethiopia, it needs the participation of each
stakeholders and citizens. But the current drug and drug related registration, processing, and
reporting system is paper based and semi-automated which makes it difficult to get reliable,
accurate, and complete data about each drugs and drug related occurring in the city and for
sharing of information among the stakeholders and citizens .
In this project, we developed a mobile based DDRVS system that makes to reduce
counterfeit drugs and awareness of drug and drug related validation system done by using an
application that runs on an android mobile phone or tablet.
Future Work
Some of the possible future works that strengthens the system so that it will be more useful
and be somewhat complete and as well be capable of supporting the different functionalities
needed related to drug and drug related validation system are listed as follows:
A Control system that identifies pharmacies and suppliers which sold and import
counterfeit drugs
100
REFERENCES
https://www.google.com/
Nicklaus Wirth, A brief history of software engineering, IEEE Computer Society, 2008
https://en.wikipedia.org
101
ABBREVIATIONS AND ACRONYMS
BL: - Business Logic
102