Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.data
Class LabResult

java.lang.Object
  extended by ch.elexis.data.PersistentObject
      extended by ch.elexis.data.LabResult
All Implemented Interfaces:
IPersistentObject, ISelectable

public class LabResult
extends PersistentObject


Nested Class Summary
 
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject
PersistentObject.FieldType
 
Field Summary
static java.lang.String COMMENT
           
static java.lang.String DATE
           
static java.lang.String FLAGS
           
static java.lang.String ITEM_ID
           
static java.lang.String LABRESULT_UNSEEN
           
static int NORMAL
           
static int OBSERVE
           
static int PATHOLOGIC
           
static java.lang.String PATIENT_ID
           
static java.lang.String RESULT
           
 
Fields inherited from class ch.elexis.data.PersistentObject
CACHE_DEFAULT_LIFETIME, CACHE_MIN_LIFETIME, CFG_CONNECTSTRING, CFG_DRIVER, CFG_PWD, CFG_TYPE, CFG_USER, DELETED, EXISTS, INEXISTENT, INVALID_ID, MATCH_AUTO, MATCH_CONTAINS, MATCH_EXACT, MATCH_REGEXP, MATCH_START
 
Fields inherited from interface ch.elexis.core.data.IPersistentObject
FLD_DATE, FLD_DELETED, FLD_EXTINFO, FLD_ID, FLD_LASTUPDATE, STATE_EXISTING, STATE_INEXISTENT, STATE_INVALID_ID
 
Constructor Summary
LabResult(Patient p, TimeTool date, LabItem item, java.lang.String result, java.lang.String comment)
          create a new LabResult.
 
Method Summary
 void addToUnseen()
          add a LabResult to the list of unseen LabResults.
 java.lang.String getComment()
           
 java.lang.String getDate()
           
 int getFlags()
           
static LabResult getForDate(Patient pat, TimeTool date, LabItem item)
           
 LabItem getItem()
           
 java.lang.String getLabel()
          Einen menschenlesbaren Identifikationsstring für dieses Objet liefern
static long getLastUpdateUnseen()
          return the time when the last change to the list of unseen results was made
 Patient getPatient()
           
 java.lang.String getResult()
           
static java.util.List<LabResult> getUnseen()
          Return a List of unseen LabResults
 boolean isFlag(int flag)
           
static LabResult load(java.lang.String id)
           
 void removeFromUnseen()
          Remove a lab result from the list of unseen results.
 void setFlag(int flag, boolean set)
           
 void setResult(java.lang.String res)
           
 
Methods inherited from class ch.elexis.data.PersistentObject
addChangeListener, addSticker, addToList, addXid, begin, checkNull, checkZero, checkZeroDouble, clearCache, connect, connect, delete, deleteList, disconnect, equals, executeSQLScript, exists, exportData, fireChangeEvent, flatten, fold, get, get, getCacheTime, getConnection, getDefaultCacheLifetime, getFieldType, getId, getInt, getLastUpdate, getList, getList, getMap, getSticker, getStickers, getWrappedId, getXid, getXid, getXids, hashCode, isAvailable, isDeleted, isDragOK, isMatching, isMatching, isMatching, isMatching, isShowDeleted, isValid, lock, map, relock, removeChangeListener, removeFromList, removeFromList, removeSticker, resetCache, set, set, setDefaultCacheLifetime, setInt, setMap, setShowDeleted, setTrace, state, storeToString, tableExists, ts, undelete, unlock
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABRESULT_UNSEEN

public static final java.lang.String LABRESULT_UNSEEN
See Also:
Constant Field Values

DATE

public static final java.lang.String DATE
See Also:
Constant Field Values

FLAGS

public static final java.lang.String FLAGS
See Also:
Constant Field Values

COMMENT

public static final java.lang.String COMMENT
See Also:
Constant Field Values

RESULT

public static final java.lang.String RESULT
See Also:
Constant Field Values

ITEM_ID

public static final java.lang.String ITEM_ID
See Also:
Constant Field Values

PATIENT_ID

public static final java.lang.String PATIENT_ID
See Also:
Constant Field Values

PATHOLOGIC

public static final int PATHOLOGIC
See Also:
Constant Field Values

OBSERVE

public static final int OBSERVE
See Also:
Constant Field Values

NORMAL

public static final int NORMAL
See Also:
Constant Field Values
Constructor Detail

LabResult

public LabResult(Patient p,
                 TimeTool date,
                 LabItem item,
                 java.lang.String result,
                 java.lang.String comment)
create a new LabResult. If the type is numeric, we'll check whether it's pathologic

Method Detail

load

public static LabResult load(java.lang.String id)

getPatient

public Patient getPatient()

getDate

public java.lang.String getDate()

getItem

public LabItem getItem()

getResult

public java.lang.String getResult()

setResult

public void setResult(java.lang.String res)

getComment

public java.lang.String getComment()

isFlag

public boolean isFlag(int flag)

setFlag

public void setFlag(int flag,
                    boolean set)

getFlags

public int getFlags()

getLabel

public java.lang.String getLabel()
Description copied from class: PersistentObject
Einen menschenlesbaren Identifikationsstring für dieses Objet liefern

Specified by:
getLabel in interface IPersistentObject
Specified by:
getLabel in class PersistentObject

getForDate

public static LabResult getForDate(Patient pat,
                                   TimeTool date,
                                   LabItem item)

addToUnseen

public void addToUnseen()
add a LabResult to the list of unseen LabResults. We do not keep LabResults older than KEEP_UNSEEN_LAB_RESULTS days in this list.


removeFromUnseen

public void removeFromUnseen()
Remove a lab result from the list of unseen results.


getUnseen

public static java.util.List<LabResult> getUnseen()
Return a List of unseen LabResults

Returns:

getLastUpdateUnseen

public static long getLastUpdateUnseen()
return the time when the last change to the list of unseen results was made

Returns:
a timestamp (as in System.CurrentTimeMillis())

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis