Versions Compared

Key

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

Compares two HL7 messages and displays the differences.

As you can see below from the example the tool highlights the fields that are different from one another. Changes are colored red, additions colored green, and deletions are highlighted with a strike-through font. 

Image Removed

There are a number of ways to compare 2 messages depending on which tool you are in.

From the Message Editor window.
  • Use the "L" and "R" buttons Image Removed in the button bar to send the current message to either the left, or right, compare window 
  • Click and Drag a message to the desired compare window by clicking down and holding the the left mouse button on the area of the message window to the left of the line numbers  Image Removed
From the compare window 
  • Press the Image Removed button on one of the compare Window's scroll bar to copy the currently displayed message into the Compare Window's display
From HL7 SQL and Sql Loader tools
  • Select 2 items in the query results list, right-click and select the "Compare Messages" option (see below)
    Image Removed

 

 The Bulk Compare tool allows messages from 2 different Message Tabs to be compared for differences.

The principle behind the operation of this tool is to "link" 2 Message Tabs together and to use a field (called the key path) within the message that identifies the same message in each tab. Once the equivalent message from each tab has been identified, a comparison is performed, and the differences noted.

A report of all the differences can be generated using the drop-down under the "Link Button"

Image Added

Bulk Compare Step by Step

  1. Load up 2 files that you wish to compare into HL7Spy
  2. Click on the "Link" Button and select the 2 tabs you would like to compare in the upper part of the dialog. If you only have 2 tabs, they will automatically be selected for you.
    Image Added
  3. Set the "Key Path". By default this is set to MSH-10, but you can change this to some other field, or list of fields, that will uniquely identify the instance of a message
  4. If you wish to ignore some fields in the comparison, check the "Path(s) to ignore" check box and enter the paths in the text editor below
  5. Click "OK"
  6. At this point HL7Spy will go through all the messages and create an internal list of messages that match between the 2 tabs.
  7. The Bulk Compare tool has now be initialized and is ready for use.

Bulk Compare Navigate

Once the Bulk Compare tool has been initialized, you can navigate through the messages using the tool bar buttons. All navigation happens with respect to the left compare window. The right compare window displays the matching message if one exists.

Image Added Advance to the next message in the left compare window. If there is a matching message from the other tab, it will be displayed in the right compare window.

Image AddedAdvance to the previous message in the left compare window. If there is a matching message from the other tab, it will be displayed in the right compare window.

Image Added Advance to the next message that has differences in the left compare window. If there is a matching message it will be displayed in the right compare window, otherwise an empty window will be displayed if there is no matching message in the other tab.

Image AddedAdvance to the previous message that has differences in the left compare window. If there is a matching message it will be displayed in the right compare window, otherwise an empty window will be displayed if there is no matching message in the other tab.

Image Added The text box in the center of the navigation tools can be used to go directly to a message index.

Image Added The Swap button will swap the right and left compare windows.