Implements a basic search functionality for the Patient class