src/hg/instinct/bioInt2/bioIntUI.c 1.7

1.7 2009/03/31 05:06:38 jsanborn
add description to clinical info
Index: src/hg/instinct/bioInt2/bioIntUI.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/bioInt2/bioIntUI.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -B -U 4 -r1.6 -r1.7
--- src/hg/instinct/bioInt2/bioIntUI.c	31 Mar 2009 04:08:23 -0000	1.6
+++ src/hg/instinct/bioInt2/bioIntUI.c	31 Mar 2009 05:06:38 -0000	1.7
@@ -348,17 +349,20 @@
     if (da->next)
 	dyStringPrintf(dy, ",");
     }
 dyStringPrintf(dy, ")");
-
 char *query = dyStringCannibalize(&dy);
+
+jsonAddString(js, "description", fe->longLabel);
+
+struct json *data = jsonAddContainer(js, "data");
 struct sqlResult *sr = sqlGetResult(conn, query);
 char **row = NULL;
 while ((row = sqlNextRow(sr)) != NULL)
     { 
     char *name = row[0];
     double val = atof(row[1]);
-    jsonAddDouble(js, name, val);
+    jsonAddDouble(data, name, val);
     }
 }
 
 void sendUniqueMatch(struct sqlConnection *conn, struct json *js,