Parkinson Disease Database

spirals.motol.database
Class Visit

java.lang.Object
  extended by spirals.motol.database.Visit

public class Visit
extends java.lang.Object

Class representing one visit at doctor for pacient.

Copyright: Copyright (c) 2005 Jan Dolezel

Company: ÈVUT FEL, Prague


Field Summary
static java.lang.String actionLeftAttr
          name of visit's left-hand rest action attribute
static java.lang.String actionRightAttr
          name of visit's right-hand rest action attribute
(package private)  int actionTremorLeft
          action tremor in left hand
(package private)  int actionTremorRight
          action tremor in right hand
private  java.util.List<Data> data
          list of captured data
private  java.util.Date date
          date of visit
private  java.lang.String diagnose
          diagnose for visit
static java.lang.String diagnoseTag
          name of diagnose tag
private  Engine engine
          engine
static java.lang.String fileFormat
          format for visit's stored file
private  java.lang.String memo
          comment for visit
static java.lang.String memoTag
          name of comment tag
(package private)  int openingLeft
          opening left hand
(package private)  int openingRight
          opening right hand
static java.lang.String openLeftAttr
          name of visit's left-hand opening attribute
static java.lang.String openRightAttr
          name of visit's right-hand opening attribute
private  Pacient pacient
          pacient whom visit belongs to
static java.lang.String postLeftAttr
          name of visit's left-hand rest postural attribute
static java.lang.String postRightAttr
          name of visit's right-hand rest postural attribute
(package private)  int posturalTremorLeft
          postural tremor in left hand
(package private)  int posturalTremorRight
          postural tremor in right hand
static java.lang.String restLeftAttr
          name of visit's left-hand rest tremor attribute
static java.lang.String restRightAttr
          name of visit's right-hand rest tremor attribute
(package private)  int restTremorLeft
          rest tremor in left hand
(package private)  int restTremorRight
          rest tremor in right hand
static java.lang.String tapLeftAttr
          name of visit's left-hand tapping attribute
(package private)  int tappingLeft
          tapping with left hand
(package private)  int tappingRight
          tapping with right hand
static java.lang.String tapRightAttr
          name of visit's right-hand tapping attribute
private  TestList tests
           
private  boolean valid
          validity of diagnose
static java.lang.String validAttr
          name of visit's valid diagnose attribute
static java.lang.String visitTag
          name of visit tag (root element)
 
Constructor Summary
private Visit(Engine engine, Pacient pacient)
          common inicialization
  Visit(Engine engine, Pacient pacient, java.io.File file)
          loads visit for pacient from file Each visit XML file contains information about one visit at doctor and about data captured at this visit with filenames of archivess with these tablet data.
  Visit(Engine engine, Pacient pacient, Visit visit)
          create new visit for pacient from last visit If last visit exists, its information are used for creating new visit.
 
Method Summary
 void addData(Data data)
          add captured data to list
 boolean equals(java.lang.Object o)
          test of equality of two visits
 int getActionTremorLeft()
          return left-hand action tremor
 int getActionTremorRight()
          return right-hand action tremor
 java.util.List<Data> getData()
          return list of captured data
 java.lang.String getDiagnose()
          return diagnose
 org.jdom.Element getElement()
          return XML representation of visit Tremor measure, comment, diagnose etc.
 java.io.File getFile()
          return file where is visit stored on disk
 java.lang.String getMemo()
          return comment
 int getOpeningLeft()
          return left-hand opening
 int getOpeningRight()
          return right-hand opening
 Pacient getPacient()
          return parent pacient
 int getPosturalTremorLeft()
          return left-hand postural tremor
 int getPosturalTremorRight()
          return right-hand postural tremor
 int getRestTremorLeft()
          return left-hand rest tremor
 int getRestTremorRight()
          return right-hand rest tremor
 int getTappingLeft()
          return left-hand tapping
 int getTappingRight()
          return right-hand tapping
 TestList getTestList()
          return histogram of captured data types
 java.util.Date getVisitDate()
          return date of visit
 boolean isValid()
          return validity of diagnose
private  void loadFromElement(org.jdom.Element root)
          load information from XML element
 void save()
          store visit to disk
 void setActionTremorLeft(int value)
          set left-hand action tremor
 void setActionTremorRight(int value)
          set right-hand action tremor
 void setDiagnose(java.lang.String diagnose)
          set new diagnose
 void setMemo(java.lang.String memo)
          set new comment
 void setOpeningLeft(int value)
          set left-hand opening
 void setOpeningRight(int value)
          set right-hand opening
 void setPosturalTremorLeft(int value)
          set left-hand postural tremor
 void setPosturalTremorRight(int value)
          set right-hand postural tremor
 void setRestTremorLeft(int value)
          set left-hand rest tremor
 void setRestTremorRight(int value)
          set right-hand rest tremor
 void setTappingLeft(int value)
          set left-hand tapping
 void setTappingRight(int value)
          set right-hand tapping
 void setValid(boolean valid)
          set validity of diagnose
 void setVisitDate(java.util.Date date)
          set date of visit
 java.lang.String toString()
          return text representation of visit = date: DD.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

date

private java.util.Date date
date of visit


pacient

private Pacient pacient
pacient whom visit belongs to


engine

private Engine engine
engine


data

private java.util.List<Data> data
list of captured data


tests

private TestList tests

memo

private java.lang.String memo
comment for visit


diagnose

private java.lang.String diagnose
diagnose for visit


valid

private boolean valid
validity of diagnose


restTremorLeft

int restTremorLeft
rest tremor in left hand


restTremorRight

int restTremorRight
rest tremor in right hand


posturalTremorLeft

int posturalTremorLeft
postural tremor in left hand


posturalTremorRight

