• +49-(0)721-402485-12
Ihre Experten für XML, XQuery und XML-Datenbanken

Core data

The core data are stored in the XML file Hochwaldklinik.xml. In this example scenario, a hospital (the "Hochwaldklinik") is described by the name of the institution, an address (data type Address_T) and three further sections – wards, laboratories and the personnel (see the following image).

Structure of a hospital scenario

Image: Structure of a hospital scenario

  • Wards
    A hospital may include a large number of different wards. Each ward consists of a name, a location and an a priori unlimited number of beds. In addition, a nurse is assigned to each ward in the form of a reference to an employee of the nursing staff (see image: "Structuring of the wards and the laboratory facilities").
  • Laboratories
    By analogy with the wards, there are laboratory facilities which are also characterised in detail by a name and a location. Whereas there must be at least one ward in a hospital, external laboratories can be used, so that a hospital does not necessarily have to include a laboratory.
    The following image shows the composition of the wards and the laboratory facilities assigned to the hospital:

Structuring of the wards and the laboratory facilities

Image: Structuring of the wards and the laboratory facilities

  • Personnel
    The personnel of the hospital is devided into the part of the volunteers and the part of the permanent personnel which is in turn subdevided into four different categories (see the image above: "Structure of a hospital scenario").
    Apart from the information on the name, the address, the date of birth and the telephone number, volunteers are additionally listed with a number being unique within the hospital, a special competence and information on the belonging to a vocational class. The image "Structuring of volunteers" shows the structure within the respective XML document. The data type Person_T for personal information such as name, address, etc. is used by all entities which represent the information on the personnel (doctors, patients, etc.).
    The other occupational groups of the permanent personnel include doctors, nurses, technicians and secretaries who are provided with, besides the individual information on the person with an accordingly unique number, further attributes for the E-mail address and the hire date as well as occupational group-specific features for the detailed description.
    The image "Structuring of the permanent personnel" shows the structure of the paid personnel with the additional features; for example, apart from a certain competence, doctors have a special field and a pager number under which the doctor can be contacted within the hospital. Nurses may have a maximum of five certificates; technicians are listed with their special competence (laboratory technician, hospital technician, ...). At this point it is important to note that all features are inherited by the main type Employee with information on the person (Person_T) and information on the employment.


Source: "XQuery – Grundlagen und fortgeschrittene Methoden", dpunkt-Verlag, Heidelberg (2004)

<< backnext >>