1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
460 views
by brandon-w-8204 (34.1k points)

1 Answer

0 votes

To search for messages that have a HL7 that does not end in a "|" do the following.

1. Click on the messages tab,  Click the ellipsis, Click on advanced

2. Click on advanced, Click on Insert

3. Click on Customize script

4. Use one of the scripts below.

Script:

var messageLines = StringUtils.splitByWholeSeparator(source.getNode('/'), '\r');
var i = messageLines.length -1;
if (StringUtils.isNotBlank(messageLines[i])) {
   i = i--;
}
if (StringUtils.endsWith(messageLines[i], '|')) {
   return false;
} else {
   return true;
}
by brandon-w-8204 (34.1k points)
edited by brandon-w-8204
...