gov.nih.nlm.mms.filters
Class RxNormFilter

java.lang.Object
  extended bygov.nih.nlm.mms.filters.AbstractFilter
      extended bygov.nih.nlm.mms.filters.RxNormFilter
All Implemented Interfaces:
Comparable, ConceptSelector, Configurable, Filter, GUIConfigurable, SubsetListener

public class RxNormFilter
extends AbstractFilter
implements ConceptSelector

Metathesaurus subset containing concepts connected in the RxNorm "graph" along with their MTH-related concepts. From a spec by SJN, WTH, BAC & SS.


Field Summary
 
Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter
default_configuration, init_cui, subset_content, user_configuration
 
Constructor Summary
RxNormFilter()
          Constructs a filter.
 
Method Summary
 Color getColor()
          Method indicates the Color that should be used to display the name.
 String getConfigurationDetails()
          Returns the statement that should appear in the subset log file regarding this Filter.
 JPanel getHelpPanel()
          Method provides a JPanel that will be called from the help menu to allow the user to reference a help window that is particular to this filter.
 String getName()
          Returns the name of the Filter.
 JPanel getPanel()
          Returns an empty configuration panel.
 Properties getProperties()
          Returns a Properties object with the configuration.
 String getTabDescription()
          Return the description to appear above the main configuration panel in the {#link MetamorphoSysGUI}.
 boolean isEfficientEnabled()
          Indicates if Filter can use the efficient mode during the "Initialize Cuis" phase of the subsetting process.
 boolean keep(Concept concept)
          Indicates if Concept should be selected to be kept for the subset.
 void resetToDefaults()
          There are no defaults because this filter has nothing to configure.
 void setConfiguration(ApplicationConfiguration c)
          Gives the filter access to the default configuration object.
 void setPanelSelections()
          Inactive method because there are no items to configure on this filter.
 void setProperties(Properties props)
          Not an active method, because this filter doesn't have any filter specific properties.
 
Methods inherited from class gov.nih.nlm.mms.filters.AbstractFilter
addDataChangeListener, applyFilter, beginInitializeCuiList, beginSubsetContent, compareTo, endInitializeCuiList, endSubsetContent, fireDataChanged, fireNotUndoableDataChanged, getGUIConfigurableForValidationFailure, getValidateMessage, getValidationErrors, getValidationWarnings, hasAdvancedOptions, hasDataChanged, removeDataChangeListener, resetDataChanged, setConfiguration, setCuiList, setDataChanged, showOptions, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nih.nlm.mms.filters.Filter
applyFilter
 
Methods inherited from interface gov.nih.nlm.mms.GUIConfigurable
addDataChangeListener, getGUIConfigurableForValidationFailure, getValidationErrors, getValidationWarnings, hasAdvancedOptions, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, showOptions, validate
 
Methods inherited from interface gov.nih.nlm.mms.Configurable
setConfiguration
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface gov.nih.nlm.mms.SubsetListener
beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, setCuiList
 

Constructor Detail

RxNormFilter

public RxNormFilter()
Constructs a filter.

Method Detail

getPanel

public JPanel getPanel()
Returns an empty configuration panel. This filter has nothing to configure.

Specified by:
getPanel in interface GUIConfigurable
Returns:
configuration JPanel

getHelpPanel

public JPanel getHelpPanel()
Method provides a JPanel that will be called from the help menu to allow the user to reference a help window that is particular to this filter.

Specified by:
getHelpPanel in interface GUIConfigurable
Overrides:
getHelpPanel in class AbstractFilter
Returns:
JPanel to be added to the Help menu

getTabDescription

public String getTabDescription()
Return the description to appear above the main configuration panel in the {#link MetamorphoSysGUI}.

Specified by:
getTabDescription in interface GUIConfigurable
Returns:
tab description String

resetToDefaults

public void resetToDefaults()
There are no defaults because this filter has nothing to configure.

Specified by:
resetToDefaults in interface Configurable

setConfiguration

public void setConfiguration(ApplicationConfiguration c)
Gives the filter access to the default configuration object.

Specified by:
setConfiguration in interface Configurable
Overrides:
setConfiguration in class AbstractFilter
Parameters:
c - ApplicationConfiguration

getProperties

public Properties getProperties()
Returns a Properties object with the configuration.

Specified by:
getProperties in interface Configurable
Returns:
a Properties object with the configuration.

setProperties

public void setProperties(Properties props)
Not an active method, because this filter doesn't have any filter specific properties.

Specified by:
setProperties in interface Configurable
Parameters:
props - Properties

keep

public boolean keep(Concept concept)
Indicates if Concept should be selected to be kept for the subset.

Specified by:
keep in interface ConceptSelector
Parameters:
concept - Concept to be evaluated for removal
Returns:
boolean true if concept should be kept false otherwise

setPanelSelections

public void setPanelSelections()
Inactive method because there are no items to configure on this filter.

Specified by:
setPanelSelections in interface GUIConfigurable

getName

public String getName()
Returns the name of the Filter.

Specified by:
getName in interface GUIConfigurable
Returns:
name of the filter

getConfigurationDetails

public String getConfigurationDetails()
Returns the statement that should appear in the subset log file regarding this Filter.

Specified by:
getConfigurationDetails in interface Configurable
Returns:
filter statement for log file

getColor

public Color getColor()
Method indicates the Color that should be used to display the name.

Specified by:
getColor in interface GUIConfigurable
Overrides:
getColor in class AbstractFilter
Returns:
Color

isEfficientEnabled

public boolean isEfficientEnabled()
Indicates if Filter can use the efficient mode during the "Initialize Cuis" phase of the subsetting process. The efficient mode reads only MRCONSO and MRSTY during the "Initialize Cuis" phase.

Specified by:
isEfficientEnabled in interface Filter
Returns:
true if efficient mode is acceptable false if efficient mode is not acceptable


Copyright ©2005