Skip to content

Commit

Permalink
phenotype and species
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Nov 30, 2023
1 parent 6e0bf3a commit 861019c
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,16 @@ public Study convertDatasetToStudy(User user, Dataset dataset, StudyConversion s
newPropConversion(dictionaries, dataset, "DAC ID", "dataAccessCommitteeId", PropertyType.Number, studyConversion.getDacId().toString());
}

// Handle "Phenotype/Indication"
if (Objects.nonNull(studyConversion.getPhenotype())) {
oldPropConversion(dictionaries, dataset, "Phenotype/Indication", 4, PropertyType.String, studyConversion.getPhenotype());
}

// Handle "Species"
if (Objects.nonNull(studyConversion.getSpecies())) {
oldPropConversion(dictionaries, dataset, "Species", 3, PropertyType.String, studyConversion.getSpecies());
}

if (Objects.nonNull(studyConversion.getPiName())) {
// Handle "PI Name"
newPropConversion(dictionaries, dataset, "PI Name", "piName", PropertyType.String, studyConversion.getPiName());
Expand Down

0 comments on commit 861019c

Please sign in to comment.