NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Scrollbar
iconsfalse

Page info
title
title

Section
Column
width75%
Panel
titleContents of this Page
Table of Contents
minLevel2
Column
Align
alignright
Include Page
Menu LexEVS 6.0 CTS2 to Include
Menu LexEVS 6.0 CTS2 to Include

...

Description:

Update Usage Context versionable attributes like effective date, expiration date, owner, status etc.

Input:

  • java.lang.String usageContextId - (Mandatory) identifier of a Usage Context.
  • java.lang.String namespace - (Mandatory) Mamespace of a Usage Context.
  • org.LexGrid.commonTypes.Versionable changedVersionable - (Mandatory) versionable (like:owner, effectiveDate, expirationDate, status etc) changes.
  • java.lang.String codeSystemNameOrURI - (Mandatory) Code System URI that contains the Usage Context.
  • java.lang.String codeSystemVersion - (Mandatory) Version of the Code System that contains the Usage Context.
  • org.lexevs.cts2.core.update.RevisionInfo revision - (Mandatory) Contains revision information like unique RevisionId, change description, author information etc.

Output:

boolean - True; if update was success

Exception:

org.LexGrid.LexBIG.Exceptions.LBException

Sample Call:

  • Step 1: Instantiate UsageContextAuthoringOperation if it is not done yet:
    Code Block
    org.lexevs.cts2.author.UsageContextAuthoringOperation ucAuthorOp = LexEvsCTS2Impl.defaultInstance().getAuthoringOperation().getUsageContextAuthoringOperation();
    
  • Step 2: Populate RevisionInfo object:
    Code Block
    RevisionInfo revInfo = new RevisionInfo();
    revInfo.setChangeAgent("change Agent Name");
    revInfo.setChangeInstruction("here goes the change Instructions");
    revInfo.setDescription("description of the resource");
    revInfo.setEditOrder(1L);
    revInfo.setRevisionDate(new Date());
    revInfo.setRevisionId(UUID.randomUUID().toString());
    
  • Step 2: Populate versionable changes:
    Code Block
    Versionable changedVersionable = new Versionable();
    changedVersionable.setEffectiveDate(new Date());
    changedVersionable.setIsActive(true);
    changedVersionable.setOwner("new Owner");
    changedVersionable.setStatus("new status");
    
  • Step 3: Call change versionable method by passing the code system, Usage Context and changed versionable information:
    Code Block
    boolean changed = ucAuthOp.updateUsageContextVersionable("UC00001", "Automobiles-UC", changedVersionable, "urn:oid:11.11.0.99", "1.0", revInfo); 
    

...


Scrollbar
iconsfalse