public class ScoringResultsFormatter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static IntegerFormat |
RECORD_NUMBER_FORMAT |
Constructor and Description |
---|
ScoringResultsFormatter() |
Modifier and Type | Method and Description |
---|---|
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
|
static java.lang.String |
formatTestingScore(ScoringResultsIF scoringResult,
int recNum,
boolean hideTAC,
boolean hideVersion)
this formats the score with the following format (example and without
indent):
Rec 000000001: Code 2BHKS--OASIS 08LV10AA11EHILCKGH--Version V3110 --Flag
1
|
protected static final IntegerFormat RECORD_NUMBER_FORMAT
public static java.lang.String formatContinousScore(ScoringResultsIF scoringResult)
public static java.lang.String formatTestingScore(ScoringResultsIF scoringResult, int recNum)
scoringResult
- recNum
- public static java.lang.String formatTestingScore(ScoringResultsIF scoringResult, int recNum, boolean hideTAC, boolean hideVersion)
scoringResult
- recNum
- public static java.lang.String[] formatScoringParts(ScoringResultsIF scoringResult)
scoringResult
- public static java.lang.String formatRecordNumber(int recNum, boolean includeText)
recNum
-