fix problem rendering multiple manifestations for an allergy reaction

This commit is contained in:
Grahame Grieve 2020-11-11 10:04:47 +11:00
parent 3b74c39de4
commit 4e602b07e9
2 changed files with 7 additions and 4 deletions

View File

@ -824,7 +824,10 @@ public class ProfileDrivenRenderer extends ResourceRenderer {
if (p == null || p.getValues().size() == 0 || p.getValues().get(0) == null)
td.tx(" ");
else {
renderLeaf(res, p.getValues().get(0), e, td, td, false, showCodeDetails, displayHints, path, indent);
for (BaseWrapper vv : p.getValues()) {
td.sep(", ");
renderLeaf(res, vv, e, td, td, false, showCodeDetails, displayHints, path, indent);
}
}
}
}

View File

@ -843,11 +843,11 @@ public class XhtmlNode implements IBaseXhtml {
public XhtmlNode sep(String separator) {
// if there's already text, add the separator
if (seperated) {
// if there's already text, add the separator. otherwise, we'll add it next time
if (!seperated) {
seperated = true;
return this;
}
seperated = true;
return tx(separator);
}