Versions Compared

Key

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

...

When the In Value for the specified HL7 path matches the table, it will be transformed and the HL7 message path will be populated with the specified Out Value.

Custom Code

If you know C#, you can write custom C# code to execute your transformer functionUs the Custom Code transform to write a message-transforming function in C#. Click on the Add C# Transformer button and then click the Function(<Name>) text to launch the popup window.

Enter a name for the transformer. In the popup, write the C# code to execute the desired function. When you are finished, close the popup window.

Tip
titleNote

You can write C# code without installation of any additional coding software.

Set any conditions for the transformer or add an optional description.

...

The window contains the following:

  • Function Name: A descriptive name for the function. Do not change the C# function name.
  • References: Click to add an assembly reference to your transform.
  • In the box, enter your message transform code.
  • Compile Errors: When the transform code is compiled, any errors will be displayed in this bottom box.

Again, you can set a condition for the transform and add an optional description

Adding References

To add an assembly reference to your custom code transform, click the References button.

Image Added

You can add .NET assembly references or references from other devices. Click on the appropriate tab to see a list of references.

.NET References

The .NET tab contains the following:

  • Filter: Use this to filter the list of available assemblies.
  • Include: Check this box to include the reference in the device. You can select multiple assemblies.
  • Assembly Name: The GAC assembly name.
  • Version:  The version number associated with the reference. Note that some assemblies may have multiple versions; be sure to select the version that targets .NET version 4.5.1.
  • Path: The path of the assembly file.
  • Browse: Click the button to browse for a specific non-GAC assembly file.
Device References

You can also reference assemblies from another device in your custom code transform. Click the Devices tab to see a list of available devices.

Image Added

Click the arrow icon to expand/collapse the list of devices in each category. Click the check box to include the particular device assembly in the transform.

When you are finished, click OK.

Filters

You can use the Filter Transform to filter any unwanted HL7 messages out of the incoming feed before they are passed to the next device in the channel. For example, you may want to filter out messages if a specific field contains a certain value.

...