When we get errors like this, we just post another addendum stating the previous was in error. I kind of like it that way. I would rather that entries could not be edited, modified or deleted; requiring an additional note to correct. The only big issue would be that a different patients information is in someone else's file and could be transferred to another recipient at some point. Boilerplate in the addendum should protect you in this case, such as:
"The foregoing information may refer to a different patient and was inadvertently placed in this electronic record by mistake. Under HIPAA guidelines and federal law this information may not be disclosed, and if possible, should be removed from any further electronic record or transmission. If this record has been transmitted to another healthcare provider or business associate, they must protect this information as diligently as they would the intended patient record or face prosecution under federal or state law, discipline from medical boards, and damages from patients or affected healthcare providers."