Fix bug in DiagnosticReportRenderer (wrong element accessed)

This commit is contained in:
Grahame Grieve 2020-08-07 11:27:57 +10:00
parent 4add0f3ac8
commit 800e381629
2 changed files with 3 additions and 2 deletions

View File

@ -570,8 +570,9 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
CacheToken cacheToken = txCache.generateExpandToken(vs, hierarchical); CacheToken cacheToken = txCache.generateExpandToken(vs, hierarchical);
ValueSetExpansionOutcome res; ValueSetExpansionOutcome res;
res = txCache.getExpansion(cacheToken); res = txCache.getExpansion(cacheToken);
if (res != null) if (res != null) {
return res; return res;
}
Parameters p = expParameters.copy(); Parameters p = expParameters.copy();
p.setParameter("includeDefinition", false); p.setParameter("includeDefinition", false);
p.setParameter("excludeNested", !hierarchical); p.setParameter("excludeNested", !hierarchical);

View File

@ -79,7 +79,7 @@ public class DiagnosticReportRenderer extends ResourceRenderer {
if (dr.has("issued")) { if (dr.has("issued")) {
tr = tbl.tr(); tr = tbl.tr();
tr.td().tx("Reported"); tr.td().tx("Reported");
eff = (DataType) getProperty(dr, "effective[x]").value().getBase(); eff = (DataType) getProperty(dr, "issued").value().getBase();
render(tr.td(), getProperty(dr, "issued").value()); render(tr.td(), getProperty(dr, "issued").value());
} }