fixed the bug dead patient from ipd is searchable in registration