Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.data
Class Fall

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

public class Fall
extends PersistentObject
implements ICustomerRelation

Ein Fall ist eine Serie von zusammengehörigen Behandlungen. Ein Fall hat einen Garanten, ein Anfangsdatum ein Enddatum, eine Bezeichnung und allenfalls ein Enddatum

Author:
Gerry

Nested Class Summary
 
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject
PersistentObject.FieldType
 
Field Summary
static java.lang.String CONST_TARMED_DRUCKER
           
static java.lang.String CONST_TARMED_LEISTUNG
           
static java.lang.String FLD_BEHANDLUNGEN
           
static java.lang.String FLD_BEZEICHNUNG
           
static java.lang.String FLD_BILLING
           
static java.lang.String FLD_DATUM_BIS
           
static java.lang.String FLD_DATUM_VON
           
static java.lang.String FLD_GARANT_ID
           
static java.lang.String FLD_GRUND
           
static java.lang.String FLD_KOSTENTRAEGER
           
static java.lang.String FLD_RECHNUNGSSTELLER_ID
           
static java.lang.String FLD_RN_PLANUNG
           
static java.lang.String FLD_VERS_NUMMER
           
static java.lang.String IV_NAME
           
static java.lang.String KVG_NAME
           
static java.lang.String MV_NAME
           
static java.lang.String PATIENT_ID
           
static java.lang.String PRIVATE_NAME
           
static java.lang.String TYPE_ACCIDENT
           
static java.lang.String TYPE_BIRTHDEFECT
           
static java.lang.String TYPE_DISEASE
           
static java.lang.String TYPE_MATERNITY
           
static java.lang.String TYPE_OTHER
           
static java.lang.String TYPE_PREVENTION
           
static java.lang.String UVG_NAME
           
static java.lang.String UVG_REQUIREMENTS
           
static java.lang.String VVG_NAME
           
 
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.ICustomerRelation
FLD_DEBTOR_ID, FLD_GUARANTOR_ID, FLD_LAW, FLD_REASON
 
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
 
Method Summary
static void addBillingSystemConstant(java.lang.String billingSystem, java.lang.String constant)
          add a billing system constant
 void clearInfoString(java.lang.String string)
           
static void createAbrechnungssystem(java.lang.String systemname, java.lang.String codesystem, java.lang.String ausgabe, java.lang.String... requirements)
           
 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 force)
          Mark this Fall as deleted.
 java.lang.String getAbrechnungsSystem()
           
static java.lang.String[] getAbrechnungsSysteme()
          Find all installed billing systems.
 Kontakt getArbeitgeber()
          Deprecated. 
 java.lang.String getArbeitgeberName()
          Deprecated. 
 java.lang.String getBeginnDatum()
          Anfangsdatum lesen (in der Form dd.mm.yy)
 Konsultation[] getBehandlungen(boolean sortReverse)
          Behandlungen zu diesem Fall holen
 java.lang.String getBezeichnung()
           
 TimeTool getBillingDate()
          Vorgeschlagenen Zeitpunkt für Rechnungsstellung holen (Eine Vorgabe die im fall gemacht wird)
static java.lang.String getBillingSystemAttribute(java.lang.String billingSystem, java.lang.String attr)
          Deprecated. use getBillingSystemConstant
static java.lang.String getBillingSystemConstant(java.lang.String billingSystem, java.lang.String constant)
           
static java.lang.String[] getBillingSystemConstants(java.lang.String billingSystem)
           
static java.lang.String getCodeSystem(java.lang.String billingSystem)
           
 java.lang.String getCodeSystemName()
           
static java.lang.String getDefaultCaseLabel()
           
static java.lang.String getDefaultCaseLaw()
           
static java.lang.String getDefaultCaseReason()
           
