+ fix patient episode link for patients only with legacy events