The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by samxaidi6, 2021-11-11 01:29:58

Pharma_Hub Nov.2 2021

Pharma_Hub Nov.2 2021

PHARMA-HUB: CONNECTING
PHARMACIES ONLINE

Submitted By
Qurat ul Ain
AU-02-05-08873
Tayyaba Nosheen
AU-02-05-08878
Samreen Akbar
AU-02-05-08882
Aiman Zaidi
AU-02-05-08902

Supervised by:
Ms. Lubna Meer

Submitted in partial fulfillment of the
Degree of Bachelor of Studies
In Computer Science.

FAZAIA BILQUIS COLLEGE OF EDUCATION FOR WOMEN, PAF
NUR KHAN, RAWALPINDI
AUGUST, 2021

This work, entitled
“Pharma-Hub: Connecting Pharmacies Online” has been

approved for the award of

Bachelors of Studies in Computer Science

Date: August, 2021

Supervisor: Ms. Lubna Meer
External Examiner: Dr. Saleem Iqbal
Head of Department: Dr. Beenish Abbas

Department of Computer Science

FAZAIA BILQUIS COLLEGE OF EDUCATION
FOR WOMEN, PAF NUR KHAN,
RAWALPINDI

Intellectual Property Right Declaration

This is to declare that the work under the supervision of Ms, Lubna Meer
having title “Pharma Hub: Connecting Pharmacies Online” carried out in
partial fulfilment of the requirements of Bachelor of Studies in Computer
Science, is the sole property of the Fazaia Bilquis College Of Education For
Women and is protected under the intellectual property right laws and
conventions. It can only be used for purposes like extension for further
enhancement, product development, adoption for commercial/organizational
usage, etc., with the permission of the University.

Date: August, 2021

Qurat ul Aain Signature:
Tayyaba Nosheen Signature:
Samreen Akbar Signature:
Aiman Zaidi Signature:

I

ANTI-PLAGIARISM DECLARATION

This is to declare that the above publication produced under the supervision
of Ms.Lubna Meer having title “Pharma-Hub: Connecting Pharmacies
Online” is the sole contribution of the author(s) and no part hereof has been
reproduced on as it is basis (cut and paste) which can be considered as
plagiarism. All referenced parts have been used to argue the idea and have
been cited properly. I/We will be responsible and liable for any consequence
if violation of this declaration is determined.

Date: August, 2021 Signature:
Signature:
Qurat ul Aain Signature:
Tayyaba Nosheen Signature:
Samreen Akbar
Aiman Zaidi

II

ACKNOWLEDGMENTS

In the name of Allah, the Most Gracious and the Most Merciful
Alhamdulillah, all praises to Creator of the universe for the strengths and His
blessing in completing this project. This study is nothing, but an effort to
understand and articulate the principles of one of the several hundred
thousand phenomena, with a tool, the brain, a precious gift from Almighty.
We would like to express our sincere gratitude to our advisor Ms Lubna Meer
for the continuous support of our BS project, for her patience, motivation,
enthusiasm, and immense knowledge. Her guidance helped us in all the time
of research and writing of this thesis.

Qurat ul Aain
AU-02-05-08873
Tayyaba Nosheen
AU-02-05-08878
Samreen Akbar
AU-02-05-08882
Aiman Zaidi
AU-02-05-08902

III

DEDICATION

We dedicate this project to the sake of Allah, our creator, and our great
teacher and messenger, Muhammad (May Allah Bless and Grant him), who
taught us the purpose of life. Our beloved supervisor, Ms Lubna Meer leads
us through the valley of darkness with light of hope and support. Our great
parents never stopped giving of themselves in countless ways. Our friends
have encouraged and supported us. All the people in our life who helped us
in completing this project, we dedicate this project to them.

IV

TABLE OF CONTENT

