public class ClinicalFunctional_ScoringModel_v2308 extends java.lang.Object implements HomeHealthScoringModelIF
Constructor and Description |
---|
ClinicalFunctional_ScoringModel_v2308(HomeHealthGrouperIF grouper,
GrouperDataManager grouperDataManager,
int equationId)
Constructor with references to the Grouper, the Data manager, and the
equation id
|
Modifier and Type | Method and Description |
---|---|
int[] |
calculateInitialScore(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
There is no initial scoring of the HomeHealth Record for this model, and
this method should not be used.
|
void |
determinePrimaryDiagnosis(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[] codePoints)
Determining the primary diagnosis between the two pairs M0230a/240b or
M0246a3/M0246a4.
|
CaseMixAdjustmentItemIF |
getCaseMixAdjustment(int caseMixId)
Searches for the case mix object using the id - i.e.
|
int |
getCaseMixAdjustmentEquation(int caseMixId,
int equationId)
This gets the Case Mix Adjustment table value, by essentially getting the
caseMixId (i.e.
|
protected DiagnosisCodeIF |
getDiagnosisCode(java.lang.String codeValue)
The DiagnosisCodeIF with its value being codeValue.
|
HomeHealthGrouperIF |
getGrouper()
Gets the reference to the Grouper
|
int |
getId()
the id of the object
|
java.lang.String |
getName()
The name of this version.
|
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)
There is no preprocessing of the HomeHealth Record for this model, and
this method should not be used.
|
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[] dualPointsSE)
Recalculate the score of each non-primary diagnosis in casemix variables
with different scores for primary vs.
|
boolean[] |
resolveEtiologyManifestationContention(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[] codePointsSE,
boolean[] diagGroupsUsed)
Cycle through all diagnosis positions with points.
|
ScoringPointsIF |
score(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
This is the main scoring module, which scores the clinical information
first and then the functional information.
|
ScoringPointsIF |
score(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[][] scoreOrder)
This calls score() without the score order which is not implemented in
this version
|
ScoringPointsIF |
score(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[][] scoreOrder,
java.util.Collection<HomeHealthEventListenerIF> listeners)
This calls score() without the score order or the listeners which were
not implemented in this version
|
int |
scoreClinical(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
Clinically scores the record placing values into the pointSE, and
dualPointsSE variables.
|
int |
scoreFunctional(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
Score the functional part of the model
Pseudo code lines: 1492 thru 1517
|
int |
scoreRemainingVariables(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator,
int[] points)
This scores the remaining clinical variables.
|
void |
setGrouper(HomeHealthGrouperIF grouper)
Sets the Home Health grouper that this model is associated with, null if
no grouper
|
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 ClinicalFunctional_ScoringModel_v2308(HomeHealthGrouperIF grouper, GrouperDataManager grouperDataManager, int equationId)
grouper
- grouperDataManager
- id
- public ScoringPointsIF score(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator)
score
in interface HomeHealthScoringModelIF
record
- validator
- scoreClinical(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
,
scoreFunctional(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
public ScoringPointsIF score(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[][] scoreOrder, java.util.Collection<HomeHealthEventListenerIF> listeners)
score
in interface HomeHealthScoringModelIF
record
- validator
- scoreOrder
- - assumed to be nulllisteners
- - always assumed to be nullpublic ScoringPointsIF score(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[][] scoreOrder)
score
in interface HomeHealthScoringModelIF
record
- validator
- scoreOrder
- - 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
- - the validator should have already preformed validation
on the current recordcodePoints
- public boolean[] resolveEtiologyManifestationContention(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[] codePointsSE, boolean[] diagGroupsUsed)
record
- validator
- codePointsSE
- diagGroupsUsed
- public void recalculateNonPrimaryCodes(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[] codePoints, int[] dualPointsSE)
record
- validator
- codePoints
- dualPointsSE
- public int scoreRemainingVariables(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator, int[] points)
record
- validator
- points
- public java.lang.String getName()
public void setName(java.lang.String arg0)
public int getCaseMixAdjustmentEquation(int caseMixId, int equationId)
caseMixId
- id
- public CaseMixAdjustmentItemIF getCaseMixAdjustment(int caseMixId)
caseMixId
- protected DiagnosisCodeIF getDiagnosisCode(java.lang.String codeValue)
codeValue
- public int scoreClinical(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator)
record
- validator
- public int scoreFunctional(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator)
record
- validator
- public void populateCodes(HomeHealthRecordIF record)
populateCodes
in interface HomeHealthScoringModelIF
record
- 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