smallAreaHealthStatisticsUnit / rapidInquiryFacility

The Rapid Inquiry Facility (RIF) helps epidemiologists and public health researchers in environmental health activities.
GNU Lesser General Public License v3.0
14 stars 5 forks source link

Improve search in taxonomies on Investigation Parameters screen #123

Open devilgate opened 5 years ago

devilgate commented 5 years ago

The taxonomy search can be confusing when users search by an ICD code. The search currently finds any occurrence of the entered string anywhere in either the code or the description.

Proposal

Split the search into two:

  1. A search of the code field (or "Term Name", as it appears on screen.
  2. A full-text search of the description field.

That should be two separate search boxes, aligned above the corresponding columns in the results table. If the user enters values in both boxes they will be AND-ed together.

Behaviour

I think both fields should use simple "contains" searches, like the present one. If the entered value occurs anywhere in the corresponding field, the data will be returned.

An alternative is to use some system of wildcards, even going as far as supporting regular expressions, but I think that providing the separated boxes will remove the need for that, and supporting those kinds of features would make things more complex for users.

If needed we can always add that kind of functionality in the future.

peterhambly commented 5 years ago

The UI-Grid module used to implement this now supports "tree" tables to provide a hierarchical display