Can HAPI FHIR be used to parse HL7v3 messages?

246 views
Skip to first unread message

MaS

unread,
Apr 4, 2023, 3:38:59 AM4/4/23
to HAPI FHIR
Hey everyone!

I'm just starting to dive into the topic and haven't found a similar question here, so I hope this is not redundant.

The software I'm developing will soon need to provide an interface that allows external software to push HL7v3 messages to our system, reads those messages and creates database entries based on them. Ideally, I'd love to use HAPI FHIR for that; since FHIR is backwards compatible to HL7v3, I would hope that it's possible, but I'd like to confirm (or disprove) this before I start playing around with it.

Can anyone help me out?

Thanks a lot!

James Agnew

unread,
Apr 4, 2023, 9:59:04 AM4/4/23
to MaS, HAPI FHIR
HL7 FHIR and HL7 v3 are different standards families, and don't actually share much design similarity. Unfortunately there is no concept of backwards compatibility between them, and as a result HAPI FHIR definitely can't parse HL7v3 payloads.

There are a few tools out there that try to create libraries for working with HL7 v3 (one example would be Eclipse MDHT: https://projects.eclipse.org/projects/modeling.mdht ). I haven't used any of them personally though. For what it's wortth, any time I've ever had to parse v3 payloads, I've just used the XSDs to generate JAX models and worked with those. It's clunky, but if you're only trying to extract data it's not so bad.

Cheers,
James


--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/7d666626-9767-4273-8f37-f6b463bab1c2n%40googlegroups.com.

James Agnew

unread,
Apr 4, 2023, 2:59:58 PM4/4/23
to Italo Macêdo, MaS, HAPI FHIR
The FHIR standard pages do maintain a set of informational mappings from FHIR to the RIM. For example, see this one for Patient: http://hl7.org/fhir/patient-mappings.html#rim

However, FHIR is not based on the RIM so there is no tooling available to automatically apply these mappings as far as I know.

Cheers,
James

On Tue, Apr 4, 2023 at 10:05 AM Italo Macêdo <italo...@gmail.com> wrote:
I thought that there was a way to map it through the Reference Information Model (RIM).

Agradecido,

Italo Costa.


Message has been deleted

Tomomi Yamano

unread,
Apr 11, 2023, 8:28:45 AM4/11/23
to MaS, HAPI FHIR

Tomomi Yamano

unread,
Apr 11, 2023, 8:28:46 AM4/11/23
to James Agnew, Italo Macêdo, MaS, HAPI FHIR

It looks old XML parsers are workable . I am interested in a Web Service call.


Tomomi Yamano

unread,
Apr 11, 2023, 8:28:46 AM4/11/23
to MaS, Italo Macêdo, HAPI FHIR, James Agnew

Mate, 

Please feel free to reach out at ad...@burai.live if you need help. 
I am happy to talk to you

Italo Macêdo

unread,
Apr 11, 2023, 8:28:46 AM4/11/23
to James Agnew, MaS, HAPI FHIR
I thought that there was a way to map it through the Reference Information Model (RIM).

Agradecido,

Italo Costa.


On Tue, Apr 4, 2023 at 10:59 AM James Agnew <james...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages