Question
· Jun 29, 2017

Blocking messages with blank MRG segment

Dear All,

I would like to block ADT_A18 and ADT_A47 HL7 2.3 messages with an empty MRG:1 field.

This is to prevent my current HL7 ADT router (Business process) sending blank Merges downstream.

I've attempted to create a business rule where this would return out the business role process.  However the messages still loop though the other rules.

 

Any advice would be great.

 

Kind Regards

 

Stuart

Discussion (6)1
Log in or sign up to continue

Have you attempted to use LENGTH?

Say LENGTH(HL7.{MRG. PriorPatientIdentifierList }) > 0

We have never been successful in using the field numbers within our routing rules. Normally we just use the name of the field, or that's at least how we were taught.

I would also think you want to check the message type before you check the MRG.1. So it would be if Message Type is A18 and LENGTH(HL7.{MRG. PriorPatientIdentifierList }) > 0 then return

After some investigation I found that the method would work with the following:

I found a quirk in the testing service, where the rule would not work using the testing service.  

I created a business Operation that feeds our ADT Business service and the same messages now all work.

I'm currently testing with our eMR (Epic's) DEV platform ADT messages and this is also working.

It looks like the testing service might works a bit funny when running from the router.

Thank you all for your reads and contributions.