[2564] reworked importer patient matching
[1711]TextPlugin save current changes before opening other document