ANTI-PLAGIARISM DECLARATION..............................................................II
ACKNOWLEDGMENTS ................................................................................... III
DEDICATION...................................................................................................... IV
TABLE OF CONTENT ..........................................................................................1
LIST OF FIGURES ................................................................................................3
LIST OF TABLES ..................................................................................................4
ABSTRACT .............................................................................................................5
Chapter 1 INTRODUCTION.................................................................................6
1.1 Purpose of the Project..........................................................................................9
1.2 Purpose of this Document .................................................................................10
1.3 Overview of this Document...............................................................................10
1.4 Existing System……. ........................................................................................10
1.5 Literature Review….. ........................................................................................12
1.6 Research Gap………………………………………………………………….14
1.7 Problem Statement……………………………………………………………14
1.8 Scope of this Project…………………………………………………………..14
1.9 Tools and Techniques........................................................................................14
Chapter 2 SYSTEM ANALYSIS.........................................................................15
2.1 System Requirements ........................................................................................15
Chapter 3 DESIGN CONSIDERATIONS..........................................................17
3.1 Design Constraints…………………………………………………………….17
3.2 Android Studio………………………………………………………………...17
3.3 SQL Server Management Studio.......................................................................20
3.4 Visual Studio…………………………………………………………………..21
Chapter 4 SYSTEM DESIGN..............................................................................24
4.1 Working of Proposed System ............................................................................24
Chapter 5 IMPLEMENTATION ........................................................................30
5.1 Development……….………………………………………………………….30
Chapter 6 TESTING AND EVALUATION .......................................................34
6.1 Testing……………… .......................................................................................34
6.2 Unit Testing…………. ......................................................................................34
6.3 System Testing………………………………………………………………...40
6.4 Results……………… .......................................................................................40

1

Chapter 7 CONCLUSION AND FUTURE WORK ..........................................48
7.1 Conclusion………… ………………………………………………………….48
7.2 Future Work…………………………………………………………………...48
REFERENCES ......................................................................................................49

2

LIST OF FIGURES

Figure 1 Android Studio ..................................................................................................... 18
Figure 2 SQL Server ........................................................................................................... 21
Figure 3 Visual Studio ........................................................................................................ 22
Figure 4 Features of Visual Studio ..................................................................................... 22
Figure 5 Data Flow View of Proposed System................................................................... 25
Figure 6 Android App Used Case Diagram........................................................................ 26
Figure 7 Android Used Case Diagram................................................................................ 26
Figure 8 Entity Relationship Diagram ................................................................................ 28
Figure 9 Test Case 1 Sign up .............................................................................................. 34
Figure 10 Test Case 1 Database.......................................................................................... 35
Figure 11 Test Case 2: Map................................................................................................ 36
Figure 12 Test Case 3: Place Order .................................................................................... 37
Figure 13 Test Case 3 Place Order ..................................................................................... 37
Figure 14 Test Case 3 Order Database ............................................................................... 37
Figure 15 Test Case 4 Order History .................................................................................. 38
Figure 16 Splash Screen ..................................................................................................... 40
Figure 17 Walk through Screen 1 ....................................................................................... 41
Figure 18 Walkthrough Screen 2 ........................................................................................ 41
Figure 19 Sign up................................................................................................................ 42
Figure 20 Sign Up............................................................................................................... 42
Figure 21 Login .................................................................................................................. 43
Figure 22 Home Screen ...................................................................................................... 43
Figure 23 Map..................................................................................................................... 44
Figure 24 Medicine List...................................................................................................... 44
Figure 25 Order Details ...................................................................................................... 45
Figure 26 Cart ..................................................................................................................... 45
Figure 27 Order History...................................................................................................... 46
Figure 28 Check Out Screen ............................................................................................... 46
Figure 29 Check Out Screen ............................................................................................... 47

3

LIST OF TABLES

Table 1 Software Specification........................................................................................... 17
Table 2 Hardwar Specification ........................................................................................... 17
Table 3 Code Testing.......................................................................................................... 33
Table 4 Test Case 1: Sign Up ............................................................................................. 35
Table 5 Test Case 2: Map ................................................................................................... 36
Table 6 Test Case 3: Place Order........................................................................................ 38
Table 7 Test Case 4: Order History .................................................................................... 39
Table 8 System Testing....................................................................................................... 40

4

ABSTRACT

In world of vast computing the manual system of pharmacies to the computing
system, when man has made himself acclimated to being a part of technology.
Time management is critical for us to keep up with the advancement of science.
Due to recent pandemic having access to medicines is a critical issue. Patients are
crowded in front of pharmacies which leads to patients’ dissatisfaction and
stressful work environment for the pharmacists. Pharmacies Central Hub is a
system that connects the databases of all the pharmacies in the city together for a
better flow of work. It is to be used by hospitals and their pharmacies to improve
the working environment and patients’ satisfaction in the future. This system is
designed for hospitals that have an attached pharmacy as a whole organization,
individual pharmacies and people looking for medicines.

Keywords:

Acclimated, Central Hub, Database

5

Chapter 1 INTRODUCTION

