patient record searching fix for testing