Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › General › Basic HL7 message routing question
I’m a newbie which will be perfectly clear from this message.
I have a thread with route properties as follows.
ADT_A(0[1-46-8]|1[13]|3[1])
I understand that it is routing A01-A04, A06-A08, as well as A31.
Does 1[13] mean A113?
It means ADT_A11 or ADT_A13
Here is what I use to test a TRXID regexp
set expr {ADT_A(0[1-46-8]|1[13]|3[1])}
for {set i 1} {$i < 35} {incr i} {
set TRX ADT_A[format %02d $i]
if {[regexp — $expr $TRX]} {
echo $TRX ==== PASS
} else {
echo $TRX ==== Fail
}
Should yield something like:
ADT_A01 ==== PASS
ADT_A02 ==== PASS
ADT_A03 ==== PASS
ADT_A04 ==== PASS
ADT_A05 ==== Fail
ADT_A06 ==== PASS
ADT_A07 ==== PASS
ADT_A08 ==== PASS
ADT_A09 ==== Fail
ADT_A10 ==== Fail
ADT_A11 ==== PASS
ADT_A12 ==== Fail
ADT_A13 ==== PASS
ADT_A14 ==== Fail
ADT_A15 ==== Fail
ADT_A16 ==== Fail
ADT_A17 ==== Fail
ADT_A18 ==== Fail
ADT_A19 ==== Fail
ADT_A20 ==== Fail
ADT_A21 ==== Fail
ADT_A22 ==== Fail
ADT_A23 ==== Fail
ADT_A24 ==== Fail
ADT_A25 ==== Fail
ADT_A26 ==== Fail
ADT_A27 ==== Fail
ADT_A28 ==== Fail
ADT_A29 ==== Fail
ADT_A30 ==== Fail
ADT_A31 ==== PASS
ADT_A32 ==== Fail
ADT_A33 ==== Fail
ADT_A34 ==== Fail
I see the logic in it.
11 and 13.
Thanks Charlie!