pr3-4se-1-2
pr3-4se-1-2
The Sales and Billing Module automates sales with real-time inventory updates, discount application,
and invoice generation. The Prescription Management Module ensures medicines are dispensed in
compliance with prescriptions and regulations. To maintain stock efficiency, the Stock and Expiry
Monitoring Module alerts staff about low stock or expiring items. The Reservation Module allows
users to reserve out-of-stock medicines and notifies them when available. The Report Generation
Module produces detailed reports on sales, inventory, expired items, and revenue. Finally, robust
Security and Authentication features—like encrypted login and session-based access control—protect
sensitive data and restrict unauthorized access.
92200103129 TC4-A
Non Functional Requirements:The Pharmacy Management System must ensure high performance
by delivering fast response times for medicine searches, billing processes, and inventory operations.
Scalability is essential to accommodate a growing number of users, transactions, and product entries
without degrading system efficiency. The user interface should be intuitive and user-friendly, allowing
pharmacists and staff to navigate and operate the system with minimal training. Security is a top
priority, with all sensitive data—such as customer details, prescriptions, and billing information—
being encrypted and access restricted to authorized users only. The system should also be easily
maintainable, enabling smooth implementation of updates and the addition of new features as
requirements evolve. Lastly, reliability is critical, ensuring that the system functions continuously
without interruptions or failures, supporting the consistent and dependable operation of the pharmacy.
functional requirements are transformed into a well-structured solution that outlines how different
system components, such as inventory, sales, user management, and reporting will interact and operat
1. Presentation Layer: A web-based user interface that allows users such as pharmacists, admins,
and sales assistants to interact with the system intuitively and efficiently.
2. Business Logic Layer: Manages core functionalities such as medicine sales, inventory updates,
user authentication, prescription handling, and billing calculations.
3. Database Layer: Stores all essential records, including user accounts, medicine inventory, sales
transactions, prescriptions, and expiry data.
92200103129 TC4-A
• Pharmacist Dashboard: Provides options for managing medicine inventory, handling
prescriptions, and monitoring stock and expiry details.
• Sales Assistant Dashboard: Focused on processing sales, generating invoices, and managing
customer interactions.
• Medicine Search Interface: A search bar with filters such as medicine name, manufacturer, batch
number, and stock status.
• Prescription Handling Screen: Displays prescription details, recommended medicines, and
dosage instructions.
• Sales and Billing Screen: Shows itemized medicine details, total price, discounts, and payment
options.
• Notification System: Pop-up and email alerts for low stock, upcoming expiries, reservation
availability, and transaction summaries.
User Management ModuleThis module facilitates user registration, login, and role-based access
control. It implements authentication and authorization to ensure secure system access. User profiles
and activity logs are maintained to monitor usage and support accountability.
Pharmacists can use this module to add, update, and delete medicine records. It maintains a structured
database of medicines with metadata such as type, manufacturer, batch number, expiry date, and stock
level, ensuring organized and efficient inventory control.
This module allows users to search for medicines using filters like name, manufacturer, and batch
number. It provides a catalog view displaying detailed information, including stock status and expiry
dates, for easy selection and tracking.
This module automates the sales and billing process, ensuring real-time inventory updates. It manages
the generation of invoices, application of discounts, and transaction records, contributing to smooth
and accurate customer service.
The system processes and records prescriptions, ensuring that medicines are dispensed in accordance
with medical guidelines. It validates prescriptions before sale and keeps records for regulatory and
operational purposes.
Reservation Module
Users can reserve out-of-stock medicines through this module. Notifications are sent when the reserved
medicines become available, and a queue-based system manages the priority of reservations.
This module generates detailed reports on sales transactions, inventory levels, expired medicines, and
revenue. It offers analytical insights with visual representations to support effective decision-making
and operational planning.
92200103129 TC4-A
5.2.4 Database Design and ER diagram
The database design of the Pharmacy Management System is structured to efficiently store and manage
information related to medicines, users, prescriptions, sales transactions, stock levels, and reservations.
It ensures data integrity, consistency, and fast retrieval of critical information. The database follows a
relational model, with multiple interconnected tables representing different entities and their
relationships.
The ER Diagram visually represents how various entities in the system interact with each other. Below
are the key entities and their relationships:
1. User (User_ID, Name, Email, Role, Password) – Represents system users such as Admins,
Pharmacists, and Sales Assistants.
2. Medicine (Medicine_ID, Name, Manufacturer, Batch_Number, Expiry_Date, Category,
Stock_Level) – Contains detailed records of each medicine.
3. Prescription (Prescription_ID, User_ID, Patient_Name, Doctor_Name, Date_Issued) –
Links a user (typically a pharmacist) to the prescription issued.
4. SalesTransaction (Transaction_ID, User_ID, Medicine_ID, Quantity, Sale_Date,
Total_Amount) – Records the sale of medicines to customers, linking the user who processed
the sale and the medicines sold.
5. Reservation (Reservation_ID, User_ID, Medicine_ID, Reservation_Date, Status) – Tracks
medicine reservations. A user can reserve a medicine that is out of stock.
The ER diagram ensures a structured relationship between books, users, and transactions, facilitating
efficient data management and retrieval.
92200103129 TC4-A