Please enable JavaScript to view this site.

CORE HL7 Viewer

Creating Transformation Instructions

 

Creating a Transformation Instruction

Creating a Transformation Instruction

 

Creating (or editing) a transformation instruction is really very simple so don't be intimidated. If you examine the screenshot above you can tell what it is doing. The instruction says that for the PID segment in each message transformed, in Field #5, Component #1, replace whatever value is currently there by executing the Transformation Macro selected. The Transformation Macro selected is RandomLastName() which does exactly what it says it will do in the instructions box. There is a Transformation Macros Reference below and you can also get the Macros Reference for your version of the software by clicking the button.

 

 

You can add a Conditional Instruction.

 

You may not want a Transformation Instruction to be run unless a specific condition exists.

 

Using A Conditional Instruction

Using A Conditional Instruction

 

If you examine this 2nd screenshot above you can see that it says that in the PID segment Field #3, Component #1 (the patient ID) it will replace the value with a RandomNumber() 10 digits long. Let's assume that for your purposes you don't want this instruction to ADD new data to the HL7 message, you only want to randomize (or anonymize) data if it already exists. For this you click on the Conditional Instruction tab.

 

Using A Conditional Instruction

Using A Conditional Instruction

 

In the Conditional Instruction we have told our runtime engine NOT to do anything UNLESS the value being replaced is NOT Empty. The Conditional Instruction is a custom CORE HL7 Matching Instruction  and the list of logical operators you can choose from are fairly standard options which you have seen in other Search Engines, like:

 

Equal To (and Not Equal To)

Begins With (and Does Not Begin With)

Contains (and Does Not Contain)

Ends With (and Does Not End With)

Is Empty (and Is Not Empty)

 

Using A Conditional Instruction

Using A Conditional Instruction

 

For operators that require Parameters you can specify whether your Conditional Instruction is Case-Sensitive or not.

 

 

 

 

When you are done setting up your Transformation Instruction just click the Ok button (which will NOT be enabled unless you make a change) to return to the Transformation Scripts window.

 

 

 

 

 

 

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Nav Header: ALT+n
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Exit Menu/Up: ESC