ch.elexis.data
Class Rezept
java.lang.Object
ch.elexis.data.PersistentObject
ch.elexis.data.Rezept
- All Implemented Interfaces:
- IPersistentObject, ISelectable
public class Rezept
- extends PersistentObject
Ein Rezept besteht aus einem Mandanten, einem Patienten, einem Datum und einer Prescription-Liste
Aus kompatibilitätsgründen wird in Moment noch der RpText mitgeschleppt
- Author:
- Gerry
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, 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 |
LINES
public static final java.lang.String LINES
- See Also:
- Constant Field Values
LETTER_ID
public static final java.lang.String LETTER_ID
- See Also:
- Constant Field Values
DATE
public static final java.lang.String DATE
- See Also:
- Constant Field Values
MANDATOR_ID
public static final java.lang.String MANDATOR_ID
- See Also:
- Constant Field Values
PATIENT_ID
public static final java.lang.String PATIENT_ID
- See Also:
- Constant Field Values
Rezept
public Rezept(Patient pat)
load
public static Rezept load(java.lang.String id)
getPatient
public Patient getPatient()
getMandant
public Mandant getMandant()
getDate
public java.lang.String getDate()
getText
public java.lang.String getText()
getBrief
public Brief getBrief()
- Den "Brief" liefern. Dieser existiert, wenn das Rezept mindestens einmal gedruckt wurde und
ist die Print-Repräsentation mit etwaigen manuellen Änderungen
- Returns:
- der Brief oder null, wenn keiner existiert.
setBrief
public void setBrief(Brief brief)
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
getLines
public java.util.List<Prescription> getLines()
- Alle Rezeotzeilen als Liste holen
removePrescription
public void removePrescription(Prescription p)
- Eine Rezeptzeile entfernen
addPrescription
public void addPrescription(Prescription p)
- Eine Rezeptzeile hinzufügen
delete
public boolean delete()
- Description copied from class:
PersistentObject
- Ein Objekt und ggf. dessen XID's aus der Datenbank löschen the object is not deleted but
rather marked as deleted. A purge must be applied to remove the object really
- Overrides:
delete
in class PersistentObject
- Returns:
- true on success
toXML
public Document toXML()
Copyright 2005-2011 by Gerry Weirich, Elexis