Skip to content

Commit

Permalink
#292 - OPS are not exhaustively searchable
Browse files Browse the repository at this point in the history
- add missing lowercase conversion in TerminologyService.matchesQuery
  • Loading branch information
michael-82 committed Jun 11, 2024
1 parent dafb466 commit e63bc94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private boolean matchesQuery(String query, TerminologyEntry terminologyEntry) {
Arrays.stream(terminologyEntry.getDisplay().toLowerCase().split(" "))
.anyMatch(var -> var.startsWith(query.toLowerCase())) ||
(terminologyEntry.getTermCodes().stream().anyMatch(termCode -> termCode.code()
.startsWith(query)));
.startsWith(query.toLowerCase())));
}

public List<String> getIntersection(String criteriaSetUrl, List<String> contextTermCodeHashList) {
Expand Down

0 comments on commit e63bc94

Please sign in to comment.