log errors when saving patient identifier