Mirth:定制 ack 边缘案例
我认为这将是我需要完成的极端情况:
- ORU 来自第 3 方应用程序。
- AA ack 将返回到同一连接上的第 3 方应用程序。
- ORU 被转发到第三方目标系统。
- 目标系统将向 Mirth 返回肯定或否定的确认。
我需要在单独的连接上向原始发送第 3 方应用程序返回辅助 CA 确认。
5a) 可能是肯定 (AA) 或否定 (AE) ACK。
5b) acks 是自定义的,因此它们必须通过 javascript 生成
5c) 如果我向原始发送系统发送肯定 (AA) 确认,我需要使用原始 ORU 消息中的值填充 MSA 字段之一。
第 5c 点使这变得困难,因为我不确定有什么方法可以维持原始 ORU 消息和确认之间的状态。在 Mirth 中是否有任何方法可以做到这一点,或者我是否需要通过将 ORU 信息存储在数据库中并在生成 ACK 时查找它来构建某些内容?
I think this would be an extreme edge case that I need to accomplish:
- An ORU comes in from a 3rd party application.
- An AA ack gets returned to the 3rd party application on the same connection.
- The ORU gets forwarded on to a 3rd party destination system.
- The destination system will return a positive or a negative ack to Mirth.
I need to return a secondary CA acknowledgement to the original sending 3rd party app on a seperate connection.
5a) Could be a positive (AA) or negative (AE) ACK.
5b) The acks are custom, so they must be generated through javascript
5c) If I am sending a positive (AA) ack back to the original sending system I need to populate one of the MSA fields with a value that was in the original ORU message.
Point 5c makes this difficult because I'm not sure of any way to maintain state between original ORU message and the acknowledgement. Is there any way to do this in Mirth, or do I need to build something by storing ORU information in a database, and looking it up when generating the ACK?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
取决于您需要从原始 ORU 中获取哪些数据点。大多数 MSH 段不应更改。
您可以将所需的数据点写入第一个目标变压器中的通道映射变量,为返回自定义 ACK 创建另一个目标并读取其上方目标的结果状态,然后发送构建您映射的数据点的自定义 ack。
您的第一个系统是否需要 AA 和第二个 ack,或者您在收到来自下一个系统的 ack 后不能发送单个自定义 ack 吗?
Depends on what data point you need out of the original ORU. Most of the MSH segment shouldn't change.
You could write the data point you need to a channel map variable in your first destination's transformer, make another destination for the return custom ACK and read the result status of the destination above it, and send your custom ack built the datapoint you mapped.
Does your first system need an AA and the second ack or can you not send a single custom ack after receiving your ack from the next system?