Input datatype = 'csv' & output is= 'C-CDA doc' #5756
VivekSinghBi
started this conversation in
Feature/Enhancement Ideas
Replies: 1 comment
-
replace |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on C-CDA bi-di. When I am sending a csv data to cater destination a C-CDA document, below are the error that is popping up on the dashboard.
Could someone help on this?
ERROR:
Transformer error
ERROR MESSAGE: Error evaluating transformer
com.mirth.connect.server.MirthJavascriptTransformerException:
CHANNEL: CSV_XML Converter
CONNECTOR: sourceConnector
SCRIPT SOURCE: TRANSFORMER
SOURCE CODE:
100: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }
101: tmp = new XML(template);
102: function doFilter() { phase[0] = 'filter'; return true; }function doTransform() { phase[0] = 'transformer'; logger = Packages.org.apache.log4j.Logger.getLogger(phase[0]);
103:
104:
105: msg['row2']['column4'].toString() = validate(tmp['recordTarget']['patientRole']['patient']['administrativeGenderCode']['@code'], 'U', new Array(new Array('male', 'M'),new Array('female', 'F')));
106: if ('xml' === typeof msg) {
107: if (msg.hasSimpleContent()) {
108: msg = msg.toXMLString();
109: }
LINE NUMBER: 105
DETAILS: ReferenceError: Function can not be used as the left-hand side of assignment or as an operand of ++ or -- operator.
at 81342092-83eb-418b-8dc3-1b1035b398fd_JavaScript_Filter_Transformer_0:105 (doTransform)
at 81342092-83eb-418b-8dc3-1b1035b398fd_JavaScript_Filter_Transformer_0:127 (doScript)
at 81342092-83eb-418b-8dc3-1b1035b398fd_JavaScript_Filter_Transformer_0:129
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:235)
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:187)
at com.mirth.connect.server.util.javascript.JavaScriptTask.call(JavaScriptTask.java:114)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Beta Was this translation helpful? Give feedback.
All reactions