Sidebar

How do I return a ACK message different from the standard HL7 ACK on the Source Node

0 votes
446 views
asked Sep 11, 2013 by gary-t-8719 (14,860 points)
For example how can i just return "true"

3 Answers

0 votes
 
Best answer

While there are other ways to return a differnt ACK message, the easist way is to use the qie post message response function in the Source Node Response Script.

qie.postMessageResponse('true');

answered Sep 11, 2013 by gary-t-8719 (14,860 points)
selected Dec 17, 2013 by ron-s-6919
commented Mar 6 by lewis-s-9714 (1,020 points)
Does this have to be in the source node's "Response Script" or can it be called in other nodes, like a mapping node?
commented Mar 6 by lewis-s-9714 (1,020 points)
I found the option on the source node "Response: From Mapping or Destination node" and found the behavior I was looking for.
0 votes

Another way would be to reutn a csv message. In this example we are rutuning just one row and one column but you could build a larger csv message model.

message = qie.createCSVMessage();
message.setNode('1[1]', 'true');
 
answered Sep 11, 2013 by gary-t-8719 (14,860 points)
0 votes

Or you could build a csv message pulling data from the source message and parse it as csv and return.

var patientId = source.getNode('1');
var patientName = source.getNode('2');
message = qie.parseCSVString(patientId + ',' + patientName);
answered Sep 11, 2013 by gary-t-8719 (14,860 points)
...