|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwaelti.statistics.queries.QueryUtil
public class QueryUtil
| Constructor Summary | |
|---|---|
QueryUtil()
|
|
| Method Summary | |
|---|---|
static java.util.List<java.lang.Object[]> |
addAverage(java.util.List<java.lang.Object[]> list,
int InColumn1,
int InColumn2,
int resultColumn)
InColumn1 / InColumn2 = resultColumn. |
static double |
convertAndRoundMoney(int num)
Rounds a given amount of money in Rappen to the next 5 Rappen. |
static void |
convertDoubleToInteger(java.util.List<java.lang.Object[]> list,
int index)
|
static java.lang.String |
convertFromCalendar(java.util.Calendar cal)
Throws an IllegalArgumentException if one the the calendar values are wrong. |
static java.util.Calendar |
convertToCalendar(java.lang.String dateString)
Converts a Patient's birth date to a calendar object. |
static void |
convertToCurrency(java.util.List<java.lang.Object[]> list,
int column)
Converts a double value of Rappen to a string in CHF. |
static java.util.List<java.lang.String[]> |
convertToString(java.util.List<java.lang.Object[]> list)
This methods converts any List containing arrays of objects into a list containing arrays of strings. |
static java.util.List<java.lang.Object[]> |
createCohorts(java.util.List<java.lang.Object[]> list,
int intervall)
Returns a new list with the cohorts given the size given. |
static int |
extractYear(java.lang.String date)
Extracts the year from a string formatted as given by Patient.getGeburtsdatum(). |
static java.util.List<java.lang.Object[]> |
initiateYears(int firstYear,
int arraySize)
This method generates a list containing as many arrays as there are years between the given firstYear integer and the actual year. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryUtil()
| Method Detail |
|---|
public static int extractYear(java.lang.String date)
date - a string in the format "DD.MM.YYYY"
Patient
public static java.util.List<java.lang.Object[]> initiateYears(int firstYear,
int arraySize)
firstYear - the first year of this time series.arraySize - the array size of each year, inclusive the date.
public static java.util.List<java.lang.Object[]> createCohorts(java.util.List<java.lang.Object[]> list,
int intervall)
intervall - the size of the cohorts.
public static java.util.List<java.lang.String[]> convertToString(java.util.List<java.lang.Object[]> list)
public static void convertToCurrency(java.util.List<java.lang.Object[]> list,
int column)
public static double convertAndRoundMoney(int num)
Amount - of Rappen
public static java.util.List<java.lang.Object[]> addAverage(java.util.List<java.lang.Object[]> list,
int InColumn1,
int InColumn2,
int resultColumn)
public static java.util.Calendar convertToCalendar(java.lang.String dateString)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic static java.lang.String convertFromCalendar(java.util.Calendar cal)
public static void convertDoubleToInteger(java.util.List<java.lang.Object[]> list,
int index)
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||