Skip to content

Commit

Permalink
Temp change to test pediatric data
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Nov 14, 2024
1 parent d0cb476 commit 3ab73e2
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public Result mapContinuousMetadata(ResultSet rs) throws SQLException {
String hashedVarId = hashVarId(rs.getString("conceptPath"));
String description = getDescription(rs);
String parentName = getParentName(rs);
String parentDisplay = getParentDisplay(rs);
// String parentDisplay = getParentDisplay(rs);
String parentDisplay = rs.getString("parentDisplay"); // Testing pediatric fix

String max = String.valueOf(jsonBlobParser.parseMax(rs.getString("values")));
String min = String.valueOf(jsonBlobParser.parseMin(rs.getString("values")));

Expand All @@ -48,9 +50,9 @@ public Result mapContinuousMetadata(ResultSet rs) throws SQLException {
);
}

private static String getParentDisplay(ResultSet rs) throws SQLException {
return rs.getString("parentDisplay") == null || rs.getString("parentDisplay").isBlank() ? "" : rs.getString("parentDisplay");
}
// private static String getParentDisplay(ResultSet rs) throws SQLException {
// return rs.getString("parentDisplay") == null || rs.getString("parentDisplay").isBlank() ? "" : rs.getString("parentDisplay");
// }

private static String getParentName(ResultSet rs) throws SQLException {
return rs.getString("parentName") == null || rs.getString("parentName").isBlank() ? "All Variables" : rs.getString("parentName");
Expand All @@ -64,7 +66,8 @@ public Result mapCategoricalMetadata(ResultSet rs) throws SQLException {
String hashedVarId = hashVarId(rs.getString("conceptPath"));
String description = getDescription(rs);
String parentName = getParentName(rs);
String parentDisplay = getParentDisplay(rs);
// String parentDisplay = getParentDisplay(rs);
String parentDisplay = rs.getString("parentDisplay"); // Testing pediatric fix

CategoricalMetadata metadata = new CategoricalMetadata(
rs.getString("stigmatized"), rs.getString("display"), description, "", rs.getString("conceptPath"), parentName,
Expand Down

0 comments on commit 3ab73e2

Please sign in to comment.