public class NRS_ScoringModel_v2308 extends java.lang.Object implements HomeHealthScoringModelIF
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SHORTNAME |
Constructor and Description |
---|
NRS_ScoringModel_v2308(HomeHealthGrouperIF grouper,
GrouperDataManager dataManager)
Constructor that initialized with the Grouper and data manager references
|
Modifier and Type | Method and Description |
---|---|
int[] |
calculateInitialScore(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
Calculate maximum possible score for each of the 18 diagnoses to support
choice of scoring variable when an etiology and a manifestation are both
NRS casemix variables.
|
void |
determinePrimaryDiagnosis(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[] codePoints)
Determine the primary diagnosis between the two pairs M0230a240b or
M0246x3/M0246x4
Pseudo code lines: 1600 thru 1643
|
int |
getCaseMixAdjustmentEquation(int caseMixId)
This gets the Case Mix Adjustment table value, by essentially getting the
caseMixId (i.e.
|
protected DiagnosisCodeIF |
getDiagnosisCode(java.lang.String codeValue)
Gets an NRS related Diagnosis code.
|
HomeHealthGrouperIF |
getGrouper()
Gets the Grouper reference
|
int |
getId()
the id of the object
|
java.lang.String |
getName()
Gets the name of this scoring module
|
void |
populateCodes(HomeHealthRecordIF record)
This populates the record with all Diagnosis codes that are valid for
this grouper version that are listed on the record.
|
void |
preprocessRecord(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
This preprocesses the record to adjust the diagnostic groups based on the
presence of an Ulcer or Diabetic Ulcer on the record.
|
void |
preprocessRecord(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
java.util.Collection<HomeHealthEventListenerIF> listeners)
Used to perform any pre-scoring, such as any changes to the data due
to multi-code relationships.
|
void |
recalculateNonPrimaryCodes(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[] codePoints,
int[] dualPoints)
Pseudo code lines: 1645 thru 1681
|
boolean[] |
resolveEtiologyManifestationContention(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[] codePoints,
boolean[] diagGroupsUsed)
Cycle through all diagnosis positions with points.
|
ScoringPointsIF |
score(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
This is the main scoring module, which scores the non routine supplies
information.
|
ScoringPointsIF |
score(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[][] scoreOrder)
This calls score() without the scoreOrder which was not implemented in
this version
|
ScoringPointsIF |
score(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[][] scoreOrder,
java.util.Collection<HomeHealthEventListenerIF> listeners)
This calls score() without the scoreOrder or listeners, which were not
implemented in this version
|
int |
scoreRemainingVariables(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[] points)
This scores the remaining clinical variables.
|
void |
setGrouper(HomeHealthGrouperIF grouper)
Sets the reference to the Grouper this model belongs to
|
void |
setId(int id)
Sets the id for the object at run time
|
void |
setName(java.lang.String arg0)
This method does nothing - the name can not be reset
|
public static final java.lang.String SHORTNAME
public NRS_ScoringModel_v2308(HomeHealthGrouperIF grouper, GrouperDataManager dataManager)
grouper
- dataManager
- public ScoringPointsIF score(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator)
score
in interface HomeHealthScoringModelIF
record
- validator
- public ScoringPointsIF score(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[][] scoreOrder, java.util.Collection<HomeHealthEventListenerIF> listeners)
score
in interface HomeHealthScoringModelIF
record
- validator
- scoreOrder
- - always assumed to be nulllisteners
- - always assumed to be nullpublic ScoringPointsIF score(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[][] scoreOrder)
score
in interface HomeHealthScoringModelIF
record
- validator
- scoreOrder
- - always assumed to be nullpublic void preprocessRecord(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator)
preprocessRecord
in interface HomeHealthScoringModelIF
record
- validator
- HomeHealthScoringModelIF.preprocessRecord(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, Collection listeners)
public int[] calculateInitialScore(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator)
record
- validator
- public void determinePrimaryDiagnosis(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[] codePoints)
record
- validator
- codePoints
- public boolean[] resolveEtiologyManifestationContention(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[] codePoints, boolean[] diagGroupsUsed)
record
- validator
- codePoints
- diagGroupsUsed
- public void recalculateNonPrimaryCodes(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[] codePoints, int[] dualPoints)
record
- validator
- codePoints
- dualPoints
- public int scoreRemainingVariables(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[] points)
record
- validator
- points
- public void populateCodes(HomeHealthRecordIF record)
populateCodes
in interface HomeHealthScoringModelIF
record
- public java.lang.String getName()
public void setName(java.lang.String arg0)
public int getCaseMixAdjustmentEquation(int caseMixId)
caseMixId
- protected DiagnosisCodeIF getDiagnosisCode(java.lang.String codeValue)
codeValue
- public HomeHealthGrouperIF getGrouper()
getGrouper
in interface HomeHealthScoringModelIF
public void setGrouper(HomeHealthGrouperIF grouper)
setGrouper
in interface HomeHealthScoringModelIF
grouper
- public void preprocessRecord(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, java.util.Collection<HomeHealthEventListenerIF> listeners)
HomeHealthScoringModelIF
preprocessRecord
in interface HomeHealthScoringModelIF
listeners
- - can be null, otherwise list of listeners for notified of eventspublic int getId()
Identifiable
getId
in interface Identifiable
public void setId(int id)
Identifiable
setId
in interface Identifiable