NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

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

...

  1. Connect to the LexEVS caGrid Service
    Code Block
    LexBIGServiceGrid lbs = new LexBIGServiceGridAdapter(url);
  2. Build an org.LexGrid.LexBIG.DataModel.cagrid.CodingSchemeIdentification to hold the Coding Scheme name.
    Code Block
    CodingSchemeIdentification codingScheme = new CodingSchemeIdentification();
    codingScheme.setName "codingScheme";
  3. Build a gov.nih.nci.evs.security.SecurityToken containing the security information for the desired Coding Scheme.
    Code Block
    SecurityToken token = new SecurityToken();

    #
    
    token.setAccessToken("securityToken");
    Code Block
  4. Invoke the LexEVS caGrid service as follows: code
    Code Block
    LexBIGServiceGrid lbsg = lbs.setSecurityToken(codingScheme, token);
    This will return a reference to a new "LexBIGServiceGrid" instance that is associated with the security properties that were passed in.

...