iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Working With a Database > Database to HL7 > Step 5 - Table Groups and Repetition > Examining the Database Schema |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
This section examines the database schema that is needed to generate LabResult messages. This database schema consists of the following database tables:
Because your VMD file contains two message definitions, two status tables are defined:
As you saw in Basic Database Schema, a status table contains two fields: MESSAGE_ID, which specifies a unique identifer for an outgoing message, and STATUS, which is the current status of the message. When STATUS is W, an outgoing message is waiting to be sent. The database schema also contains the data tables that have been generated from the table grammars that you have specified. These data tables have the same structure as the tables in your VMD file, except that two fields have been added:
In this example, three data tables have been generated: PatientRegistration, LabResult and LabOrder. Finally, because your VMD file contains one table group named ResultGroup, your database schema contains one group table, also named ResultGroup. This group table contains the following fields:
In the following section, you will see how all these tables interact with one another. |