ch.elexis.data
Class LabResult
java.lang.Object
ch.elexis.data.PersistentObject
ch.elexis.data.LabResult
- All Implemented Interfaces:
- IPersistentObject, ISelectable
public class LabResult
- extends PersistentObject
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 |
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 |
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
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
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())
Copyright 2005-2011 by Gerry Weirich, Elexis