Functionality: 1.0 Issue Drugs
Functionality: 1.0 Issue Drugs
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,
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.
Vendor
Drug
Patient
Has
Request
Is Attended/ Attend
User
Is provided/ Assign
Database Schema
Vendor Field Name VendorID VendorName VendorAddress VendorPhone VendorMail Data type Char Char Char Char Char Size 5 20 20 1 30 Constraint s PK Remarks Unique identifier of vendor. To store vendor name information. To store vendor address information. To store vendor phone information. To store vendor mail information.
Drugs Field Name DrugID DrugName DrugGenericName DrugAvailableQuantity Data type Int Char Char Int Size 8 20 20 8 Constraints PK Remarks Unique identifier of drug. To store drug name information. To store generic name information. To store drug formulation information. To store category of the drug information. To store drug expire date information. To store the price of the drug. To identify each different vendor.
8 10 5,2 5 FK
Transaction Field Name TransactionID DrugID CustomerID Date Data type Int Int Int Date Size 8 8 8 10 Constraints Remarks Unique identifier of request (medical prescription). Unique identifier doctor user. Unique identifier drug manager user. To manage the status of a request.
FK FK
UserID Quantity
Char Int
5 8
FK
To store request delivered date information. Unique identifier of general information of the patient.