Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dert1129 committed Nov 5, 2024
1 parent cfbb8b2 commit 3ee637b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public RepositoryDatasetDisplay(RepositoryFileDataset repositoryFile) {
if(shouldAdd(repositoryFile.getDiabetesHistory())){
diabetesHistory.add(repositoryFile.getDiabetesHistory());
}
if(shouldAdd(repositoryFile.getPrimaryAdjudicatedCat())){
primaryAdjudicatedCategory.add(repositoryFile.getPrimaryAdjudicatedCat());
if(shouldAdd(repositoryFile.getPrimaryAdjudicatedCategory())){
primaryAdjudicatedCategory.add(repositoryFile.getPrimaryAdjudicatedCategory());
}
if(shouldAdd(repositoryFile.getKdigoStage())){
kdigoStage.add(repositoryFile.getKdigoStage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public List<RepositoryDatasetDisplay> getRepositoryDataset() throws Exception {
displayFile.addBaselineEgfr(repositoryDataset.getBaselineEgfr());
displayFile.addDiabetesDuration(repositoryDataset.getDiabetesDuration());
displayFile.addDiabetesHistory(repositoryDataset.getDiabetesHistory());
displayFile.addPrimaryAdjudicatedCategory(repositoryDataset.getPrimaryAdjudicatedCat());
displayFile.addPrimaryAdjudicatedCategory(repositoryDataset.getPrimaryAdjudicatedCategory());
displayFile.addKdigoStage(repositoryDataset.getKdigoStage());
displayFile.addProteinuria(repositoryDataset.getProteinuria());
displayFile.addHypertensionDuration(repositoryDataset.getHypertensionDuration());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class RepositoryFileDataset {
private String tissueSource;
private Double releaseVersion;
@Column(name = "primary_adjudicated_cat")
private String primaryAdjudicatedCat;
private String primaryAdjudicatedCategory;
private String kdigoStage;
private String baselineEgfr;
private String proteinuria;
Expand Down Expand Up @@ -153,12 +153,12 @@ public void setProtocol(String protocol) {
this.protocol = protocol;
}

public String getPrimaryAdjudicatedCat() {
return this.primaryAdjudicatedCat;
public String getPrimaryAdjudicatedCategory() {
return this.primaryAdjudicatedCategory;
}

public void setPrimaryAdjudicatedCat(String primaryAdjudicatedCat) {
this.primaryAdjudicatedCat = primaryAdjudicatedCat;
public void setPrimaryAdjudicatedCategory(String primaryAdjudicatedCat) {
this.primaryAdjudicatedCategory = primaryAdjudicatedCat;
}

public String getKdigoStage() {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/kpmp/QueryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void testGetRepositoryDataset() throws Exception {
repositoryFileDataset.setEnrollmentCategory("organic");
repositoryFileDataset.setWorkflowType("workflowType");
repositoryFileDatasetId.setDlFileId("dlFileId");
repositoryFileDataset.setPrimaryAdjudicatedCat("primaryAdjudicatedCategory");
repositoryFileDataset.setPrimaryAdjudicatedCategory("primaryAdjudicatedCategory");
repositoryFileDataset.setKdigoStage("kdigoStage");
repositoryFileDataset.setBaselineEgfr("baselineEgfr");
repositoryFileDataset.setProteinuria("proteinuria");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public void setReleaseVersion() {

@Test
public void setPrimaryAdjudicatedCat() {
repositoryDataset.setPrimaryAdjudicatedCat("blah");
assertEquals("blah" ,repositoryDataset.getPrimaryAdjudicatedCat());
repositoryDataset.setPrimaryAdjudicatedCategory("blah");
assertEquals("blah" ,repositoryDataset.getPrimaryAdjudicatedCategory());
}

@Test
Expand Down

0 comments on commit 3ee637b

Please sign in to comment.