public class HomeHealthGrouper_HP extends CommonTester
Modifier and Type | Field and Description |
---|---|
protected java.lang.StringBuilder |
buffer |
protected ScoringResultsIF |
scoringBLANK |
protected ScoringResultsIF |
scoringResultsEmpty |
dxGroups, readerFactory, recordEOF
Constructor and Description |
---|
HomeHealthGrouper_HP() |
Modifier and Type | Method and Description |
---|---|
void |
calendarCompareTest() |
static void |
main(java.lang.String[] args) |
void |
runTest(java.io.BufferedReader bufReader,
java.io.Writer writer,
HomeHealthGrouperFactoryIF grouperFactory,
CommandLineParams commandLine) |
int |
scoreEachIndividually(java.io.BufferedReader inReader,
java.io.Writer outWriter,
HomeHealthGrouperFactoryIF grouperFactory,
CommandLineParams params)
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) |
getOutFileSuffix, readRecord, runTest
protected java.lang.StringBuilder buffer
protected ScoringResultsIF scoringResultsEmpty
protected ScoringResultsIF scoringBLANK
public static void main(java.lang.String[] args)
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.public void runTest(java.io.BufferedReader bufReader, java.io.Writer writer, HomeHealthGrouperFactoryIF grouperFactory, CommandLineParams commandLine)
runTest
in class CommonTester
public void calendarCompareTest()
public int scoreEachIndividually(java.io.BufferedReader inReader, java.io.Writer outWriter, HomeHealthGrouperFactoryIF grouperFactory, CommandLineParams params)
inReader
- outWriter
- grouperFactory
- recordLimit
- public void writeOutput(java.io.Writer writer, ScoringResultsIF scoring, int curRecNum)
public void writeOutput(java.io.Writer writer, HomeHealthRecordIF record, int curRecNum)
public ScoringResultsIF scoreRecord(HomeHealthGrouperFactoryIF grouperFactory, HomeHealthRecordIF record)
grouperFactory
- record
- public ScoringResultsIF scoreRecord(HomeHealthGrouperFactoryIF grouperFactory, HomeHealthRecordIF record, boolean showDetails)