First of all, the number of patients that have been medicated ambulant or stationary is quantified. Each patient is counted only once even if he has been treated multiple times. A patient counts as medicated, if there is at least one entry in the table progression (verlauf) about him in the appropriate period of time.
Next, the total number of ambulant medications is calculated. Patients who have been treated multiple times in the appropriate quarter or year are now counted multiple times. Each entry in the table verlauf with the field kind (art) set to A (ambulant) is put on a level with an ambulant medication.
Analog to the number of ambulant medication, the number of stationary receptions is quantified. And again, each reception into a hospital is counted, even if the patient was there multiple times. Each entry in the table verlauf with the field art set to S (stationary) is put on a level with a stationary reception. In addition, those cases are split up into six groups according to the patient's reason for being in the hospital. Those six groups which are represented by an integer in the field reason (grund) in the table stat1 are:
Finally, the average number of days in a hospital is determined. For each quarter and each year, all days in hospital are summed up, and then divided by the number of patients who have been in hospital for at least one day during the appropriate period of time. The day of reception and the day of dismissal are both counted as a whole day. If a patient stays in hospital over a time boundary, this stay will be taken into account for both periods of time. Additionally, those average numbers of days in hospital are split up into the same six groups as the number of stationary receptions.