passing in identifer it patient function