fix problem rendering multiple manifestations for an allergy reaction
This commit is contained in:
parent
3b74c39de4
commit
4e602b07e9
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue