com.mmm.cms.homehealth.proto
Interface Icd9CodeIF

All Superinterfaces:
Describable
All Known Subinterfaces:
Icd9DiagnosisCodeIF
All Known Implementing Classes:
AbstractIcd9Code, DiagnosisCode, DiagnosisCode_Empty

public interface Icd9CodeIF
extends Describable

Represents the basic information about an ICD-9-Code For diagnosis codes, the code value must be: A nonblank value must conform to one of the following two patterns: PATTERN A -Character 1 must be a space. -Character 2 must be a 0 (zero) thru 9. -Characters 3 thru 4 must be 0 thru 9. -Character 5 must be a decimal point. -Characters 6 and 7 must be 0 (zero) thru 9 or space. -If character 6 is a space, then character 7 must be a space. PATTERN B -Character 1 must be a space. -Character 2 must be "V". -Characters 3 thru 4 must be 0 thru 9. -Character 5 must be a decimal point. -Characters 6 and 7 must be 0 (zero) thru 9 or space. -If character 6 is a space, then character 7 must be a space.


Field Summary
static int TYPE_ICD_9_CM_DIAGNOSIS
          numonic indicating diagnosis code
 
Method Summary
 java.lang.String getCode()
          Gets the code value
 int getCodeType()
          gets the code type
 DiagnosticCategoryIF getDiagnosticGroup()
          gets the Diagnostic Group indicator
 boolean isBlank()
          Codes can be blank, and this will return true if it is
 boolean isECode()
          This checks the current code value for a starting 'E'.
 boolean isOptionalVCode()
          This checks the code value for a starting 'V'.
 boolean isValidCode()
          gets the valid ICD-9-CM code indicator.
 boolean isValidForScoring()
          This value is used to determine if a code is used in the scoring or should be skipped.
 boolean isVCode()
          This checks the current code value for a starting 'V'.
 void setCode(java.lang.String code)
          Sets the code value
 void setCodeType(int type)
          Sets the code type - must be either 1 for diagnosis or 2 for procedure
 void setDiagnosticGroup(DiagnosticCategoryIF dg)
          sets the Diagnostic Grouper indicator
 void setValidCode(boolean bool)
          Sets the valid code flag
 void setValidForScoring(boolean bool)
          sets the valid for scoring flag
 
Methods inherited from interface com.mmm.cms.util.Describable
getDescription, setDescription
 

Field Detail

TYPE_ICD_9_CM_DIAGNOSIS

static final int TYPE_ICD_9_CM_DIAGNOSIS
numonic indicating diagnosis code

See Also:
Constant Field Values
Method Detail

getCode

java.lang.String getCode()
Gets the code value

Returns:

setCode

void setCode(java.lang.String code)
Sets the code value

Parameters:
code -

isECode

boolean isECode()
This checks the current code value for a starting 'E'. Blanks are not considered 'E' codes

Returns:
true if the code begins with an 'E'

isVCode

boolean isVCode()
This checks the current code value for a starting 'V'. Blanks are not considered 'V' codes

Returns:
true if the code begins with an 'V'

isOptionalVCode

boolean isOptionalVCode()
This checks the code value for a starting 'V'. Blanks are not considered 'V' codes, and the that code is marked as an optional scoring code. Note that these types of codes are not considered valid case mix codes.

Returns:
true if the code begins with an 'V' and is an optional scoring code.

isBlank

boolean isBlank()
Codes can be blank, and this will return true if it is

Returns:

getCodeType

int getCodeType()
gets the code type

Returns:
The code type integer indicator

setCodeType

void setCodeType(int type)
Sets the code type - must be either 1 for diagnosis or 2 for procedure

Parameters:
type -

getDiagnosticGroup

DiagnosticCategoryIF getDiagnosticGroup()
gets the Diagnostic Group indicator

Returns:
The Diagnostic Group indicator

setDiagnosticGroup

void setDiagnosticGroup(DiagnosticCategoryIF dg)
sets the Diagnostic Grouper indicator

Parameters:
dg -

isValidForScoring

boolean isValidForScoring()
This value is used to determine if a code is used in the scoring or should be skipped. Codes that are blank should automatically be considered not valid for scoring

Returns:
true if this code can be used in scoring

setValidForScoring

void setValidForScoring(boolean bool)
sets the valid for scoring flag

Parameters:
bool -

isValidCode

boolean isValidCode()
gets the valid ICD-9-CM code indicator. This would be specific to the grouper version and its code listing

Returns:
true if the code is valid for the grouper version. By default all codes should be considered invalid.

setValidCode

void setValidCode(boolean bool)
Sets the valid code flag

Parameters:
bool -