Sorting HL7 Messages
Sort queries let you sort a log on a message element (segment, field, component, or subcomponent).
Sorting data is useful when you want to group messages by criteria such as patient name, date, or location.
This sort on MSH 6 reorders messages by the name of the receiving facility, in this case a patient care location.
Select Message Data to Build Sort Queries
This is the recommended method for building sorts. Once you’ve built a query this way, you can also modify the Filter Operators to change your filter criteria.
- In the Messages area, look for the field containing the data you want to sort by. It could be a patient name, a date, a location, or another string.
- Right-click within the field. A menu appears.
- Click Add Sort.
- The sort query is automatically created within the Sort tab, and the reordered data is displayed within the Messages area.
Build Sort Queries Directly
This is an alternate method for building sort queries.