Class Concept
- java.lang.Object
-
- in.cdac.medinfo.csnotk.csnolib.model.VersionedComponent
-
- in.cdac.medinfo.csnotk.csnolib.model.Component
-
- in.cdac.medinfo.csnotk.csnolib.model.Concept
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Concept>
public class Concept extends Component implements java.io.Serializable, java.lang.Comparable<Concept>
Conceptis a clinical idea associated with a unique identifier . AConceptconsists of an identifier, a fully specified name, a semantic tag of typeEnumSemanticTagto which a concept belongs and aListofDescriptions which are the synonyms describing theConcept.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Concept concept)booleanequals(java.lang.Object obj)java.lang.BytegetActiveStatus()Returns the active status of the Concept.java.lang.StringgetDefinitionStatusId()Returns the definition status.java.util.List<Description>getDescriptions()Returns allDescriptions for thisConceptother than its FSN.java.lang.StringgetFullySpecifiedName()Returns the Concept FSN.java.lang.StringgetId()Returns theConceptidentifier.java.lang.StringgetModuleId()Returns the module Id.java.lang.StringgetPreferredName()java.lang.StringgetPreferredName(EnumLangRefset langRefset)Returns the preferred name for a concept.java.util.Set<Concept>getRelations(java.lang.String relationshipType, EnumDirection direction)Returns list of SNOMED CT identifier of children or parents for a particularConceptfor a particular relationship type based on direction.java.lang.StringgetSemanticTag()Returns the semantic tag.java.util.DategetTime()Returns the effective timeinthashCode()voidsetActiveStatus(java.lang.Byte activeStatus)Sets the active status of the Concept.voidsetDefinitionStatusId(EnumDefStatus definitionStatusId)Sets the definition status Id of the Concept.voidsetDescriptions(java.util.List<Description> descriptions)Sets the list ofDescriptioncorresponding to the SNOMED CT concept.voidsetFullySpecifiedName(java.lang.String fullySpecifiedName)Sets the fully specified name associated with the Concept.voidsetId(java.lang.String id)Sets the Concept identifier.voidsetModuleId(java.lang.String modId)Sets the module Id associated with the Concept.voidsetPreferredName(java.lang.String preferredName)this method sets the preferred name of a termvoidsetTime(java.util.Date date)Sets the effective time of a concept.java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns theConceptidentifier.
-
setId
public void setId(java.lang.String id)
Sets the Concept identifier.
-
getFullySpecifiedName
public java.lang.String getFullySpecifiedName()
Returns the Concept FSN.- Returns:
- FSN (Fully Specified Name) of that concept.
-
setFullySpecifiedName
public void setFullySpecifiedName(java.lang.String fullySpecifiedName)
Sets the fully specified name associated with the Concept.- Parameters:
fullySpecifiedName- represents FSN of a concept.
-
getDefinitionStatusId
public java.lang.String getDefinitionStatusId()
Returns the definition status.- Returns:
- definitionStatus Id of that concept.
-
setDefinitionStatusId
public void setDefinitionStatusId(EnumDefStatus definitionStatusId)
Sets the definition status Id of the Concept.- Parameters:
definitionStatusId- represents definition status Id of a concept.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getActiveStatus
public java.lang.Byte getActiveStatus()
Returns the active status of the Concept.- Overrides:
getActiveStatusin classVersionedComponent- Returns:
- activeStatus of that concept.
-
setActiveStatus
public void setActiveStatus(java.lang.Byte activeStatus)
Sets the active status of the Concept.- Overrides:
setActiveStatusin classVersionedComponent- Parameters:
activeStatus- refers to the active status of the Concept.
-
getModuleId
public java.lang.String getModuleId()
Returns the module Id.- Overrides:
getModuleIdin classVersionedComponent- Returns:
- moduleId of that concept.
-
setModuleId
public void setModuleId(java.lang.String modId)
Sets the module Id associated with the Concept.- Overrides:
setModuleIdin classVersionedComponent- Parameters:
modId- represents Module Id of the concept sets moduleId of a concept.
-
getTime
public java.util.Date getTime()
Returns the effective time- Overrides:
getTimein classVersionedComponent- Returns:
- effective time for a concept.
-
setTime
public void setTime(java.util.Date date)
Sets the effective time of a concept.- Overrides:
setTimein classVersionedComponent- Parameters:
date- - represents effective time
-
setDescriptions
public void setDescriptions(java.util.List<Description> descriptions)
Sets the list ofDescriptioncorresponding to the SNOMED CT concept.- Parameters:
descriptions- List ofDescription.
-
getDescriptions
public java.util.List<Description> getDescriptions() throws java.sql.SQLException, java.text.ParseException
Returns allDescriptions for thisConceptother than its FSN.- Returns:
- List of
Descriptions for a concept. - Throws:
java.sql.SQLException- if any error occurs while accessing database.java.text.ParseException
-
getPreferredName
public java.lang.String getPreferredName()
- Returns:
Stringvalue of preferred name
-
getPreferredName
public java.lang.String getPreferredName(EnumLangRefset langRefset) throws java.sql.SQLException
Returns the preferred name for a concept.- Parameters:
EnumLangRefset-- Returns:
Stringvalue that corresponds to the preferred name associated with the Concept.- Throws:
java.sql.SQLException- if any error occurs while accessing database.
-
setPreferredName
public void setPreferredName(java.lang.String preferredName)
this method sets the preferred name of a term- Parameters:
string- preferredName
-
getRelations
public java.util.Set<Concept> getRelations(java.lang.String relationshipType, EnumDirection direction)
Returns list of SNOMED CT identifier of children or parents for a particularConceptfor a particular relationship type based on direction.- Parameters:
enumRelationshipType- Type of the relationships.direction- Direction(source/destination) in which relationship is to be retrieved.- Returns:
- Set of
Relationship.
-
getSemanticTag
public java.lang.String getSemanticTag() throws java.lang.IllegalArgumentExceptionReturns the semantic tag.- Returns:
- semantic tag based on the FSN specified.
- Throws:
java.lang.Exception- if any error occurs while processing.java.lang.IllegalArgumentException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-