Class LookupService

  • All Implemented Interfaces:
    java.io.Serializable

    public class LookupService
    extends java.lang.Object
    implements java.io.Serializable
    Provides the basic methods to query the SNOMED CT repository for finding Concept details based on Concept ID, Relationships etc.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LookupService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<CompositeDescription> getAllDescriptions​(java.lang.String conceptId, EnumLangRefset enumLangRefset)
      Returns the list of descriptions including Fully specified names (FSN).
      Concept getConcept​(java.lang.String id)
      Returns a SNOMED CT Concept associated for a given Concept identifier.
      java.util.List<Concept> getConcept​(java.util.List<java.lang.String> ids)
      Returns List of SNOMED CT Concept associated for a given Concept identifier.
      ConceptDetails getConceptDetails​(java.lang.String id, EnumLangRefset enumLangRefsetId)
      Returns concept details associated for a given concept identifier (corresponding descriptions and relationships are also listed)
      java.util.List<Relationship> getConcepts​(java.lang.String attribute)
      Returns all concept associated for a given attribute name
      java.util.List<Relationship> getConcepts​(java.lang.String attribute, java.lang.String destinationId)
      Returns all concept associated for a given attribute name and destination id (attribute value)
      java.util.List<Relationship> getConcepts​(java.lang.String attribute, java.util.List<java.lang.String> semanticTagList)
      Returns all concept associated for a given attribute name and semantic tags
      java.util.List<Relationship> getConcepts​(java.lang.String attribute, java.util.List<java.lang.String> semanticTagList, java.lang.String destinationId)
      Returns all concept associated for a given attribute name, semantic tags and destination id (attribute value)
      java.util.List<Relationship> getConcepts​(java.lang.String attribute, java.util.List<java.lang.String> semanticTagList, java.lang.String destinationId, boolean subsumption, java.util.List<java.lang.String> parentIdList, boolean excludeConcept)
      Returns all concept associated for a given attribute name and other parameters
      java.util.Set<Concept> getRelations​(java.lang.String conceptId, java.lang.String relationshipType, EnumDirection direction)
      Searches given concept id in the SNOMED CT repository based on provided relationship type, direction.
      java.util.List<java.lang.String> getRelationShipType()  
      java.util.Set<java.lang.String> getSemanticTags()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • updateSematicTag

        public static boolean updateSematicTag
      • updateRelationType

        public static boolean updateRelationType
    • Constructor Detail

      • LookupService

        public LookupService()
    • Method Detail

      • getAllDescriptions

        public java.util.List<CompositeDescription> getAllDescriptions​(java.lang.String conceptId,
                                                                       EnumLangRefset enumLangRefset)
        Returns the list of descriptions including Fully specified names (FSN).
        Parameters:
        conceptId - SNOMED CT concept identifier.
        enumLangRefset - EnumLangRefset Specifies English language reference set for US or UK.
        Returns:
        List of CompositeDescription for given concept id.
      • getRelations

        public java.util.Set<Concept> getRelations​(java.lang.String conceptId,
                                                   java.lang.String relationshipType,
                                                   EnumDirection direction)
        Searches given concept id in the SNOMED CT repository based on provided relationship type, direction.
        Parameters:
        conceptId - - String Concept ID to be searched in SNOMED CT repository.
        enumRelationshipType - - EnumRelationshipType Type of relationship.
        If enumRelationshipType is,
        is a - It will return only "is a" relation type Components.
        all - It will return only "all" relation type Components.
        finding site - It will return only "finding site" relation type Components.
        direction - - EnumDirection Relationship direction i.e whether the specified concept Id is the source or destination Possible values for directions is,
        source - concept id is a source
        destination - concept id is a destination
        Returns:
        Set of Concept matching the given parameter.
      • getConceptDetails

        public ConceptDetails getConceptDetails​(java.lang.String id,
                                                EnumLangRefset enumLangRefsetId)
        Returns concept details associated for a given concept identifier (corresponding descriptions and relationships are also listed)
        Parameters:
        id - String identifier of the SNOMED CT Concept.
        enumLangRefsetId - EnumLangRefset Specifies English language reference set for US or UK. *
        Returns:
        ConceptDetails that contains the details corresponding to a particular SNOMED CT Concept (including descriptions and relationships related to that particular concept).
      • getConcepts

        public java.util.List<Relationship> getConcepts​(java.lang.String attribute)
        Returns all concept associated for a given attribute name
        Parameters:
        attributeName -
        Returns:
        Concept that contains the list of corresponding to a particular SNOMED CT Concept attribute name and attribute value
      • getConcepts

        public java.util.List<Relationship> getConcepts​(java.lang.String attribute,
                                                        java.util.List<java.lang.String> semanticTagList)
        Returns all concept associated for a given attribute name and semantic tags
        Parameters:
        attributeName -
        semanticTagList -
        Returns:
        Concept that contains the list of corresponding to a particular SNOMED CT Concept attribute name
      • getConcepts

        public java.util.List<Relationship> getConcepts​(java.lang.String attribute,
                                                        java.lang.String destinationId)
        Returns all concept associated for a given attribute name and destination id (attribute value)
        Parameters:
        attributeName -
        destinationId -
        Returns:
        Concept that contains the list of corresponding to a particular SNOMED CT Concept attribute name and attribute value
      • getConcepts

        public java.util.List<Relationship> getConcepts​(java.lang.String attribute,
                                                        java.util.List<java.lang.String> semanticTagList,
                                                        java.lang.String destinationId)
        Returns all concept associated for a given attribute name, semantic tags and destination id (attribute value)
        Parameters:
        attributeName -
        semanticTagList -
        destinationId -
        Returns:
        Concept that contains the list of corresponding to a particular SNOMED CT Concept attribute name and attribute value
      • getConcepts

        public java.util.List<Relationship> getConcepts​(java.lang.String attribute,
                                                        java.util.List<java.lang.String> semanticTagList,
                                                        java.lang.String destinationId,
                                                        boolean subsumption,
                                                        java.util.List<java.lang.String> parentIdList,
                                                        boolean excludeConcept)
        Returns all concept associated for a given attribute name and other parameters
        Parameters:
        attributeName -
        semanticTagList -
        destinationId -
        subsumption -
        parentIdList - List of Identifier of Concepts if search is to be done from it's descendants only and null if search is to be done from whole SNOMED CT Terminology.
        excludeConcept -
        Returns:
        Relationship that contains the list of Relationships corresponding to a particular SNOMED CT attribute value
      • getConcept

        public Concept getConcept​(java.lang.String id)
        Returns a SNOMED CT Concept associated for a given Concept identifier.
        Parameters:
        id - String identifier of the SNOMED CT Concept.
        Returns:
        Concept SNOMED CT concept.
      • getConcept

        public java.util.List<Concept> getConcept​(java.util.List<java.lang.String> ids)
        Returns List of SNOMED CT Concept associated for a given Concept identifier.
        Parameters:
        ids - List String identifier of the SNOMED CT Concept.
        Returns:
        List Concept SNOMED CT concept
      • getRelationShipType

        public java.util.List<java.lang.String> getRelationShipType()
      • getSemanticTags

        public java.util.Set<java.lang.String> getSemanticTags()