public class HomeHealthGrouperFactory extends java.lang.Object implements HomeHealthGrouperFactoryIF
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
defaultGrouperClassName |
protected java.lang.String |
defaultVersionPrefix |
static java.lang.String |
PROPERT_CONFIG_SUFFIX
Initialization property for defining the location of the configuration
file for the grouper classes that are loaded dynamically.
|
static java.lang.String |
PROPERTY_DEFAULT_GROUPER_CLASS_NAME
Initialization property for defining which grouper class dynamically is
used as the default grouper when no grouper can be found that can handle
the current record.
|
static java.lang.String |
PROPERTY_DEFAULT_VERSION_PREFIX
Initialization property for defining a default grouper version prefix
that is used in conjunction with the default grouper class name.
|
static java.lang.String |
PROPERTY_HH_CLASS_LIST
Initialization property for defining the grouper class names to
dynamically load into the factory.
|
static java.lang.String |
PROPERTY_HOME_HEALTH_QUIET |
PROPERTY_HOME_HEALTH_CONFIG
Constructor and Description |
---|
HomeHealthGrouperFactory()
Constructor the initializes the Home Health Groupers list
|
Modifier and Type | Method and Description |
---|---|
protected void |
endProgressBar()
Stops the progress bar and closes it
|
java.lang.String |
getDefaultGrouperClassName()
Get the value of defaultGrouperClassName
|
java.lang.String |
getDefaultVersionPrefix()
Get the value of defaultVersionPrefix
|
HomeHealthGrouperIF |
getGrouper(HomeHealthRecordIF record)
Searches the list of Home Health Groupers to determine which one will
handle the record based on the dates on the record.
|
HomeHealthGrouperIF |
getGrouper(java.lang.String versionId)
Searches the list of Home Health Groupers to determine which matches the
versionId
|
java.util.List<HomeHealthGrouperIF> |
getGroupers()
This returns a non-null list of HomeHealthGrouperIF objects.
|
java.util.Properties |
getPropertiesFromEnv()
This finds the configuration/properties file that is defined by the
environment variable
String PROPERTY_HOME_HEALTH_CONFIG = "home_health_config" If
the environment variable is not set then it will use the default
properties file defined as
config/HomeHealthGrouper.properties |
void |
init(java.util.Properties props)
This will load the Home Health Groupers in the order that they are listed
in the 'home.health.grouper.class.list' of the Properties, then it will
pass the properties files associated with that group by the
classname.config option.
|
void |
setDefaultGrouperClassName(java.lang.String defaultGrouperClassName)
Set the value of defaultGrouperClassName
|
void |
setDefaultVersionPrefix(java.lang.String defaultVersionPrefix)
Set the value of defaultVersionPrefix
|
protected void |
startProgressBar()
provides popup message showing the status of the initialization
|
public static final java.lang.String PROPERTY_HH_CLASS_LIST
public static final java.lang.String PROPERT_CONFIG_SUFFIX
public static final java.lang.String PROPERTY_DEFAULT_GROUPER_CLASS_NAME
public static final java.lang.String PROPERTY_DEFAULT_VERSION_PREFIX
public static final java.lang.String PROPERTY_HOME_HEALTH_QUIET
protected java.lang.String defaultGrouperClassName
protected java.lang.String defaultVersionPrefix
public HomeHealthGrouperFactory()
public java.lang.String getDefaultGrouperClassName()
public java.lang.String getDefaultVersionPrefix()
public HomeHealthGrouperIF getGrouper(HomeHealthRecordIF record)
getGrouper
in interface HomeHealthGrouperFactoryIF
record
- public HomeHealthGrouperIF getGrouper(java.lang.String versionId)
getGrouper
in interface HomeHealthGrouperFactoryIF
record
- public java.util.List<HomeHealthGrouperIF> getGroupers()
getGroupers
in interface HomeHealthGrouperFactoryIF
public void init(java.util.Properties props) throws java.lang.Exception, java.rmi.RemoteException
PROPERTY_HOME_HEALTH_CONFIG
init
in interface Initializable
props
- java.lang.Exception
java.rmi.RemoteException
HomeHealthGrouperFactoryIF
,
getPropertiesFromEnv()
public java.util.Properties getPropertiesFromEnv()
String PROPERTY_HOME_HEALTH_CONFIG = "home_health_config"
If
the environment variable is not set then it will use the default
properties file defined as
config/HomeHealthGrouper.properties
HomeHealthGrouperFactoryIF
public void setDefaultGrouperClassName(java.lang.String defaultGrouperClassName)
defaultGrouperClassName
- new value of defaultGrouperClassNamepublic void setDefaultVersionPrefix(java.lang.String defaultVersionPrefix)
defaultVersionPrefix
- new value of defaultVersionPrefixprotected void startProgressBar()
protected void endProgressBar()