private String getIncSummary(ConceptSetComponent cc) { CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder(); for (UriType vs : cc.getValueSet()) b.append(vs.asStringValue()); String vsd = b.length() > 0 ? " where the codes are in the value sets (" + b.toString() + ")" : ""; String system = cc.getSystem(); if (cc.hasConcept()) return Integer.toString(cc.getConcept().size()) + " codes from " + system + vsd; if (cc.hasFilter()) { String s = ""; for (ConceptSetFilterComponent f : cc.getFilter()) { if (!Utilities.noString(s)) s = s + " & "; s = s + f.getProperty() + " " + f.getOp().toCode() + " " + f.getValue(); } return "from " + system + " where " + s + vsd; } return "All codes from " + system + vsd; }