Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).

Demonstration: Testing the Transformation

It's time to test the set actions that we've specified in the previous sections. To test, perform the following actions:

  1. Compile the DTL by clicking the Compile button.

  2. Click the Tools tab on the right pane and choose Test Transformation.

  3. Open ABC1.txt in a text editor. See the note below for the location of this file. Copy the contents and paste them into the Input Message area.

    generated description: datatransforms15

  4. Click Test to run the data transformation. Verify that the MSH and PID segments have been copied, and that the first occupied field of the PID segment reads 77777777. The value in the test message is 16284718.

    generated description: datatransforms16

    Note that there is a BuildMap error that has been thrown in this test. This is because the target message is missing some segments - we have only populated two of them so far. We will fix this in the next chapter.

If successful, this test shows that we are changing the value of the patient's ExternalID in the message.

Note:

ABC1.txt is in <ensemblesys>\Dev\tutorials\hl7messagerouting where <ensemblesys> is the directory where Ensemble is installed.

FeedbackOpens in a new window