As long as there is a community, there are professional doctors and doctors
whose only purpose is to prepare and use drugs. Early physicians were
involved in what is now called Pharmacognosy, that is, research into the use
of herbs and medicinal plants. Evidence from early humans who use
Pharmacognosy to treat diseases. Undeniably, archaeological discoveries
attest to this prior to agricultural development or breeding. The origin of the
old pharmacy. This technique is performed when the first person squeezes the
juice from the watery leaves and rubs it on the wound. In Greek mythology,
Asclepius, the god of healing arts, entrusted Hygeia with the responsibilities
of integrated medicine. You are his pharmacist or pharmacist. Egyptian
physicians and priests fall into two categories: those who visit the sick and
those who live in the temple to prepare medicines for the sick (Homan,
2008). The pharmaceutical industry goes back to at least the Sumerians living
in present-day Iraq about 4000 BC they use medicinal plants such as ice
wine, mustard, myrrh and opium. There is only one person in charge of drug
preparation, who has a distinct role in medical examinations and treatment.
The pioneers of these pharmacists also included their roles and those of the
priests. The Sumerians wrote the first commandments that existed at least
2700 BC. – About 5000 years ago (Griggs, 1999). The ancient Egyptians had
professional healers called Pastophor. Pharmacies are regarded as the
supreme branch of medicine, and also, like the Sumerians, these pharmacists
are priests who work and work in temples (Anderson, 2005).
There were stalls and shops selling medical supplies about the year 1900 BC.
In the Cypriot city of the Euphrates. However, the first drug registration in
London opened in 1345.
Due to the size and quality of pharmaceutical services, pharmacies constitute
a very large clientele. These customers often visit pharmacies mainly because
of working hours. During this period, a large number of customers flock to
pharmacies, making the work of pharmacists more difficult. In this case,
pharmacists will encounter difficult customers in a short period of time.

6

Pharmacists need to ensure that they are providing service solutions to
customers. The above factors delay the delivery of services to consumers and
in the long run there is a risk of losing valuable customers and slowing down
sales.
In the world of vast computing when man made himself used to be a part of
technology, it is necessary to deviate the manual system of medical stores to
the computing system. Time management is significant and paramount for us
to move with the enhancement in reference to science.
Nowadays, information and communication technologies (ICT) play an
important role in every area or area of health care plans. This has led to
various studies and research carried out in selected health facilities. There is a
need to ensure a technologically reasonable, fair, affordable, efficient,
flexible, and consumer-oriented system that aims to get the most out of ICT
in the health sector. Computers here are very effective in protecting data and
making it easy to access in a short period of time. In order to use ICT in the
health system, a pharmacy management system is being developed. The
pharmacy management system is a powerful integrated technology. The
pharmacy management system manages the storage and use of drugs in the
pharmacy department. The establishment of a pharmacy management system
will ensure an adequate supply of drugs. A pharmacy management system
will be put in place to detect drug interactions. Generally, pharmacy
management systems are based on computer technology that provides
services to users, managed by pharmacists who provide fair working hours,
and allow you to eliminate wasted time, save resources, easy access to drug
data, data entry security and data access methods. These are all manually
deleted systems.
Initially, pharmacists spend time dealing with customers, and the company
can actually take care of itself. However, the cost (time and money) of doing
business is now forcing pharmacists to spend less and less time with
customers and more time on pharmacy management. In addition, in the face
of growing customer demand and growing threats of competition, owners of
independent pharmacies face serious challenges. The development of
information technology in the 20th century has had a major impact on the

7

computerization of pharmacy. In the future, awaiting future technological
developments, pharmacy IT systems should be able to support any web
technology and should help reduce medical and pharmacy errors. Suggested
steps include developing procedures to help pharmacists find errors and
encouraging hospitals to use error reduction techniques. In the Harvard
Medical Practice Study (US), researchers identified drug-related adverse
events as the most common cause of spuriously related injuries. While these
reports focus primarily on abuse, the inability to cure, control, or prevent
disease, insufficient medication use (i.e. missed errors) is another cause of
morbidity and illness. Drug-related mortality, which can be at least as
frequent. A frequently recommended method of preventing adverse drug
events is computer-assisted screening.
The situation with pharmacy IT systems in Romania in February 2009 was
that only a few pharmacy chains were using real pharmacy management
software to operate their businesses. The five pharmacy computer systems
were chosen because of their high implementation rate at the national level.
Pharmaceutical management system is an Android application used to store
data of different pharmacies for the ease of customers and to enhance the
efficiency in medical stores. This storage system provides customers with all
the information regarding all types of drugs that are available in specific
medical stores. The system holds data about drugs of five different medical
stores and facilitate the customer with this stored information. Customer
search the required medicine using this system and system will respond the
customer’s query by providing the information of the medical stores that
contain the customer’s required medicine. The system is designed in such a
way that it will give the results with hundred percent accuracy and
efficiently. In this way, this system will help customers by saving their time
this is being wasted in searching the medicines in different medical stores.
The system is also having the information about the route of the medical
stores and will let the customer to know about the nearer pharmacy that has
the specific medicine that customers want. By using this system, those
customers who does not know about the route will be able to go to the
medical store. The pharmaceutical management system having the feature of
billing system make it more worthy and reliable. Due to this feature, all the

