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 FHIR is capable of converting to JSON but I don't know how to do that.
Here is a suggestion:
// Modify the message variable below to pre process data
message = SerializerFactory.getSerializer('HL7V2').toXML(message);
return message;