@@ -31,8 +31,7 @@ public Result mapContinuousMetadata(ResultSet rs) throws SQLException {
31
31
String hashedVarId = hashVarId (rs .getString ("conceptPath" ));
32
32
String description = getDescription (rs );
33
33
String parentName = getParentName (rs );
34
- // String parentDisplay = getParentDisplay(rs);
35
- String parentDisplay = rs .getString ("parentDisplay" ); // Testing pediatric fix
34
+ String parentDisplay = getParentDisplay (rs );
36
35
37
36
String max = String .valueOf (jsonBlobParser .parseMax (rs .getString ("values" )));
38
37
String min = String .valueOf (jsonBlobParser .parseMin (rs .getString ("values" )));
@@ -50,24 +49,13 @@ public Result mapContinuousMetadata(ResultSet rs) throws SQLException {
50
49
);
51
50
}
52
51
53
- // private static String getParentDisplay(ResultSet rs) throws SQLException {
54
- // return rs.getString("parentDisplay") == null || rs.getString("parentDisplay").isBlank() ? "" : rs.getString("parentDisplay");
55
- // }
56
52
57
- private static String getParentName (ResultSet rs ) throws SQLException {
58
- return rs .getString ("parentName" ) == null || rs .getString ("parentName" ).isBlank () ? "All Variables" : rs .getString ("parentName" );
59
- }
60
-
61
- private static String getDescription (ResultSet rs ) throws SQLException {
62
- return rs .getString ("description" ) == null || rs .getString ("description" ).isBlank () ? "" : rs .getString ("description" );
63
- }
64
53
65
54
public Result mapCategoricalMetadata (ResultSet rs ) throws SQLException {
66
55
String hashedVarId = hashVarId (rs .getString ("conceptPath" ));
67
56
String description = getDescription (rs );
68
57
String parentName = getParentName (rs );
69
- // String parentDisplay = getParentDisplay(rs);
70
- String parentDisplay = rs .getString ("parentDisplay" ); // Testing pediatric fix
58
+ String parentDisplay = getParentDisplay (rs );
71
59
72
60
CategoricalMetadata metadata = new CategoricalMetadata (
73
61
rs .getString ("stigmatized" ), rs .getString ("display" ), description , "" , rs .getString ("conceptPath" ), parentName ,
@@ -107,4 +95,16 @@ private static String bytesToHex(byte[] hash) {
107
95
}
108
96
return hexString .toString ();
109
97
}
98
+
99
+ private static String getParentDisplay (ResultSet rs ) throws SQLException {
100
+ return rs .getString ("parentDisplay" ) == null || rs .getString ("parentDisplay" ).isBlank () ? "" : rs .getString ("parentDisplay" );
101
+ }
102
+
103
+ private static String getParentName (ResultSet rs ) throws SQLException {
104
+ return rs .getString ("parentName" ) == null || rs .getString ("parentName" ).isBlank () ? "All Variables" : rs .getString ("parentName" );
105
+ }
106
+
107
+ private static String getDescription (ResultSet rs ) throws SQLException {
108
+ return rs .getString ("description" ) == null || rs .getString ("description" ).isBlank () ? "" : rs .getString ("description" );
109
+ }
110
110
}
0 commit comments