Class ExploreService
- java.lang.Object
-
- in.cdac.medinfo.csnotk.csnolib.service.ExploreService
-
- All Implemented Interfaces:
java.io.Serializable
public class ExploreService extends java.lang.Object implements java.io.SerializableProvides 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 Summary
Constructors Constructor Description ExploreService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Concept>executeEcl(java.lang.String ecl, java.lang.String term)Parses ECL query and fetches result.java.util.Set<Concept>getAllAncestorConcepts(java.lang.String id)Returns aSetof all AncesterConcepts for given concept identifier.java.util.Set<Concept>getAllDescendantConcepts(java.lang.String id)Returns aSetof all DescendantsConcepts for given concept identifier.java.util.Set<RelationshipTC>getIsARelationshipsWithCount(java.lang.String conceptId)Searches for the immediate children descriptions.
-
-
-
Method Detail
-
getAllDescendantConcepts
public java.util.Set<Concept> getAllDescendantConcepts(java.lang.String id)
Returns aSetof all DescendantsConcepts 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
RelationshipTCmatching the given Concept ID. - Throws:
java.text.ParseException
-
getAllAncestorConcepts
public java.util.Set<Concept> getAllAncestorConcepts(java.lang.String id)
Returns aSetof all AncesterConcepts for given concept identifier.- Parameters:
id- SNOMED CT concept identifier.- Returns:
- Set of
Concepts.
-
-