Merge pull request #238 from hapifhir/gg-work-2

fix bug with category
This commit is contained in:
Grahame Grieve 2020-06-11 21:57:50 +10:00 committed by GitHub
commit ebbee32827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,11 @@ public class DiagnosticReportRenderer extends ResourceRenderer {
PropertyWrapper pw = getProperty(dr, "category");
if (valued(pw)) {
h2.tx("(");
render(h2, pw.value());
boolean first = true;
for (BaseWrapper b : pw.getValues()) {
if (first) first = false; else h2.tx(", ");
render(h2, b);
}
h2.tx(") ");
}
if (dr.has("issued")) {