Searching & Ordering

iGene has a comprehensive and configurable custom search feature which allows lists and tables to be searched and filtered throughout the system. Searching is configurable per user on each screen. This configuration can be either performed by the user or by an administrator with the appropriate permissions.

There are over 14,000 fields within iGene and the majority of them are available to perform searches on, but they are not all selectable at first. This is to limit the amount of options within the search area; allowing the user to find the most important fields without searching through a lot of options.

Search filters can be created on tables where the button ‘Saved Searches’ appears (highlighted in the below image). Typically, this is the majority of tables within iGene. The search area on top of a table will look like this without any default searches applied:

Search Filter Box

When first navigating to a form, if default searches have been setup either by the user or applied via an administrator, it will look like this:

Search Filter Default Search

Click here to find out how to create or remove a default search filter.

Search filters are also used in order to limit data before generating reports e.g. a turn-around-time report can be limited using a search filter to find all the data required before being generated. The same method can also be used to generate CSV files which can be edited in Excel or used to interface with other equipment. See creating reports for more details.

Creating Search Filters

Search filters are created using the following method:

  1. From a table with the option to create saved searches, click the ‘Saved Searches’ button. Search Filter Box
  2. Select the ‘New Search’ option. Search Filter New Search
  3. A selection of fields are displayed to the user. Search Filter Fields
  4. Begin by entering a name for the search filter. For the purposes of this document, the filter is called ‘Search Filter Demo’. Search Filter Name
  5. To Add items to search, click the ‘Add Search Field’ drop down Search Filter New Search Field
  6. From the options, select one of the search fields. To select a search filed here it must have already been set up in System Search Filters preference area. (If the option required is not listed see adding additional fields to search options.) Search Filter Select Field
  7. A new item will appear in the selected search area. Search Filter New Search Item
  8. Type into the new field and press the search button or press the enter key. In the image below, the search term ‘Sample Type’ has been used. Search Filter Search

When selecting items to search from, they will not all be in a text box. Options as to what items will be displayed are:

These are lists of specific items. They allow you to select a single item such as a sample type or a specific test. The drop down will display a list of items the user can select from.

Autocompletes

Similar to drop down lists, these display a specific list of single items to the user, such as sample types or specific tests. The advantage an autocomplete has over a drop down list is the user can filter items down by typing into them. Autocompletes are best used for longer lists.

Dateboxes

Date boxes are used to enter date details. These are also used to filter between dates. Further information on this can be found in the filter between dates section.

Checkbox

The checkbox option allows the searching of boolean items (true or false). Examples of this are ‘deceased’ on a patient or ‘active’ on all models.

Saving Search Filters

In order to save a search filter, first, begin by creating one. Follow the creating search filters guide. Once a search filter has been created, it can be saved by clicking the ‘Save Filter’ button. Search Filter Search

The search filter will now be available to select from the ‘Saved Search’ button. Click on the ‘Saved Searches’ button and select the search with the name it was called after following the create search filters guide. Search Filter Selection

In order to make sure that the filter is blank whenever it is selected, ensure that all text fields, drop downs and autocompletes are set to blank values or empty before pressing save.

Begin by following the creating a search filter and then saving a search filter guides to create a filter which you wish to make default.

  1. From the screen that the default needs to apply e.g. Preferences. Select the search filter from the ‘Saved Searches’ button. Search Filter Selection
  2. Click the ‘More Actions’ button to the top right of the panel which is revealed. Search Filter More Actions Button
  3. Select ‘Make Default’ from the list. Search Filter Make Default

Whenever the screen is shown, that search filter will be the default for that table.

Using Existing Saved Searches

In order to use a saved search which has either been configured by the user or assigned by an administrator:

  1. From the location to search within e.g. Preferences. Select the search filter from the ‘Saved Searches’ button. Press the ‘Edit Search’ button. Search Filter Selection
  2. Complete the details within the search and either press Enter or press the ‘Search’ button. Search Filter Search

Assigning Existing Saved Searches

