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.
|
protected void |
fireScoringCodeEligible(int position,
DiagnosisCodeIF code)
Scoring Event support method
|
void |
fireScoringEvent(HomeHealthEvent event)
This method, along with the other fire...
|
protected void |
fireScoringGeneral(java.lang.String message)
Scoring Event support method
|
protected void |
fireScoringIncreaseEvent(DiagnosisCodeIF code,
int diagnosisPosition,
int rowId)
Scoring Event support method
|
protected void |
fireScoringIncreaseEvent(java.lang.String message,
int diagnosisPosition,
int rowId)
Scoring Event support method
|
protected void |
fireScoringIncreaseSpecialEvent(java.lang.String specialItems,
int diagnosisPosition,
int rowId)
Scoring Event support method
|
protected void |
fireScoringSectionFinished(java.lang.String message,
int score)
Scoring Event support method
|
protected void |
fireScoringSectionFinished(java.lang.String message,
int[] scores)
Scoring Event support method
|
protected void |
fireScoringSectionStart(java.lang.String message)
Scoring Event support method
|
protected void |
fireScoringWarning(java.lang.String message)
Scoring Event support method
|
protected void |
fireValidCodeWarning(DiagnosisCodeIF code,
int position,
boolean isValid)
Scoring Event support method
|
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
|
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 |
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.
|
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 |
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
- equationId
- public ScoringPointsIF score(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator)
score
in interface HomeHealthScoringModelIF
record
- validator
- scoreClinical(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
,
scoreFunctional(HomeHealthRecordIF record,
HomeHealthRecordValidatorIF validator)
public void preprocessRecord(HomeHealthRecordIF record, HomeHealthRecordValidatorIF validator)
preprocessRecord
in interface HomeHealthScoringModelIF
record
- validator
- 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
- equationId
- 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 fireScoringEvent(HomeHealthEvent event)
event
- HomeHealthEventNotifierIF.notifyEventListeners(HomeHealthEventIF
event)
protected void fireScoringIncreaseEvent(java.lang.String message, int diagnosisPosition, int rowId)
message
- diagnosisPosition
- rowId
- fireScoringEvent(HomeHealthEvent)
protected void fireScoringIncreaseEvent(DiagnosisCodeIF code, int diagnosisPosition, int rowId)
message
- diagnosisPosition
- rowId
- fireScoringEvent(HomeHealthEvent)
protected void fireScoringIncreaseSpecialEvent(java.lang.String specialItems, int diagnosisPosition, int rowId)
message
- diagnosisPosition
- rowId
- fireScoringEvent(HomeHealthEvent)
protected void fireScoringGeneral(java.lang.String message)
message
- fireScoringEvent(HomeHealthEvent)
protected void fireScoringWarning(java.lang.String message)
message
- fireScoringEvent(HomeHealthEvent)
protected void fireScoringSectionStart(java.lang.String message)
message
- fireScoringEvent(HomeHealthEvent)
protected void fireScoringSectionFinished(java.lang.String message, int[] scores)
message
- scores
- fireScoringEvent(HomeHealthEvent)
protected void fireScoringSectionFinished(java.lang.String message, int score)
message
- score
- fireScoringEvent(HomeHealthEvent)
protected void fireScoringCodeEligible(int position, DiagnosisCodeIF code)
position
- code
- fireScoringEvent(HomeHealthEvent)
protected void fireValidCodeWarning(DiagnosisCodeIF code, int position, boolean isValid)
code
- position
- isValid
- fireScoringEvent(HomeHealthEvent)