com.mmm.cms.homehealth.cpp
Class DllToJavaConnector

java.lang.Object
  extended by 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.


Field Summary
protected static HomeHealthGrouperFactory homeHealthFactory
           
static boolean initComplete
           
protected static OasisReaderFactory readerFactory
           
 
Constructor Summary
DllToJavaConnector()
           
 
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
 

Field Detail

initComplete

public static boolean initComplete

homeHealthFactory

protected static HomeHealthGrouperFactory homeHealthFactory

readerFactory

protected static OasisReaderFactory readerFactory
Constructor Detail

DllToJavaConnector

public DllToJavaConnector()
Method Detail

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: