purpose of pharmacy management system