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 patientID.

Author:
Mitch Williams

Method Summary
 java.util.List<MedicalDataValue> getMedicalData(long patientID)
          This method returns a list containing all Medical Data Values for a particular patientID.
 void saveMedicalData(MedicalDataValue medicalDataValue)
          This method persists a MedicalDataValue entity object.
 

Method Detail

saveMedicalData

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

Parameters:
medicalDataValue - the data object to persist

getMedicalData

java.util.List<MedicalDataValue> getMedicalData(long patientID)
This method returns a list containing all Medical Data Values for a particular patientID.

Parameters:
patientID - the patientID of the patient's data to retrieve
Returns:
the list of medical data