- This topic has 11 replies, 3 voices, and was last updated 1 year ago by .
-
Topic
-
I am new to cloverleaf. Muddling through translations. I find when it gets complicated, I do not know tcl at all and want to move everything over to javascript. If I create a simple entry using tcl and save it, I end up with this
prologue
xlt_infile: hl7 2.3 ORM
who: Doug
date: October 3, 2023 5:41:58 PM PDT
xlt_outfile: hl7 2.3 ORM
type: xlt
version: 7.0
end_prologue{ { OP BULKCOPY }
{ ERR 0 }
}
{ { OP COPY }
{ ERR 0 }
{ IN {{2(0).1(0).0(0).OBR(0).#2(0).[0]}} }
{ OUT {{2(0).1(0).0(0).OBR(0).#3(0).[0]}} }
}How would this look as a .js file? Is it still a .xlt and maybe it has js for type? or is it saved as .js?
I can’t seem to find any documentation on using javascript, or any examples, if someone can point me in the right direction.
If I can sort out the format for an .xlt as javascript, then next item is how to get the incoming message to manipulate.. is it $msg or something? I have my own parser I can use for field ID’s, just need to know the layout.
Anyone doing this?
Thanks.
Doug.
- You must be logged in to reply to this topic.