Hi All,
I am new to Mirth (v1.6) and I have been trying to setup a channel to insert message into the SQL 2000 database. I am having problems creating transformers. Here are the details:
- On Channel -> Destinations page;
1. use JavaScript 'Yes'
2. I have created a transformer step (MsgType) and mapped it to MSH 9.1
Variable: msg_type
Add to: Channel Map
Mapping: msg['MSH']['MSH.9']['CM_MSG.1']
When a message (HL7 v2.1) is sent to this channel it receives it successfully howoever while sending the message to the database it gives following error:
================
FAILURE: Error evaluating transformer
MirthJavascriptTransformerException
CHANNEL:
LLP Listener Customized
CONNECTOR:
Database Writer with Sp Details
SCRIPT SOURCE:
Transformer
LINE NUMBER:
1
DETAILS:
ReferenceError: "MsgType" is not defined.
================
Could you please suggest what could be wrong or how to over come this issue. I have been sittig on this for whole of yesterday.:unsure:
Any help would be greatly appreciated.
Thanks in Advance
Mac
PS: When I hav the 'use Java Script' set to 'No' I am able to use the Transformer.
Post edited by: mac_3785, at: 09/10/2007 06:50
I am new to Mirth (v1.6) and I have been trying to setup a channel to insert message into the SQL 2000 database. I am having problems creating transformers. Here are the details:
- On Channel -> Destinations page;
1. use JavaScript 'Yes'
2. I have created a transformer step (MsgType) and mapped it to MSH 9.1
Variable: msg_type
Add to: Channel Map
Mapping: msg['MSH']['MSH.9']['CM_MSG.1']
When a message (HL7 v2.1) is sent to this channel it receives it successfully howoever while sending the message to the database it gives following error:
================
FAILURE: Error evaluating transformer
MirthJavascriptTransformerException
CHANNEL:
LLP Listener Customized
CONNECTOR:
Database Writer with Sp Details
SCRIPT SOURCE:
Transformer
LINE NUMBER:
1
DETAILS:
ReferenceError: "MsgType" is not defined.
================
Could you please suggest what could be wrong or how to over come this issue. I have been sittig on this for whole of yesterday.:unsure:
Any help would be greatly appreciated.
Thanks in Advance
Mac
PS: When I hav the 'use Java Script' set to 'No' I am able to use the Transformer.
Post edited by: mac_3785, at: 09/10/2007 06:50
Comment