static java.lang.String getDefaultPrintSystem(java.lang.String billingSystem)
           
 java.lang.String getEndDatum()
          Enddatum lesen oder null: Fall noch nicht abgeschlossen
 java.lang.String getFallNummer()
          Fallnummer lesen
 Kontakt getGarant()
          Den Rechnungsempfänger liefern
 java.lang.String getGrund()
           
 java.lang.Object getInfoElement(java.lang.String name)
           
 java.lang.String getInfoString(java.lang.String name)
          retrieve a string from ExtInfo.
 java.lang.String getLabel()
          Einen menschenlesbaren Identifikationsstring für dieses Objet liefern
 Konsultation getLetzteBehandlung()
           
 java.lang.String getOptionals()
          Retrieve optionals of this Cases billing system
static java.lang.String getOptionals(java.lang.String billingSystem)
          Retrieve optionals of a given billingSystem
 IRnOutputter getOutputter()
          Retrieve the ooutputter for this case's billing system
 java.lang.String getOutputterName()
          Retrieve the name of the outputter of this case's billing system
 Patient getPatient()
           
 Rechnungssteller getRechnungssteller()
           
 PersistentObject getReferencedObject(java.lang.String field)
          Return the referenced field as a PersistentObject.
 Kontakt getRequiredContact(java.lang.String name)
          Retrieve a required Kontakt from this Fall's Billing system's requirements
 java.lang.String getRequiredString(java.lang.String name)
          Retrieve a required String Value from this billing system's definition.
 java.lang.String getRequirements()
          Retrieve requirements of this Cases billing system
static java.lang.String getRequirements(java.lang.String billingSystem)
          Retrieve requirements of a given billingSystem
 java.lang.String getUnused()
          Retrieve unused/saved definitions of previously used required and optional field of this Cases billing system
static java.lang.String getUnused(java.lang.String billingSystem)
          Retrieve unused/saved definitions of previously used required and optional field for a given billingSystem
 java.lang.String getVersNummer()
          Deprecated. user getRequiredString instead
 boolean isDragOK()
          Darf dieses Objekt mit Drag&Drop verschoben werden?
 boolean isOpen()
          Feststellen, ob der Fall noch offen ist
 boolean isValid()
          Angeben, ob dieses Objekt gültig ist.
static Fall load(java.lang.String id)
          Einen Fall anhand der ID aus der Datenbank laden
 Konsultation neueKonsultation()
          Neue Konsultation zu diesem Fall anlegen
static void removeAbrechnungssystem(java.lang.String systemName)
           
static void removeBillingSystemConstant(java.lang.String billingSystem, java.lang.String constant)
           
 void setAbrechnungsSystem(java.lang.String system)
           
 void setBeginnDatum(java.lang.String dat)
          Anfangsdatum setzen Zulässige Formate: dd.mm.yy, dd.mm.yyyy, yyyymmdd, yy-mm-dd
 void setBezeichnung(java.lang.String t)
           
 void setBillingDate(TimeTool dat)
          Zeitpunkt für Rechnungsvorschlag setzen
 void setEndDatum(java.lang.String dat)
          Enddatum setzen.
 void setFallNummer(java.lang.String nr)
          Fallnummer setzen
 void setGarant(Kontakt garant)
           
 void setGrund(java.lang.String g)
           
 void setInfoElement(java.lang.String name, java.lang.Object elem)
           
 void setInfoString(java.lang.String name, java.lang.String wert)
           
 void setRechnungssteller(Kontakt r)
           
 void setRequiredContact(java.lang.String name, Kontakt k)
           
 void setRequiredDate(java.lang.String name, TimeTool date)
           
 void setRequiredString(java.lang.String name, java.lang.String val)
           
 
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

VVG_NAME

public static final java.lang.String VVG_NAME

PRIVATE_NAME

public static final java.lang.String PRIVATE_NAME

MV_NAME

public static final java.lang.String MV_NAME

IV_NAME

public static final java.lang.String IV_NAME

KVG_NAME

public static final java.lang.String KVG_NAME

UVG_NAME

public static final java.lang.String UVG_NAME

UVG_REQUIREMENTS

public static final java.lang.String UVG_REQUIREMENTS

CONST_TARMED_DRUCKER

public static final java.lang.String CONST_TARMED_DRUCKER

CONST_TARMED_LEISTUNG

public static final java.lang.String CONST_TARMED_LEISTUNG

