public abstract class AbstractDiagnosisCode extends java.lang.Object implements DiagnosisCodeIF
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BLANK_CODE
Full length blank code value
|
protected java.lang.String |
code |
protected int |
codeType |
protected java.lang.String |
description |
protected DiagnosticGroupIF |
diagnosticGroup |
static java.lang.String |
EMPTY_CODE
an Empty string of length 0
|
protected HomeHealthGrouperIF |
grouper |
protected boolean |
optionalPaymentCode |
protected boolean |
validCode |
protected boolean |
validForScoring |
TYPE_ICD_9_CM_DIAGNOSIS
Constructor and Description |
---|
AbstractDiagnosisCode()
Constructs the code with an empty code value
|
AbstractDiagnosisCode(java.lang.String code,
int codeType)
This method will bypass the code and type validation, assuming that
the extended class knows what type it is.
|
AbstractDiagnosisCode(java.lang.String code,
int codeType,
boolean validCode,
boolean validForScoring) |
Modifier and Type | Method and Description |
---|---|
DiagnosisCodeIF |
clone()
Clones the code
|
boolean |
equals(java.lang.Object obj)
Compares this code's value with another code's value
|
java.lang.String |
getCode()
Get the value of code
|
int |
getCodeType()
gets the code type
|
java.lang.String |
getDescription()
Get the value of description
|
DiagnosticGroupIF |
getDiagnosticGroup()
Get the value of diagnosticGroup
|
HomeHealthGrouperIF |
getGrouper()
Get the value of grouper
|
int |
hashCode()
hash code based on the code's value
|
boolean |
isBlank()
determines if the code is blank
|
boolean |
isECode()
determines if the code is an E-code
|
boolean |
isOptionalPaymentCode()
determines if the code is an optional V-code
|
boolean |
isValidCode()
Get the value of validCode
|
boolean |
isValidForScoring()
Get the value of validForScoring
|
boolean |
isVCode()
determine if the code is a V-code
|
void |
setCode(java.lang.String code)
Set the value of code
|
void |
setCodeType(int type)
Sets the code type - usually diagnosis or procedure
|
void |
setDescription(java.lang.String description)
Set the value of description
|
void |
setDiagnosticGroup(DiagnosticGroupIF diagnosticGroup)
Set the value of diagnosticGroup
|
void |
setGrouper(HomeHealthGrouperIF grouper)
Set the value of grouper
|
void |
setOptionalPaymentCode(boolean bool)
Sets the optional payment code flag - Originally used for V-Codes to
indicate that the payment codes are to be used.
|
void |
setValidCode(boolean validCode)
Set the value of validCode
|
void |
setValidForScoring(boolean validForScoring)
Set the value of validForScoring
|
java.lang.String |
toString()
Returns only the code value.
|
java.lang.String |
toStringFinest()
Returns detailed information about this code.
|
finalize, getClass, notify, notifyAll, wait, wait, wait
getOffset, isPrimaryAwardableCode, setOffset, setPrimaryAwardableCode
isPrimary, isSecondaryOnly, setPrimary, setSecondaryOnly
isDiabeticUlcer, isUlcer, setDiabeticUlcer, setUlcer
getEtiologyPairCodes, isEtiologyInPairingList, isValidEtiologyPairing, setEtiologyPairCodes
public static final java.lang.String BLANK_CODE
public static final java.lang.String EMPTY_CODE
protected java.lang.String code
protected java.lang.String description
protected int codeType
protected DiagnosticGroupIF diagnosticGroup
protected transient HomeHealthGrouperIF grouper
protected boolean validForScoring
protected boolean validCode
protected boolean optionalPaymentCode
public AbstractDiagnosisCode()
public AbstractDiagnosisCode(java.lang.String code, int codeType)
code
- codeType
- public AbstractDiagnosisCode(java.lang.String code, int codeType, boolean validCode, boolean validForScoring)
code
- codeType
- validCode
- validForScoring
- public DiagnosisCodeIF clone() throws java.lang.CloneNotSupportedException
clone
in interface DiagnosisCodeIF
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- public java.lang.String getDescription()
getDescription
in interface Describable
public void setDescription(java.lang.String description)
setDescription
in interface Describable
description
- new value of descriptionpublic java.lang.String getCode()
getCode
in interface DiagnosisCodeIF
public void setCode(java.lang.String code)
setCode
in interface DiagnosisCodeIF
code
- new value of codepublic void setCodeType(int type)
setCodeType
in interface DiagnosisCodeIF
type
- valid code typepublic int getCodeType()
getCodeType
in interface DiagnosisCodeIF
public DiagnosticGroupIF getDiagnosticGroup()
getDiagnosticGroup
in interface DiagnosisCodeIF
public void setDiagnosticGroup(DiagnosticGroupIF diagnosticGroup)
setDiagnosticGroup
in interface DiagnosisCodeIF
diagnosticGroup
- new value of diagnosticGrouppublic boolean isECode()
isECode
in interface DiagnosisCodeIF
public boolean isVCode()
isVCode
in interface DiagnosisCodeIF
public HomeHealthGrouperIF getGrouper()
public void setGrouper(HomeHealthGrouperIF grouper)
grouper
- new value of grouperpublic boolean isValidForScoring()
isValidForScoring
in interface DiagnosisCodeIF
public void setValidForScoring(boolean validForScoring)
setValidForScoring
in interface DiagnosisCodeIF
validForScoring
- new value of validForScoringpublic boolean isBlank()
isBlank
in interface DiagnosisCodeIF
public boolean isValidCode()
isValidCode
in interface DiagnosisCodeIF
public void setValidCode(boolean validCode)
setValidCode
in interface DiagnosisCodeIF
validCode
- new value of validCodepublic boolean isOptionalPaymentCode()
isOptionalPaymentCode
in interface OptionalPaymentCodeIF
public void setOptionalPaymentCode(boolean bool)
setOptionalPaymentCode
in interface OptionalPaymentCodeIF
bool
- public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringFinest()