NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

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

...

The behavior of simple search changes to default to active only terms.   Since this is not backwards compatible 6.3 will change this behavior back to what was current during 6.1.  Also an additional method for resolving hierarchies was made available in the convenience methods, providing a namespace parameter to further restrict the resolution of hierarchies.  This supports another extension currently providing services to the browser where terminologies can now be loaded with terms belonging to multiple namespaces.

Code Block
titleHierarchy with Namspace
        LexBIGService lbSvc = (LexEVSDistributed)ApplicationServiceProvider.getApplicationServiceFromUrl(serviceUrl, "EvsServiceInfo")
		LexBIGServiceConvenienceMethods lbscm = (LexBIGServiceConvenienceMethods) lbSvc
                .getGenericExtension("LexBIGServiceConvenienceMethods");
        // Iterate through all hierarchies ...
        CodingSchemeVersionOrTag csvt = Constructors.createCodingSchemeVersionOrTagFromVersion(NPO_SCHEME_MULTI_NAMESPACE_VERSION);
        String[] hierarchyIDs = lbscm.getHierarchyIDs(NPO_SCHEME_MULTI_NAMESPACE_URL, csvt);
        String hierarchyId = (hierarchyIDs.length > 0) ? hierarchyIDs[0] : null;
        for (String hierarchy : hierarchyIDs) {
            if (hierarchy.equalsIgnoreCase("is_a"))
                hierarchyId = hierarchy;
        }
        String  code= "NPO_1607";
		AssociationList associations = lbscm.getHierarchyPathToRoot(NPO_SCHEME_MULTI_NAMESPACE, csvt, hierarchyId, code, false, 
			LexBIGServiceConvenienceMethods.HierarchyPathResolveOption.ALL, null);