the role of emr in patient safety