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

Versions Compared

Key

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

...

Description:

Loads supplied Value Set Definition Object.

Input:

  • org.LexGrid.valueSets.ValueSetDefinition valueSetDefinition - (Mandatory) Value Set Definition Object to be loaded into the terminology service.
  • java.net.URI releaseURI - (Optional) Release URI the loaded contents belong to.
  • boolean stopOnErrors - (Optional) default is false. True means stop if any load error is detected. False means attempt to load what can be loaded if recoverable errors are encountered.

Output:

java.lang.String - URI of Value Set Definition loaded

Exception:

org.LexGrid.LexBIG.Exceptions.LBException

Sample Call:

  • Step 1: Instantiate ValueSetLoadOperation if it is not done yet:
    Code Block
    org.lexevs.cts2.admin.load.ValueSetLoadOperation vsLoadOp = new org.lexevs.cts2.LexEvsCTS2Impl().getAdminOperation().getValueSetLoadOperation();_
    
  • Step 2: Populate Code System Object:
    Code Block
    org.LexGrid.valueSets.ValueSetDefinition vsd = new org.LexGrid.valueSets.ValueSetDefinition();
    vsd.setValueSetDefinitionURI("SRITEST:JUNIT:TEST:VSD1");
    vsd.setValueSetDefinitionName("JUnit test vsd 1");
    vsd.setConceptDomain("cd");
    vsd.addRepresentsRealmOrContext("context");
    vsd.setDefaultCodingScheme("Automobiles");
    vsd.setIsActive(false);
    vsd.setOwner("cts2");
    java.util.List<org.LexGrid.commonTypes.Source> srcList = new ArrayList<org.LexGrid.commonTypes.Source>();
    org.LexGrid.commonTypes.Source src = new org.LexGrid.commonTypes.Source();
    src.setContent("lexevs");
    srcList.add(src);
    src = new org.LexGrid.commonTypes.Source();
    src.setContent("cts2");
    srcList.add(src);
    vsd.setSource(srcList);
    
    org.LexGrid.valueSets.DefinitionEntry de = new org.LexGrid.valueSets.DefinitionEntry();
    de.setRuleOrder(1L);
    de.setOperator(org.LexGrid.valueSets.types.DefinitionOperator.OR);
    org.LexGrid.valueSets.CodingSchemeReference csr = new org.LexGrid.valueSets.CodingSchemeReference();
    csr.setCodingScheme("Automobiles");
    de.setCodingSchemeReference(csr);
    
    vsd.addDefinitionEntry(de);
    
  • Step 3: Call load method by passing the Value Set Definition Object and other parameter values:
    Code Block
    String vsdURI = vsLoadOp.load(vsd, null, true);; 
    

...