fixed open a file from a patient found with search