|
Concatenating a Lab ReportOne common transformation is to take a lab result message where all the lines are displayed in separate OBX segments, and then concatenate them together into an easy-to-read report. The following message provides you with an example of this problem:
Each OBX segment has one line of the report that you would like to treat as a single report. By using Python, you can concatenate them all together and map the result into a single column. To hold the report data you must define a Python variable called LabText in the Global Inbound Script window:
In Procedure Then for field 5 of the OBX segment, you use the following piece of Python code:
OBX - Field 5 Observation Value Inbound Script Finally we have a LabResult table which has one field called LabResult. In the incoming script for this field, you assign the value of the column to the LabText variable:
Inbound Table Column Script You can test out this functionality yourself by:
|