@Override public String getName() { return this.access.isOpenAccess() && this.match != null ? this.match.getName() : null; }
private void readPhenotypes(Patient patient) { List<Map<String, String>> predefined = new LinkedList<>(); List<Map<String, String>> freeText = new LinkedList<>(); Set<? extends Feature> features = patient.getFeatures(); for (Feature feature : features) { Map<String, String> item = new HashMap<>(); item.put(NAME_FIELD, feature.getName()); item.put(OBSERVED_FIELD, feature.isPresent() ? OBSERVED : NOT_OBSERVED); String id = feature.getId(); if (StringUtils.isEmpty(id)) { freeText.add(item); } else { item.put(ID_FIELD, id); predefined.add(item); } } Collections.sort(predefined, PHENOTYPES_COMPARATOR); Collections.sort(freeText, PHENOTYPES_COMPARATOR); this.phenotypes = new HashMap<>(); this.phenotypes.put(PREDEFINED, predefined); this.phenotypes.put(FREE_TEXT, freeText); }
DataCell cell = new DataCell(feature.getName(), x, y, StyleOption.FEATURE_SEPARATOR); section.addCell(cell); x++;
DataCell cell = new DataCell(feature.getName(), x, y, StyleOption.FEATURE_SEPARATOR); section.addCell(cell); x++;
section.addCell(cell); section.addCell(new DataCell(feature.getName(), ++x, y, StyleOption.FEATURE_SEPARATOR)); section.addCell(new DataCell(feature.getId(), ++x, y, StyleOption.FEATURE_SEPARATOR)); ++y;
section.addCell(new DataCell(feature.getName(), ++x, y, StyleOption.FEATURE_SEPARATOR)); section.addCell(new DataCell(feature.getId(), ++x, y, StyleOption.FEATURE_SEPARATOR)); if (present.contains("meta.name")) {
if (this.access.isOpenAccess()) { result.element("id", this.match.getId()); result.element("name", this.match.getName()); result.element("type", this.match.getType()); if (!this.match.isPresent()) {