fix bugs in comparisons
This commit is contained in:
parent
59b0f032cb
commit
ebead8fd7c
|
@ -84,7 +84,12 @@ public class ComparisonRenderer implements IEvaluationContext {
|
||||||
first = false;
|
first = false;
|
||||||
b.append("<tr><td colspan=4><b>"+name+"</b></td></tr>\r\n");
|
b.append("<tr><td colspan=4><b>"+name+"</b></td></tr>\r\n");
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
renderComparison(id, comp);
|
renderComparison(id, comp);
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println("Exception rendering "+id+": "+e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
b.append(comp.toTable());
|
b.append(comp.toTable());
|
||||||
//"<li><a href=\""+comp.getId()+".html\">"+Utilities.escapeXml(comp.summary())+"</a></li>\r\n"
|
//"<li><a href=\""+comp.getId()+".html\">"+Utilities.escapeXml(comp.summary())+"</a></li>\r\n"
|
||||||
}
|
}
|
||||||
|
|
|
@ -210,7 +210,7 @@ public class ValueSetComparer extends CanonicalResourceComparer {
|
||||||
private int countMatchesBySystem(List<ConceptSetComponent> list, ConceptSetComponent item) {
|
private int countMatchesBySystem(List<ConceptSetComponent> list, ConceptSetComponent item) {
|
||||||
int c = 0;
|
int c = 0;
|
||||||
for (ConceptSetComponent t : list) {
|
for (ConceptSetComponent t : list) {
|
||||||
if (t.getSystem().equals(item.getSystem())) {
|
if (t.hasSystem() && t.getSystem().equals(item.getSystem())) {
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue