Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Word-boundary Text Matching #2841

Closed
tadgh opened this issue Jul 27, 2021 · 1 comment · Fixed by #2857 or #2997
Closed

Word-boundary Text Matching #2841

tadgh opened this issue Jul 27, 2021 · 1 comment · Fixed by #2857 or #2997

Comments

@tadgh
Copy link
Collaborator

tadgh commented Jul 27, 2021

Description of Enhancement

Currently searches on Observation code:text match only at the beginning of the string, rather than on
words. This task will change the matching behavior of :text for any parameter (not just Observation
code:text) so that will match on word boundaries. Example 1: A search on “weight” should match the
display string “Body weight” or “Weight”. Example 2: A search on “h” should match “Height” but not
“Weight”.

Acceptance Criteria

Example 1: A search on “weight” should match the display string “Body weight” or “Weight”.
Example 2: A search on “h” should match “Height” but not “Weight”.

Solution Design

Change our indexing to tokenize on words, and change :text to compose a prefix search against all tokens

Testing

Enter several Observations with different codes.
Search by code:text= for different words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants