public abstract class AbstractDiagnosisCode extends java.lang.Object implements DiagnosisCodeIF, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EMPTY_CODE
an Empty string of length 0
|
| Constructor and Description |
|---|
AbstractDiagnosisCode()
Constructs the code with an empty code value
|
AbstractDiagnosisCode(java.lang.String code,
CodeType_EN codeType)
This method will bypass the code and type validation, assuming that the
extended class knows what type it is and also ensure that the code value
is "interned" in order to reduce the number of code string objects are
created and used.
|
AbstractDiagnosisCode(java.lang.String code,
CodeType_EN codeType,
boolean validCode,
boolean validForScoring) |
| Modifier and Type | Method and Description |
|---|---|
DiagnosisCodeIF |
clone()
Clones the code
|
int |
compareTo(java.lang.Object obj) |
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
|
CodeType_EN |
getCodeType()
gets the code type
|
java.lang.String |
getDescription()
Get the value of description
|
DiagnosticGroupIF |
getDiagnosticGroup()
Get the value of diagnosticGroup
|
int |
hashCode()
hash code based on the code's value
|
boolean |
isEmpty()
determines if the code is blank
|
boolean |
isExternalCauseCode()
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()
Deprecated.
as a way to determine Optional Payment or Primary Awarding
|
void |
setCode(java.lang.String code)
Set the value of code but ensures that the code contains only alpha-
numeric or decimal characters, or is empty; Codes within this class are
not representations of the the way the code is stored but instead it is a
usable code value or empty.
|
void |
setCodeType(CodeType_EN type)
Sets the code type - ICD-9 or ICD-10
|
void |
setDescription(java.lang.String description)
Set the value of description
|
void |
setDiagnosticGroup(DiagnosticGroupIF diagnosticGroup)
Set the value of diagnosticGroup
|
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, waitgetOffset, setOffsetisPrimary, isSecondaryOnly, setPrimary, setSecondaryOnlyisDiabeticUlcer, isUlcer, setDiabeticUlcer, setUlcerisPrimaryAwardableCode, setPrimaryAwardableCodegetEtiologyPairCodes, isEtiologyInPairingList, isValidEtiologyPairing, setEtiologyPairCodespublic static final java.lang.String EMPTY_CODE
public AbstractDiagnosisCode()
public AbstractDiagnosisCode(java.lang.String code,
CodeType_EN codeType)
code - codeType - public AbstractDiagnosisCode(java.lang.String code,
CodeType_EN codeType,
boolean validCode,
boolean validForScoring)
code - codeType - validCode - validForScoring - public DiagnosisCodeIF clone() throws java.lang.CloneNotSupportedException
clone in interface DiagnosisCodeIFclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic java.lang.String getDescription()
getDescription in interface Describablepublic void setDescription(java.lang.String description)
setDescription in interface Describabledescription - new value of descriptionpublic java.lang.String getCode()
getCode in interface DiagnosisCodeIFpublic void setCode(java.lang.String code)
setCode in interface DiagnosisCodeIFcode - new value of codepublic void setCodeType(CodeType_EN type)
setCodeType in interface DiagnosisCodeIFtype - valid code typepublic CodeType_EN getCodeType()
getCodeType in interface DiagnosisCodeIFpublic DiagnosticGroupIF getDiagnosticGroup()
getDiagnosticGroup in interface DiagnosisCodeIFpublic void setDiagnosticGroup(DiagnosticGroupIF diagnosticGroup)
setDiagnosticGroup in interface DiagnosisCodeIFdiagnosticGroup - new value of diagnosticGrouppublic boolean isExternalCauseCode()
isExternalCauseCode in interface DiagnosisCodeIFpublic boolean isVCode()
isVCode in interface DiagnosisCodeIFpublic boolean isValidForScoring()
isValidForScoring in interface DiagnosisCodeIFpublic void setValidForScoring(boolean validForScoring)
setValidForScoring in interface DiagnosisCodeIFvalidForScoring - new value of validForScoringpublic boolean isEmpty()
isEmpty in interface DiagnosisCodeIFpublic boolean isValidCode()
isValidCode in interface DiagnosisCodeIFpublic void setValidCode(boolean validCode)
setValidCode in interface DiagnosisCodeIFvalidCode - new value of validCodepublic boolean isOptionalPaymentCode()
isOptionalPaymentCode in interface OptionalPaymentCodeIFpublic void setOptionalPaymentCode(boolean bool)
setOptionalPaymentCode in interface OptionalPaymentCodeIFbool - public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringFinest()