Fix erroneous handling of designations with a matching language to the base display
This commit is contained in:
parent
013cff09b7
commit
e11f03bd8a
|
@ -207,7 +207,12 @@ public class ValueSetExpander extends ValueSetProcessBase {
|
||||||
String dstLang = focus.getLanguage();
|
String dstLang = focus.getLanguage();
|
||||||
|
|
||||||
boolean usedDisplay = false;
|
boolean usedDisplay = false;
|
||||||
ConceptDefinitionDesignationComponent tu = expParams.hasParameter("displayLanguage") ? getMatchingLang(designations, expParams.getParameterString("displayLanguage")) : null;
|
ConceptDefinitionDesignationComponent tu;
|
||||||
|
if (LanguageUtils.langsMatch(dstLang, dispLang)) {
|
||||||
|
tu = null; // use display
|
||||||
|
} else {
|
||||||
|
tu = expParams.hasParameter("displayLanguage") ? getMatchingLang(designations, expParams.getParameterString("displayLanguage")) : null;
|
||||||
|
}
|
||||||
if (tu != null) {
|
if (tu != null) {
|
||||||
n.setDisplay(tu.getValue());
|
n.setDisplay(tu.getValue());
|
||||||
} else if (display != null && (srcLang == null || dstLang == null || LanguageUtils.langsMatch(dstLang, srcLang))) {
|
} else if (display != null && (srcLang == null || dstLang == null || LanguageUtils.langsMatch(dstLang, srcLang))) {
|
||||||
|
|
Loading…
Reference in New Issue