Search fields only searches for full string and are case sensitive
Bug Report
Description
Patient Name, MRN, Accession and Description fields are case sensitive and only searches for complete string (partial string i.e: First Name, doesn't find results).
No results found by searching partial string:

No results found by searching lower case:

What steps can we follow to reproduce the bug?
Scenario 1:
- On study list page, search for Patient Name:
neptune - Verify that no results were found
- Search for Patient Name:
Neptune - Verify that 3 results were found
Scenario 2:
- Search for Patient Name:
Fall - Verify that no results were found
- Search for Patient Name:
Fall 1 - Verify that 1 result was found
Scenario 3:
- Search for Description:
ct,CTorCT abdomen - Verify that no results were found
- Search for Description:
CT ABDOMENorCT Abdomen - Verify that 1 result was found
Scenario 4:
- Search for Patient Name:
Misterormister - Verify that no results were found
- Search for Patient Name:
MISTER - Verify that 5 different results were found. In this case, substring was returned.
Actual result
The search only returns results when we complete string matches the database. The fields are case sensitive and don't return results if the case is not the same as the database.
Expected result
-
All search fields should not be case sensitive. User should be able to find the same results by searching with lower case, upper case, camel case, etc.
-
Patient NameandDescriptionfields should return values that match a partial string (substring). User should be able to search patients only by their First Name, Last Name, or a Part of the description. 2.1.MRNandAccessionfields should not search for substrings, only complete strings.
This is tricky, because we're testing two things here.
- The client's ability to create requests.
- The server's ability to search/filter/return our expected result sets.
By default, our application communicates with DICOMWeb conformant APIs. DICOMWeb allows for servers to optionally support a parameter named fuzzymatching. You can read more about what we have the ability to query here (QIDO-RS).
So... What does fuzzymatching do, if the server we're hitting supports it? You can read more about that here: 8.3.4.2 Fuzzy Matching of Person Names.
If extended negotiation of fuzzy semantic matching rather than literal matching of PN VR is successful, not only may matching be insensitive to case, position, accent, and character encoding (including combining characters), but in addition other techniques such as phonetic matching may be applied.
What's interesting is that I don't think we can guarantee how the server's fuzzymatching works, but we should be able to indicate if it's available/set for the current server.
Outside the scope of this ticket, it's worth mentioning that we eventually want better support for users to use the filter values to create a request URL that works for
I hope this helps provide some context. I'm not 100% sure how this influences our testing. We may not want to test these features specifically, but may want to test a query "with fuzzymatching" versus one "without fuzzymatching", should we eventually expose that option.
What is the diference with lesiontracker? Lesion tracker demo is not case sensitive and work fine.
@Y4kuz4 the previous version of OHIF had a "server side" implementation. The current viewer is limited to the filtering supported by DICOMWeb and the PACS that implement it.
@Y4kuz4 the previous version of OHIF had a "server side" implementation. The current viewer is limited to the filtering supported by DICOMWeb and the PACS that implement it.
I understand, thx!!
We have some updated guidance on how to improve filtering/sorting, but we'll capture them outside of this ticket.
Hello,
I just have started working on OHIF for my project, following the documentation and also able to run my project locally. However, I am not able to get the data instead showing no result found. can anybody help me to set up this project locally? I have been working on VIEWERS repo.
