Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

ch.unibe.iam.scg.archie.utils
Class DatabaseHelper

java.lang.Object
  extended by ch.unibe.iam.scg.archie.utils.DatabaseHelper

public class DatabaseHelper
extends java.lang.Object

Database helper class. Contains global database convenience methods for easy access to general statistical data.

$Id$


Constructor Summary
DatabaseHelper()
           
 
Method Summary
static int getNumberGenderPatients(java.lang.String gender)
          Return the number of patients in the system that have the given gender.
static int getNumberOfConsultations()
          Returns the total number of consultations in the system.
static int getNumberOfInvoices(int status)
          Returns the number of invoices in the system with the given status.
static int getNumberOfPatients()
          Returns the total number of patients in the system.
static int getTotalNumberOfInvoices()
          Returns the total number of invoices in the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseHelper

public DatabaseHelper()
Method Detail

getNumberOfPatients

public static int getNumberOfPatients()
Returns the total number of patients in the system.

Returns:
int number of patients in the system.

getNumberOfConsultations

public static int getNumberOfConsultations()
Returns the total number of consultations in the system.

Returns:
int number of consultations in the system.

getTotalNumberOfInvoices

public static int getTotalNumberOfInvoices()
Returns the total number of invoices in the system.

Returns:
Total number of invoices in the system

getNumberOfInvoices

public static int getNumberOfInvoices(int status)
Returns the number of invoices in the system with the given status.

Parameters:
status - Invoice status.
Returns:
Total number of invoices with the given status.
See Also:
Rechnung

getNumberGenderPatients

public static int getNumberGenderPatients(java.lang.String gender)
Return the number of patients in the system that have the given gender.

Parameters:
gender - Patient's gender.
Returns:
Number of patients with that gender, 0 if nothing found.
See Also:
Person

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013