8

prices of drugs are stored in the database of this system and there is no
chance for any person to charge extra from customers for any drug.
Customers can also pay their drug bills using this system.
User will interact with the android application to gain information. The
information of the pharmacies is stored in SQL database. SQL database is an
advanced database to store data. It also has the features of data retrieving
from the stored data, apply operations on the data and use this data for further
processing.
The pharmacy management system aims to improve the safety and
management system to improve the accuracy and efficiency of the pharmacy.
It is an Android application for managing assets, costs; pharmacists help
improve medical safety, etc. Enter the expiration date of a specific product or
production plan and drug at the time of opening, allowing users to place
inventory and sales. The system will report and display the product list
expiration date for a specific product before the expiration date. And there is
a period of time, for example, when the monthly batch arrives, it involves
manual delivery by pharmacies and pharmacists in all areas, pharmacists,
such as drugstores, expiration date, date of expiry ‘purchase, no other type of
drug, drugs in the pharmacy. Currently, the manual system is used in
pharmacies. It is necessary to personally check all the drugs provided by the
pharmacy. This often leads to the mistake of raising pharmacists in the
workplace.

1.1 Purpose of the Project

The purpose of this project is to develop a flexible application that will be
able to facilitate general public i.e., customers as well as pharmacy owners to
save their time. The main aim is to provide customers with the accurate
information regarding nearby pharmacies and the available the drugs. This
infrastructure helps in maintain database to store information and provide it
to customers as and when required.

9

1.2 Purpose of this Document

This document is developed in order to give comprehensive description about
Pharma-Hub to the readers and the users. This document will help them
understand how this project is helping the society and for further research on
the basis of current work done. This document will describe all the
processing, composition and working of this project.

1.3 Overview of this Document

The thesis report comprises of six chapters.
First chapter gives a brief history of pharmacy, introduction, problem
statement, features, objectives, literature review and scope of the project etc.
In short, this chapter gives an overview of the whole project.
Second chapter refers to system analysis that describes the flow of systems
designed.
Third chapter is related to system specifications of the proposed system. All
hardware specifications, software specifications and tools i.e., which software
are used, with their features are described properly. Functional and Non-
functional requirements are also cover in this chapter.
In fourth chapter, we described the methodology of the proposed system.
This chapter describes the working criteria of the proposed system, data flow
diagram, use case diagram and ERD of the proposed system.
Fifth chapter is the Implementation.
Sixth chapter show the end results of the system.
Seventh chapter is all about conclusion and future recommendations.
References are provided at the end of this document

1.4 Existing System

Every pharmacy have their own system and database to store all he records

10

1.4.1 Existing system description

There is manual system for searching and purchasing the medicine. If user
needs any drug, he has to walk on foot to go to the pharmacy and ask for
medicine. The employee on pharmacy first have to look the stock and search
for the medicine that user wants. If there is no such drug, user have to search
for another pharmacy and payment is also done on pharmacy. This manual
system is still working but it consumes a lot of time and energy.

1.4.1.1 Drawbacks in the Existing System
The manual system is not working efficiently, some of its drawbacks are
• All the data is kept in a file. Some pharmacies have computerized system

but there is no backup of data. Data cannot be restored if any data is
damage or lost.
• The manual system is time consuming because user have to walk on foot
to search for required drug.
• Payments are done at the time of purchasing and only on the pharmacy.
• Since some pharmacies have computerized system but there is no
database that holds the data of stock present at the pharmacy.
• This system only has the feature of barcode system.
• User cannot find the location of pharmacy.

1.4.2 Problems in the existing system

The manual system is not working efficiently, some of its drawbacks are
• All the data is kept in a file. Some pharmacies have computerized system

but there is no backup of data. Data cannot be restored if any data is
damage or lost.
• The manual system is time consuming because user have to walk on foot
to search for required drug.
• Payments are done at the time of purchasing and only on the pharmacy.
• Since some pharmacies have computerized system but there is no
database that holds the data of stock present at the pharmacy.
• This system only has the feature of barcode system.
• User cannot find the location of pharmacy.

11

1.5 Literature Review