int posturalTremorRight
postural tremor in right hand


actionTremorLeft

int actionTremorLeft
action tremor in left hand


actionTremorRight

int actionTremorRight
action tremor in right hand


openingLeft

int openingLeft
opening left hand


openingRight

int openingRight
opening right hand


tappingLeft

int tappingLeft
tapping with left hand


tappingRight

int tappingRight
tapping with right hand


fileFormat

public static final java.lang.String fileFormat
format for visit's stored file

See Also:
Constant Field Values

visitTag

public static final java.lang.String visitTag
name of visit tag (root element)

See Also:
Constant Field Values

memoTag

public static final java.lang.String memoTag
name of comment tag

See Also:
Constant Field Values

diagnoseTag

public static final java.lang.String diagnoseTag
name of diagnose tag

See Also:
Constant Field Values

validAttr

public static final java.lang.String validAttr
name of visit's valid diagnose attribute

See Also:
Constant Field Values

restLeftAttr

public static final java.lang.String restLeftAttr
name of visit's left-hand rest tremor attribute

See Also:
Constant Field Values

restRightAttr

public static final java.lang.String restRightAttr
name of visit's right-hand rest tremor attribute

See Also:
Constant Field Values

postLeftAttr

public static final java.lang.String postLeftAttr
name of visit's left-hand rest postural attribute

See Also:
Constant Field Values

postRightAttr

public static final java.lang.String postRightAttr
name of visit's right-hand rest postural attribute

See Also:
Constant Field Values

actionLeftAttr

public static final java.lang.String actionLeftAttr
name of visit's left-hand rest action attribute

See Also:
Constant Field Values

actionRightAttr

public static final java.lang.String actionRightAttr
name of visit's right-hand rest action attribute

See Also:
Constant Field Values

openLeftAttr

public static final java.lang.String openLeftAttr
name of visit's left-hand opening attribute

See Also:
Constant Field Values

openRightAttr

public static final java.lang.String openRightAttr
name of visit's right-hand opening attribute

See Also:
Constant Field Values

tapLeftAttr

public static final java.lang.String tapLeftAttr
name of visit's left-hand tapping attribute

See Also:
Constant Field Values

tapRightAttr

public static final java.lang.String tapRightAttr
name of visit's right-hand tapping attribute

See Also:
Constant Field Values
Constructor Detail

Visit

public Visit(Engine engine,
             Pacient pacient,
             Visit visit)
create new visit for pacient from last visit

If last visit exists, its information are used for creating new visit.


Visit

public Visit(Engine engine,
             Pacient pacient,
             java.io.File file)
loads visit for pacient from file

Each visit XML file contains information about one visit at doctor and about data captured at this visit with filenames of archivess with these tablet data.


Visit

private Visit(Engine engine,
              Pacient pacient)
common inicialization

Method Detail

loadFromElement

private void loadFromElement(org.jdom.Element root)
load information from XML element


getElement

public org.jdom.Element getElement()
return XML representation of visit

Tremor measure, comment, diagnose etc. Also list of data captured at this visit.


toString

public java.lang.String toString()
return text representation of visit = date: DD. MM. YYYY, HH:MM

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
test of equality of two visits

Overrides:
equals in class java.lang.Object

getPacient

public Pacient getPacient()
return parent pacient


getData

public java.util.List<Data> getData()
return list of captured data


getVisitDate

public java.util.Date getVisitDate()
return date of visit


getMemo

public java.lang.String getMemo()
return comment


getDiagnose

public java.lang.String getDiagnose()
return diagnose


isValid

public boolean isValid()
return validity of diagnose


setMemo

public void setMemo(java.lang.String memo)
set new comment


setDiagnose

public void setDiagnose(java.lang.String diagnose)
set new diagnose


setValid

public void setValid(boolean valid)
set validity of diagnose


setVisitDate

public void setVisitDate(java.util.Date date)
set date of visit


getRestTremorLeft

public int getRestTremorLeft()
return left-hand rest tremor


getRestTremorRight

public int getRestTremorRight()
return right-hand rest tremor


getPosturalTremorLeft

public int getPosturalTremorLeft()
return left-hand postural tremor


getPosturalTremorRight

public int getPosturalTremorRight()
return right-hand postural tremor


getActionTremorLeft

public int getActionTremorLeft()
return left-hand action tremor


getActionTremorRight

public int getActionTremorRight()
return right-hand action tremor


getOpeningLeft

public int getOpeningLeft()
return left-hand opening


getOpeningRight

public int getOpeningRight()
return right-hand opening


getTappingLeft

public int getTappingLeft()
return left-hand tapping


getTappingRight

public int getTappingRight()
return right-hand tapping


setRestTremorLeft

public void setRestTremorLeft(int value)
set left-hand rest tremor


setRestTremorRight

public void setRestTremorRight(int value)
set right-hand rest tremor


setPosturalTremorLeft

public void setPosturalTremorLeft(int value)
set left-hand postural tremor


setPosturalTremorRight

public void setPosturalTremorRight(int value)
set right-hand postural tremor


setActionTremorLeft

public void setActionTremorLeft(int value)
set left-hand action tremor


setActionTremorRight

public void setActionTremorRight(int value)
set right-hand action tremor


setOpeningLeft

public void setOpeningLeft(int value)
set left-hand opening


setOpeningRight

public void setOpeningRight(int value)
set right-hand opening


setTappingLeft

public void setTappingLeft(int value)
set left-hand tapping


setTappingRight

public void setTappingRight(int value)
set right-hand tapping


save

public void save()
store visit to disk


getFile

public java.io.File getFile()
return file where is visit stored on disk


addData

public void addData(Data data)
add captured data to list


getTestList

public TestList getTestList()
return histogram of captured data types


Parkinson Disease Database