NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

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

...

  • LexEVSPickListServices renamed to LexEVSPickListDefinitionServices
  • Resolve supplied PickListDefinition object. In 5.0, LexEVSPickListServices provides this function. Two methods are defined as follows:
    Code Block
    public ResolvedPickListEntryList resolvePickList(String pickListId, Integer sortType) throws LBException;
    
    Code Block
    public ResolvedPickListEntryList resolvePickList(String pickListId, boolean sortByText) throws LBException;
    
    In 6.0, these methods are defined in LexEVSPickListDefinitionServices.java.
    Code Block
    public ResolvedPickListEntryList resolvePickList(String pickListId, Integer sortType,
           AbsoluteCodingSchemeVersionReferenceList csVersionList, String versionTag) throws LBException;
    
    Code Block
    public ResolvedPickListEntryList resolvePickList(String pickListId, boolean sortByText,
           AbsoluteCodingSchemeVersionReferenceList csVersionList, String versionTag) throws LBException;
    
    Argument 'csVersionList' and 'versionTag' are added. 'csVersionList' represents a list of coding scheme URI's and versions to be used. These will be used only if they are present in the service. If absent, the most recent version will be used instead. 'versionTag' is the tag (e.g "devel", "production", ...) to be used to reconcile coding schemes when more than one is present. Note that non-tagged versions will be used if the tagged version is missing. An example using integer to indicate the sort type is shown as follows:
    Code Block
    
    AbsoluteCodingSchemeVersionReferenceList incsvrl = new AbsoluteCodingSchemeVersionReferenceList();
    incsvrl.addAbsoluteCodingSchemeVersionReference(Constructors.createAbsoluteCodingSchemeVersionReference("urn:oid:11.11.0.1", "1.1"));
    	
    ResolvedPickListEntryList pls = _pickListService.resolvePickList("SRITEST:FA:MicrobialStructureOntologyMinusMCell", 1, incsvrl, "production");
    
  • Besides the two methods above, LexEVSPickListServices also adds two new methods resolvePickList and resolvePickListForTerm as follows:
  • The new resolvePickList method can be passed in a PickListDefinition object instead of pickListId.
    Code Block
    public ResolvedPickListEntryList resolvePickList(PickListDefinition pickList, boolean sortByText, 
            AbsoluteCodingSchemeVersionReferenceList csVersionList, 
            String versionTag) throws LBException;
    
    Code Block
    public ResolvedPickListEntryList resolvePickListForTerm(String pickListId, String term, String matchAlgorithm,
            String language, String[] context, boolean sortByText,A
            bsoluteCodingSchemeVersionReferenceList csVersionList, String versionTag) throws LBException;
    
  • More restriction arguments have been added to the new resolvePickListForTerm method, such as: 'term', 'matchAlgorithm', 'languange', and 'context'. The argument 'term' is required. An example is shown below:
    Code Block
    ResolvedPickListEntryList pickLists = getPickListService().resolvePickListForTerm("SRITEST:AUTO:AllDomesticButGM", 
           "Jaguar", MatchAlgorithms.exactMatch.name(), 
           "english", null, false, null, null);
    
  • In 6.0 you also can resolve a pick list by revision. The code below is the new method:
    Code Block
    public PickListDefinition resolvePickListByRevision(String pickListId,
           String revisionId, Integer sortOrder) throws LBRevisionException;
    
    Note: the return type of this method is PickListDefinition instead of ResolvedPickListEntryList.

...