iNTERFACEWARE Products Manual > Installing and Using Chameleon > Tutorials and Exercises > HL7 to Application > Step 7 - Repeated Segments > Creating a Table to Hold the Extracted Data |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
The next step is to create a table to hold the data that you will extract from the NK1 segments. Each occurrence of an NK1 segment in the message will fill one row of this table with data. The fields that you want to extract from each segment are:
In the next of kin data table, each of these fields will be a column of the table. In your table grammar, you will specify these table columns. To create this table:
The result should look like this: Next, create some Python scripts for this table to make the output look nicer:
This modifies the data in these fields; now, only the first letter is capitalized. The next step is to associate the table with the PatientRegister message by adding it to the table grammar of the message. |