Server (Cells) Messaging Home
Space shortcuts
Space Tools
Skip to end of metadata
Go to start of metadata

The get_name_info message returns the information needed to populate a tree node for a given search keyword or name. This message requires the user to pass a string that is queried against the name column.

Generate Tree NoDes for a Given Name

To generate a list of base tree nodes associated with a given search keyword or name, the sequence of events is as follows:

  1. The client requests node(s) for a given name / category. If the request message indicates all categories should be searched, loop through all known categories for the user (type = default)
  2. The ONT server performs the following steps:
    1. Query the table of tables to confirm that the user / role can access category passed in. If not, return coded error. The client receives an error message with the code "TABLE_ACCESS_DENIED"
    2. If max is set, query the database for the number of entries that meet the search criteria.
    3. If count <max or no max is set, query the database for entries that meet the search criteria.
    4. If count > max send an error message back.


  1. The client generates a list of nodes that match the search criteria.
  2. The client receives an error message with the code "MAX_EXCEEDED" and displays a dialog asking if the user wants to see all nodes. If no – done. If yes – client sends another message with max empty.



get_name_info Request Message

This message requires the user to pass a string that is queried against the "name" column. The category attribute does not have to be included and if it is not, all categories the user is allowed to see will be searched.
The remaining attributes provide information about the results to be returned. If the number of rows found is greater than the max, then an error message will be returned in the i2b2 header. If the max is left out then it is interpreted that there is no max. The hiddens and synonyms attributes tell whether to return hiddens and synonyms. By default hiddens and synonyms are false, so if they are left out it will be false. The type tells which columns to select (default / core / all). By default, the type is set to default. Each message will interpret the default to be a different set of columns. The default set of columns for get_name_info includes the name column only.

  • If type = core, then all columns except the blob and the system / date information will be returned.
  • If type = all then all columns except the blob are returned.



The blob attribute indicates whether or not to return the blob along with the default / core / all return columns.
The <match_str> tag tells the service which string to search for. It is implied by the message get_name_info that the column to search is the name. The strategy attribute explains how the search must match (exact, left, right, contains).
<message_body>
<get_name_info category="diagnosis" max="200""hiddens="true" synonyms="true" type="core" blob = "false">
<match_str strategy="contains">asthma</match_str>
</get_name_info>
</message_body>

Possible "hiddens" Settings

Some ontology terms exist but for various reasons are not displayed in the query tree.

Value

Description

false

Do not return data categorized as "hidden"

true

Include data categorized as "hidden"



Possible "synonyms" Settings

Some ontology terms are listed as synonyms for other terms.

Value

Description

false

Do not return data categorized as "synonym"

true

Include data categorized as "synonym"



Possible "blob" Settings


Value

Description

Example

false

Do not return data stored as a blob or clob

xml, comments

true

Return xml and comments

 



Possible "strategy" Settings


Value

Description

contains

Return data whose name contains the match string

exact

Return data whose name exactly matches the match string

left

Return data whose name starts with the match string

right

Return data whose name ends with the match string



get_name_info Response Message

The request has the following settings:
type=core
blob=false
Example:
<message_body>
<concepts>
<concept>
<level>3</level>
<key>\\i2b2\RPDR\Medications\MUL(LME219) respiratory agents(LME220) antiasthmatic combinations</key>
<name>Antiasthmatic combinations</name>
<synonym_cd>N</synonym_cd>
<visualattributes>FA </visualattributes>
<totalnum>0</totalnum>
<facttablecolumn>concept_cd</facttablecolumn>
<tablename>concept_dimension</tablename>
<columnname>concept_path</columnname>
<columndatatype>T</columndatatype>
<operator>like</operator>
<dimcode>\RPDR\Medications\MUL(LME219) respiratory agents(LME220) antiasthmatic combinations</dimcode>
<tooltip>medications \ respiratory agents \ antiasthmatic combinations</tooltip>
</concept>
</concepts>
</message_body>