【问题标题】:Mirth Connect custom ACKMirth Connect 自定义 ACK
【发布时间】:2018-01-18 17:21:59
【问题描述】:

我刚刚进入 Mirth Connect 世界。

我在为我的应用程序生成自定义 ACK 时遇到了一些问题。

这里必须如何工作:

通道必须接收 HL7 v2 消息,它转换消息,并将其发送到 3 个目的地:

1. File writer -> it write base64 file into a file

2. Database writer -> it write in my table the reference of the files, with other data.

3. Webservice writer -> it send some other data to a soap server, and get a response.

第 1、2 和 3 步有效...但是在第 3 步结束时,我必须收集 Web 服务的一些响应数据,并且我必须创建自定义 Hl7 ACK 以发送回源。

我不知道如何从第三个目的地读取响应并创建 hl7 ack 以发送回源。

有人可以帮我吗!?

谢谢。

【问题讨论】:

    标签: web-services hl7 mirth-connect


    【解决方案1】:

    解决办法:

    我通过以下方式获取每个源数据:

    message.getConnectorMessages().get(0).getRawData();
    

    我把它转换成 XML。

    稍后,我创建一个新的 Hl7 消息

    var new hl7 = new XML("<HL7Message/>");
    

    我附加所有子节点,并使用源 xml 中的一些值。

    最后,我在 HL7 中转换“hl7”变量,并将其放在 ResponseMap...

    所有这一项都在 PostProcessor 中,我在源选项卡中选择这一项作为 ACK。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多