public class HomeHealthGrouper_HP extends CommonTester
Modifier and Type | Field and Description |
---|---|
protected ScoringResultsIF |
scoringBLANK |
protected ScoringResultsIF |
scoringResultsEmpty |
params, readerFactory, recordEOF
Constructor and Description |
---|
HomeHealthGrouper_HP() |
Modifier and Type | Method and Description |
---|---|
void |
calendarCompareTest() |
void |
displayDetails(ScoringResultsIF scoring,
HomeHealthRecordIF record) |
void |
displayEdits(com.mmm.cms.homehealth.test.HomeHealthGrouper_HP.GrouperTestParams commandLineParams,
ScoringResultsIF scoring,
int recId) |
java.lang.String |
formatScoringEvents(java.util.Collection events) |
CommandLineParams |
getCommandLineParams(java.lang.String[] args)
Allows an extended class to create their own parameter lists
|
static void |
main(java.lang.String[] args) |
void |
runTest(java.io.BufferedReader bufReader,
java.io.Writer writer,
HomeHealthGrouperFactoryIF grouperFactory,
CommandLineParams commandLine)
Other classes must implement this to perform the actual work
|
int |
scoreEachIndividually(java.io.BufferedReader inReader,
java.io.Writer outWriter,
HomeHealthGrouperFactoryIF grouperFactory,
com.mmm.cms.homehealth.test.HomeHealthGrouper_HP.GrouperTestParams commandLineParams)
This reads, scores, and writes one record at a time.
|
ScoringResultsIF |
scoreRecord(HomeHealthGrouperFactoryIF grouperFactory,
HomeHealthRecordIF record,
boolean showDetails,
com.mmm.cms.homehealth.test.HomeHealthGrouper_HP.GrouperTestParams commandLineParams) |
void |
writeOutput(java.io.Writer writer,
HomeHealthRecordIF record,
int curRecNum) |
void |
writeOutput(java.io.Writer writer,
ScoringResultsIF scoring,
int curRecNum,
com.mmm.cms.homehealth.test.HomeHealthGrouper_HP.GrouperTestParams commandLineParams) |
getOutFileSuffix, printOptions, readRecord, runTest, runTest, runTest
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)
CommonTester
runTest
in class CommonTester
public void calendarCompareTest()
public int scoreEachIndividually(java.io.BufferedReader inReader, java.io.Writer outWriter, HomeHealthGrouperFactoryIF grouperFactory, com.mmm.cms.homehealth.test.HomeHealthGrouper_HP.GrouperTestParams commandLineParams)
inReader
- outWriter
- grouperFactory
- commandLineParams
- public void writeOutput(java.io.Writer writer, ScoringResultsIF scoring, int curRecNum, com.mmm.cms.homehealth.test.HomeHealthGrouper_HP.GrouperTestParams commandLineParams)
public void writeOutput(java.io.Writer writer, HomeHealthRecordIF record, int curRecNum)
public void displayEdits(com.mmm.cms.homehealth.test.HomeHealthGrouper_HP.GrouperTestParams commandLineParams, ScoringResultsIF scoring, int recId)
public ScoringResultsIF scoreRecord(HomeHealthGrouperFactoryIF grouperFactory, HomeHealthRecordIF record, boolean showDetails, com.mmm.cms.homehealth.test.HomeHealthGrouper_HP.GrouperTestParams commandLineParams)
public void displayDetails(ScoringResultsIF scoring, HomeHealthRecordIF record)
public java.lang.String formatScoringEvents(java.util.Collection events)
public CommandLineParams getCommandLineParams(java.lang.String[] args)
CommonTester
getCommandLineParams
in class CommonTester