Saved searches can be configured by administrators of iGene and assigned to users as either a default search (if the user does not already have one setup) or an option for the user to select from the Saved Searches button. First, begin by creating a search filter and then save the search filter using the saving search filters instructions.

To assign a search filter to any user who does not have one setup for that particular screen:

  1. From the search screen that the default needs to apply e.g. Preferences. Select the search filter from the ‘Saved Searches’ button. Search Filter Selection
  2. Click on the ‘More Actions’ button to the top right of the panel which is revealed. Search Filter More Actions Button
  3. Select the ‘Manage Defaults’ option Search Filter Manage Defaults
  4. A modal popup window will appear in the center of the screen. Search Filter Manage Defaults Popup

Within this popup two tables are used to specify which option to apply the search filter. The filter can be applied;

Per User The search filter can be applied to a specific user if you want that individual to share the same default search filter. To do this:

  1. Click the plus button at the bottom of the table on the left side of the popup window. Search Filter Per User
  2. A new line will appear in the table. Using the highlighted autocomplete, type the user into this box. Search Filter Per User Selection
  3. Then press the save button in the bottom right of the popup window. Search Filter Manage Defaults Save

All Users: The search filter can be applied to all users who do not already have a default search filter setup for that location. To do this:

  1. Click the plus button at the bottom of the table on the right side of the popup window. Search Filter Per Group
  2. A new line will appear in the table. Nothing needs to be changed within this line.
  3. Then press the save button in the bottom right of the popup window. Search Filter Manage Defaults Save

Removing Default Search Filters

If the user no longer wants to have the default search filter set at that location, it is possible to remove this without deleting the filter completely.

  1. Load the location up. The default search filter will already be applied when the user views this page.
  2. Select the ‘More Actions’ button to the top right of the search Search Filter More Actions Button
  3. Select ‘Manage Defaults’ Search Filter Manage Defaults
  4. A modal popup window will appear in the center of the screen. Search Filter Manage Defaults Popup
  5. In the left hand table, start by ticking the checkbox next to the users name
  6. Click the minus button at the bottom of the table Search Filter Delete Default
  7. Finally, press the save button in the bottom right of the popup window. Search Filter Manage Defaults Save

The search filter will still appear but the next time the user navigates to that location, the default will not be applied.

To replace a default search filter, simply follow the setting a default search process. There can only be one default search filter per location so it will replace the current default.

Deleting Search Filters

Deleting a search filter from the list of ‘Saved Searches’ can be performed from the location which that search filter can be used. To do this:

  1. Click the ‘Saved Searches’ drop down and select the search filter that needs to be removed. Search Filter Selection
  2. Click on the ‘More Actions’ button to reveal the options. Search Filter More Actions Button
  3. Click on ‘Delete’
  4. A confirmation box is displayed to confirm that the user wishes to do this. Search Filter Delete Confirm
  5. Click ‘Yes’ to delete the search filter.

If the user did not create the search, the user will not be able to delete the search. Only the user who created the search can delete it by this method.

Making A Search Publicly Available

The action to make a search publicly available can only be performed by a user with access to the ‘Administration’ area of iGene.

  1. Begin by making a note of the search name and the screen which you wish to make that search available on.
  2. Navigate to Administration > Saved Searches’
  3. Either navigate through the table using the arrows to select a search by name or create a search filter to search based on the name.
  4. Once the user has located the saved search within the list, click the ‘View’ button to the right of the line Search Filter Screen View
  5. A modal popup window will appear in the middle of the screen.
  6. Within the popup, click on the visibility drop down Search Filter Screen Visibility
  7. Select ‘Public (OU)’ from the drop down
  8. Save the search filter by clicking the green ‘Save’ button in the bottom right of the popup window.

Editing Searches - Adding Fields

Search filters can be edited from the screens on which they were created.

  1. Click the ‘Saved Searches’ drop down and select the search filter that needs to be changed. Search Filter Selection
  2. In the top right of the search which has appeared, select the ‘Edit Search’ button. Search Filter Edit Search Button
  3. To Add items to the search, click the ‘Add Search Field’ drop down Search Filter New Search Field
  4. From the options, select one of them (if the option required is not listed see adding additional fields to search options) Search Filter Select Field
  5. A new item will appear in the selected search area. Search Filter New Search Item
  6. Save the search filter by pressing the ‘Save Filter’ button. Search Filter Search

