Hi,
When looping through multiple OBX segments to process both 'CE' and 'ST' types, it seems that mirth only recognizes the 'CE' typed OBX segments. In my transformer I have a simple loop that writes out the value that is in the msg['OBX']['OBX.2']['OBX.2.1'] field.
The log file correctly writes that the field has 'CE', but when it process a field with 'ST' (and also 'TX')...the log file writes out: undefined
Also calling msg['OBX']['OBX.2']['OBX.2.1'].toString() will cause an error for non-CE segments because the value is supposedly undefined.
What could be the cause of this phenomenon?
Thanks,
docinthebox
When looping through multiple OBX segments to process both 'CE' and 'ST' types, it seems that mirth only recognizes the 'CE' typed OBX segments. In my transformer I have a simple loop that writes out the value that is in the msg['OBX']['OBX.2']['OBX.2.1'] field.
The log file correctly writes that the field has 'CE', but when it process a field with 'ST' (and also 'TX')...the log file writes out: undefined
Also calling msg['OBX']['OBX.2']['OBX.2.1'].toString() will cause an error for non-CE segments because the value is supposedly undefined.
What could be the cause of this phenomenon?
Thanks,
docinthebox
INFO 2008-01-14 13:20:47,494 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: ANTIBIOTIC TEST RESULT = undefined
INFO 2008-01-14 13:20:47,494 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: ANTIBIOTIC TEST RESULT = undefined
INFO 2008-01-14 13:20:47,494 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: ANTIBIOTIC TEST RESULT = undefined
INFO 2008-01-14 13:20:47,591 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: ANTIBIOTIC TEST RESULT = CE
INFO 2008-01-14 13:20:47,607 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: CE(if branch) ANTIBIOTIC TEST RESULT = CE
INFO 2008-01-14 13:20:47,607 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: ANTIBIOTIC TEST RESULT = undefined
INFO 2008-01-14 13:20:47,494 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: ANTIBIOTIC TEST RESULT = undefined
INFO 2008-01-14 13:20:47,494 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: ANTIBIOTIC TEST RESULT = undefined
INFO 2008-01-14 13:20:47,591 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: ANTIBIOTIC TEST RESULT = CE
INFO 2008-01-14 13:20:47,607 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: CE(if branch) ANTIBIOTIC TEST RESULT = CE
INFO 2008-01-14 13:20:47,607 [d5e2fca6-6154-4e67-a157-6f30923add03_source_connector._fileEndpoint#409805 610.receiver.1] destination-transformer: ANTIBIOTIC TEST RESULT = undefined