|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectidi.diplom.linda.webservice.LifeShirtWebService
public class LifeShirtWebService
Constructor Summary | |
---|---|
LifeShirtWebService()
|
Method Summary | |
---|---|
void |
dismissAlarm(Alarm a)
Dismissed the specified alarm |
Alarm[] |
getAllActiveAlarms(Patient p)
Gets all alarms saved on specified patient that are not yet dismissed |
Note[] |
getAllNotes(Patient p)
Receives all notes saved on specified patient |
Patient[] |
getAllPatients()
Gets all patients saved in database |
MedPacket |
getLastMedPacket(Patient p)
Gets the last saved medpacket on specified patient |
MedPacket[] |
getPacketsBetweenDates(Patient p,
java.util.Date fromTime,
java.util.Date toTime,
int resolution)
Returns a list of medpackets saved on specified patient between specified time. |
void |
saveNewPatient(Patient p)
Saves a new patient to the database |
void |
saveNote(Note n)
Saves a note to the database |
void |
updatePatient(Patient p)
Updates a patient's profile |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifeShirtWebService()
Method Detail |
---|
public MedPacket getLastMedPacket(Patient p) throws DatabaseException, IllegalInputException, GeneralException
patient
- to get monitoring data from
DatabaseException
IllegalInputException
GeneralException
public void saveNewPatient(Patient p) throws DatabaseException, IllegalInputException, GeneralException
patient
- to be saved
DatabaseException
IllegalInputException
GeneralException
public Patient[] getAllPatients() throws DatabaseException, GeneralException
DatabaseException
GeneralException
public void updatePatient(Patient p) throws DatabaseException, IllegalInputException, GeneralException
patient
- to be updated
DatabaseException
IllegalInputException
GeneralException
public void saveNote(Note n) throws DatabaseException, IllegalInputException, GeneralException
note
- to be saved
DatabaseException
IllegalInputException
GeneralException
public Note[] getAllNotes(Patient p) throws DatabaseException, IllegalInputException, GeneralException
patient
- to get notes on
DatabaseException
IllegalInputException
GeneralException
public void dismissAlarm(Alarm a) throws DatabaseException, IllegalInputException, GeneralException
alarm
- to be dismissed
DatabaseException
IllegalInputException
GeneralException
public Alarm[] getAllActiveAlarms(Patient p) throws DatabaseException, IllegalInputException, GeneralException
patient
- to get alarms on
DatabaseException
IllegalInputException
GeneralException
public MedPacket[] getPacketsBetweenDates(Patient p, java.util.Date fromTime, java.util.Date toTime, int resolution) throws DatabaseException, IllegalInputException, GeneralException
patient
- to get monitoring data fromfromTime
- toTime
- a
- number telling what packets should be returned
DatabaseException
IllegalInputException
GeneralException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |