[英]Mirth database reader channel
I have configured mirth database reader channel and LLP sender channel. 我已经配置了mirth数据库读取器通道和LLP发送者通道。 I am able to send messages and updating the details in the database.
我能够发送消息并更新数据库中的详细信息。 I want to update the database if any of the acknowledgement is failed.
如果任何确认失败,我想更新数据库。 How can i achieve this?
我怎样才能做到这一点? Any suggestions will be of great help.
任何建议都会有很大帮助。
The On-Update statement will run after a message is processed, even if it errored on a destination. 即使消息在目标上出错,On-Update语句也将在消息处理后运行。 If you want to conditionally update based on an HL7 NACK, you can do that in the On-Update statement, but it would probably have to use JavaScript.
如果要基于HL7 NACK有条件地进行更新,可以在On-Update语句中执行此操作,但是可能必须使用JavaScript。 Or, you can do this in a postprocessor:
或者,您可以在后处理器中执行以下操作:
if ($r('Destination 1').getStatus() == 'FAILURE' && /.*MSA.[AC][RE].*/.test($r('Destination 1').getMessage())) {
// Update the database here
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.