standardise lang matching

This commit is contained in:
Grahame Grieve 2023-04-25 21:52:17 +10:00
parent 7487c978f2
commit d04242446e
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ public class ValueSetExpanderSimple extends ValueSetWorker implements ValueSetEx
ConceptDefinitionDesignationComponent tu = expParams.hasParameter("displayLanguage") ? getMatchingLang(designations, expParams.getParameterString("displayLanguage")) : null;
if (tu != null) {
n.setDisplay(tu.getValue());
} else if (display != null && (srcLang == null || dstLang == null || LanguageUtils.matches(dstLang, srcLang))) {
} else if (display != null && (srcLang == null || dstLang == null || LanguageUtils.langsMatch(dstLang, srcLang))) {
n.setDisplay(display);
usedDisplay = true;
} else {