Professional Documents
Culture Documents
Introduction
Based on the companies list of requirements we see that they are asking for specific
information and most of the requirements have already been given. We first have to start by
figuring how to isolate the information into different tables to avoid having repetitive columns.
Keeping in mind efficiency and ease of access. The problem that was given to us was to figure
out a way to create a relational database that a growing drug store will use to gather information
from the various areas. One of the goals while creating the database/tables is to normalize the
ER Diagram
pharmacies and have stored relation information on the operation of the pharmacy that includes,
patients, supervisors, and contracts. In the ER diagram everything falls together in a way that
information is accessible. The diagram also gives us an idea to how the process of looking up
specific information and what the possibilities are to access such information to create
One of the issues that we faced while setting up the diagram is figuring out what
belonged where. At first, we had supervisors as part of the contracts table but was later split out
to its own table so there would not be any redundant information. Another issue that we faced
was having the drugs and pharmacy and table as one to many where in reality it should have
been many to many. This change would satisfy the scenario where drugs are in different
pharmacies at different prices. Some of the issues that were consistent throughout the
development of the servlets was the constant errors with having an extra rs.next() within the java
file that made the output move the first row. We also faced a design issue when we were
determining how to create the prescriptions table and what info would be provided. We first had
the “quantity” be set as milligrams of the prescription but later changed to quantity in bottles and
have the default be one. We thought about it and realized a doctor does not give multiple bottles
of the same prescription. That’s what the refill option would be used for. This also made the
How it Works
Home Page: The Home Screen which displays five available options where we are able to click
on Write Prescription, Fill Prescription, Refill Prescription, Drug Report, and Doctor Report.
Write Prescription Page: In this page, we ask the Doctor to input his SSN, the patients SSN,
Drug Name, and the amount of refills for that patient. After inputting the information, the
prescription would be stored in a data base where the customer could update which pharmacy he
which precriptions they have assigned to them by a doctor. Once the patients view the assigned
prescriptions they are able to view the price of the drug and sequentially, be able to input what
Refill Perscription Page: Once the patient runs out of the prescription he had received from a
doctor, the patient is able to go back and check how many refills are left and request a refill if
desired.
Drug Report Page: This is page is meant to be used to be checking what quantity of drugs have
been sold over the past month. All that is required is that the manager requests the report and it
Doctor Report Page: This page simply displays the drugs prescribed per doctor for the past six
months. All that is required is that the FDA government requests the report and it will display the
data.
Home Page
Write Prescription Input:
Output
Output
Output
Output
Output