Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
webclient.js-i2b2.i2b2_loader.js Maven / Gradle / Ivy
/**
* @projectDescription Initialize the i2b2 framework & load the hive configuration information for the core I2B2 Framework.
* @inherits i2b2
* @namespace i2b2
* @author Nick Benik, Griffin Weber MD PhD
* @version 1.3
* ----------------------------------------------------------------------------------------
* updated 9-15-08: RC4 launch [Nick Benik]
*/
// build the global i2b2.hive namespace
var i2b2 = {sdx:{TypeControllers:{},Master:{_sysData:{}}},events:{},hive:{cfg:{},helpers:{},base_classes:{}},h:{}};
if (undefined==i2b2) { var i2b2 = {}; }
if (undefined==i2b2.sdx) { i2b2.sdx = {}; }
if (undefined==i2b2.events) { i2b2.events = {}; }
if (undefined==i2b2.hive) { i2b2.hive = {}; }
if (undefined==i2b2.hive.cfg) { i2b2.hive.cfg = {}; }
if (undefined==i2b2.h) { i2b2.h = {}; }
if (undefined==i2b2.hive.base_classes) { i2b2.hive.base_classes = {}; }
i2b2.ClientVersion = "1.6";
// ||
// ||
// \\||// Configure the loading of cells BELOW
// \\//
// vv
// ================================================================================================== //
// THESE ARE ALL THE CELLS THAT ARE INSTALLED ONTO THE SERVER
i2b2.hive.tempCellsList = [
{ code: "PM",
forceLoading: true // <----- this must be set to true for the PM cell!
},
{ code: "ONT" },
{ code: "CRC" },
{ code: "WORK"},
// { code: "SHRINE"},
{ code: "PLUGINMGR",
forceLoading: true,
forceConfigMsg: { params: [] }
},
{ code: "Dem1Set",
forceLoading: true,
forceConfigMsg: { params: [] },
roles: [ "DATA_LDS", "DATA_DEID", "DATA_PROT" ],
forceDir: "cells/plugins/standard"
},
{ code: "Dem2Set",
forceLoading: true,
forceConfigMsg: { params: [] },
roles: [ "DATA_LDS", "DATA_DEID", "DATA_PROT" ],
forceDir: "cells/plugins/standard"
},
{ code: "Timeline",
forceLoading: true,
forceConfigMsg: { params: [] },
roles: [ "DATA_LDS", "DATA_DEID", "DATA_PROT" ],
forceDir: "cells/plugins/standard"
},
{ code: "WISEsearcher",
forceLoading: true,
forceConfigMsg: { params: [] },
roles: [ "DATA_OBFSC", "DATA_LDS", "DATA_DEID", "DATA_PROT" ],
forceDir: "cells/plugins/community"
},
{ code: "CAREcncptDem",
forceLoading: true,
forceConfigMsg: { params: [] },
roles: [ "DATA_LDS", "DATA_DEID", "DATA_PROT" ],
forceDir: "cells/plugins/community"
},
{ code: "CAREobsTally",
forceLoading: true,
forceConfigMsg: { params: [] },
roles: [ "DATA_LDS", "DATA_DEID", "DATA_PROT" ],
forceDir: "cells/plugins/community"
},
{ code: "ExportXLS",
forceLoading: true,
forceConfigMsg: { params: [] },
roles: [ "DATA_LDS", "DATA_DEID", "DATA_PROT" ],
forceDir: "cells/plugins/community"
},
{ code: "ExampComm",
forceLoading: true,
forceConfigMsg: { params: [] },
roles: [ "DATA_OBFSC", "DATA_AGG", "DATA_LDS", "DATA_DEID", "DATA_PROT" ],
forceDir: "cells/plugins/examples"
}
];
// ================================================================================================== //
// ^^
// //\\
// //||\\
// || Configure the loading of cells ABOVE
// ||
// ||
// ================================================================================================== //
i2b2.Init = function() {
//load the (user configured) i2b2Hive configuration via JSON config file
//var config_data = i2b2.h.getJsonConfig('i2b2_config_data.js');
var no_cache = '?____=' + Math.floor(Math.random() * 50000) + 10000;
var json = new Ajax.Request('i2b2_config_data.js' + no_cache, {
method:'GET',
asynchronous:false,
sanitizeJSON:true,
onSuccess: function(transport) {
i2b2.hive.cfg = eval('('+transport.responseText+')');
//i2b2.hive.cfg = jQuery.parseJSON(transport.responseText);
i2b2.hive.cfg.lstCells = {};
var l = i2b2.hive.tempCellsList.length;
for (var i=0; i