How to convert HL7 v2.x message to FHIR JSON?

前端 未结 3 707
小鲜肉
小鲜肉 2020-12-30 15:01

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?

I found that FHI

3条回答
  •  一向
    一向 (楼主)
    2020-12-30 15:21

    Here is a suggestion:

    1. Download and Install Mirth Connect
    2. Create a new channel
    3. Under the "Scripts" tab, select "preprocessor"
    4. Use the following to convert the HL7 message to XML:

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

    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

提交回复
热议问题