如何将HL7 v2.x消息转换为FHIR JSON? [英] How to convert HL7 v2.x message to FHIR JSON?

查看:181
本文介绍了如何将HL7 v2.x消息转换为FHIR JSON?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用java或python将HL7 v2.x消息转换为FHIR JSON.但是我找不到任何解决方案.有什么办法可以做到这一点?

I am trying to convert HL7 v2.x message to FHIR JSON using java or python. But I am not able to find any solution. Is there any way to achieve this?

我发现FHIR能够转换为JSON,但我不知道该怎么做.

I found that FHIR is capable of converting to JSON but I don't know how to do that.

推荐答案

以下是建议:

  1. 下载并安装Mirth Connect
  2. 创建一个新频道
  3. 在脚本"标签下,选择预处理器"
  4. 使用以下命令将HL7消息转换为XML:

// Modify the message variable below to pre process data
message = SerializerFactory.getSerializer('HL7V2').toXML(message);
    
return message;

  1. 现在您在变量 message 中具有XML文件,因此您可以在此处编写内联代码以将其转换为JSON,而无需使用库:
  1. Now you have the XML file in the variable message, so you can write inline code to convert it to JSON without a library from here: https://davidwalsh.name/convert-xml-json

这篇关于如何将HL7 v2.x消息转换为FHIR JSON?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