Skip to content

Commit

Permalink
BAH-3499 | Add. diagnosis search in user locale (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanoferSameera authored Jan 30, 2024
1 parent 9e64174 commit 7ffa7d5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ private List<SimpleObject> getDiagnosisConcepts(String query, Integer limit, Str
Locale searchLocale = getSearchLocale(locale);
List<ConceptSearchResult> conceptSearchResults =
emrConceptService.conceptSearch(query, LocaleUtility.getDefaultLocale(), null, diagnosisSets, conceptSources, limit);
if(!LocaleUtility.getDefaultLocale().equals(searchLocale)) {
conceptSearchResults.addAll(emrConceptService.conceptSearch(query, searchLocale, null, diagnosisSets, conceptSources, limit));
}

ConceptSource conceptSource = conceptSources.isEmpty() ? null : conceptSources.get(0);
return createListResponse(conceptSearchResults, conceptSource, searchLocale);
}
Expand Down

0 comments on commit 7ffa7d5

Please sign in to comment.