solve problem where completed appointments were being shown in appointments list
better solution to same problem ;-)