I’ve heard talk about using one route for multiple events when the xlate code is the same for each event. How exactly is this done in the Route Properties? What are the rules for using regular expressions in this context?
I try to do this more and more – even if the Xlate conditions are not exactly the same for different ADT events, I still like to build only one Xlate and put the event-specific translations in IF statements (checking message type). Makes maintenance easier when working with only one Xlate file. **One thing to watch is that the variant layout for each message type is the same. Even though an Xlate file is configured for a specific message type (A01, for example), I believe the message types are validated against the variant for it’s message type (ie. an A04 message would still be checked for validation against the variants A04 message layout, even though the Xlate is configured for A01).
Examples of route reg expressions (make sure to check the Wild Card box in Route Config):
ADT_A(01|04|08) ADT A01’s, A04’s, A08’s
ADT_.* all ADT events
reg expressions building here is the same as reg expressions in tcl
The rules are simple. When you check “Wild Card Route” in route properties you can then specify a regular expression for the TRXID which will be applied against whatever you specified as the TRXID Determination format.
For example if you selected HL7 as the TRXID Determination Format, the regular expression ADT_A0? would route any ADT_A01 through ADT_A09.
You can test your regular expressions in a hcitcl prompt by setting a variable to the TRXID and applying the regular expression
Another question along the same lines … how do you configure the xlate? Here’s what I have currently. It’s set up as an A01, but it actually processes all ADT events.