com.mmm.cms.homehealth.proto
Interface Icd9DiagnosisCodeIF

All Superinterfaces:
java.lang.Cloneable, Describable, Icd9CodeIF
All Known Implementing Classes:
DiagnosisCode, DiagnosisCode_Empty

public interface Icd9DiagnosisCodeIF
extends Icd9CodeIF, java.lang.Cloneable

Holds the information specific to the Diagnosis codes (as opposed to a procedure code) that supports Home Health scoring.


Field Summary
 
Fields inherited from interface com.mmm.cms.homehealth.proto.Icd9CodeIF
TYPE_ICD_9_CM_DIAGNOSIS
 
Method Summary
 Icd9DiagnosisCodeIF clone()
          creates an exact copy of this object that can be manipulated separately without effecting this object
 java.util.List<Icd9DiagnosisCodeIF> getEtiologyPairCodes()
          gets the list of etiology pairs - only valid when the code is flagged as a secondary only
 boolean isDiabeticUlcer()
          gets the Diabetic Ulcer indicator
 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 isValidEtiologyPair(Icd9DiagnosisCodeIF code)
          check to determine if the code is on the list of allowable code pairs for this diagnosis.
 void setDiabeticUlcer(boolean bool)
          Sets the relating to Diabetic Ulcer flag
 void setEtiologyPairCodes(java.util.List<Icd9DiagnosisCodeIF> pairs)
          Sets the Allowable Etiology Pair codes for this current code.
 void setPrimary(boolean bool)
          Sets the Primary Diagnosis indicator
 void setSecondaryOnly(boolean bool)
          sets the secondary only flag
 void setUlcer(boolean bool)
          Sets the relating to Ulcer flag
 
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
 

Method Detail

isSecondaryOnly

boolean isSecondaryOnly()
gets the secondary only indicator

Returns:
true if the code can only be used as a secondary code

setSecondaryOnly

void setSecondaryOnly(boolean bool)
sets the secondary only flag

Parameters:
bool -

isPrimary

boolean isPrimary()
Indicates if the code is considered the primary code in the case mix. The default should be false.

Returns:
true if the code is considered primary

setPrimary

void setPrimary(boolean bool)
Sets the Primary Diagnosis indicator

Parameters:
bool - - true or false

isDiabeticUlcer

boolean isDiabeticUlcer()
gets the Diabetic Ulcer indicator

Returns:
true if this code is flagged as relating to Diabetic Ulcer

setDiabeticUlcer

void setDiabeticUlcer(boolean bool)
Sets the relating to Diabetic Ulcer flag

Parameters:
bool -

isUlcer

boolean isUlcer()
gets the Ulcer indicator

Returns:
true if this code is flagged as relating to Ulcer

setUlcer

void setUlcer(boolean bool)
Sets the relating to Ulcer flag

Parameters:
bool -

getEtiologyPairCodes

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

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

setEtiologyPairCodes

void setEtiologyPairCodes(java.util.List<Icd9DiagnosisCodeIF> pairs)
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

Parameters:
pairs -

isValidEtiologyPair

boolean isValidEtiologyPair(Icd9DiagnosisCodeIF code)
check to determine if the code is on the list of allowable code pairs for this diagnosis.

Parameters:
code -
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.

clone

Icd9DiagnosisCodeIF clone()
                          throws java.lang.CloneNotSupportedException
creates an exact copy of this object that can be manipulated separately without effecting this object

Returns:
creates an exact copy of the code, and should never be null
Throws:
java.lang.CloneNotSupportedException