org.domain.rhims.entity
Class PulseGuideline

java.lang.Object
  extended by org.domain.rhims.entity.DataGuideline
      extended by org.domain.rhims.entity.PulseGuideline
All Implemented Interfaces:
java.io.Serializable

@Name(value="pulseGuideline")
public class PulseGuideline
extends DataGuideline

The PulseGuideline class extends the basic DataGuideline to handle pulse medical data values. Currently it contains an upper and a lower boundary value, but in the future will be extended to handle a more detailed range.

Author:
Mitch Williams
See Also:
Serialized Form

Constructor Summary
PulseGuideline()
           
PulseGuideline(CaseFile caseFile, double lowerBound, double upperBound)
           
 
Method Summary
 int check(double value)
          Perform a "check" of the supplied value and return if it was above, below, or within the set guideline values.
 java.lang.String getGuidelineDescription()
           
 java.lang.String getGuidelineTypeDescription()
          Get the string description of what medical data value this guideline is for.
 double getLowerBound()
           
 double getUpperBound()
           
 void setLowerBound(double lowerBound)
           
 void setUpperBound(double upperBound)
           
 
Methods inherited from class org.domain.rhims.entity.DataGuideline
getCaseFile, getPrimaryKey, setCaseFile, setPrimaryKey
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PulseGuideline

public PulseGuideline(CaseFile caseFile,
                      double lowerBound,
                      double upperBound)

PulseGuideline

public PulseGuideline()
Method Detail

check

public int check(double value)
Description copied from class: DataGuideline
Perform a "check" of the supplied value and return if it was above, below, or within the set guideline values.

Specified by:
check in class DataGuideline
Parameters:
value - the actual medical data value to check
Returns:
1 if above, -1 if below, 0 if OK

getGuidelineTypeDescription

public java.lang.String getGuidelineTypeDescription()
Description copied from class: DataGuideline
Get the string description of what medical data value this guideline is for.

Specified by:
getGuidelineTypeDescription in class DataGuideline
Returns:
the string description

getLowerBound

public double getLowerBound()

setLowerBound

public void setLowerBound(double lowerBound)

getUpperBound

public double getUpperBound()

setUpperBound

public void setUpperBound(double upperBound)

getGuidelineDescription

public java.lang.String getGuidelineDescription()
Specified by:
getGuidelineDescription in class DataGuideline