AC-4: Added possibility to search for patients.