Search patient function works, no error handeling yet, still need to clean up active patient.