added link patient illness function, added delink patient illness function