Skip to content

qie.sendOutReceiver

Signature: qie.sendOutReceiver(message, timeout*)

Returns: Message response - the response received

Send message out using the channel receiver connection.

Note

This function only applies to channels running the following source receivers: ASTM Socket.

Parameters

Type Name Description Default
Message message the message to send
Integer timeout* (optional) the number of seconds to wait for the message to send 30

Example

/* ASTM socket only */
var responseMessage = `
<ENQ>
1H|\^&|AnalyzerID||ReceiverID||202501091230||P|1
2P|1
3O|1|123456^PatientID|5678^OrderNumber||^^^TestCode||202501091230||||||F
4R|1|^^^TestCode^5678|Value|Unit|RefRange|Flag|||202501091231
5L|1|N
<ETX>
<CHK>
<EOT>`;
qie.sendOutReceiver(responseMessage);