com.mmm.cms.util
Class ScoringResultsFormatter
java.lang.Object
com.mmm.cms.util.ScoringResultsFormatter
public class ScoringResultsFormatter
- extends java.lang.Object
This utility class consolidates formatting of scoring results to return
to the DLL, or to output to a file.
|
Method Summary |
static java.lang.String |
formatContinousScore(ScoringResultsIF scoringResult)
|
static java.lang.String |
formatRecordNumber(int recNum,
boolean includeText)
Provides a standard record number format optionally with preceeding text |
static java.lang.String[] |
formatScoringParts(ScoringResultsIF scoringResult)
This returns an array of strings with the data as:
string[0] = hipps code
string[1] = treatment authorization code
string[2] = grouper version
string[3] = flag
If the scoringResult is null, then all the elements are empty strings |
static java.lang.String |
formatTestingScore(ScoringResultsIF scoringResult,
int recNum)
this formats the score with the following format (example and without indent):
Rec 000000001: Code 2BHKS--OASIS 08LV10AA11EHILCKGH--Version V3110 --Flag 1 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iformat
public static final IntegerFormat iformat
ScoringResultsFormatter
public ScoringResultsFormatter()
formatContinousScore
public static java.lang.String formatContinousScore(ScoringResultsIF scoringResult)
formatTestingScore
public static java.lang.String formatTestingScore(ScoringResultsIF scoringResult,
int recNum)
- this formats the score with the following format (example and without indent):
Rec 000000001: Code 2BHKS--OASIS 08LV10AA11EHILCKGH--Version V3110 --Flag 1
- Parameters:
scoringResult - recNum -
- Returns:
formatScoringParts
public static java.lang.String[] formatScoringParts(ScoringResultsIF scoringResult)
- This returns an array of strings with the data as:
string[0] = hipps code
string[1] = treatment authorization code
string[2] = grouper version
string[3] = flag
If the scoringResult is null, then all the elements are empty strings
- Parameters:
scoringResult -
- Returns:
- a non-null String array with non-null values for each element
formatRecordNumber
public static java.lang.String formatRecordNumber(int recNum,
boolean includeText)
- Provides a standard record number format optionally with preceeding text
- Parameters:
recNum -
- Returns: