com.mmm.cms.homehealth.test
Class HomeHealthGrouper_HP
java.lang.Object
com.mmm.cms.homehealth.test.HomeHealthGrouper_HP
public class HomeHealthGrouper_HP
- extends java.lang.Object
This tests reading an OASIS-B/C set of records and scoring them using the
appropriate grouper provided by the grouper factory.
This testing module represents the best example of how to access the Java
HHRG directly, without using the DLL bridge.
There are parameters for this module that allow the details of a single
record to be displayed to the console. Refer to the inner class
CommandLineParams for more details.
|
Method Summary |
static void |
main(java.lang.String[] args)
|
HomeHealthRecordIF |
readRecord(java.io.BufferedReader inReader,
int curRecNum)
returns a HomeHealth record unless end of file, or an exception in
reading the file or parsing the record. |
void |
runTest(java.lang.String[] args)
|
int |
scoreEachIndividually(java.io.BufferedReader inReader,
java.io.Writer outWriter,
HomeHealthGrouperFactoryIF grouperFactory,
int recordLimit,
int detailRecNum)
This reads, scores, and writes one record at a time. |
ScoringResultsIF |
scoreRecord(HomeHealthGrouperFactoryIF grouperFactory,
HomeHealthRecordIF record)
Scores a single record |
ScoringResultsIF |
scoreRecord(HomeHealthGrouperFactoryIF grouperFactory,
HomeHealthRecordIF record,
boolean showDetails)
|
void |
writeOutput(java.io.Writer writer,
HomeHealthRecordIF record,
int curRecNum)
|
void |
writeOutput(java.io.Writer writer,
ScoringResultsIF scoring,
int curRecNum)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HomeHealthGrouper_HP
public HomeHealthGrouper_HP()
main
public static void main(java.lang.String[] args)
- Parameters:
args - An array of 1) input file name, and 2) output filename. The
output filename is optional with the default being the input filename
suffixed with "_TESTOUT" before the extension. The extension will be
the same as the input filename.
Any status of the test or errors are presented to the console.
runTest
public void runTest(java.lang.String[] args)
scoreEachIndividually
public int scoreEachIndividually(java.io.BufferedReader inReader,
java.io.Writer outWriter,
HomeHealthGrouperFactoryIF grouperFactory,
int recordLimit,
int detailRecNum)
- This reads, scores, and writes one record at a time.
- Parameters:
inReader - outWriter - grouperFactory - recordLimit -
readRecord
public HomeHealthRecordIF readRecord(java.io.BufferedReader inReader,
int curRecNum)
- returns a HomeHealth record unless end of file, or an exception in
reading the file or parsing the record.
- Parameters:
inReader - curRecNum -
- Returns:
writeOutput
public void writeOutput(java.io.Writer writer,
ScoringResultsIF scoring,
int curRecNum)
writeOutput
public void writeOutput(java.io.Writer writer,
HomeHealthRecordIF record,
int curRecNum)
scoreRecord
public ScoringResultsIF scoreRecord(HomeHealthGrouperFactoryIF grouperFactory,
HomeHealthRecordIF record)
- Scores a single record
- Parameters:
grouperFactory - record -
- Returns:
scoreRecord
public ScoringResultsIF scoreRecord(HomeHealthGrouperFactoryIF grouperFactory,
HomeHealthRecordIF record,
boolean showDetails)