public class DiagnosisCode extends AbstractDiagnosisCode implements DiagnosisCodeIF
Modifier and Type | Field and Description |
---|---|
protected EtiologyPairsList |
etiologyPairCodes
Holds a list of Etiology codes used to pair with this code.
|
protected int |
offset
Indicates the offset position of the code within the record's
Diagnosis grid.
|
protected boolean |
primary
Flag identifying code as the primary code for scoring.
|
protected boolean |
primaryAwardableCode
This flag indicates that this Code allows for the code in position
2 to be set a primary code for scoring.
|
protected boolean |
secondaryOnly
Flag identifying code as a secondary or manifestation only code.
|
BLANK_CODE, code, codeType, description, diagnosticGroup, EMPTY_CODE, grouper, optionalPaymentCode, validCode, validForScoring
TYPE_ICD_9_CM_DIAGNOSIS
Constructor and Description |
---|
DiagnosisCode()
Constructor 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
|
Modifier and Type | Method and Description |
---|---|
DiagnosisCodeIF |
clone()
Clones the code
|
protected void |
finalize() |
EtiologyPairingListIF |
getEtiologyPairCodes()
gets a List of valid etiologies that are used in conjuction with
the Secondary only code.
|
int |
getOffset()
Gets the offset of the code within the record's Diagnosis grid
|
boolean |
isDiabeticUlcer()
gets the Diabetic Ulcer related indicator
|
boolean |
isEtiologyInPairingList(DiagnosisCodeIF code)
determines if the codes is part of the etiology pair listing
|
boolean |
isPrimary()
gets the primary code indicator
|
boolean |
isPrimaryAwardableCode()
gets the flag indicating that this V-Code allows the Diabetes, Neuro 1
and Skin 1 primary code in position 2
Introduced for V3413
|
boolean |
isSecondaryOnly()
gets the secondary only indicator
|
boolean |
isUlcer()
gets the Ulcer related indicator
|
boolean |
isValidEtiologyPairing(DiagnosisCodeIF etiologyCode)
determines if the etiology code can be paired with this code
|
void |
setDiabeticUlcer(boolean diabeticUlcer)
Sets the diabetic ulcer related indicator
|
void |
setEtiologyPairCodes(java.util.List<DiagnosisCodeIF> pairs)
Sets the List of Etiology paired codes
|
void |
setOffset(int offset)
Sets the codes offset in the record's Diagnosis grid.
|
void |
setPrimary(boolean primary)
Sets the primary code indicator
|
void |
setPrimaryAwardableCode(boolean primaryAwardableVCode)
if the code is null or the code is not a V-Code, and the parameter value
is true, then this throws an IllegalStateException because the value can
not be set to true unless it is a V-Code.
|
void |
setSecondaryOnly(boolean bool)
Sets the secondary flag
|
void |
setUlcer(boolean ulcer)
Sets the ulcer related indicator
|
java.lang.String |
toStringFinest()
Returns detailed information about this code.
|
equals, getCode, getCodeType, getDescription, getDiagnosticGroup, getGrouper, hashCode, isBlank, isECode, isOptionalPaymentCode, isValidCode, isValidForScoring, isVCode, setCode, setCodeType, setDescription, setDiagnosticGroup, setGrouper, setOptionalPaymentCode, setValidCode, setValidForScoring, toString
getCode, getCodeType, getDiagnosticGroup, isBlank, isECode, isValidCode, isValidForScoring, isVCode, setCode, setCodeType, setDiagnosticGroup, setValidCode, setValidForScoring
getDescription, setDescription
isOptionalPaymentCode, setOptionalPaymentCode
protected boolean secondaryOnly
protected transient boolean primary
protected transient EtiologyPairsList etiologyPairCodes
protected int offset
protected boolean primaryAwardableCode
public DiagnosisCode()
public DiagnosisCode(java.lang.String code)
code
- public DiagnosisCode(java.lang.String code, boolean validCode, boolean validForScoring)
code
- validCode
- validForScoring
- public DiagnosisCodeIF clone() throws java.lang.CloneNotSupportedException
AbstractDiagnosisCode
clone
in interface DiagnosisCodeIF
clone
in class AbstractDiagnosisCode
java.lang.CloneNotSupportedException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public EtiologyPairingListIF getEtiologyPairCodes()
getEtiologyPairCodes
in interface EtiologyPairingIF
public int getOffset()
getOffset
in interface DiagnosisCodeIF
public boolean isSecondaryOnly()
isSecondaryOnly
in interface CodePositionalIF
public boolean isPrimary()
isPrimary
in interface CodePositionalIF
public boolean isPrimaryAwardableCode()
isPrimaryAwardableCode
in interface DiagnosisCodeIF
public boolean isDiabeticUlcer()
isDiabeticUlcer
in interface CodeUlcerIF
public boolean isUlcer()
isUlcer
in interface CodeUlcerIF
public boolean isEtiologyInPairingList(DiagnosisCodeIF code)
isEtiologyInPairingList
in interface EtiologyPairingIF
code
- public boolean isValidEtiologyPairing(DiagnosisCodeIF etiologyCode)
isValidEtiologyPairing
in interface EtiologyPairingIF
etiologyCode
- public void setEtiologyPairCodes(java.util.List<DiagnosisCodeIF> pairs)
setEtiologyPairCodes
in interface EtiologyPairingIF
pairs
- public void setDiabeticUlcer(boolean diabeticUlcer)
setDiabeticUlcer
in interface CodeUlcerIF
diabeticUlcer
- public void setOffset(int offset)
setOffset
in interface DiagnosisCodeIF
offset
- public void setPrimary(boolean primary)
setPrimary
in interface CodePositionalIF
primary
- public void setPrimaryAwardableCode(boolean primaryAwardableVCode) throws java.lang.IllegalStateException
setPrimaryAwardableCode
in interface DiagnosisCodeIF
primaryAwardableCode
- java.lang.IllegalStateException
public void setSecondaryOnly(boolean bool)
setSecondaryOnly
in interface CodePositionalIF
bool
- public void setUlcer(boolean ulcer)
setUlcer
in interface CodeUlcerIF
ulcer
- public java.lang.String toStringFinest()
AbstractDiagnosisCode
toStringFinest
in class AbstractDiagnosisCode