The hospital management system's Pharmacy Management module is made to manage many pharmacies efficiently. This module is connected to the main billing system and is capable of managing a pharmacy shop completely. Patients’ expenses are automatically added to their bills when they pick up their medications from the pharmacy. Employ First-In-First-Out (FIFO) and Last-In-First-Out (LIFO) dispensing procedures to ensure proper medication distribution. Accept prescriptions from consulting doctors and automatically transmit them to the dispensing unit for a specific patient, without the need for manual intervention. Prevent the wrong drug from being given out.