Electronic reporting to improve patient safety