View
218
Download
0
Category
Preview:
Citation preview
8/13/2019 Functionality d
1/4
Functionality
1.0 Issue Drugs
1.1 This is one of the most important processes of the drugstore module because it
handles the drugs name, quantity, and also manages the nurses ID and password;
this to maintain a controlled access to the Drugstore system. This program
authenticates the staff that asks for the drugs, authenticate the customer status,
update the drugs table and update the transaction table.
2.0 Report for 1-day sales
2.1 This program generates a report that shows all the sales of one specific day.
The report displays the name of the drug, the total quantity of drugs sold and the
amount of each drug.
3.0 Report for 1-week sales
3.1 This program generates a report that shows all the sales of one specific week.
The report displays the name of the drug, the total quantity of drugs sold and the
amount of each drug.
4.0 Minimal drug quantity report
4.1 This program generates a report that shows the available quantity of the drugs,
8/13/2019 Functionality d
2/4
if it is less than the minimal the result appears on the report that goes to the
vendor. The report displays the name of the drug, the generic name of the drug,
the total quantity of drugs, the minimal required stock quantity and the expiration
date.
5.0 Returned drugs report
5.1 This program shows the returned drugs. This program is accepting the drug
name, customer id, staff id and quantity of the drugs.
Database Model (ER-Diagram)
Vendor Provides/ is, are
providedDrug
Assigned/
Contain
RequestHasPatient
Take/
Is taken
User Is provided/Assign
Is Attended/Attend
8/13/2019 Functionality d
3/4
Database Schema
Vendor
Field Name Data type SizeConstraints
Remarks
VendorID Char 5 PK Unique identifier of vendor.
VendorName Char 20 To store vendor name
information.
VendorAddress Char 20 To store vendor address
information.
VendorPhone Char 1 To store vendor phone
information.
VendorMail Char 30 To store vendor mail
information.
Drugs
Field NameDatatype
Size Constraints Remarks
DrugID Int 8 PK Unique identifier of
drug.
DrugName Char 20 To store drug name
information.
DrugGenericName Char 20 To store generic name
information.
DrugAvailableQuantity Int 8 To store drug
formulation
information.DrugMinimalQuantity Int 8 To store category of
the drug information.
DrugExpireDate Date 10 To store drug expire
date information.
DrugPrice Decimal 5,2 To store the price of
the drug.
VendorID Char 5 FK To identify each
different vendor.
Transaction
Field Name Data type Size Constraints RemarksTransactionID Int 8 Unique identifier of request
(medical prescription).
DrugID Int 8 FK Unique identifier doctor
user.
CustomerID Int 8 FK Unique identifier drug
manager user.
Date Date 10 To manage the status of a
request.
8/13/2019 Functionality d
4/4
UserID Char 5 FK To store request delivered
date information.
Quantity Int 8 Unique identifier of general
information of the patient.
Recommended