public abstract class AbstractDiagnosisCode extends java.lang.Object implements DiagnosisCodeIF, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
code |
protected CodeType_EN |
codeType |
protected java.lang.String |
description |
protected DiagnosticGroupIF |
diagnosticGroup |
static java.lang.String |
EMPTY_CODE
an Empty string of length 0
|
protected boolean |
optionalPaymentCode |
protected boolean |
validCode |
protected boolean |
validForScoring |
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
|
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, wait
getOffset, setOffset
isPrimary, isSecondaryOnly, setPrimary, setSecondaryOnly
isDiabeticUlcer, isUlcer, setDiabeticUlcer, setUlcer
isPrimaryAwardableCode, setPrimaryAwardableCode
getEtiologyPairCodes, isEtiologyInPairingList, isValidEtiologyPairing, setEtiologyPairCodes
public static final java.lang.String EMPTY_CODE
protected java.lang.String code
protected java.lang.String description
protected CodeType_EN codeType
protected DiagnosticGroupIF diagnosticGroup
protected boolean validForScoring
protected boolean validCode
protected boolean optionalPaymentCode
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 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(CodeType_EN type)
setCodeType
in interface DiagnosisCodeIF
type
- valid code typepublic CodeType_EN 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 isExternalCauseCode()
isExternalCauseCode
in interface DiagnosisCodeIF
public boolean isVCode()
isVCode
in interface DiagnosisCodeIF
public boolean isValidForScoring()
isValidForScoring
in interface DiagnosisCodeIF
public void setValidForScoring(boolean validForScoring)
setValidForScoring
in interface DiagnosisCodeIF
validForScoring
- new value of validForScoringpublic boolean isEmpty()
isEmpty
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()