If you're new to Javascript and E4X it may be useful to you to have an interactive Javascript shell to test your Mirth Javascript scripts:
Using Firefox 1.5 you can start a shell from http://www.squarefree.com/shell/
You can also start one from the command line (Tested on OSX):
What I usually do is take the XML transformed version of the message I am working on (get a copy from the a working channel) and assign it to a variable:
var msg = <HL7Message><MSH> ;
and then try out some loops and deletions of various parts of the message
BTW: maybe this can be feature in Mirth in the future i.e., some sort of interactive Javascript scratchpad!
- Jeremy
Post edited by: rods, at: 08/24/2007 07:11
Using Firefox 1.5 you can start a shell from http://www.squarefree.com/shell/
You can also start one from the command line (Tested on OSX):
Code:
cd <Mirth Install Directory>/lib java -cp rhino-1.6r2.jar:«»xbean.jar:jsr173_1.0_api.jar org.mozilla.javascript.tools.shell.Main
var msg = <HL7Message><MSH> ;
and then try out some loops and deletions of various parts of the message
BTW: maybe this can be feature in Mirth in the future i.e., some sort of interactive Javascript scratchpad!
- Jeremy
Post edited by: rods, at: 08/24/2007 07:11
Comment