Editing Searches - Removing Fields

Remove a search field which has been added by clicking the cross at the right of that field. Remove Search Field

Stop Using Current Search Filter

To remove the current search filter, click on the cross to the top right of that search filter. This will remove it from the table but it will not delete it. Remove Search Filter

Non-Eager Searching

A non-eager search will not perform the search process until the search criteria are completed. This means that a table will load without any data and force the user to search for what they want. The opposite of this, an eager search, will return all the records and allow the user to filter them down using the search criteria.

To set a search as ‘non-eager’:

  1. Click the ‘Saved Searches’ drop down and select the search filter that needs to be changed. Search Filter Selection
  2. In the top right of the search which has appeared, select the ‘Edit Search’ button. Search Filter Edit Search Button
  3. Next, select the ‘More Actions’ button Search Filter Edit More Actions Button
  4. Select ‘Edit Query (Advanced)’ Search Filter Edit Advanced Button
  5. More options become available. Search Filter Edit More Options
  6. Check the ‘Non-Eager’ checkbox Search Filter Edit Non Eager Checkbox
  7. Save the search Filter Search Filter Edit Save Advanced Filter

The next time the user goes to that location (if the search is a default) or the search is selected, it will not perform a search until the criteria are completed and the enter key/search button is pressed.

Searching For More Than 1 Option

Should the user wish to search for more than 1 options, you can add multiple items. See the editing searches - adding fields section for how to add more fields.

Searching Between Date Ranges

It is possible to search between date ranges within iGene. This is performed by adding 2 of the same type of search field. To begin with, a new search filter will be created.

For the purposes of this guide, the preference area is being used. In order to make the screenshots relevant, the ‘createdAt’ field has been added to the ‘Add Search Field’ drop down. To do this, see the adding additional fields to search options section.

  1. From a table with the option to create saved searches, click the ‘Saved Searches’ button. Search Filter Box
  2. Select the ‘New Search’ option. Search Filter New Search
  3. A selection of fields is displayed to the user. Search Filter Fields
  4. Begin by entering a name for the search filter. For the purposes of this document, the filter is called ‘Search Filter Demo’. Search Filter Name
  5. To Add items to search, click the ‘Add Search Field’ drop down Search Filter New Search Field
  6. From the options, an item which is a date field. Typically these have the word ‘date’ in the field name. (if the option required is not listed see adding additional fields to search options) Search Filter Options
  7. In this case, selected ‘Created At’
  8. Repeat step 5 and 6
  9. The search screen should now look like this. Note the 2 options that were just added. Search Filter Dates
  10. Each of the fields has an dropdown box next to the field name. On the first one, click the dropdown box. Search Filter Dates Drop Down
  11. For the first one. Select ‘Is On Or After’. Search Filter Dates On Or After
  12. Repeat step 10 but for the second dropdown list.
  13. For the second date item, click ‘Is On Or Before’ Search Filter Dates On Or Before
  14. Save the date range Filter Search Filter Save Date Filter

Changing the name displayed in the search filter makes this type of search much easier to understand. For example, changing the two names that say Created At, to one that says From and one that says To. See Renaming Fields for more information.

See Renaming Fields for more information.

Other options are available for date filters. By Pressing the actions button next to the filter line in ‘Edit Filter’ view the user is presented with more options. Date Filter Actions Button

Details of these options are:

  • Free Entry - Allows the user to enter any date string they require.
  • Today - Will always be the current date.
  • Yesterday - Will always the previous date.
  • Last Week - Will be 7 days prior to the current date.
  • Last Month - Will be the month before the current date.
  • Last Six Months - Will be 6 months before the current date.
  • Last Year - Will be the year previous to the current date.
  • Next Week - Will be the current date 1 weeks into the future.
  • Next Month - Will be the next month after the current date.
  • Next Six Months - Will six months after the current date.
  • Next Year - Will be 12 months after the current date.
  • x Days ago - A custom value for x days before the current date. See the below note about minus numbers.

