That seems like it should violate medical records confidentiality rules (I don't know if it does, but it should).
If they had started entering my data into that person's record and subsequently realized the error, then they might have had to break some confidentiality in order to clean up our conjoined record.