Class ExploreService

  • All Implemented Interfaces:
    java.io.Serializable

    public class ExploreService
    extends java.lang.Object
    implements java.io.Serializable
    Provides the basic methods to query the SNOMED CT repository for finding ancestors and descendants of a concept. Also provides methods to process ECL queries.
    See Also:
    Serialized Form
    • Constructor Detail

      • ExploreService

        public ExploreService()
    • Method Detail

      • getAllDescendantConcepts

        public java.util.Set<Concept> getAllDescendantConcepts​(java.lang.String id)
        Returns a Set of all Descendants Concepts for given concept identifier.
        Parameters:
        id - SNOMED CT concept identifier.
        Returns:
        Set of Concepts.
      • getIsARelationshipsWithCount

        public java.util.Set<RelationshipTC> getIsARelationshipsWithCount​(java.lang.String conceptId)
        Searches for the immediate children descriptions.
        Parameters:
        conceptId - Concept Id whose immediate children to search
        Returns:
        Set of RelationshipTC matching the given Concept ID.
        Throws:
        java.text.ParseException
      • getAllAncestorConcepts

        public java.util.Set<Concept> getAllAncestorConcepts​(java.lang.String id)
        Returns a Set of all Ancester Concepts for given concept identifier.
        Parameters:
        id - SNOMED CT concept identifier.
        Returns:
        Set of Concepts.
      • executeEcl

        public java.util.Set<Concept> executeEcl​(java.lang.String ecl,
                                                 java.lang.String term)
        Parses ECL query and fetches result.
        Parameters:
        ecl - String ECL query.
        term - Filter result based on given String.
        Returns:
        Set of Concepts.