FLD_BEHANDLUNGEN

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

FLD_BILLING

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

FLD_KOSTENTRAEGER

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

FLD_RECHNUNGSSTELLER_ID

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

FLD_DATUM_BIS

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

FLD_DATUM_VON

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

FLD_RN_PLANUNG

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

FLD_VERS_NUMMER

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

FLD_BEZEICHNUNG

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

FLD_GARANT_ID

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

FLD_GRUND

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

PATIENT_ID

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

TYPE_DISEASE

public static final java.lang.String TYPE_DISEASE

TYPE_ACCIDENT

public static final java.lang.String TYPE_ACCIDENT

TYPE_MATERNITY

public static final java.lang.String TYPE_MATERNITY

TYPE_PREVENTION

public static final java.lang.String TYPE_PREVENTION

TYPE_BIRTHDEFECT

public static final java.lang.String TYPE_BIRTHDEFECT

TYPE_OTHER

public static final java.lang.String TYPE_OTHER
Method Detail

getBillingDate

public TimeTool getBillingDate()
Vorgeschlagenen Zeitpunkt für Rechnungsstellung holen (Eine Vorgabe die im fall gemacht wird)

Returns:

setBillingDate

public void setBillingDate(TimeTool dat)
Zeitpunkt für Rechnungsvorschlag setzen

Parameters:
dat - Ein Zeitpunkt oder null

isValid

public boolean isValid()
Description copied from class: PersistentObject
Angeben, ob dieses Objekt gültig ist.

Specified by:
isValid in interface IPersistentObject
Overrides:
isValid in class PersistentObject
Returns:
true wenn die Daten gültig (nicht notwendigerweise korrekt) sind

load

public static Fall load(java.lang.String id)
Einen Fall anhand der ID aus der Datenbank laden


getBeginnDatum

public java.lang.String getBeginnDatum()
Anfangsdatum lesen (in der Form dd.mm.yy)


getBezeichnung

public java.lang.String getBezeichnung()

setBezeichnung

public void setBezeichnung(java.lang.String t)

setBeginnDatum

public void setBeginnDatum(java.lang.String dat)
Anfangsdatum setzen Zulässige Formate: dd.mm.yy, dd.mm.yyyy, yyyymmdd, yy-mm-dd


getEndDatum

public java.lang.String getEndDatum()
Enddatum lesen oder null: Fall noch nicht abgeschlossen


setEndDatum

public void setEndDatum(java.lang.String dat)
Enddatum setzen. Setzt zugleich den Fall auf abgeschlossen


getGarant

public Kontakt getGarant()
Den Rechnungsempfänger liefern

Returns:

setGarant

public void setGarant(Kontakt garant)

getRechnungssteller

public Rechnungssteller getRechnungssteller()

setRechnungssteller

public void setRechnungssteller(Kontakt r)

getRequiredContact

public Kontakt getRequiredContact(java.lang.String name)
Retrieve a required Kontakt from this Fall's Billing system's requirements

Parameters:
name - the requested Kontakt's name
Returns:
the Kontakt or Null if no such Kontakt was found

setRequiredContact

public void setRequiredContact(java.lang.String name,
                               Kontakt k)

getRequiredString

public java.lang.String getRequiredString(java.lang.String name)
Retrieve a required String Value from this billing system's definition. If no variable with that name is found, the billings system constants will be searched

Parameters:
name -
Returns:
a string that might be empty but will never be null.

setRequiredString

public void setRequiredString(java.lang.String name,
                              java.lang.String val)

setRequiredDate

public void setRequiredDate(java.lang.String name,
                            TimeTool date)

getArbeitgeber

@Deprecated
public Kontakt getArbeitgeber()
Deprecated. 


getArbeitgeberName

@Deprecated
public java.lang.String getArbeitgeberName()
Deprecated. 


getVersNummer

@Deprecated
public java.lang.String getVersNummer()
Deprecated. user getRequiredString instead

Versichertennummer holen


getFallNummer

public java.lang.String getFallNummer()
Fallnummer lesen


setFallNummer

