render multiple values for properties if they exist
This commit is contained in:
parent
58b6969544
commit
278697f72b
|
@ -416,15 +416,17 @@ public class CodeSystemRenderer extends TerminologyRenderer {
|
||||||
for (PropertyComponent pc : properties) {
|
for (PropertyComponent pc : properties) {
|
||||||
td = tr.td();
|
td = tr.td();
|
||||||
boolean first = true;
|
boolean first = true;
|
||||||
ConceptPropertyComponent pcv = CodeSystemUtilities.getProperty(c, pc.getCode());
|
List<ConceptPropertyComponent> pcvl = CodeSystemUtilities.getPropertyValues(c, pc.getCode());
|
||||||
if (pcv != null && pcv.hasValue()) {
|
for (ConceptPropertyComponent pcv : pcvl) {
|
||||||
if (first) first = false; else td.addText(", ");
|
if (pcv.hasValue()) {
|
||||||
if (pcv.hasValueCoding()) {
|
if (first) first = false; else td.addText(", ");
|
||||||
td.addText(pcv.getValueCoding().getCode());
|
if (pcv.hasValueCoding()) {
|
||||||
} else if (pcv.hasValueStringType() && Utilities.isAbsoluteUrl(pcv.getValue().primitiveValue())) {
|
td.addText(pcv.getValueCoding().getCode());
|
||||||
td.ah(pcv.getValue().primitiveValue()).tx(pcv.getValue().primitiveValue());
|
} else if (pcv.hasValueStringType() && Utilities.isAbsoluteUrl(pcv.getValue().primitiveValue())) {
|
||||||
} else {
|
td.ah(pcv.getValue().primitiveValue()).tx(pcv.getValue().primitiveValue());
|
||||||
td.addText(pcv.getValue().primitiveValue());
|
} else {
|
||||||
|
td.addText(pcv.getValue().primitiveValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue