|
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.Kontakt
ch.elexis.data.Person
ch.elexis.data.Patient
public class Patient
Ein Patient ist eine Person (und damit auch ein Kontakt), mit folgenden zusätzlichen Eigenschaften
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ch.elexis.data.Person |
---|
Person.PersonDataException |
Nested classes/interfaces inherited from class ch.elexis.data.Kontakt |
---|
Kontakt.statL |
Nested classes/interfaces inherited from class ch.elexis.data.PersistentObject |
---|
PersistentObject.FieldType |
Field Summary | |
---|---|
static java.lang.String[] |
DEFAULT_SORT
|
static java.lang.String |
FLD_ALLERGIES
|
static java.lang.String |
FLD_BALANCE
|
static java.lang.String |
FLD_DIAGNOSES
|
static java.lang.String |
FLD_FAX
|
static java.lang.String |
FLD_GROUP
|
static java.lang.String |
FLD_PATID
|
static java.lang.String |
FLD_PHONE1
|
static java.lang.String |
FLD_PLACE
|
static java.lang.String |
FLD_RISKS
|
static java.lang.String |
FLD_STREET
|
static java.lang.String |
FLD_ZIP
|
Fields inherited from class ch.elexis.data.Person |
---|
FEMALE, MALE, MOBILE, TITLE |
Fields inherited from class ch.elexis.data.Kontakt |
---|
FLD_ANSCHRIFT, FLD_COUNTRY, FLD_E_MAIL, FLD_IS_LAB, FLD_IS_MANDATOR, FLD_IS_ORGANIZATION, FLD_IS_PATIENT, FLD_IS_PERSON, FLD_IS_USER, FLD_MOBILEPHONE, FLD_PHONE2, FLD_REMARK, FLD_SHORT_LABEL, FLD_WEBSITE |
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.ICustomer |
---|
TYPID |
Fields inherited from interface ch.elexis.core.data.IPartner |
---|
FLD_NAME1, FLD_NAME2, FLD_NAME3, TYPE_ADMIN, TYPE_CLIENT, TYPE_MANAGER, TYPE_MANDATOR, TYPE_ORGANIZATION, TYPE_PERSON, TYPE_USER |
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 |
Fields inherited from interface ch.elexis.core.data.IPerson |
---|
FLD_BIRTHDATE, FLD_FIRSTNAME, FLD_LASTNAME, FLD_SEX, FLD_TITLE, FLD_TITLE_SUFFIX |
Constructor Summary | |
---|---|
Patient(java.lang.String Name,
java.lang.String Vorname,
java.lang.String Geburtsdatum,
java.lang.String s)
Dieser oder der folgende Konstruktor sollte normalerweise verwendet werden, um einen neuen, bisher noch nicht in der Datenbank vorhandenen Patienten anzulegen. |
|
Patient(java.lang.String name,
java.lang.String vorname,
TimeTool gebDat,
java.lang.String s)
This constructor is more critical than the previous one |
Method Summary | |
---|---|
Konsultation |
createFallUndKons()
|
boolean |
delete()
We do not allow direct deletion -> use remove instead |
boolean |
delete(boolean force)
Einen Patienten aus der Datenbank entfernen. |
Money |
getAccountExcess()
Calculates a possibly available account excess. |
java.lang.String |
getAlter()
Das Alter des Patienten in Jahren errechnen |
java.lang.String |
getAuftragsnummer()
Eine Auftragsnummer erstellen. |
ICustomerRelation[] |
getCustomerRelations()
|
java.lang.String |
getDiagnosen()
|
Fall[] |
getFaelle()
Deprecated. use getCustomerRelations() |
Prescription[] |
getFixmedikation()
Fixmedikation dieses Patienten einlesen |
Money |
getKontostand()
|
java.lang.String |
getLabel(boolean shortLabel)
Return a short or long label for this Person |
Konsultation |
getLetzteKons(boolean create)
Die neueste Konsultation dieses Patienten holen, soweit eruierbar |
java.lang.String |
getMedikation()
Fixmedikation als Text |
java.lang.String |
getPatCode()
Einen Kurzcode, der diesen Patienten identifiziert, zurückliefern. |
java.lang.String |
getPersAnamnese()
|
java.util.List<Rechnung> |
getRechnungen()
Return all bills of this patient |
java.lang.String |
getSystemAnamnese()
|
boolean |
isDragOK()
Darf dieses Objekt mit Drag&Drop verschoben werden? |
boolean |
isValid()
Angeben, ob dieses Objekt gültig ist. |
static Patient |
load(java.lang.String id)
Einen Patienten mit gegebener ID aus der Datenbank einlesen |
static Patient |
loadByPatientID(java.lang.String patientNr)
Einen Patienten aufgrund seiner PatientenNr laden |
Fall |
neuerFall(java.lang.String Bezeichnung,
java.lang.String grund,
java.lang.String Abrechnungsmethode)
Einen neuen Fall erstellen und an den Patienten binden |
Methods inherited from class ch.elexis.data.Person |
---|
countItem, getGeburtsdatum, getGeschlecht, getInitials, getName, getNatel, getPersonalia, getVorname |
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.IPartner |
---|
getContactInfo, getContactInfos, getContactSalutation, getPartnerRoles, hasRole, setPartnerRoles |
Methods inherited from interface ch.elexis.core.data.IPersistentObject |
---|
addChangeListener, addSticker, addXid, exists, get, get, getId, getInt, getLabel, 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_ALLERGIES
public static final java.lang.String FLD_RISKS
public static final java.lang.String FLD_GROUP
public static final java.lang.String FLD_DIAGNOSES
public static final java.lang.String FLD_PATID
public static final java.lang.String FLD_STREET
public static final java.lang.String FLD_ZIP
public static final java.lang.String FLD_PLACE
public static final java.lang.String FLD_PHONE1
public static final java.lang.String FLD_FAX
public static final java.lang.String FLD_BALANCE
public static final java.lang.String[] DEFAULT_SORT
Constructor Detail |
---|
public Patient(java.lang.String Name, java.lang.String Vorname, java.lang.String Geburtsdatum, java.lang.String s)
Name
- Vorname
- Geburtsdatum
- Als String in Notation dd.mm.jjs
- Geschlecht m oder wpublic Patient(java.lang.String name, java.lang.String vorname, TimeTool gebDat, java.lang.String s) throws Person.PersonDataException
name
- will be checked for non-alphabetic charactersvorname
- will be checked for non alphabetiic charactersgebDat
- will be checked for unplausible valuess
- will be checked for undefined values
TimeTool.TimeFormatException
Person.PersonDataException
Method Detail |
---|
public java.lang.String getDiagnosen()
public java.lang.String getPersAnamnese()
public java.lang.String getSystemAnamnese()
public boolean isValid()
PersistentObject
isValid
in interface IPersistentObject
isValid
in class Person
@Deprecated public Fall[] getFaelle()
public ICustomerRelation[] getCustomerRelations()
getCustomerRelations
in interface ICustomer
public Prescription[] getFixmedikation()
Prescription.java
Prescriptionspublic java.lang.String getMedikation()
public Konsultation getLetzteKons(boolean create)
create
- : eine Kons erstellen, falls keine existiert
public Konsultation createFallUndKons()
public Fall neuerFall(java.lang.String Bezeichnung, java.lang.String grund, java.lang.String Abrechnungsmethode)
public java.lang.String getPatCode()
public Money getKontostand()
public Money getAccountExcess()
Considers all overpaid bills and account transactions not bound to a bill. The garant of the bill must be the patient itself. (Bills not yet paid or partly paid are not considered.)
This value is not the same as the current account balance, since we ignore outstanding debts of not yet paid bills.
public static Patient load(java.lang.String id)
public static Patient loadByPatientID(java.lang.String patientNr)
patientNr
-
null
wenn nicht gefundenpublic java.lang.String getLabel(boolean shortLabel)
Person
getLabel
in class Person
shortLabel
- return a short label for true, and a long label otherwise
public boolean delete()
delete
in class Kontakt
public boolean delete(boolean force)
force
- bei true wird der Patient auf jeden Faöll gelöscht, bei false nur, wenn keine
Fälle von ihm existieren.
public boolean isDragOK()
PersistentObject
isDragOK
in interface IPersistentObject
isDragOK
in class PersistentObject
public java.lang.String getAuftragsnummer()
public java.lang.String getAlter()
public java.util.List<Rechnung> getRechnungen()
|
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 |