Sidebar

How can I create an XML message from an HL7 source message?

0 votes
1.6K views
asked Aug 24, 2017 by brandon-w-8204 (33,270 points)
edited Aug 24, 2017 by gary-t-8719
I need to create an XML message from an HL7 source message. How can I do this?

2 Answers

0 votes
 
Best answer

Create a channel that is a source of HL7:

Set the message to a XML message:

Get data from the HL7 and set it in the XML:

answered Aug 24, 2017 by brandon-w-8204 (33,270 points)
0 votes

Here is the custom script that was generated from the standard functions above:

message = qie.createXMLMessage("<root></root>", 'UTF-8');
message.setNode("/root/LastName", source.getNode("PID-5.1"));

answered Aug 24, 2017 by brandon-w-8204 (33,270 points)
edited Aug 24, 2017 by gary-t-8719
...