Confusing as it may be, setting x Days ago to a minus number changes it do be days in the future. This can be very useful. For example, show all the orderable (tests) which are due in three days time.

These values can be changed without going into the edit screen for the search filter.

Changing Search Type

A dropdown list displays next to each item added to a search filter. This allows the behaviour to be changed of the search. Options are:

  • Contains - Where the text entered in a textbox is within the search field selected. For example searching for “stan” in “constantinople”.
  • Does Not Contain - Where the text entered in a textbox is not within the search field selected.
  • Sounds Like - Where the text entered in a textbox is similar to the value entered. This uses the Soundex function.
  • Equal - Where the text entered exactly matches the value in the search field selected.
  • Not Equal - Where the text entered does not match the value in the search field selected.
  • Starts With (Recommended For Text Fields) - Where the search field selected starts with the value entered. This is the fastest search method and ideally, should be the default.
  • Does Not Start With - Where the search field selected does not start with the value entered.
  • Ends With - Where the search field selected ends with the value entered.
  • Does Not End With - Where the search field selected does not end with the value entered.
  • Is (datebox only) - This will take the exact field.
  • Is On Or After (datebox only) - Takes the value in the field and searches for anything on that date or in the future.
  • Is On Or Before (datebox only) - Takes the value in the field and searches for anything on or before that date.
  • Is Empty - Searches for any items where the specified field is empty.
  • Is Not Empty - Searches for any items where the specified field is NOT empty.

Date Box Shortcuts

The date boxes within iGene and the search area are able to use some short codes.

  • T Key - Pressing the T key whilst in the date box will complete it with today’s date.
  • Y Key - Pressing the Y key whilst in the date box will complete it with the previous day’s date.
  • Arrow Up - Pressing arrow up will move one day forward.
  • Arrow Down - Pressing arrow down will move one day back.

Advanced Search Options - AND/OR

It is possible for a user to require a search to look for x and y. This is the default behaviour for all search filters. However, sometimes it is beneficial to use an x OR y option. For example, where the test type is ‘Chromosome Analysis’ OR ‘FISH’.

To do this:

  1. Click the ‘Saved Searches’ drop down and select the search filter that needs to be changed. Search Filter Selection
  2. In the top right of the search which has appeared, select the ‘Edit Search’ button. Search Filter Edit Search Button
  3. Next, select the ‘More Actions’ button Search Filter Edit More Actions Button
  4. Select ‘Edit Query (Advanced)’ Search Filter Edit Advanced Button
  5. More options then become available. Search Filter Edit More Options
  6. In the ‘Search Query’ text box which is shown, it will say 1 AND 2 Search Filter And Search

    The 1 AND 2 refers to the (1) and (2) search fields

  7. Change the AND to be OR Search Filter OR Search
  8. Save the search Filter Search Filter Edit Save Advanced Filter

Using this, it is also possible to group items together, for example:

(1 OR 2) AND 3
(1 OR 2) AND (3 OR 4)

Renaming Fields

When using dates, it is advantageous to rename items. Such as ‘Created Date From’ and ‘Created Date To’. This can be performed on the search filters to give each field a meaningful name.

  1. From a table with the option to create saved searches, click the ‘Saved Searches’ button. Search Filter Box
  2. Select the ‘New Search’ option. Search Filter New Search
  3. A selection of fields is displayed to the user. Search Filter Fields
  4. Begin by entering a name for the search filter. For the purposes of this document, the filter is called ‘Search Filter Demo’. Search Filter Name
  5. To Add items to search, click the ‘Add Search Field’ drop down Search Filter New Search Field
  6. From the options, select one of them. If the option required is not listed see adding additional fields to search options. Search Filter Select Field
  7. A new item will appear in the selected search area. Search Filter New Search Item
  8. Locate the area which is highlighted in red and click on it. Hover Over Change Name
  9. Change the text within the box to the required value. Hover Over Change Name
  10. Save the search filter by clicking the ‘Save Filter’ button. Search Filter Search

Hiding Options

