com.mmm.cms.homehealth
Class DiagnosisCode_Empty

java.lang.Object
  extended by com.mmm.cms.homehealth.DiagnosisCode_Empty
All Implemented Interfaces:
Icd9CodeIF, Icd9DiagnosisCodeIF, Describable, java.lang.Cloneable

public class DiagnosisCode_Empty
extends java.lang.Object
implements Icd9DiagnosisCodeIF

This class represents a blank code that can not be alterred. Since so many records include blank items this class helps to save memory by providing a single non-changing code for use when processing those blank codes


Field Summary
static DiagnosisCode_Empty DEFAULT
           
 
Fields inherited from interface com.mmm.cms.homehealth.proto.Icd9CodeIF
TYPE_ICD_9_CM_DIAGNOSIS
 
Constructor Summary
protected DiagnosisCode_Empty()
           
 
Method Summary
 Icd9DiagnosisCodeIF clone()
          creates an exact copy of this object that can be manipulated separately without effecting this object
 java.lang.String getCode()
          Gets the code value
 int getCodeType()
          gets the code type
 java.lang.String getDescription()
          The description of the object
 DiagnosticCategoryIF getDiagnosticGroup()
          gets the Diagnostic Group indicator
 java.util.List<Icd9DiagnosisCodeIF> getEtiologyPairCodes()
          gets the list of etiology pairs - only valid when the code is flagged as a secondary only
 boolean isBlank()
          Codes can be blank, and this will return true if it is
 boolean isDiabeticUlcer()
          gets the Diabetic Ulcer indicator
 boolean isECode()
          This checks the current code value for a starting 'E'.
 boolean isOptionalVCode()
          This checks the code value for a starting 'V'.
 boolean isPrimary()
          Indicates if the code is considered the primary code in the case mix.
 boolean isSecondaryOnly()
          gets the secondary only indicator
 boolean isUlcer()
          gets the Ulcer indicator
 boolean isValidCode()
          gets the valid ICD-9-CM code indicator.
 boolean isValidEtiologyPair(Icd9DiagnosisCodeIF code)
          check to determine if the code is on the list of allowable code pairs for this diagnosis.
 boolean isValidForScoring()
          This value is used to determine if a code is used in the scoring or should be skipped.
 boolean isVCode()
          This checks the current code value for a starting 'V'.
 void setCode(java.lang.String code)
          Sets the code value
 void setCodeType(int type)
          Sets the code type - must be either 1 for diagnosis or 2 for procedure
 void setDescription(java.lang.String description)
          Sets the objects internal description
 void setDiabeticUlcer(boolean diabeticUlcer)
          Sets the relating to Diabetic Ulcer flag
 void setDiagnosticGroup(DiagnosticCategoryIF diagnosticGroup)
          sets the Diagnostic Grouper indicator
 void setEtiologyPairCodes(java.util.List<Icd9DiagnosisCodeIF> pairs)
          Sets the Allowable Etiology Pair codes for this current code.
 void setGrouper(HomeHealthGrouperIF grouper)
           
 void setOptionalVCode(boolean bool)
           
 void setPrimary(boolean primary)
          Sets the Primary Diagnosis indicator
 void setSecondaryOnly(boolean bool)
          sets the secondary only flag
 void setUlcer(boolean ulcer)
          Sets the relating to Ulcer flag
 void setValidCode(boolean validCode)
          Sets the valid code flag
 void setValidForScoring(boolean validForScoring)
          sets the valid for scoring flag
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final DiagnosisCode_Empty DEFAULT
Constructor Detail

DiagnosisCode_Empty

protected DiagnosisCode_Empty()
Method Detail

setDiabeticUlcer

public void setDiabeticUlcer(boolean diabeticUlcer)
Description copied from interface: Icd9DiagnosisCodeIF
Sets the relating to Diabetic Ulcer flag

Specified by:
setDiabeticUlcer in interface Icd9DiagnosisCodeIF

