Abstract: An object-based computer software application for generating medical documents includes the use of metadata objects to represent user-interface components and medical objects based on the metadata objects. In addition, patient data objects are generated from medical objects as selected by a user. The metadata objects, medical objects and patient data objects are stored in and retrieved from a relational database. The application also makes use of a table structure of each of the three object components. The table structure includes a first table in which is stored the object and a second table in which is stored a plurality of properties associated with the object.