org.domain.rhims.entity
Class MedicalDataValue

java.lang.Object
  extended by org.domain.rhims.entity.MedicalDataValue
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Pulse

public abstract class MedicalDataValue
extends java.lang.Object
implements java.io.Serializable

The MedicalDataValue class is used to represent a single medical data value recorded from a patient. It is an abstract base class that is extended by classes representing the different types of medical data, such as pulse and blood pressure. It is an entity class that is persisted. Its Seam name is "medicalDataValue". The primaryKey field is used for persistance reasons. It will most likely be replaced by a composite key class in the future. The patient field is the patient that this data was received from. The timeStamp field is the time at which this data was initially recorded by the monitoring device.

Author:
Mitch Williams
See Also:
Serialized Form

Constructor Summary
MedicalDataValue()
          Default Constructor
MedicalDataValue(Patient patient, java.util.Date timeStamp)
          Constructor
 
Method Summary
abstract  double getMedicalData()
          Retrieve the actual data value
abstract  java.lang.String getMedicalDataTypeDescription()
          Get a string that describes what type of data this (i.e.
 Patient getPatient()
           
 long getPrimaryKey()
           
 java.util.Date getTimeStamp()
           
 void setPatient(Patient patient)
           
 void setPrimaryKey(long primaryKey)
           
 void setTimeStamp(java.util.Date timeStamp)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MedicalDataValue

public MedicalDataValue()
Default Constructor


MedicalDataValue

public MedicalDataValue(Patient patient,
                        java.util.Date timeStamp)
Constructor

Parameters:
patient - the patient that this data was received from.
timeStamp - the time at which this data was initially recorded by the monitoring device.
Method Detail

getMedicalDataTypeDescription

public abstract java.lang.String getMedicalDataTypeDescription()
Get a string that describes what type of data this (i.e. "Pulse")

Returns:
a string containing the type of the medical data

getMedicalData

public abstract double getMedicalData()
Retrieve the actual data value

Returns:
a double representation of the medical data value

getPrimaryKey

public long getPrimaryKey()

setPrimaryKey

public void setPrimaryKey(long primaryKey)

getPatient

public Patient getPatient()

setPatient

public void setPatient(Patient patient)

getTimeStamp

public java.util.Date getTimeStamp()

setTimeStamp

public void setTimeStamp(java.util.Date timeStamp)