With the development of computer systems, inventory management and
inventory of goods and services in different organizations has become easier
(Goldberg et al., 1991). Nowadays, even mobile phones and tablets have
faster processing power than previous computers, making it easier to
complete tasks. Our economy is called the “learning economy” because of
the rapid emergence of new innovations (Abbas, Alhasan & Hamza, 2015).
In China, an SMS system has been developed to facilitate general pharmacy
patient care, and mobile systems have been promoted (Mao, Zhang & Zhai,
2008).
Inventory management takes various forms, one of which is called the
Vendor Managed Inventory (VMI) system. VMI gives suppliers complete
autonomy to deliver goods and services, as long as customers can fully
optimize those goods and services. This method or level in the VMI system is
called the maximum level. Another level of the system is called the ordering
strategy, which allows suppliers to maximize customer inventory with each
delivery (Coelho & Laporte, 2015).
As defined by Kayne (2005), a pharmacy is defined as a place where drugs
used to treat illnesses are distributed or sold. The scope of pharmacy practice
includes more usual parts, such as aggravating and dispersing drugs, and
more current management related to medical services, including restorative
management, safety assessment and prescription adequacy. And the provision
of drug data. Pharmacists, in this sense, are drug treatment experts and
essential health experts, they simplify the use of prescriptions for the benefit
of patients.

The pharmaceutical industry creates, supplies and sells drugs or drugs
authorized for use as drugs. Allow pharmaceutical organizations to organize
non-proprietary or branded drugs and repair gadgets. They must comply with
various laws and regulations in terms of licensing, testing and assuring the
safety and suitability, and display of drugs.
Various computerized management systems are very useful in helping to save
lives around the world. The 2010 earthquake in Haiti forced the injured to
require medication and assistance. Due to the influx of drugs into the country

12

at this time, an inventory management system was developed to help this
cause. Hospitals across the country had no way of getting medicine to those
in need, and at the same time, they didn’t know what had been given to
whom and what had not been given. In addition, the management system
proposed and then implemented has solved the problem of scarcity, saving
countless lives. Computerized Pharmacy Inventory Planning (PCIP) involves
four processes including: needs assessment, PCIP development, PCIP
implementation, and results and data analysis. The plan was found to be
effective and significantly reduced turbulence on the ground during the
earthquake (Holm, Rudis & Wilson, 2015).
The Middle East and other parts of the world have not been excluded from
this trend. A group of people from King Saud bin Abdulaziz University of
Health Sciences in Saudi Arabia gathered to study and report the results of a
hospital pharmacy inventory management system in Saudi Arabia. Their
software monitors and monitors existing inventory levels, allowing them to
decide how many drugs to order to reach full capacity. The application is
installed on all hospital staff computers and directly updates the information
in the database (Muallem, Dogether, Al Assaf, Al Ateeq & Househ, 2015).
These different systems facilitate the work of hospitals and pharmacies and
reduce errors in drug-related practices. In addition, with the introduction of
these practices, the trend towards the abuse of prescription drugs has been
significantly curbed. Today’s applications use large databases and
verification procedures

13

1.6 Research Gap

There are 650 pharmaceutical companies in Pakistan, most of them have their
websites, android apps. But there is not a system yet developed which has
information of availability of medicines at certain pharmacy. There is a lack
of connections between all the companies’ pharmacies.

1.7 Problem Statement

Today there is a manual system for keeping record of the drugs. The
pharmacies have no such system to store their confidential information and
there are lots of chances of data loss because of no backup. Another problem
is the time, the workers on the medical stores have to search medicine when
any customer asked for the required drug. Lot of time is being wasted in
searching the medicine. There is no system that will tell customer the route of
his nearer pharmacy. Nor there is a system of paying bills of medicines. All
these problems lead us to develop this project.

1.8 Scope of this Project

The scope of the project is limited to the activities of a pharmacy, and
guarantee the optimal use of resources-based management system to improve
the efficiency of pharmacy, as an important part of any modern and evolving
society. The system will search for the nearest pharmacies in a specific area
and also availability of the medicines at that medical store.
The system will not be able to manage drug prescriptions and drug
interactions. The system will not be able to manage contraindications and
multi-medication in the prescription, this means that these services will be
carried out manually by the pharmacist.

1.9 Tools and Techniques

The tools that are used in designing this project are

• Android Studio
• SQL Server Management Studio

• Visual Studio

14

Chapter 2 SYSTEM ANALYSIS

2.1 System Requirements
2.1.1 Clients, Customers and Users

Pharmacies, Patients, Layman, Hospitals

2.1.1.1 Functional and data requirements

Maintenance Requirement
The maintenance of system is important for any product. This android
application requires the facility of internet. Poor internet connection may
affect the working of the application. The application is handling and
managing enormous data efficiently. The application is generating the same
results as of the first time.

