Currently we are doing some POC around converting HL7 v2 message to a FHIR resource.
So as a first step we are converting the HL7 v2 message into an XML format using XMLParser from HAPI API, and as a second step we have written an XSLT to convert this XML into FHIR Resource XML format.
So I just wanted to figure out whether there is any simpler approach to do this HL7 v2 to FHIR resource conversion as a one step process rather than the two steps that I just spoke about.
There's no canned process. The core problem is that segments are not naturally identified, and resources must be (that's the core of the RESTful part). And identifying segments usefully is a business problem - it must be done based on the contents of the segment, it's context in the message, and local identification etc practices applicable to the source of the message
So what this means is that there's no canned code. I've published some javascript that works in a particular environment, but is useful as an illustration:
http://www.healthintersections.com.au/A31ToPerson.js
There's also http://bit.ly/14rgaWS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With