Ver. Mirth 3.1.1 HL7V2x
Hello,
if I create a second OBX segment in my template for the destination transformer message, mirth crashs.
How should a second OBX be? Wolfgang
My message:
###
MSH|^~\&|gm||Worklist||||ORM^O01|0|P|2.3
PID|||0||Name^Vorname||0|||||
PV1|||1^^^1
ORC|NW||||||^^^||||||1^^^1
OBR||||||||||||||||||AccNum|1|||||||||||
OBX|1|CE|^BODY WEIGHT||0|^kg|
OBX|2|CE|^BODY HEIGHT||0|^m|
ZDS|1.2.1
###
Mirth ERROR:
###
Transformer error
ERROR MESSAGE: Error evaluating transformer
com.mirth.connect.server.MirthJavascriptTransforme rException:
CHANNEL: HL7
CONNECTOR: Destination 1
SCRIPT SOURCE: TRANSFORMER
SOURCE CODE:
27: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }
28: tmp = new XML(template);
29: function doFilter() { phase[0] = 'filter'; return true; }function doTransform() { phase[0] = 'transformer'; logger = Packages.org.apache.log4j.Logger.getLogger(phase[0]);
30:
31:
32: tmp['OBX']['OBX.5']['OBX.5.1'] = validate(msg['row'][0]['column1'].toString(), '', new Array());
33: tmp['PID']['PID.5']['PID.5.1'] = validate(msg['row'][1]['column1'].toString(), '', new Array());
34: tmp['PID']['PID.5']['PID.5.2'] = validate(msg['row'][2]['column1'].toString(), '', new Array());
35: tmp['PID']['PID.7']['PID.7.1'] = validate(msg['row'][3]['column1'].toString(), '', new Array());
36: tmp['PID']['PID.8']['PID.8.1'] = validate(msg['row'][4]['column1'].toString(), '', new Array());
LINE NUMBER: 32
DETAILS: TypeError: Assignment to lists with more than one item is not supported
at e4d8c473-6e34-4ebd-83e0-9c42c98ac4ff:32 (doTransform)
at e4d8c473-6e34-4ebd-83e0-9c42c98ac4ff:47 (doScript)
at e4d8c473-6e34-4ebd-83e0-9c42c98ac4ff:49
at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.call(JavaScr iptFilterTransformer.java:134)
at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.call(JavaScr iptFilterTransformer.java:100)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Hello,
if I create a second OBX segment in my template for the destination transformer message, mirth crashs.
How should a second OBX be? Wolfgang
My message:
###
MSH|^~\&|gm||Worklist||||ORM^O01|0|P|2.3
PID|||0||Name^Vorname||0|||||
PV1|||1^^^1
ORC|NW||||||^^^||||||1^^^1
OBR||||||||||||||||||AccNum|1|||||||||||
OBX|1|CE|^BODY WEIGHT||0|^kg|
OBX|2|CE|^BODY HEIGHT||0|^m|
ZDS|1.2.1
###
Mirth ERROR:
###
Transformer error
ERROR MESSAGE: Error evaluating transformer
com.mirth.connect.server.MirthJavascriptTransforme rException:
CHANNEL: HL7
CONNECTOR: Destination 1
SCRIPT SOURCE: TRANSFORMER
SOURCE CODE:
27: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }
28: tmp = new XML(template);
29: function doFilter() { phase[0] = 'filter'; return true; }function doTransform() { phase[0] = 'transformer'; logger = Packages.org.apache.log4j.Logger.getLogger(phase[0]);
30:
31:
32: tmp['OBX']['OBX.5']['OBX.5.1'] = validate(msg['row'][0]['column1'].toString(), '', new Array());
33: tmp['PID']['PID.5']['PID.5.1'] = validate(msg['row'][1]['column1'].toString(), '', new Array());
34: tmp['PID']['PID.5']['PID.5.2'] = validate(msg['row'][2]['column1'].toString(), '', new Array());
35: tmp['PID']['PID.7']['PID.7.1'] = validate(msg['row'][3]['column1'].toString(), '', new Array());
36: tmp['PID']['PID.8']['PID.8.1'] = validate(msg['row'][4]['column1'].toString(), '', new Array());
LINE NUMBER: 32
DETAILS: TypeError: Assignment to lists with more than one item is not supported
at e4d8c473-6e34-4ebd-83e0-9c42c98ac4ff:32 (doTransform)
at e4d8c473-6e34-4ebd-83e0-9c42c98ac4ff:47 (doScript)
at e4d8c473-6e34-4ebd-83e0-9c42c98ac4ff:49
at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.call(JavaScr iptFilterTransformer.java:134)
at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.call(JavaScr iptFilterTransformer.java:100)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Error with second OBX segment
0 commentaires:
Enregistrer un commentaire