org.domain.rhims.dao
Interface MedicalDataDAO

All Known Implementing Classes:
MedicalDataDAOMySQL

public interface MedicalDataDAO

The MedicalDataDAO is responsible for interacting with the persistence of the medical data that is received from other parts of the application. It is a component of the Persistance layer of the application. It contains a method to save new medical data, along with a method to retrieve data for a particular patient (based on username)

Author:
Mitch Williams

Method Summary
 java.util.List<Pulse> getMedicalDataPulse(java.lang.String patientUsername)
          This method returns a list containing all Pulse medical data values for a particular patient.
 void saveMedicalDataPulse(Pulse pulse)
          This method persists a Pulse MedicalDataValue entity object.
 

Method Detail

saveMedicalDataPulse

void saveMedicalDataPulse(Pulse pulse)
This method persists a Pulse MedicalDataValue entity object. An improvement would be to acknowledge if the data was saved successfully or not.

Parameters:
pulse - the Pulse object to persist

getMedicalDataPulse

java.util.List<Pulse> getMedicalDataPulse(java.lang.String patientUsername)
This method returns a list containing all Pulse medical data values for a particular patient.

Parameters:
patientUsername - the username of the patient to get data from
Returns:
the list of medical data