i2b2 Web Client
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

{*}{_}{{{   {{{proxy_info}}}{_}{*}color:#008000}\n'
'             <i2b2_version_compatible>1.1</i2b2_version_compatible>\n'
'             <hl7_version_compatible>2.4</hl7_version_compatible>\n'
'             <receiving_facility>\n'' <facility                 <facility_name>i2b2 Hive</facility_name>\n'
'             </receiving_facility>\n'
'
             <datetime_of_message>{header_msg_datetime}</datetime_of_message>\n'
'             <security>\n'
'                  <domain>{sec_domain}</domain>\n'
'                  <username>{sec_user}</username>\n'
'                       {sec_pass_node}\n''</security>\n'' <message
'              <message_control_id>\n'
'                   <message_num>{header_msg_id}</message_num>\n'
'                   <instance_num>0</instance_num>\n'' <
'              </message_control_id>\n'' <processing
'              <processing_id>\n'
'                   <processing_id>P</processing_id>\n'
'                   <processing_mode>I</processing_mode>\n'' <
'              </processing_id>\n'' <accept
'              <accept_acknowledgement_type>AL</accept_acknowledgement_type>\n'
' <application             <application_acknowledgement_type>AL</application_acknowledgement_type>\n'' <country
'              <country_code>US</country_code>\n'' <project
'              <project_id>{sec_project}</project_id>\n'
' <       </message_header>\n'' <request 
'        <request_header>\n'' <result
'              <result_waittime_ms>{result_wait_time}000</result_waittime_ms>\n'
' <       </request_header>\n'
' <message       <message_body>\n'' <ns4
'              <ns4:get_schemes type="default"/>\n'
' <       </message_body>\n'
'</ns3:request>';

i2b2.ONT.cfg.msgs.GetSchemes = '<?xml version="1.0" encouding="UTF-8"
                                                                 standalone="yes"?>\n'
'<ns3:request xmlns:ns3="http://www.i2b2.org/xsd/hive/mghs/1.1."
         xmlns:ns4="http://www.i2b2.org/xsd/cell/ont/1.1/"
         xmlns:ns2="http://www.i2b2.org/xsd/hive/plugin/">\n'
'        <message_header>\n'
'            

Wiki Markup

 



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_info}

<proxy>
<redirect_url>
http://services.i2b2.org/i2b2/rest/PMService/getServices
</redirect_url>

Information used by the Web Client's proxy server

{sec_domain}

HarvardDemo

Domain of current project

{sec_project}

Demo

Code of current project

{sec_user}

demo

User currently logged in

{sec_pass_node}

<password token_ms_timeout='1800000' is_token='true'>
SessionKey:ewIalmaQCnWuhAh5mooW
</password>

See Documentation on Hive Project Management Cell

{header_msg_id}

mQgJaD4z12dd2vLWWzY64

Runtime generated GUID

{header_msg_datetime}

2010-05-19T13:24:35-04:00

Current datetime in ISO8601

{result_wait_time}

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="08d51debf8c4202d-a7074102-41c843cb-adedad40-a0de3c1553dacf57c3f4fb8b"><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(

Wiki Markup
"\[GetSchemes\] Could not parse() data\!"
); } return this; };

]]></ac:plain-text-body></ac:structured-macro>

...