rw251 / getset

An application for creating, validating, reusing and extending sets of clinical codes.
https://getset.herokuapp.com
4 stars 0 forks source link

Search for whole word(s) only #2

Closed rw251 closed 4 years ago

rw251 commented 7 years ago

E.g. some concepts (esp. brand drug names) are also substrings of other concepts. You can currently define a list as:

INCLUDE: "actos" (brand name of pioglitazone) EXCLUDE: "lactose", "galactosaemia", "galactosidase", "galactosaminidase"

Perhaps better to either just search for whole words, but allow wildcards. So e.g. if searching for diabetes could do "diabet*" to match diabetes and diabetic.

rw251 commented 7 years ago

Or the search effectively does *actos* unless you use the following syntax:

actos - matches actos, tractos, lactose, and actosia [actos - matches actos, and actosia actos] - matches actos and tractos [actos] - matches actos

rw251 commented 4 years ago

We now search for either:

  1. whole words or
  2. wildcards (e.g. diabet*)

This is sufficient to resolve this issue.