Page History
...
i2b2.ONT.cfg.msgs.GetSchemes = '<?xml version="1.0" encouding="UTF-8" | |
|
Placeholder tags starting, and ending, with three curly brackets ( "{" and "
}" ) are contained throughout this message string. Between the tag's curly brackets is its non-space containing name used to identify the tag. These tags are replaced with values passed in the call parameters when the communication method is invoked.
...
...
Reserved Tag Names
There are a number of reserved tag names that are automatically defined by the i2b2 web client framework. You may (and most like will) use these tags in your message.
...
Tag Name | Example Value | Description |
{ | <proxy> | Information used by the Web Client's proxy server |
{ | HarvardDemo | Domain of current project |
{ | Demo | Code of current project |
{ | demo | User currently logged in |
{ | <password token_ms_timeout='1800000' is_token='true'> | See Documentation on Hive Project Management Cell |
{ | mQgJaD4z12dd2vLWWzY64 | Runtime generated GUID |
{ | 2010-05-19T13:24:35-04:00 | Current datetime in ISO8601 |
{ | 180 | Max query time in seconds |
...
...
Message Parser Creation
You may create a message parser to simplify your own code and to allow other developers to more easily integrate with your standardized cell communicator. When your parser is invoked its this variable references the standard Communicator Results Object ("CRO") that is returned by the communicator subsystem.
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b2b43586a1c689ff-6060edeb-4118451b-b7d2af9b-a30c3c1306a318b889f2433c"><ac:plain-text-body><![CDATA[ | i2b2.ONT.cfg.parsers.GetSchemes = function(){ if (!this.error) { this.model = []; // extract records from XML msg var c = this.refXML.getElementsByTagName('concept'); for (var i=0; i < 1 * c.length; i++) { var o = new Object; o.xmlOrig = c[i]; o.level = i2b2.h.getXNodeVal(c[i],'level'); o.key = i2b2.h.getXNodeVal(c[i],'key'); o.name = i2b2.h.getXNodeVal(c[i],'name'); o.total_num = i2b2.h.getXNodeVal(c[i],'totalnum'); // save extracted info this.model.push(o); } } else { this.model = false; console.error( | ]]></ac:plain-text-body></ac:structured-macro> |
...