fix upcoming patients hash