Artificial intelligence (AI) has emerged as a transformative force in enhancing patient safety within hospital settings. This perspective explores the various applications of AI in improving patient outcomes, including early warning systems, predictive analytics, process automation, and personalized treatment. We also highlight the economic benefits associated with AI implementation, such as cost savings through reduced adverse events and improved operational efficiency. Moreover, the perspective addresses how AI can enhance pharmacological treatments, optimize diagnostic testing, and mitigate hospital-acquired infections. Despite the promising advancements, challenges related to data quality, ethical concerns, and clinical integration remain. Future research directions are proposed to address these challenges and harness the full potential of AI in healthcare.