Professional Documents
Culture Documents
CST 363 Project Part 2
CST 363 Project Part 2
Kirk Kosinski
Patrick Cao
OJ Alcaraz
CST 363
GEO Elves
2/28/2020
Project Part 2
After reviewing the project requirements, the GEO Elves have come up with a database
schema and Java Web Servlets for the new confidential online drug store chain being
developed by a FAANG company. The prototype application that needs to be integrated with a
registration system and login page, to be designed and implemented by the Security
Engineering team, is available at:
http://54.190.148.55/CST-363/
Schema Design
The database schema we have come up with should meet all the requirements given to
us except for the following:
● We did not force recently added doctors to have at least one patient, though the design
does connect a prescription in such a way that a patient and a doctor must be connected
in order for a prescription to be issued.
● When a pharmaceutical company is deleted from the database the current schema does
not delete the drugs from the list. We have decided that we would not implement this for
the time being because if a pharmaceutical company goes out of business or changes
their name, the drugs may live on in generic form. Furthermore, while there are active
and or past prescriptions, regulations may prevent us from removing such data from the
database.
We had to use a lot of joins and logic needed on this one as we had to connect many
tables. And in the case that a prescription was being reissued we had to delete and reinsert the
prescription as we did not want the same patient to have multiple prescriptions for the same
medicine on file.
Initial Page
Prescription Added
After Selecting Patient can Compare costs and click the order button to send it to the Pharmacy
to be filled.
After sending it to the pharmacy you can not order that prescription again only refill it on the next
page.
Was most likely the easiest as we only needed to have a select statement to create the rows in
the table and an update to update the number of refills left.
Patient Refills after ordering a refill to be sent to the pharmacy. Note the Refills column went up
by one.
Pharmacy Manager:
We decided to use the last calendar month rather than last 30 days, so the logic for creating this
sql statement and Java was quite longer than normal as we had to figure out the current month
then reduce it and start from the beginning of the previous month
Initial Page
After selecting the Planet Health Pharmacy. Note: As we used the last calendar month we had
to update the date on this prescription to get it to show as all of our prescription Dates are within
this calendar month.
Simply used the last 6 months query by the day through subtracting 6 months from the current
date so it was much easier than figuring out the calendar month. We used group statements on
the doctor and drug, while calculating the Quantity Dispensed for each of the drugs in the list.
This shows both the Form and the results of selecting Dr. David Wisneski.