com.mmm.cms.homehealth
Class DiagnosticCategory

java.lang.Object
  extended by com.mmm.cms.homehealth.DiagnosticCategory
All Implemented Interfaces:
DiagnosticCategoryIF, Describable, Identifiable

public class DiagnosticCategory
extends java.lang.Object
implements DiagnosticCategoryIF

Each valid code for a version belongs to a Diagnosis Category. This represents the Category Id and description. Though the category id is required for scoring, the description is only useful for debugging or GUIs. It also provides a non-changable default Category with ID = 0 for use with codes that don't require a category but makes programming easier by assigning an "empty" Category


Field Summary
static DiagnosticCategoryIF CATEGORY_UNKNOWN
          The default "unknown" category object.
 
Constructor Summary
DiagnosticCategory(int id)
          Constructor with default Id
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares the objects based on the id
 java.lang.String getDescription()
          Get the value of description
 int getId()
          Get the value of id
 int hashCode()
          The hash code based on the id
 void setDescription(java.lang.String description)
          Set the value of description
 void setId(int id)
          Set the value of id
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CATEGORY_UNKNOWN

public static final DiagnosticCategoryIF CATEGORY_UNKNOWN
The default "unknown" category object. The id is always 0

Constructor Detail

DiagnosticCategory

public DiagnosticCategory(int id)
Constructor with default Id

Parameters:
id -
Method Detail

getId

public int getId()
Get the value of id

Specified by:
getId in interface Identifiable
Returns:
the value of id

setId

public void setId(int id)
Set the value of id

Specified by:
setId in interface Identifiable
Parameters:
id - new value of id

getDescription

public java.lang.String getDescription()
Get the value of description

Specified by:
getDescription in interface Describable
Returns:
the value of description

setDescription

public void setDescription(java.lang.String description)
Set the value of description

Specified by:
setDescription in interface Describable
Parameters:
description - new value of description

hashCode

public int hashCode()
The hash code based on the id

Overrides:
hashCode in class java.lang.Object
Returns:

equals

public boolean equals(java.lang.Object obj)
Compares the objects based on the id

Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object