You are on page 1of 4

The Tech Guys

Moses Garcia, Edgar Leos Almanza, Cesar Sanchez


CST 363 – 30 – SP20
February 28, 2020

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

tables to make sure there is no duplicate information within the tables.

ER Diagram

We are able to see how

some of the tables hold information

that is relational instead of having

everything in just one tables.

Doctors have a relationship with,

drugs and patients. The same way

that a pharmacy has relationships

with contracts, price, and contracts.

Companies have contracts with

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

documents or inquiring about information that pertains to the company as a whole.

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

count for prescriptions within the past month easier.

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.

Every button will be explained per screen shot.

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

would like to go to.


Fill Perscription Page: Here, we are asking the patient to enter his SSN to be able to view

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

pharmacy they’d like the precription to be sent to.

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

will display the data.

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

Fill Prescription Input:

Output

Refill Prescription Input:

Output

Drug Report Input:

Output

Doctor Report Input:

Output

You might also like