@Override public RecordConfiguration process(@Nullable final RecordConfiguration config) { if (config == null) { return null; } final List<UIExtension> sectionExtensions = getOrderedSectionUIExtensions(); final List<RecordSection> recordSections = new LinkedList<>(); for (final UIExtension sectionExtension : sectionExtensions) { final RecordSection section = new UIXRecordSection(sectionExtension, this.uixManager, this.orderFilter); recordSections.add(section); } config.setSections(Collections.unmodifiableList(recordSections)); return config; }
@Override public RecordConfiguration process(RecordConfiguration config) { if (config == null) { return null; } final List<UIExtension> sectionExtensions = getOrderedSectionUIExtensions(); final List<RecordSection> recordSections = new LinkedList<>(); for (final UIExtension sectionExtension : sectionExtensions) { final RecordSection section = new UIXRecordSection(sectionExtension, this.uixManager, this.orderFilter); recordSections.add(section); } config.setSections(recordSections); DocumentReference mapping = getPhenotypeMapping(); if (mapping != null) { config.setPhenotypeMapping(mapping); } String dobFormat = getDateOfBirthFormat(); if (StringUtils.isNotBlank(dobFormat)) { config.setDateOfBirthFormat(dobFormat); } return config; }