Security Requirement
Security is essential in any system as many systems holds the confidential
data of clients and users. The designed application will provide information
to only those users who were authentically registered on the app. Due to the
functionality of user’s details (Gmail, ATM number), the application
provides security, and all the data is stored in database. This pharma hub
application is fully secured system.

2.1.1.2 Non-functional requirements
2.1.1.2.1 Usability

The pharma hub application is android based only a smart phone is requires
as a hardware device which is easy to use. The smart phones are light weight
and comfortable to use. The application is based on android studio and is
supporting programming languages. The application provides user with the
required information and users will not have to understand the deep
knowledge to use this app. The use of buttons makes this application
attractive and easy to use.
Users are free to use Pharma Hub application when they need it, there is no
specific time to use this application to gain advantage.

15

2.1.1.2.2 Efficiency

Any system is not efficient system if it does not facilitate users and does not
provide required results. The Pharma Hub application is working properly, all
its functionality is working according to the requirements of the users and is
generating expected results. The frequent use of app at the same time does
not affect the efficiency of the Pharma Hub app. Many users can use this app
at the same time with the same efficiency.

2.1.1.2.3 Portability

Portability is the requirement that many systems does not provide but Pharma
Hub facilitate the users with this also. As the developed project is an android
application which can be run easily on smart phones and is easily portable.
Users have smart phones in their hands, they can use this application
anywhere. But the requirement is the availability if the internet. The app will
not work properly if user has poor internet connection.

2.1.1.2.4 Space requirement

Many android applications require a lot of memory in installation process.
The best system is which requires low memory and works efficiently.
The Pharma Hub consumes only 10 MB of mobile space during installation
and the application is install only on smart phones

16

Chapter 3 DESIGN CONSIDERATIONS

3.1 Design Constraints
3.1.1 Hardware and software environment

Operating System Windows

Language Kotlin(front end), C#(back end), SQL
Documentation (back end)

MS Word

Technology Implemented Android Devices

Table 1 Software Specification

Computer intel Pentium Processor
OR
RAM
Hard Drive AMD Processor

8 GB

500

Table 2 Hardwar Specification

3.2 Android Studio

The software is first released on Google I / O in May 2013 and the first stable
version is released in December 2014. Android Studio will be open for Mac,
Windows, and Linux desktop platforms. It has compensated Eclipse Android
Development Tools (ADT) as the primary IDE for developing Android
applications. Android Studio and SDKs are downloaded directly from
Google.
For the development of android applications there is an official platform of
Integrated Development Environment which is known as Android Studio and
is based on Java language. A Gradle-based built system, emulators, some

17

code Templates, and GitHub integration are used by Android Studio for
backing the application advancement in an Android operating environment.
All the projects in android studio contained some methods and procedures
along with its source code and resource files. The methods and procedures
contained a section of android app, a library section, and a section of Google
App engine.

Figure 1 Android Studio

18

Each section of Android App has 3 different folders i.e., a java folder,
manifest folder, and a resource folder.
3.2.1 Manifest Folder
AndroidManifest.xml comes under this folder for the purpose of android
applications. This folder has all the information regarding android application
i.e., version of android, data about data (Meta data) packages for states and
all other application units. It is a communicating interface between operating
system of android and developer’s application.

19

3.2.2 Java Folder
All the source code and other files,that are created when developing the
application, comes under this folder. It also contained all other text files.
When we were created any new project with the help of Kotlin language, a
class file known as “MainActivity.kt” is created automatically covered by the
package named as “com.geeksforgeeks.myfirstkotlinapp”

3.2.2 Resource Folder
The most essential and significant folder is resource folder. This folder is
consisting of all the components except code. The sources include user
interface strings, XML layouts and all images of android application. The
xml layout is important because of defining the user interface of application
and all the images are under the drawable folder.

Android Studio is using the instant push feature to push code and resource
changed to the running app. The Code Editor can help developers write code
and provide code completion, refraction, and analysis. Then compile the app
built into Android Studio in APK format that is to be submitted to the Google
Play Store

3.3 SQL Server Management Studio

All the management of SQL architecture is managed by an integrating
environment that is SQL Server Management Studio. All the components of
SQL Server, Azure SQL database NAD Azure Synapse Analytics are
maintained, executed, designed, and accessed by using SQL Server
Management Studio. At its skills level, it is a complete product which has an
extensive combination of graphic tools. These graphic tools are providing a
variety of script editors so that the developers and database administrators
can access the SQL Server.

3.3.1 Components of SSMS

• Object Explorer
• Template Explorer
• Solution Explorer

20

• Visual Database Tools
• Query and Text Editors

3.3.2 Features of SSMS

