Fixing a bug that was causing back data entry patients not to be asked discharge diagnosis when they have been discharged