Purpose: This project was conducted to improve both the effectiveness of drug-gene interaction alerts and the quality of precision medicine care. Methods: The research team identified 11 root causes of inadequacy in drug-gene interaction alerts and proposed the SAFE framework accordingly. This framework has four strategies: (1)increasing pharmacist knowledge through seed pharmacist training and continuous education, (2)optimizing the content of alerts by emphasizing key information, (3)simplifying system design to highlight critical alerts and block high-risk drug prescriptions, and (4)establishing query channels that integrate digital platforms and medical records. Results: The average effectiveness score of alerts on drug-gene interactions increased from 2.6 to 3.7, for a target accomplishment rate of 122%. The number of alerts rated above 4 increased from 21 to 34, for a target accomplishment rate of 118%. Conclusion: The SAFE framework improved the effectiveness and clinical utility of drug-gene alerts and was expanded to affiliated hospitals. The project outcomes provide a valuable reference for other teams participating in the Taiwan Precision Medicine Initiative, boosting care quality in precision medicine.