setEtiologyPairCodes

public void setEtiologyPairCodes(java.util.List<Icd9DiagnosisCodeIF> pairs)
Description copied from interface: Icd9DiagnosisCodeIF
Sets the Allowable Etiology Pair codes for this current code. The codes in the list should be the second code in the pairs of codes as originally defined in Table 3, Part 1. only valid when the code is flagged as a secondary only

Specified by:
setEtiologyPairCodes in interface Icd9DiagnosisCodeIF

setPrimary

public void setPrimary(boolean primary)
Description copied from interface: Icd9DiagnosisCodeIF
Sets the Primary Diagnosis indicator

Specified by:
setPrimary in interface Icd9DiagnosisCodeIF
Parameters:
primary - - true or false

setSecondaryOnly

public void setSecondaryOnly(boolean bool)
Description copied from interface: Icd9DiagnosisCodeIF
sets the secondary only flag

Specified by:
setSecondaryOnly in interface Icd9DiagnosisCodeIF

setUlcer

public void setUlcer(boolean ulcer)
Description copied from interface: Icd9DiagnosisCodeIF
Sets the relating to Ulcer flag

Specified by:
setUlcer in interface Icd9DiagnosisCodeIF

setCode

public void setCode(java.lang.String code)
Description copied from interface: Icd9CodeIF
Sets the code value

Specified by:
setCode in interface Icd9CodeIF

setCodeType

public void setCodeType(int type)
Description copied from interface: Icd9CodeIF
Sets the code type - must be either 1 for diagnosis or 2 for procedure

Specified by:
setCodeType in interface Icd9CodeIF

setDescription

public void setDescription(java.lang.String description)
Description copied from interface: Describable
Sets the objects internal description

Specified by:
setDescription in interface Describable

setDiagnosticGroup

public void setDiagnosticGroup(DiagnosticCategoryIF diagnosticGroup)
Description copied from interface: Icd9CodeIF
sets the Diagnostic Grouper indicator

Specified by:
setDiagnosticGroup in interface Icd9CodeIF

setGrouper

public void setGrouper(HomeHealthGrouperIF grouper)

setOptionalVCode

public void setOptionalVCode(boolean bool)

setValidCode

public void setValidCode(boolean validCode)
Description copied from interface: Icd9CodeIF
Sets the valid code flag

Specified by:
setValidCode in interface Icd9CodeIF

setValidForScoring

public void setValidForScoring(boolean validForScoring)
Description copied from interface: Icd9CodeIF
sets the valid for scoring flag

Specified by:
setValidForScoring in interface Icd9CodeIF

clone

public Icd9DiagnosisCodeIF clone()
                          throws java.lang.CloneNotSupportedException
Description copied from interface: Icd9DiagnosisCodeIF
creates an exact copy of this object that can be manipulated separately without effecting this object

Specified by:
clone in interface Icd9DiagnosisCodeIF
Overrides:
clone in class java.lang.Object
Returns:
creates an exact copy of the code, and should never be null
Throws:
java.lang.CloneNotSupportedException

getEtiologyPairCodes

public java.util.List<Icd9DiagnosisCodeIF> getEtiologyPairCodes()
Description copied from interface: Icd9DiagnosisCodeIF
gets the list of etiology pairs - only valid when the code is flagged as a secondary only

Specified by:
getEtiologyPairCodes in interface Icd9DiagnosisCodeIF
Returns:
a List of diagnosis codes that are valid as the second part of an Allowable Etiology Pair (taken from the original Table 3, Part 1 - acceptable etiology/manifestation pairs). This list should never be null, but may be empty

isDiabeticUlcer

public boolean isDiabeticUlcer()
Description copied from interface: Icd9DiagnosisCodeIF
gets the Diabetic Ulcer indicator

Specified by:
isDiabeticUlcer in interface Icd9DiagnosisCodeIF
Returns:
true if this code is flagged as relating to Diabetic Ulcer

