com.mmm.cms.homehealth
Class DiagnosisCode

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

public class DiagnosisCode
extends AbstractIcd9Code
implements Icd9DiagnosisCodeIF

Diagnosis Code extends the Abstract class to add primary, secondary, etiology pairing and ulcer related information.


Field Summary
 
Fields inherited from class com.mmm.cms.homehealth.AbstractIcd9Code
BLANK_CODE, EMPTY_CODE
 
Fields inherited from interface com.mmm.cms.homehealth.proto.Icd9CodeIF
TYPE_ICD_9_CM_DIAGNOSIS
 
Constructor Summary
DiagnosisCode()
          Constuctor for blank code
DiagnosisCode(java.lang.String code)
          Constructor with a code value
DiagnosisCode(java.lang.String code, boolean validCode, boolean validForScoring)
          Constructor with code value, valid Code indicator, and valid for scoring indicator
 
Method Summary
 Icd9DiagnosisCodeIF clone()
          creates an exact copy of this object that can be manipulated separately without effecting this object
protected  void finalize()
           
 java.util.List<Icd9DiagnosisCodeIF> getEtiologyPairCodes()
          gets a List of valid etiologies that are used in conjuction with the Secondary only code.
 boolean isDiabeticUlcer()
          gets the Diabetic Ulcer related indicator
 boolean isPrimary()
          gets the primary code indicator
 boolean isSecondaryOnly()
          gets the secondary only indicator
 boolean isUlcer()
          gets the Ulcer related indicator
 boolean isValidEtiologyPair(Icd9DiagnosisCodeIF code)
          determines if the codes is part of the etiology pair listing
 void setDiabeticUlcer(boolean diabeticUlcer)
          Sets the diabetic ulcer related indicator
 void setEtiologyPairCodes(java.util.List<Icd9DiagnosisCodeIF> pairs)
          Sets the List of Etiology paired codes
 void setPrimary(boolean primary)
          Sets the primary code indicator
 void setSecondaryOnly(boolean bool)
          Sets the seondary flag
 void setUlcer(boolean ulcer)
          Sets the ulcer related indicator
 
Methods inherited from class com.mmm.cms.homehealth.AbstractIcd9Code
equals, getCode, getCodeType, getDescription, getDiagnosticGroup, getGrouper, hashCode, isBlank, isECode, isOptionalVCode, isValidCode, isValidForScoring, isVCode, setCode, setCodeType, setDescription, setDiagnosticGroup, setGrouper, setOptionalVCode, setValidCode, setValidForScoring, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mmm.cms.homehealth.proto.Icd9CodeIF
getCode, getCodeType, getDiagnosticGroup, isBlank, isECode, isOptionalVCode, isValidCode, isValidForScoring, isVCode, setCode, setCodeType, setDiagnosticGroup, setValidCode, setValidForScoring
 
Methods inherited from interface com.mmm.cms.util.Describable
getDescription, setDescription
 

Constructor Detail

DiagnosisCode

public DiagnosisCode()
Constuctor for blank code


DiagnosisCode

public DiagnosisCode(java.lang.String code)
Constructor with a code value

Parameters:
code -

DiagnosisCode

public DiagnosisCode(java.lang.String code,
                     boolean validCode,
                     boolean validForScoring)
Constructor with code value, valid Code indicator, and valid for scoring indicator

Parameters:
code -
validCode -
validForScoring -
Method Detail

isSecondaryOnly

public boolean isSecondaryOnly()
gets the secondary only indicator

Specified by:
isSecondaryOnly in interface Icd9DiagnosisCodeIF
Returns:
true if the code is marked as secondary only

setSecondaryOnly

public void setSecondaryOnly(boolean bool)
Sets the seondary flag

Specified by:
setSecondaryOnly in interface Icd9DiagnosisCodeIF
Parameters:
bool -

isPrimary

public boolean isPrimary()
gets the primary code indicator

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

setPrimary

public void setPrimary(boolean primary)
Sets the primary code indicator

Specified by:
setPrimary in interface Icd9DiagnosisCodeIF
Parameters:
primary -

isDiabeticUlcer

public boolean isDiabeticUlcer()
gets the Diabetic Ulcer related indicator

Specified by:
isDiabeticUlcer in interface Icd9DiagnosisCodeIF
Returns:
true if the code is related to diabetic ulcers

setDiabeticUlcer

public void setDiabeticUlcer(boolean diabeticUlcer)
Sets the diabetic ulcer related indicator

Specified by:
setDiabeticUlcer in interface Icd9DiagnosisCodeIF
Parameters:
diabeticUlcer -

isUlcer

public boolean isUlcer()
gets the Ulcer related indicator

Specified by:
isUlcer in interface Icd9DiagnosisCodeIF
Returns:
true if the code is related to diabetic ulcers

setUlcer

public void setUlcer(boolean ulcer)
Sets the ulcer related indicator

Specified by:
setUlcer in interface Icd9DiagnosisCodeIF
Parameters:
ulcer -

getEtiologyPairCodes

public java.util.List<Icd9DiagnosisCodeIF> getEtiologyPairCodes()
gets a List of valid etiologies that are used in conjuction with the Secondary only code. Has no meaning if this code is not a Secondary only code.

Specified by:
getEtiologyPairCodes in interface Icd9DiagnosisCodeIF
Returns:
a List of Diagnosis codes indicating the related Etiology pairing - will never be null, but may be empty

setEtiologyPairCodes

public void setEtiologyPairCodes(java.util.List<Icd9DiagnosisCodeIF> pairs)
Sets the List of Etiology paired codes

Specified by:
setEtiologyPairCodes in interface Icd9DiagnosisCodeIF
Parameters:
pairs -

isValidEtiologyPair

public boolean isValidEtiologyPair(Icd9DiagnosisCodeIF code)
determines if the codes is part of the etiology pair listing

Specified by:
isValidEtiologyPair in interface Icd9DiagnosisCodeIF
Parameters:
code -
Returns:
true if the supplied code is on the Etiology pair list

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:
an exact copy of this Diagnosis code.
Throws:
java.lang.CloneNotSupportedException

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable