0% found this document useful (0 votes)
47 views

Functionality: 1.0 Issue Drugs

This document outlines the functionality and data model of a drugstore management system. It describes 5 key programs: 1) issuing drugs 2) generating 1-day sales reports 3) 1-week sales reports 4) minimal drug quantity reports and 5) returned drugs reports. It also provides an entity relationship diagram and database schema including tables for vendors, drugs, patients, requests, and transactions with relevant fields.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Functionality: 1.0 Issue Drugs

This document outlines the functionality and data model of a drugstore management system. It describes 5 key programs: 1) issuing drugs 2) generating 1-day sales reports 3) 1-week sales reports 4) minimal drug quantity reports and 5) returned drugs reports. It also provides an entity relationship diagram and database schema including tables for vendors, drugs, patients, requests, and transactions with relevant fields.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 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,

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 provided

Drug

Assigned/ Contain Take/ Is taken

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.

DrugMinimalQuantity DrugExpireDate DrugPrice VendorID

Int Date Decimal Char

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.

You might also like