Filter an HL7 Log

Remove Unneeded Data Values, Trigger Events, and Segments

When the reverse engineering wizard is run, you have the option of filtering out unneeded data values, trigger events, and segments. These data elements may not be needed for the profile you are creating, despite their presence in the HL7 message log.

Trigger Events and Segments

  1. Click the Trigger Events or Segments tab to select, then click check-boxes to select or unselect specific elements.
  2. Selected message elements automatically appear in the Messages area.

Data Filters

Data filters let you set up queries to find messages containing specific data. Queries can filter on specific message building blocks: segments, fields, components, and subcomponents.

Filter Operators

Operator Action
is Includes messages that contain this exact data
is not Excludes messages that contain this data
= < > =< >= Filters on numeric values
like Covers messages that include this data somewhere in the element (ex: 42 in 4342, 3421, 4286)
present Looks for presence of a message element (such as segment, field, etc.)
empty Looks for unpopulated message elements (such as a segment, field, etc.)
in Filter on multiple data values in a message element rather than a single value
regex syntax .NET regular expression syntax, equivalent to wildcard expressions

 

Building Filters

  1. In the Messages area, look for the field containing the data you want to filter on. It could be a patient name, a date, a location, or another string. Right-click within the field. A menu appears.
  2. Click Add Data Filter. The filter is automatically created within the Data Filters Area, and the data is highlighted within the Messages area. 

 

Data Sorting

The data sorting functionality lets you set up sort queries on data values.

  1. In the Messages area, look for the field you want to sort.  Right-click within the field. A menu appears.
  2. Click Add Sort. The sort query is automatically created within the Sort area. Change the data order under the Order column, and change the query order using the up and down arrows.

 

Manage Search and Filter Rules File

You can use an existing Search and Filter Rules file or save newly created rules throughout the Reverse Engineering filtering step. To do so, right-click anywhere in the Data Filters, Sorts or Data Distributions section.