com.mmm.cms.homehealth
Class PointsScoringEquations

java.lang.Object
  extended by com.mmm.cms.homehealth.PointsScoringEquations
All Implemented Interfaces:
PointsScoringEquationsIF
Direct Known Subclasses:
CaseMixAdjustmentItem, CaseMixAdjustmentItem_v2308, CaseMixAdjustmentItem_v3210

public class PointsScoringEquations
extends java.lang.Object
implements PointsScoringEquationsIF

This holds scoring for the clinical/functional models which is concerned scoring based on the number of episodes and the timing of the submission. In earlier versions, these were simply equation 1 thru 4, but have been named in this version as:


Constructor Summary
PointsScoringEquations()
          Constructor setting the scores to a default of 0
 
Method Summary
 void add(PointsScoringEquationsIF points)
          Adds all the points from the scoring equation to this scoring equation
 void addToEarly13AndUnder(int equation)
          Adds the value to equation1
 void addToEarly14Plus(int equation)
          Adds the value to equation2
 void addToLater13AndUnder(int equation)
          Adds the value to equation3
 void addToLater14Plus(int equation)
          Adds the value to equation4
 int getEarly13AndUnder()
          Get the value of equation1
 int getEarly14Plus()
          Get the value of equation2
 int getEquationValue(int idx)
          Returns the equation value at the 0-based index
 int getLater13AndUnder()
          Get the value of equation3
 int getLater14Plus()
          Get the value of equation4
 void setEarly13AndUnder(int equation1)
          Set the value of equation1
 void setEarly14Plus(int equation2)
          Set the value of equation2
 void setEquationValue(int idx, int value)
          Sets the equation value at the 0-based index, with the value
 void setLater13AndUnder(int equation3)
          Set the value of equation3
 void setLater14Plus(int equation)
          Set the value of equation4
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointsScoringEquations

public PointsScoringEquations()
Constructor setting the scores to a default of 0

Method Detail

add

public void add(PointsScoringEquationsIF points)
Adds all the points from the scoring equation to this scoring equation

Specified by:
add in interface PointsScoringEquationsIF
Parameters:
points -

getEarly13AndUnder

public int getEarly13AndUnder()
Get the value of equation1

Specified by:
getEarly13AndUnder in interface PointsScoringEquationsIF
Returns:
the value of equation1

setEarly13AndUnder

public void setEarly13AndUnder(int equation1)
Set the value of equation1

Specified by:
setEarly13AndUnder in interface PointsScoringEquationsIF
Parameters:
equation1 - new value of equation1

addToEarly13AndUnder

public void addToEarly13AndUnder(int equation)
Adds the value to equation1

Specified by:
addToEarly13AndUnder in interface PointsScoringEquationsIF
Parameters:
equation -

getEarly14Plus

public int getEarly14Plus()
Get the value of equation2

Specified by:
getEarly14Plus in interface PointsScoringEquationsIF
Returns:
the value of equation2

setEarly14Plus

public void setEarly14Plus(int equation2)
Set the value of equation2

Specified by:
setEarly14Plus in interface PointsScoringEquationsIF
Parameters:
equation2 - new value of equation2

addToEarly14Plus

public void addToEarly14Plus(int equation)
Adds the value to equation2

Specified by:
addToEarly14Plus in interface PointsScoringEquationsIF
Parameters:
equation -

getLater13AndUnder

public int getLater13AndUnder()
Get the value of equation3

Specified by:
getLater13AndUnder in interface PointsScoringEquationsIF
Returns:
the value of equation3

setLater13AndUnder

public void setLater13AndUnder(int equation3)
Set the value of equation3

Specified by:
setLater13AndUnder in interface PointsScoringEquationsIF
Parameters:
equation3 - new value of equation3

addToLater13AndUnder

public void addToLater13AndUnder(int equation)
Adds the value to equation3

Specified by:
addToLater13AndUnder in interface PointsScoringEquationsIF
Parameters:
equation -

getLater14Plus

public int getLater14Plus()
Get the value of equation4

Specified by:
getLater14Plus in interface PointsScoringEquationsIF
Returns:
the value of equation4

setLater14Plus

public void setLater14Plus(int equation)
Set the value of equation4

Specified by:
setLater14Plus in interface PointsScoringEquationsIF
Parameters:
equation -

addToLater14Plus

public void addToLater14Plus(int equation)
Adds the value to equation4

Specified by:
addToLater14Plus in interface PointsScoringEquationsIF
Parameters:
equation -

getEquationValue

public int getEquationValue(int idx)
Returns the equation value at the 0-based index

Specified by:
getEquationValue in interface PointsScoringEquationsIF
Parameters:
idx -
Returns:
equation value or 0

setEquationValue

public void setEquationValue(int idx,
                             int value)
Sets the equation value at the 0-based index, with the value

Specified by:
setEquationValue in interface PointsScoringEquationsIF
Parameters:
idx -
value - - the new value