public void FieldNameChanged(PopulationAnalysisFieldDTO dto, string oldName, string newName) { var populationAnalysisField = dto.Field; _populationAnalysis.RenameField(oldName, newName); _eventPublisher.PublishEvent(new FieldRenamedInPopulationAnalysisEvent(_populationAnalysis, populationAnalysisField)); }
private void convertCovariates(PopulationAnalysis populationAnalysis) { if (!(populationAnalysis.FieldByName(ConverterConstants.Population.RACE) is PopulationAnalysisCovariateField raceCovariateField)) { return; } populationAnalysis.RenameField(ConverterConstants.Population.RACE, Constants.Population.POPULATION); raceCovariateField.Covariate = Constants.Population.POPULATION; }