|
Viewing the Transformation ScriptThe key component of the mapping implementation is the Transformation Script. The script's role is to produce the final flat wire HL7 message and assign this to the 'value' variable. To do this, the transformation script will generally create at least one segment iterator object. (In the example shown, this object is called current_segment.) This segment iterator enables the Python code to access the message being transformed, segment by segment. The iterator gives the code the ability to get and change values in each segment and then generate the modified version. For a description of the segment iterator object, see the Segment Iterator Object manual page.
To view the transformation script:
![]() Transformation Script Window The Transformation Script window displays the Python code that performs the actual transformation. |