Converting Lists in patient to Sets