how emr can help with patient safety