![]() |
Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
<dependencies> <dependency> <groupId>lexevs.dist.client</groupId> <artifactId>lexevs.dist.client</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> </dependencies> |
The following code sample shows how to retrieve all available coding schemes in the LexEVS repository.
Users should be able to access a remote service with code similar to the following:
Code Block | ||||
---|---|---|---|---|
| ||||
package org.lexgrid.lexevs.remote.client;
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.LexEVSDistributed;
import gov.nih.nci.system.client.ApplicationServiceProvider;
public class MavenBasedPrototype {
LexEVSDistributed lbs = null;
private static String serviceUrl = "https://localhost.daplie.com:8443/lexevsapi64";
public void run() throws LBInvocationException{
try {
lbs = (LexEVSDistributed)ApplicationServiceProvider.getApplicationServiceFromUrl(serviceUrl, "EvsServiceInfo");
}
catch(Exception e){
System.out.println("Starting LexEVS Remote Client fails" + e);
}
CodingSchemeRenderingList list = lbs.getSupportedCodingSchemes();
for(CodingSchemeRendering rendering: list.getCodingSchemeRendering()){
System.out.println(rendering.getCodingSchemeSummary().getFormalName());
}
}
public static void main(String[] args) {
try {
new MavenBasedPrototype().run();
} catch (LBInvocationException e) {
e.printStackTrace();
}
}
} |
Include Page
Architecture
The LexEVS API is exposed by the LexEVS caCORE System for remote access as shown in the figure below. The caCORE System's LexEVSApplicationService
class implements the LexBIGService
interface.
...