Mirth:定制 ack 边缘案例

发布于 2024-12-08 02:31:50 字数 487 浏览 6 评论 0原文

我认为这将是我需要完成的极端情况:

  1. ORU 来自第 3 方应用程序。
  2. AA ack 将返回到同一连接上的第 3 方应用程序。
  3. ORU 被转发到第三方目标系统。
  4. 目标系统将向 Mirth 返回肯定或否定的确认。
  5. 我需要在单独的连接上向原始发送第 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:

  1. An ORU comes in from a 3rd party application.
  2. An AA ack gets returned to the 3rd party application on the same connection.
  3. The ORU gets forwarded on to a 3rd party destination system.
  4. The destination system will return a positive or a negative ack to Mirth.
  5. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

单身狗的梦 2024-12-15 02:31:50

取决于您需要从原始 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文