public void setFallNummer(java.lang.String nr)
Fallnummer setzen


isOpen

public boolean isOpen()
Feststellen, ob der Fall noch offen ist


setAbrechnungsSystem

public void setAbrechnungsSystem(java.lang.String system)

getAbrechnungsSystem

public java.lang.String getAbrechnungsSystem()

getCodeSystemName

public java.lang.String getCodeSystemName()

getRequirements

public java.lang.String getRequirements()
Retrieve requirements of this Cases billing system

Returns:
a ; separated String of fields name:type where type is one of K,T,D for Kontakt, Text, Date TM Text Multiline TS Text Styled CS Combo saved as string CN Combo saved as numeric (selected index) LS List items, saved as strings, tab-delimited LN List items, saved as numerics, tab-delimited (selected indexes) X CheckBox always saved as numeric RS Radios, saved as string RN Radios, saved as numeric, selected index

getOptionals

public java.lang.String getOptionals()
Retrieve optionals of this Cases billing system

Returns:
a ; separated String of fields name:type where type is one of K,T,D for Kontakt, Text, Date TM Text Multiline TS Text Styled CS Combo saved as string CN Combo saved as numeric (selected index) LS List items, saved as strings, tab-delimited LN List items, saved as numerics, tab-delimited (selected indexes) X CheckBox always saved as numeric RS Radios, saved as string RN Radios, saved as numeric, selected index

getUnused

public java.lang.String getUnused()
Retrieve unused/saved definitions of previously used required and optional field of this Cases billing system

Returns:
a ; separated String of fields name:type where type is one of K,T,D for Kontakt, Text, Date TM Text Multiline TS Text Styled CS Combo saved as string CN Combo saved as numeric (selected index) LS List items, saved as strings, tab-delimited LN List items, saved as numerics, tab-delimited (selected indexes) X CheckBox always saved as numeric RS Radios, saved as string RN Radios, saved as numeric, selected index

getOutputterName

public java.lang.String getOutputterName()
Retrieve the name of the outputter of this case's billing system

Returns:

getOutputter

public IRnOutputter getOutputter()
Retrieve the ooutputter for this case's billing system

Returns:
the IRnOutputter that will be used or null if none was found

getBehandlungen

public Konsultation[] getBehandlungen(boolean sortReverse)
Behandlungen zu diesem Fall holen


getLetzteBehandlung

public Konsultation getLetzteBehandlung()

neueKonsultation

public Konsultation neueKonsultation()
Neue Konsultation zu diesem Fall anlegen


getPatient

public Patient getPatient()

getGrund

public java.lang.String getGrund()

setGrund

public void setGrund(java.lang.String g)

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

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

delete

public boolean delete(boolean force)
Mark this Fall as deleted. This will fail if there exist Konsultationen fpr this Fall, unless force is set

Parameters:
force - delete even if KOnsultationene xist (in that case, all Konsultationen will be deleted as well)
Returns:
true if this Fall could be (and has been) deleted.

getInfoString

public java.lang.String getInfoString(java.lang.String name)
retrieve a string from ExtInfo.

Parameters:
name - the requested parameter
Returns:
the value of that parameter (which might be empty but will never be null)

setInfoString

public void setInfoString(java.lang.String name,
                          java.lang.String wert)

clearInfoString

public void clearInfoString(java.lang.String string)

getInfoElement

public java.lang.Object getInfoElement(java.lang.String name)

setInfoElement

public void setInfoElement(java.lang.String name,
                           java.lang.Object elem)

isDragOK

public boolean isDragOK()
Description copied from class: PersistentObject
Darf dieses Objekt mit Drag&Drop verschoben werden?

Specified by:
isDragOK in interface IPersistentObject
Overrides:
isDragOK in class PersistentObject
Returns:
true wenn ja.

getDefaultCaseLabel

public static java.lang.String getDefaultCaseLabel()

getDefaultCaseReason

public static java.lang.String getDefaultCaseReason()

getDefaultCaseLaw

public static java.lang.String getDefaultCaseLaw()

getAbrechnungsSysteme

