|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elexis.data.PersistentObject
ch.elexis.data.Konsultation
public class Konsultation
Eine Konsultation ist ein einzelner Mandant/Patient-Kontakt. Eine Konsultation gehört immer zu einem Fall und zu einem Mandanten, und hat ein bestimmtes Datum. Eine Konsultation kann eine oder mehrere der Fall-Diagnosen betreffen. Eine Konsultation enthält ausserdem auch einen Behandlungstext, und nicht zuletzt auch einen Verrechnungs-Set. Eine Konsultation kann nicht mehr geändert werden, wenn sie geschlossen ist
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject |
---|
PersistentObject.FieldType |
Field Summary | |
---|---|
static java.lang.String |
FLD_BILL_ID
|
static java.lang.String |
FLD_CASE_ID
|
static java.lang.String |
FLD_ENTRY
|
static java.lang.String |
FLD_MANDATOR_ID
|
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 |
---|
DELETED, FLD_DATE, FLD_DELETED, FLD_EXTINFO, FLD_ID, FLD_LASTUPDATE, MATCH_AUTO, MATCH_CONTAINS, MATCH_EXACT, MATCH_REGEXP, MATCH_START, STATE_EXISTING, STATE_INEXISTENT, STATE_INVALID_ID |
Constructor Summary | |
---|---|
Konsultation(Fall fall)
Eine neue Konsultation zu einem Fall erstellen |
Method Summary | |
---|---|
void |
addDiagnose(IReason dg)
Eine weitere Diagnose dieser Konsultation zufügen |
Result<IVerrechenbar> |
addLeistung(IVerrechenbar l)
Eine Verrechenbar zu dieser Konsultation zufügen |
void |
addRange(SSDRange range)
|
void |
addXRef(java.lang.String provider,
java.lang.String id,
int pos,
java.lang.String text)
Deprecated. |
void |
changeScale(IVerrechenbar v,
int scale)
|
void |
changeZahl(IVerrechenbar v,
int nz)
Zahl einer Leistung ändern |
int |
compareTo(Konsultation b)
Interface Comparable, um die Behandlungen nach Datum sortieren zu können |
boolean |
delete()
Ein Objekt und ggf. dessen XID's aus der Datenbank löschen the object is not deleted but rather marked as deleted. |
boolean |
delete(boolean forced)
|
static Konsultation |
getAktuelleKons()
Helper: Get the "active" cons. |
java.lang.String |
getAuthor()
Returns the author of the latest version of a consultation entry. |
ICustomerRelation |
getCustomerRelation()
The ICustomerRelation this encounter belongs to |
java.lang.String |
getDatum()
das Behandlungsdatum auslesen |
java.util.List<IReason> |
getDiagnosen()
Deprecated. Use getReasons() instead |
VersionedResource |
getEintrag()
get the text entry od this Konsultation |
Fall |
getFall()
Deprecated. use getCustomerRelation |
double |
getGewinn()
Deprecated. |
int |
getHeadVersion()
get the number of the last (highest) Version |
int |
getKosten()
Wieviel hat uns diese Konsultation gekostet? |
java.lang.String |
getLabel()
Eine einzeilige Beschreibung dieser Konsultation holen |
java.util.List<Verrechnet> |
getLeistungen()
Die zu dieser Konsultation gehörenden Leistungen holen |
Mandant |
getMandant()
Deprecated. use getResponsible |
int |
getMinutes()
Wieviel Zeit können wir für diese Konsultation anrechnen? |
java.util.List<IReason> |
getReasons()
The Reasons for this encounter |
Rechnung |
getRechnung()
|
IPartner |
getResponsible()
The IPartner responsible for this encounter |
int |
getStatus()
|
java.lang.String |
getStatusText()
|
double |
getUmsatz()
Deprecated. not accurate. use getLeistungen() |
java.lang.String |
getVerboseLabel()
|
boolean |
isDragOK()
Darf dieses Objekt mit Drag&Drop verschoben werden? |
boolean |
isEditable(boolean showError)
Checks if the Konsultation can be altered. |
boolean |
isValid()
Prüfen, ob diese Konsultation gültig ist. |
static Konsultation |
load(java.lang.String id)
Eine Konsultation anhand ihrer ID von der Datenbank einlesen |
static void |
neueKons(java.lang.String initialText)
Creates a new Konsultation object, with an optional initial text. |
void |
purgeEintrag()
remove all but the newest version of the entry |
void |
removeDiagnose(IReason dg)
Eine Diagnose aus der Diagnoseliste entfernen |
Result<Verrechnet> |
removeLeistung(Verrechnet ls)
Eine Verrechenbar aus der Konsultation entfernen |
void |
removeRange(int pos)
|
void |
removeXRef(java.lang.String provider,
java.lang.String id)
Deprecated. |
void |
setDatum(java.lang.String dat,
boolean force)
Das Behandlungsdatum setzen |
void |
setEintrag(VersionedResource eintrag,
boolean force)
Den Eintrag eintragen. |
void |
setFall(Fall f)
Die Konsultation einem Fall zuordnen |
void |
setMandant(Mandant m)
Die Konsultation einem Mandanten zuordnen |
void |
setRechnung(Rechnung r)
|
void |
updateEintrag(java.lang.String eintrag,
boolean force)
Eine Änderung des Eintrags hinzufügen (der alte Eintrag wird nicht überschrieben). |
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, isMatching, isMatching, isMatching, isMatching, isShowDeleted, 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 |
Methods inherited from interface ch.elexis.core.data.IPersistentObject |
---|
addChangeListener, addSticker, addXid, exists, get, get, getId, getInt, getLastUpdate, getMap, getSticker, getStickers, getXid, getXid, getXids, isAvailable, isDeleted, isMatching, isMatching, isMatching, isMatching, removeChangeListener, removeSticker, set, set, setInt, setMap, state, storeToString |
Field Detail |
---|
public static final java.lang.String FLD_ENTRY
public static final java.lang.String FLD_BILL_ID
public static final java.lang.String FLD_CASE_ID
public static final java.lang.String FLD_MANDATOR_ID
Constructor Detail |
---|
public Konsultation(Fall fall)
Method Detail |
---|
public boolean isValid()
isValid
in interface IPersistentObject
isValid
in class PersistentObject
@Deprecated public Fall getFall()
public ICustomerRelation getCustomerRelation()
IEncounter
getCustomerRelation
in interface IEncounter
public void setFall(Fall f)
public static Konsultation load(java.lang.String id)
public int getHeadVersion()
public VersionedResource getEintrag()
public void addRange(SSDRange range) throws ElexisException
ElexisException
public void removeRange(int pos) throws ElexisException
ElexisException
public void addXRef(java.lang.String provider, java.lang.String id, int pos, java.lang.String text)
provider
- unique String identifying the providerid
- String identifying the itempos
- position of the item as offset relative to the contentstext
- text to insertpublic void removeXRef(java.lang.String provider, java.lang.String id)
provider
- unique provider idid
- item IDpublic void setEintrag(VersionedResource eintrag, boolean force)
force
- bei true wird der Eintrag auch dann geändert, wenn die Konsultation eigentlich
nicht änderbar ist.public void updateEintrag(java.lang.String eintrag, boolean force)
force
- bei true wird der Eintrag auch dann geändert, wenn die Konsultation eigentlich
nicht änderbar ist.public void purgeEintrag()
public Mandant getMandant()
public IPartner getResponsible()
IEncounter
getResponsible
in interface IEncounter
public void setMandant(Mandant m)
public void setDatum(java.lang.String dat, boolean force)
force
- auch setzen, wenn Kons nicht änderbarpublic java.lang.String getDatum()
public Rechnung getRechnung()
public void setRechnung(Rechnung r)
public boolean isEditable(boolean showError)
showError
- if true, show error messages
public int getStatus()
public java.lang.String getStatusText()
public java.lang.String getLabel()
getLabel
in interface IPersistentObject
getLabel
in class PersistentObject
public java.lang.String getVerboseLabel()
public java.util.List<IReason> getDiagnosen()
getReasons()
instead
public java.util.List<IReason> getReasons()
IEncounter
getReasons
in interface IEncounter
public void addDiagnose(IReason dg)
public void removeDiagnose(IReason dg)
public java.util.List<Verrechnet> getLeistungen()
public Result<Verrechnet> removeLeistung(Verrechnet ls)
ls
- die Verrechenbar
public Result<IVerrechenbar> addLeistung(IVerrechenbar l)
public java.lang.String getAuthor()
public int getKosten()
public int getMinutes()
@Deprecated public double getUmsatz()
@Deprecated public double getGewinn()
public void changeScale(IVerrechenbar v, int scale)
public void changeZahl(IVerrechenbar v, int nz)
public boolean delete()
PersistentObject
delete
in class PersistentObject
public boolean delete(boolean forced)
public int compareTo(Konsultation b)
compareTo
in interface java.lang.Comparable<Konsultation>
public static Konsultation getAktuelleKons()
public boolean isDragOK()
PersistentObject
isDragOK
in interface IPersistentObject
isDragOK
in class PersistentObject
public static void neueKons(java.lang.String initialText)
initialText
- the initial text to be set, or null if no initial text should be set.
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |