Please pull it some changes made

some changes made in the code of getallpatients