Managing Analysis Services
The multidimensional expression, Data Mining Extensions and XML scripts
can be easily developed and stored as it is providing the feature of Analysis
Services Scripts Projects. This also provides the facility of management and
re-creating objects.
Managing Integration Services
SSMS facilitate the users with the service of managing integration, users can
administer the packages and keep an eye on the packages that are being
executed.
There is also an option of organizing, importing, and exporting and
upgradation of packages.
Managing Reporting Services
SSMS is used to implement report services and managing the database and
the server. Users can manage schedules and reports with the help of Shared
Schedule Folder. Whenever users moved a report to a newly created server
database engine or to already created database engine, there is an option of
RSExecRole under Master System Database.

Figure 2 SQL Server

3.4 Visual Studio

Visual Studio is also an Integrated Development Environment which is
develop by Microsoft for the expansion of graphical user interface, console,
web applications, web apps, mobile apps, cloud, and web services. This
integrated development environment is very helpful in creating managed

21

code and native code. Different Microsoft development softwares platforms
i.e., Window store, Window API, Microsoft silver light are being used by
IDE. This IDE does not follow some specific language, but codes are written
in C++, C#, Java Visual Basic, Python and some other languages. This
integrated development environment is supporting almost 36 programming
languages and can be easily executed and run on windows and mac operating
systems

Figure 3 Visual Studio

3.4.1 Features of Visual Studio

Figure 4 Features of Visual Studio

3.4.2 Benefits and features of Visual Studio

22

Systematic and Authentic Coding
With the feature of intelliSense, the platform provided impressions and
narrated the APIs and auto completed the code and statements to enhance
speed and saves time.
Quick Debugging
A big challenge is finding bugs and errors from the code because it takes a
lot of programmer’s times, but by using Visual Studio IDE users do not have
to worry about it since it contains moderator of tools that are helpful in
detecting bugs and errors easily.
It does not have debugger for only one programming language, the platform
provides these tools for all the languages that it is supported. The debugging
process is performed locally, subordinately, and even in between the
development.

Testing Tools
There is platform to test apps that is interfaced with the platform of Visual
Studio IDE to empower the developers about the expansion of high-quality
products. The platform enables the developers to set-up their products in the
language whey wanted to adopt. They can also test the scheme and structure
of their work with little effort. By doing this, they can utilize their energy in
some other aspects of the development.

Collaboration
The IDE platform contains the feature of team productivity as it acquired
collective skills and proficiencies of the team. The tools and mechanisms were
organized and connected with the development lifecycle.

Customization Option
Visual Studio platform is providing the featureof customization option to its
users. The developers are free to enhance the functionalities of IDE by means
of some extensions. They will be even free to publish their extensions.

23

Chapter 4 SYSTEM DESIGN

This chapter holds the working criteria, Use case diagram and entity
relationship diagram of the proposed system.

4.1 Working of Proposed System

First user will login and enter email and password, if not registered then user
will first register himself. After login, a map and some pharmacies will
appear. To check the nearest available pharmacies, user will enter radius. The
app shows all the pharmacies that comes under the entered radius. But the
app has the data of only 5 pharmacies, and it will show the pharmacies from
these five by encountering the radius. The user will click on the available
pharmacies and check which one has the required medicine by checking the
stock. Two options are available for users to buy the medicine

• Walk on foot towards the pharmacy
• Order the medicine on the app

24

Figure 5 Data Flow View of Proposed System

25

4.2 Use Case Diagram

Figure 7 AndroiFdigUusreed6CAansedrDoiadgArapmp Used Case Diagram

26

4.2.1 Use Case Description Primary Actor: The User
Scope: Search for required medicine in the nearest pharmacy
Goal Level: User Goal
Success end Condition: User will successfully get the required medicine.
Preconditions: The user must be login the app
Trigger: App shows the nearest pharmacies
Main Success Scenario
i. User login via Facebook or Gmail account.
ii. User get required medicine.
iii. Online order
4.1.2 Use Case: Connect with Gmail
Primary Actor: User

Scope: Login with Gmail account

Goal Level: User Goal

Success End Conditions: User successfully connect the pharma hub app
with Gmail account.
Precondition: None

Trigger: User have Gmail account

Main Success Scenario:

iii. User enters Gmail id and password
iv. User successfully login via Gmail account

Alternative:

1) User does not have Gmail account
2) User enters wrong id and password
a) System notifies the user enter correct id and password.

27

4.2 Entity Relationship Diagram

Figure 8 Entity Relationship Diagram

28

