Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I convert HL7 v2 message to a FHIR resource directly?

Tags:

hl7-fhir

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.

like image 320
user3057148 Avatar asked Mar 21 '23 11:03

user3057148


1 Answers

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

like image 54
Grahame Grieve Avatar answered May 17 '23 09:05

Grahame Grieve