isPrimary

public boolean isPrimary()
Description copied from interface: Icd9DiagnosisCodeIF
Indicates if the code is considered the primary code in the case mix. The default should be false.

Specified by:
isPrimary in interface Icd9DiagnosisCodeIF
Returns:
true if the code is considered primary

isSecondaryOnly

public boolean isSecondaryOnly()
Description copied from interface: Icd9DiagnosisCodeIF
gets the secondary only indicator

Specified by:
isSecondaryOnly in interface Icd9DiagnosisCodeIF
Returns:
true if the code can only be used as a secondary code

isUlcer

public boolean isUlcer()
Description copied from interface: Icd9DiagnosisCodeIF
gets the Ulcer indicator

Specified by:
isUlcer in interface Icd9DiagnosisCodeIF
Returns:
true if this code is flagged as relating to Ulcer

isValidEtiologyPair

public boolean isValidEtiologyPair(Icd9DiagnosisCodeIF code)
Description copied from interface: Icd9DiagnosisCodeIF
check to determine if the code is on the list of allowable code pairs for this diagnosis.

Specified by:
isValidEtiologyPair in interface Icd9DiagnosisCodeIF
Returns:
true if the code is allowed as a pair, otherwise false. If the this diagnosis does not have a list of pairs, then it also returns false.

getCode

public java.lang.String getCode()
Description copied from interface: Icd9CodeIF
Gets the code value

Specified by:
getCode in interface Icd9CodeIF
Returns:

getCodeType

public int getCodeType()
Description copied from interface: Icd9CodeIF
gets the code type

Specified by:
getCodeType in interface Icd9CodeIF
Returns:
The code type integer indicator

getDiagnosticGroup

public DiagnosticCategoryIF getDiagnosticGroup()
Description copied from interface: Icd9CodeIF
gets the Diagnostic Group indicator

Specified by:
getDiagnosticGroup in interface Icd9CodeIF
Returns:
The Diagnostic Group indicator

isBlank

public boolean isBlank()
Description copied from interface: Icd9CodeIF
Codes can be blank, and this will return true if it is

Specified by:
isBlank in interface Icd9CodeIF
Returns:

isECode

public boolean isECode()
Description copied from interface: Icd9CodeIF
This checks the current code value for a starting 'E'. Blanks are not considered 'E' codes

Specified by:
isECode in interface Icd9CodeIF
Returns:
true if the code begins with an 'E'

isOptionalVCode

public boolean isOptionalVCode()
Description copied from interface: Icd9CodeIF
This checks the code value for a starting 'V'. Blanks are not considered 'V' codes, and the that code is marked as an optional scoring code. Note that these types of codes are not considered valid case mix codes.

Specified by:
isOptionalVCode in interface Icd9CodeIF
Returns:
true if the code begins with an 'V' and is an optional scoring code.

isVCode

public boolean isVCode()
Description copied from interface: Icd9CodeIF
This checks the current code value for a starting 'V'. Blanks are not considered 'V' codes

Specified by:
isVCode in interface Icd9CodeIF
Returns:
true if the code begins with an 'V'

isValidCode

public boolean isValidCode()
Description copied from interface: Icd9CodeIF
gets the valid ICD-9-CM code indicator. This would be specific to the grouper version and its code listing

Specified by:
isValidCode in interface Icd9CodeIF
Returns:
true if the code is valid for the grouper version. By default all codes should be considered invalid.

isValidForScoring

public boolean isValidForScoring()
Description copied from interface: Icd9CodeIF
This value is used to determine if a code is used in the scoring or should be skipped. Codes that are blank should automatically be considered not valid for scoring

Specified by:
isValidForScoring in interface Icd9CodeIF
Returns:
true if this code can be used in scoring

getDescription

public java.lang.String getDescription()
Description copied from interface: Describable
The description of the object

Specified by:
getDescription in interface Describable
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns: