Objective: To analyze prescription drug use in the ophthalmology clinic of our hospital from 2023-2024 ,promote rational drug use in the ophthalmology outpatient department provide a basis for optimizing pre-prescription review rules, and strengthen rational drug use management. Methods: By utilizing the HYGEA rational drug use platform, we screened prescription data from the ophthalmology outpatient department spanning from June 2023 to December 2024. This data encompassed drug usage rankings and items related to irrational prescriptions. We categorized the irrational items and constructed a Pareto chart to rank and analyze the primary, secondary, and general contributing factors. Taking the intervention scenario of adjusting administration route settings as an example, we evaluated the platform's impact on enhancing prescription compliance rates. Results: A total of 55,623 ophthalmology outpatient prescriptions were screened, revealing 37,760 irrational prescriptions. This irrational prescription rates were 43.32% in 2023 and 45.43% in 2024. Pareto analysis revealed that in 2023, the main factor influencing prescription compliance was indication rules, while general factors included administration route, dosage limits, treatment duration limits, and special populations. In 2024, indication rules still constituted the primary factor, with duplicate prescriptions emerging as secondary factors. General factors encompassed administration route, treatment duration limits, dosage limits, special populations, contraindications, and drug interactions. After implementing intervention rules for administration routes, the unreasonable rate dropped from 20.11% to 2.53%. This significantly rectified erroneous administration routes and improved prescription compliance (P < 0.001). Conclusions: The rational drug use platform can significantly reduce prescription errors and enhance prescription compliance through rule-based interventions.