com.mmm.cms.homehealth.cpp
Class DllToJavaConnector
java.lang.Object
com.mmm.cms.homehealth.cpp.DllToJavaConnector
public class DllToJavaConnector
- extends java.lang.Object
This class is used allow a DLL to connect to the Java Home Health Grouper
implimentation. It initializes a Grouper Factory, then allows
the record scoring,. with the results formatted as previous groupers
had done.
|
Method Summary |
static HomeHealthRecordIF |
convertRecord(java.lang.String strRecord)
returns a HomeHealth record unless end of file, or an exception in
reading the file or parsing the record. |
static void |
init()
This initializes the Java Grouper version for use within a CPP-DLL. |
static java.lang.String |
scoreOasisB(java.lang.String record)
T |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initComplete
public static boolean initComplete
homeHealthFactory
protected static HomeHealthGrouperFactory homeHealthFactory
readerFactory
protected static OasisReaderFactory readerFactory
DllToJavaConnector
public DllToJavaConnector()
init
public static void init()
- This initializes the Java Grouper version for use within a CPP-DLL.
It use environment variables in order to configure the grouper.
scoreOasisB
public static java.lang.String scoreOasisB(java.lang.String record)
- T
- Parameters:
record - the Oasis B record as a string which gets converted to
the Home Health record
- Returns:
- String in the format of HIPPS, OASIS TREATMENT, VERSION, FLAG
as on continuous array of characters 5 for HIPPS, 18 for OASIS, 6 for version
and 1 for flag.
convertRecord
public static HomeHealthRecordIF convertRecord(java.lang.String strRecord)
- returns a HomeHealth record unless end of file, or an exception in
reading the file or parsing the record.
- Parameters:
inReader - curRecNum -
- Returns: