Hi,
I’m trying the following (have also tried = but makes no difference):
IF 0(0).MSH(0).#3(0).[0] ct=TTK
SEND
ELSE
SUPPRESS
When I use the test tool with an input file with TTK I get MSH returned:
MESSAGE 1
0(0).MSH(0).#1(0).[0].[0] “Field Separator” : >|<
0(0).MSH(0).#2(0).[0].[0] “Encoding Characters” : >^~\&<
0(0).MSH(0).#3(0).[0].[0] “Sending Application” : >TTK<
0(0).MSH(0).#4(0).[0].[0] “Sending Facility” : >disalpha<
0(0).MSH(0).#7(0).[0].[0] “Date/Time Of Message” : >202405281440<
0(0).MSH(0).#9(0).[0].[0] “Message Type” : >ADT<
0(0).MSH(0).#9(0).[1].[0] “Message Type” : >A31<
0(0).MSH(0).#10(0).[0].[0] “Message Control ID” : >1003237359.A31<
0(0).MSH(0).#11(0).[0].[0] “Processing ID” : >P<
0(0).MSH(0).#12(0).[0].[0] “Version ID” : >2.3.1<
0(0).EVN(0).#1(0).[0].[0] “Event Type Code” : >A08<
but when I use a file with, say, RTK, I just get:
MESSAGE 1
From the above I’m assuming that the translation is suppressing messages without TTK (could be wrong?) but in the ‘real world’ outside the testing tool, as the thired in a chain of translations it doesn’t suppress the message.
Does anyone have any ideas please?
For a couple of reason I can’t use gc_filterHL7msgUsingFieldValue
Thanks,
Simon