Originally posted by Kumar Ananth
I'm trying to filter out non-General Lab messages using tps_filter_msg_by hl7_field and getting following error message
[xlt :xlat:ERR /0:novo_etz_xlate:10/24/2013 13:58:17] Tcl error:
msgId = message0
proc = 'tps_filter_msg_by_HL7_field'
args = '{SEGMENTID OBR} {FIELDID 24.0} {VALUELIST General Lab} {OPERATOR not}'
result = 'keyed list entry must be a valid, 2 element list, got "VALUELIST General Lab"'
errorInfo: '
keyed list entry must be a valid, 2 element list, got "VALUELIST General Lab"
while executing
"keylget args ARGS.SEGMENTID segment_id"
("run" arm line 11)
invoked from within
"switch -exact -- $mode {
start {
set segment_id ""
set field_id ""
set value_list ""
set operator "" ;#default this one......"
(procedure "tps_filter_msg_by_HL7_field" line 11)
invoked from within
"tps_filter_msg_by_HL7_field {MSGID message0} {CONTEXT xlt_raw} {ARGS {{SEGMENTID OBR} {FIELDID 24.0} {VALUELIST General Lab} {OPERATOR not}}} {MODE ru..."'
Args that I'm using...
{SEGMENTID OBR} {FIELDID 24.0} {VALUELIST General Lab} {OPERATOR not}
Looks like I can't pass a value with space. Is that correct? I've tried to putting single quote 'General Lab'. Still same error.
Do I need to use tps_regex_filter for what I'm trying accomplish?
TIA