Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.impfplan.model
Class VaccinationType

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

public class VaccinationType
extends PersistentObject


Nested Class Summary
 
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject
PersistentObject.FieldType
 
Field Summary
static java.lang.String DELAY_REP
           
static java.lang.String DELAY1TO2
           
static java.lang.String DELAY2TO3
           
static java.lang.String DELAY3TO4
           
static java.lang.String NAME
           
static java.lang.String PRODUCT
           
static java.lang.String RECOMMENDED_AGE
           
static java.lang.String REMARKS
           
 
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
VaccinationType(java.lang.String name, java.lang.String subst)
           
 
Method Summary
static Tuple calcDays(java.lang.String inputDef)
          An input definition can be such as 12y- or 3m-2y or -20y and so on possible suffixes are: y,a,j: years, m: months, w,s: weeks.
static java.util.List<VaccinationType> findDueFor(Patient pat)
           
 java.lang.String getLabel()
          Einen menschenlesbaren Identifikationsstring für dieses Objet liefern
static boolean isInRange(Patient p, TimeTool base, Tuple t)
           
static VaccinationType load(java.lang.String id)
           
 
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

RECOMMENDED_AGE

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

REMARKS

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

DELAY_REP

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

DELAY3TO4

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

DELAY2TO3

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

DELAY1TO2

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

PRODUCT

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

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

VaccinationType

public VaccinationType(java.lang.String name,
                       java.lang.String subst)
Method Detail

load

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

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

calcDays

public static Tuple calcDays(java.lang.String inputDef)
                      throws ElexisException
An input definition can be such as 12y- or 3m-2y or -20y and so on possible suffixes are: y,a,j: years, m: months, w,s: weeks. If suffix is omitted, y is assumed -x will be interpreted as 0-x, x- will be interpreted as x-150y

Parameters:
inputDef -
Returns:
Throws:
ElexisException

findDueFor

public static java.util.List<VaccinationType> findDueFor(Patient pat)
                                                  throws ElexisException
Throws:
ElexisException

isInRange

public static boolean isInRange(Patient p,
                                TimeTool base,
                                Tuple t)

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis