Automatic Error Checking and Correction of Electronic Medical Records