Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Map tables have been significantly revamped in version 15 to allow for a dynamic number of columns as well as more powerful querying options . The main benefit to multi-column map tables is the ability to match multiple values at once. For example, you may want to match a value in column 1 and a value in column 2 (or a value in column 3). New functions have been added to custom code which will allow you to directly query the underlying DataTable object using SQL syntax or LINQ.(directly query the underlying DataTable object using SQL syntax or LINQ). Most devices which have map table functionality now use this new functionality.

Info

Global map tables can now be created and referenced by many devices.

Using an HL7 Transform (v2) device, open the map table dialog and create a new map table:

Image Added

Typically, your table content will come from another source such as Excel. In this case, the easiest way to import the data is via the clipboard. Simply copy from the source, right-click the top-left empty cell, and choose the paste option. The correct number of columns will be automatically created during the paste operation.


Image Added

Image Added

Notice the first row of the table contains the column names. You can right click the first row and select the 'Use Current Row As Header'.

Image Added Image Added

The next step is to define your indexes. In addition to improving performance, indexes ensure that value(s) you are searching for within the table are unique. If you wish to search on multiple different columns, you can define multiple indexes. Additionally, if you are searching on multiple columns, you can define 'compound' indexes. For example, in the table above, you may wish to search on 'Modality' and 'Body Part' together and return the corresponding LOINC code ("find the LOINC code where Modality = 'ct' and Body Part = 'brain'"). In this case we must define a compound index which includes both the Modality column and Body Part column. To do this we click on the key icon in the Body Part column and select the compound index option:


Image Added

Compound indexes show a different key icon in the column header.





Image Added

The inverse of looking up LOINC codes based on Modality and Body Part would be to look up either Modality or Body Part based on the LOINC Code. In this case we would want to add a single index the LOINC column. To do this, click the key icon in the LOINC Code column header, and select the first option.

Image Added

Now the key icon in the LOINC Code column indicates a single index.


Image Added

Using the gear icon displayed in the header of each column (or the corresponding column context menu), you can also modify the structure of the table:

  • Remove an existing column
    Image Added
  • Append a new column
    Image Added
  • Rename an existing column
    Image Added


Once you have configured your map table, you can reference it within the HL7 transform device. Start by adding a new map table transform:

Image Added
The map table transform UI lets you configure the index, source paths, and output column:

Image Added