iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Transforming Messages > HL7 Transformation > Step 2 - Setting Up the VMD File > Creating the Transformation Script |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Now that you have a message definition, the next step is to create the transformation script for it. Like all scripts in Chameleon, this script is written in Python. In this section, you will create a transformation script that removes Z-segments from the incoming HL7 messages and executes any scripts that have been defined for the message segments. To create this transformation script:
The Python script shown above examines each segment of the script in turn:
Once the transformed message is completely rebuilt, it is assigned to the value variable, which is a special variable that contains the HL7 message.
Now that you have created the transformation script, the next step is to create the segment scripts that this transformation script will execute. These segment scripts will replace patient names with the string fff. |