org.domain.rhims.manager
Class DataEvaluationManagerAction

java.lang.Object
  extended by org.domain.rhims.manager.DataEvaluationManagerAction
All Implemented Interfaces:
DataEvaluationManager

@Name(value="healthGuidelineManager")
public class DataEvaluationManagerAction
extends java.lang.Object
implements DataEvaluationManager

This class provides an implementation of the DeviceInputManager. It maintains a reference to the MedicalDataDAO for persisting data. Its Seam name is "healthGuidelineManager".

Author:
Shane Woolwine

Constructor Summary
DataEvaluationManagerAction()
           
 
Method Summary
 void evaluateMedicalData(java.lang.String patientUsername, java.util.Date timestamp, java.lang.String dataValueType, double healthDataValue)
          Using information received from the http servelet HealthInformationReceiver, the evaluateMedicalData method takes the medical value and patient username and cross references it with all cases with that particular username.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataEvaluationManagerAction

public DataEvaluationManagerAction()
Method Detail

evaluateMedicalData

public void evaluateMedicalData(java.lang.String patientUsername,
                                java.util.Date timestamp,
                                java.lang.String dataValueType,
                                double healthDataValue)
Using information received from the http servelet HealthInformationReceiver, the evaluateMedicalData method takes the medical value and patient username and cross references it with all cases with that particular username. In each case, it checks if the received medical value is within the case guideline. If not, it extracts the clinician associated with the case and sends him/her an email alert.

Specified by:
evaluateMedicalData in interface DataEvaluationManager
Parameters:
patientUsername - String of the patient username associated with the data
timestamp - Date timestamp of when data was received
dataValueType - Type of value of health data, represented as a string
healthDataValue - Data value, currently just a double