In we switched to allowing multiple pubmed IDs to be recorded for solved cases. The migrator associated with this change transferred the old value to the new property if the value was not null. That caused all records without pubmed id (saved as empty string) to now have one empty pubmed id:
The below problem is not be related to this task at all.
Another issue is detected. To reproduce:
go to any patient that has This case is solved flag in the Diagnosis section turned off
turn the flag it on
turn the flag off
The exception will be thrown.