At times, it may help to assign search filters which cannot be changed or with fields which do not need to be changed per search. These types of filters are generally used for limiting items to specific tests or specific tasks.

  1. From a table with the option to create saved searches, click the ‘Saved Searches’ button. Search Filter Box
  2. Select the ‘New Search’ option. Search Filter New Search
  3. A selection of fields is displayed to the user. Search Filter Fields
  4. Begin by entering a name for the search filter. For the purposes of this document, the filter is called ‘Search Filter Demo’. Search Filter Name
  5. To Add items to search, click the ‘Add Search Field’ drop down Search Filter New Search Field
  6. From the options, select one of them (if the option required is not listed see adding additional fields to search options) Search Filter Select Field
  7. A new item will appear in the selected search area. Search Filter New Search Item
  8. Complete the text box or drop down with the required value the user wishes to always use.
  9. To the right of the new item, which has been added, there is a check box. Hide Field Checkbox
  10. Save the search filter by clicking the ‘Save Filter’ button Search Filter Search

Adding Additional Fields To Search Options

iGene has over 14,000 fields. It is not possible to display them all on the front end as the lists would become unusable. Instead, there is a System Search Filter preference area where additional items can be added.

To begin with, a note of the model which the search filter needs to apply has to be found. A quick way to do this is to navigate to the location you want the search filter field to be added and next to the ‘Search Filters’ button is the ‘Print’ button. Press the print button and a list will appear. The area of interest is highlighted in red. Print Button Click

In the above example, we have the model ‘PreferencePanel’. To add a new item:

  1. Navigate to Administration > Preferences
  2. Find the preference called System Search Filters (either navigate through the table using the arrows to select a preference or create a search filter to search based on the name).
  3. Click the ‘View’ button highlighted in red. View Button
  4. In the table which appears to the right, click the plus button or press the ‘Actions’ button and select ‘New Search Filter Entry’. View Button
  5. Using the model drop down, select the model that was identified using the ‘Print’ button above.

Click on the drop down arrows and start typing, this will filter this list to go to the correct location.

  1. Enter a Name for the filter field.
  2. Leave the type field as ‘Filter’
  3. Select the ‘Filter Class’ from the drop down list.

Typically, the following items are used:

  • Text Search - Use the default, Text Search - Ignoring Empty
  • Date Search - Date Search (StandardDateSearch)
  • List of Items e.g. Orderables - Autocomplete Type search (GenericAutoCompleteSearch)
  • Yes or No - Boolean Search
  1. The screen should look as follows. Adding Search Field Advanced
  2. Click on Select Path Select Path
  3. A popup window will appear in the middle of the screen. This is a representation of the fields within iGene. Please refer to the guide on how iGene is structured should more information on where a field is located be needed.
  4. Double click the desired field
  5. Click ‘Select Field’ Select Path Add Field
  6. Press OK.
  7. Make sure that the ‘Active’ checkbox is checked
  8. Press ‘Save’ in the bottom right of the screen

Ordering Lists

It is possible in iGene to use a search filter to order a list. It does not need to have any search options and can just be used to order a list. This can also be set as a default and is particularly useful for ordering lists by the date they were created with the latest ones at the start.

  1. From a table with the option to create saved searches, click the ‘Saved Searches’ button. Search Filter Box
  2. Select the ‘New Search’ option. Search Filter New Search
  3. A selection of fields is displayed to the user. Search Filter Fields
  4. Begin by entering a name for the search filter. For the purposes of this document, the filter is called ‘Search Filter Demo’. Search Filter Name
  5. Locate the ‘Order By’ drop down Search Filter Order By Drop Down
  6. Click on the ‘Order By’ drop down and select an option from the list. Search Filter Order Options
  7. The drop down next to it will populate with options. Select ASC for ascending items (in the case of an alphabet, A-Z, in dates, it would be the current date forward). Select DESC for descending items (in the case of an alphabet, Z-A, in dates, it would be the oldest date going towards the current date).
  8. Save the filter using the Save Filter button Search Filter Search

The ordering list filter which has just been setup can be made as a default. Follow the making a search default instructions.