In 2021, a computerized physician order entry (CPOE) system with an integrated clinical decision support system (CDSS) was implemented at a tertiary care center for the treatment of mental health conditions in Lübeck, Germany. To date, no study has been reported on the types and prevalence of drug-related problems (DRPs) before and after CPOE implementation in a psychiatric inpatient setting. The aim of this retrospective before-and-after cohort study was to investigate whether the implementation of a CPOE system with CDSS accompanied by the introduction of regular medication plausibility checks by a pharmacist led to a decrease of DRPs during hospitalization and unsolved DRPs at discharge in psychiatric inpatients. Medication charts and electronic patient records of 54 patients before (cohort I) and 65 patients after (cohort II) CPOE implementation were reviewed retrospectively by a clinical pharmacist. All identified DRPs were collected and classified based on 'The PCNE Classification V9.1', the German database DokuPIK, and the 'NCC MERP Taxonomy of Medication Errors'. 325 DRPs were identified in 54 patients with a mean of 6 DRPs per patient and 151.9 DRPs per 1000 patient days in cohort I. In cohort II, 214 DRPs were identified in 65 patients with a mean of 3.3 DRPs per patient and 81.3 DRPs per 1000 patient days. The odds of having a DRP were significantly lower in cohort II (OR=0.545, 95% CI 0.412-0.721, p<0.001). The most frequent DRP in cohort I was an erroneous prescription (n=113, 34.8%), which was significantly reduced in cohort II (n=12, 5.6%, p<0.001). During the retrospective in-depth review, more DRPs were identified than during the daily plausibility analyses. At hospital discharge, patients had significantly less unsolved DRPs in cohort II than in cohort I. The implementation of a CPOE system with an integrated CDSS reduced the overall prevalence of DRPs, especially of prescription errors, and led to a smaller rate of unsolved DRPs in psychiatric inpatients at hospital discharge. Not all DRPs were found by plausibility analyses based on the medication charts. A more interactive and interdisciplinary patient-oriented approach might result in the resolution of more DRPs.