render multiple values for properties if they exist
This commit is contained in:
parent
58b6969544
commit
278697f72b
|
@ -416,8 +416,9 @@ 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 (pcv.hasValue()) {
|
||||||
if (first) first = false; else td.addText(", ");
|
if (first) first = false; else td.addText(", ");
|
||||||
if (pcv.hasValueCoding()) {
|
if (pcv.hasValueCoding()) {
|
||||||
td.addText(pcv.getValueCoding().getCode());
|
td.addText(pcv.getValueCoding().getCode());
|
||||||
|
@ -429,6 +430,7 @@ public class CodeSystemRenderer extends TerminologyRenderer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (UsedConceptMap m : maps) {
|
for (UsedConceptMap m : maps) {
|
||||||
td = tr.td();
|
td = tr.td();
|
||||||
|
|
Loading…
Reference in New Issue