Background Hospital pharmacy departments have a critical role in the healthcare system, as they aim to provide excellent patient services while also ensuring cost-effectiveness. Lean methodologies are well-known for improving efficiency and quality in various industries, but their impact on healthcare, particularly in hospital pharmacy settings, has not been thoroughly investigated. Aim This quality improvement (QI) study aimed to assess the impact of implementing the sort, set in order, shine, standardize, and sustain (5S) methodology using the innovative orientation, coordination, training, awareness, governance, observation, normalization, and promotion (OCTAGON-P) framework on the operations of Mediclinic Parkview Hospital (MPAR) Pharmacy in Dubai, UAE. Methods The QI project spanned a period of six weeks, from December 18th, 2023, to January 28th, 2024. Throughout this period, a new novel OCTAGON-P framework's eight crucial elements were methodically integrated. Simultaneously, an extensive preparation processencompassing the five stages of the 5S methodwas carried out. Results The findings indicated a notable enhancement in organization, orderliness, cleanliness, medication storage, and workspace standardization. The significant improvement of 217% in terms of organization highlighted the effectiveness of resource arrangement. The orderliness of the workspace saw an increase of 800%, indicating a transformation in the systematic organization. Additionally, cleanliness improved by 138%, demonstrating a significant advancement in maintaining a spotless environment. The standardization of processes experienced a boost of 300%, reflecting a solidified approach to consistent operational methods. These refinements resulted in an overall improvement of 90% from the initial baseline of 20% on the 5S checklist scores. Efficiency gains were observed, with outpatient medication retrieval times reduced by 50%, inpatient times by 40%, emergency prescription serving by 16.7%, and pediatric prescription serving by 11%. The inpatient medication return process saw a 67% improvement. Patient counseling time increased by 23.3%, indicating a more patient-centered approach. Prescription verification and medication expiry checks increased by 50% and 200%, respectively, enhancing the quality of care. Inventory management efficiency improved by 36%, and medication label printing time decreased by 70% with the additional label printers. Installing extra medication label printers was done through the OCTAGON-P framework, specifically in the "orientation" and "coordination" phases. These two initial phases focused on leadership's 5S orientation, management support, and securing additional resources. Therefore, the OCTAGON-P framework provided a structured approach that promoted continuous improvement and sustained lean practices. Conclusion This research study presented the remarkable effectiveness of the OCTAGON-P framework in structurally implementing the 5S methodology into hospital pharmacy operations. The findings underscored the potential of lean 5S to enhance and optimize operational efficiency and overall quality within the critical environment of hospital pharmacy settings. Consequently, these improvements can conclusively result in the provision of superior and enhanced patient care, which is truly fundamental and central to the mission and objectives of any healthcare institution.