NIH | National Cancer Institute | NCI Wiki  

WIKI MAINTENANCE NOTICE

Please be advised that NCI Wiki will be undergoing maintenance Monday, July 22nd between 1700 ET and 1800 ET and will be unavailable during this period.
Please ensure all work is saved before said time.

If you have any questions or concerns, please contact the CBIIT Atlassian Management Team.

Error rendering macro 'rw-search'

null

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 35 Next »

Code Snippets

Request Coded Node Set

Error formatting macro: Include: java.lang.IllegalArgumentException: No link could be created for 'LexEVS:RequestCodedNodeSet Snippet'.

Request Coded Node Graph

Error formatting macro: Include: java.lang.IllegalArgumentException: No link could be created for 'LexEVS:RequestCodedNodeGraph Snippet'.

QueryByExampleWithQueryOptions Snippet

Error formatting macro: Include: java.lang.IllegalArgumentException: No link could be created for 'LexEVS:QueryByExampleWithQueryOptions Snippet'.

QueryByExampleWithNoQueryOptions Snippet

Error formatting macro: Include: java.lang.IllegalArgumentException: No link could be created for 'LexEVS:QueryByExampleWithNoQueryOptions Snippet'.

Code Files

Distributed Sample Client Code

ZIP archive file containing sample distributed code.

Distributed Coding Scheme List

Java Code Snippet
import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList;
import org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering;
import org.LexGrid.LexBIG.Exceptions.LBInvocationException;
import org.LexGrid.LexBIG.caCore.interfaces.LexEVSApplicationService;
import org.LexGrid.LexBIG.caCore.interfaces.LexEVSDistributed;
import org.LexGrid.LexBIG.caCore.interfaces.LexEVSService;

import gov.nih.nci.system.client.ApplicationServiceProvider;
 
    public class RemoteTestClient {
     
    private String serviceUrl = "https://lexevsapi65.nci.nih.gov/lexevsapi65";
    private LexEVSService lexevsService;
     
    public static void main(String args[]) throws Exception {
        RemoteTestClient client = new RemoteTestClient();
        client.queryLexEVSDistributed();
    }
     
    public RemoteTestClient() throws Exception {
        lexevsService = (LexEVSApplicationService)ApplicationServiceProvider
                .getApplicationServiceFromUrl(serviceUrl, "EvsServiceInfo");
    }
     
    public void queryLexEVSDistributed() throws LBInvocationException {
        LexEVSDistributed distributedSvc = lexevsService;
        CodingSchemeRenderingList csrl = distributedSvc.getSupportedCodingSchemes();
        CodingSchemeRendering[] csr = csrl.getCodingSchemeRendering();
        for(int i=0;i<csr.length;i++){
     
            System.out.println("\t\tOutput: " + "Coding Scheme: " + csr[i].getCodingSchemeSummary().getLocalName());
            System.out.println("\t\tOutput: " + "  -- Version: " + csr[i].getCodingSchemeSummary().getRepresentsVersion());
            System.out.println("\t\tOutput: " + "  -- URI: " + csr[i].getCodingSchemeSummary().getCodingSchemeURI());
        }
    }
     
    }

Distributed Coding Scheme List Test

Error formatting macro: Include: java.lang.IllegalArgumentException: No link could be created for 'LexEVS:DistributedCodingSchemeListTest Java'.
  • No labels