render multiple values for properties if they exist

This commit is contained in:
Grahame Grieve 2020-09-22 22:00:37 +10:00
parent 58b6969544
commit 278697f72b
1 changed files with 11 additions and 9 deletions

View File

@ -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();