4.2.1 Main Entities
● Customer Entity
● Pharmacy Entity
● Medicine Entity
● Cart Entity
● Order Entity
● OrderItem Entity
4.2.2 Pharmacy with Medicine
The detail of pharmacy is stored in the pharmacy relation. The
pharmacy table has many-to-many relation with the medicine table as
many pharmacies have many medicines.
4.2.3 Customers with Order and Cart
The relation of customer with Orders is one-to-many as one customer
can have many orders and the relationship of customer with the Cart is
one-to-one because one customer can have only one cart at a time.
4.2.4 Medicine with OrderItem
The relation of Medicine with The OrderItem is one-to-many because
customer can order one medicine in more than one quantity.
4.2.5 Order with OrderItem
The relation of Orders with OrderItem can be many-to-many as
customer can have many orders and each order can have many items.

29

Chapter 5 IMPLEMENTATION

5.1 Development

The development phase of any system is most important part because
coding is done in this phase. The system is developed in android studio.
Android studio provides a platform connect with the app and access the
required information.
Here is the code sample of src/MainActivity.kt file:

30

31

32

5.2 Code Testing

01 Connection with SQL Successful

Server

02 Stores Data in database Yes

03 Passing data to app Yes

Table 3 Code Testing

5.3 Deployment

We check and test the developed system in real time and is working
properly with expected results.

5.3 Training

How to Use the App

1. Open the App
2. Enter login details either by Facebook or Gmail Account.
3. Enter the radius
4. Check the available pharmacies
5. View stock
6. Order required medicine

33

Chapter 6 TESTING AND EVALUATION

6.1 Testing

The testing phase includes evaluating all the components of the software,
making changes and improving the software if necessary, and then finding
bugs and fixing them so that they don't harm the entire system. . The basic
goal behind the testing phase is to uncover the problems and vulnerabilities in
the developed system that prevent the software from meeting the
requirements. It should be noted that there must be a planned strategy for
testing that must be followed precisely to ensure that the end product is
efficient, stable and reliable. And the final product must be delivered on time.
Therefore, all timelines must be met for the success of the project.

6.2 Unit Testing

6.2.1. Sign Up

Figure 9 Test Case 1 Sign up

34

Figure 10 Test Case 1 Database

Table 4 Test Case 1: Sign Up

System: Pharma-Hub: Connecting Tested By: Aiman Zaidi
Pharmacies Online

Objective: to test that system is Test ID: 1
storing the user’s data

Version: 1 Test Type: Unit

Steps to Perform:
1. Open App
2. Click On Sign Up
3. Enter all credentials and press sign up

Expected Results: User successfully added to the database
Actual Results: Passed

35

6.2.2. Map

Figure 11 Test Case 2: Map

Table 5 Test Case 2: Map

System: Pharma-Hub : Connecting Tested By: Samreen Akbar
Pharmacies online

Objective: to test that map is locating Test ID: 2
nearest routs

Version: 1 Test Type: Unit

Steps to Perform:
1. Open App
2. Sign In
3. Click on Map Option

Expected Results: Map should locate nearest pharmacies in the ares
Actual Results: Passed

6.2.3. Place Order

36

Figure 12 Test Case 3: Place Order

Figure 13 Test Case 3 Place Order
Figure 14 Test Case 3 Order Database

37

Table 6 Test Case 3: Place Order

System: Pharma-Hub : Connecting Tested By: Tayyaba Nosheen
Pharmacies online

Objective: to test that system is
generating order and storing them in Test ID: 3
database

Version: 1 Test Type: Unit

Steps to Perform:
1. Open App
2. Select Nearest Pharmacy
3. Select Medicine
4. Place Order

Expected Results: System should store the medicine ID in database

Actual Results: Passed

6.2.4. Order History

Figure 15 Test Case 4 Order History

38

Table 7 Test Case 4: Order History

System: Pharma-Hub : Connecting Tested By: Qurat-ul-Ain
Pharmacies online

Objective: to test that system is Test ID: 4
generating order history.

Version: 1 Test Type: Unit

Steps to Perform:
1. Open App
2. Swipe Left
3. Select History Option

Expected Results: System should store order details.
Actual Results: Passed

39

6.3 System Testing Successful
Yes
Table 8 System Testing Yes
Yes
01 Sign Up
02 Show map
03 Place Order
04 Order History

6.4 Results

6.4.1 Splash Screen:

Figure 16 Splash Screen

40

6.4.2 Introduction Screen:

Figure 17 Walk through Screen 1

Figure 18 Walkthrough Screen 2

41

6.4.3 Sign Up

Figure 19 Sign up

Figure 20 Sign Up

42

6.4.4 Login

Figure 21 Login

6.4.5 Home Screen

Figure 22 Home Screen

43

6.4.6 Map

Figure 23 Map

6.4.7 Medicine list

Figure 24 Medicine List

44


Click to View FlipBook Version