public static java.lang.String[] getAbrechnungsSysteme()
Find all installed billing systems. If we do not find any, we assume that this is an old installation and try to update. If we find a tarmed-Plugin installed, we create default-tarmed billings.

Returns:
an Array with the names of all configured billing systems

createAbrechnungssystem

public static void createAbrechnungssystem(java.lang.String systemname,
                                           java.lang.String codesystem,
                                           java.lang.String ausgabe,
                                           java.lang.String... requirements)

removeAbrechnungssystem

public static void removeAbrechnungssystem(java.lang.String systemName)

getCodeSystem

public static java.lang.String getCodeSystem(java.lang.String billingSystem)

getDefaultPrintSystem

public static java.lang.String getDefaultPrintSystem(java.lang.String billingSystem)

getBillingSystemConstants

public static java.lang.String[] getBillingSystemConstants(java.lang.String billingSystem)

getBillingSystemConstant

public static java.lang.String getBillingSystemConstant(java.lang.String billingSystem,
                                                        java.lang.String constant)

addBillingSystemConstant

public static void addBillingSystemConstant(java.lang.String billingSystem,
                                            java.lang.String constant)
add a billing system constant

Parameters:
billingSystem - the Billing system
constant - a String of the form name=value

removeBillingSystemConstant

public static void removeBillingSystemConstant(java.lang.String billingSystem,
                                               java.lang.String constant)

getBillingSystemAttribute

@Deprecated
public static java.lang.String getBillingSystemAttribute(java.lang.String billingSystem,
                                                                    java.lang.String attr)
Deprecated. use getBillingSystemConstant

Parameters:
billingSystem -
attr -
Returns:

getRequirements

public static java.lang.String getRequirements(java.lang.String billingSystem)
Retrieve requirements of a given billingSystem

Parameters:
billingSystem -
Returns:
a ; separated String of fields name:type where type is one of K,T,D for Kontakt, Text, Date TM Text Multiline TS Text Styled CS Combo saved as string CN Combo saved as numeric (selected index) LS List items, saved as strings, tab-delimited LN List items, saved as numerics, tab-delimited (selected indexes) X CheckBox always saved as numeric RS Radios, saved as string RN Radios, saved as numeric, selected index

getOptionals

public static java.lang.String getOptionals(java.lang.String billingSystem)
Retrieve optionals of a given billingSystem

Parameters:
billingSystem -
Returns:
a ; separated String of fields name:type where type is one of K,T,D for Kontakt, Text, Date TM Text Multiline TS Text Styled CS Combo saved as string CN Combo saved as numeric (selected index) LS List items, saved as strings, tab-delimited LN List items, saved as numerics, tab-delimited (selected indexes) X CheckBox always saved as numeric RS Radios, saved as string RN Radios, saved as numeric, selected index

getUnused

public static java.lang.String getUnused(java.lang.String billingSystem)
Retrieve unused/saved definitions of previously used required and optional field for a given billingSystem

Parameters:
billingSystem -
Returns:
a ; separated String of fields name:type where type is one of K,T,D for Kontakt, Text, Date TM Text Multiline TS Text Styled CS Combo saved as string CN Combo saved as numeric (selected index) LS List items, saved as strings, tab-delimited LN List items, saved as numerics, tab-delimited (selected indexes) X CheckBox always saved as numeric RS Radios, saved as string RN Radios, saved as numeric, selected index

getReferencedObject

public PersistentObject getReferencedObject(java.lang.String field)
Return the referenced field as a PersistentObject. For fields not representing PersistentObjects, this method returns null. This method is mainly used to replace indirect fields in text templates (e. g. [Fall.Kostenträger.Bezeichnung1]) Actually, this method should be defined by the class PersistentObject and implemented by all subclasses. A subclass should de-reference all its field it defines. If the sublcass extends another sublcass, it should also call the superclass' method. All of this is not yet implemented. TODO: implement further fields of Fall, e. g. PatientID and GarantID

Parameters:
field - the field to resolve. This must represent a Persistent Object, else null is returned.
Returns:
the referenced object, or null if it could not be found

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis