The quality of prescription was evaluated comparing the prevalence of potentially inappropriate medications through Beer 's criteria and of potential drug-drug interactions through a specific computerized database .