Toward a theoretical approach to medical error reporting system research and design