Skip to content

Commit 50648bf

Browse files
committed
Move class
1 parent 477fdf6 commit 50648bf

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

SivStudies/src/org/labkey/sivstudies/query/SivStudiesCustomizer.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
import org.labkey.api.data.AbstractTableInfo;
55
import org.labkey.api.data.ColumnInfo;
66
import org.labkey.api.data.Container;
7+
import org.labkey.api.data.SQLFragment;
78
import org.labkey.api.data.TableInfo;
89
import org.labkey.api.ldk.table.AbstractTableCustomizer;
10+
import org.labkey.api.query.ExprColumn;
911
import org.labkey.api.query.FieldKey;
1012
import org.labkey.api.security.User;
1113
import org.labkey.api.study.Dataset;
@@ -41,7 +43,7 @@ public void performDatasetCustomization(DatasetTable ds)
4143
}
4244
}
4345

44-
private @Nullable String getStudyDemographicsSchemaTableName(Container c, User u)
46+
private @Nullable String getStudyDemographicsSchemaTableName(Container c)
4547
{
4648
Study s = StudyService.get().getStudy(c);
4749
if (s == null)
@@ -66,15 +68,14 @@ private void addAgeAtTimeCol(AbstractTableInfo ti, String dateColName)
6668
return;
6769
}
6870

69-
final String demographicsTableName = getStudyDemographicsSchemaTableName(ti.getUserSchema().getContainer(), ti.getUserSchema().getUser());
70-
final FieldKey birthFieldKey = FieldKey.fromString("Id/demographics/birth");
71+
final String demographicsTableName = getStudyDemographicsSchemaTableName(ti.getUserSchema().getContainer());
7172

72-
//new SQLFragment("(SELECT .birth FROM studydatasets." + getStudyDemographicsSchemaTableName())
73+
SQLFragment sql = new SQLFragment("(SELECT t.birth FROM studydatasets." + demographicsTableName + " t WHERE t.Id = " + ExprColumn.STR_TABLE_ALIAS + ".Id)");
7374

7475
// TODO
7576
}
7677

77-
private void appendMhcColumns(AbstractTableInfo ti, String dateColName)
78+
private void appendMhcColumns(AbstractTableInfo ti)
7879
{
7980

8081
}

0 commit comments

Comments
 (0)