FYI: Update to hapi Fhir 8.4

1 view
Skip to first unread message

Thomas Papke

unread,
Sep 21, 2025, 4:48:01 PMSep 21
to ipf...@googlegroups.com

Hello everyone,

 

i have played around updating IPF to hapi-fhir 8.4, but it fails in some of the groovy tests which bring up an issue in hapi fhir. I want to share the issue behind just in case someone else try the same.

 

From my point of view, the root cause here is the dependency cycle between the interfaces (hapi-fhir-base) and the implementation in the reference model ( org.hl7.fhir.r4).

Hapi has added a default method to the BaseReference interface in 8.4, but the lasted implementing R4 model was still compiled with a hapi 6.4.1. Since java already do some invocation setup at compile time, the (slightly strange) dependency cycle between hapi fhir and the reference model is cause some issue.

 

The cycle between the project is currently in the following way:

Hapi 8.4.0 à org.l7.fhir.core 6.6.7

Org.hl7.fhir.core 6.6.7 à hapi 6.4.1

 

Just compiling the refererence model with the newer hapi release seems to fix the issue.

I have created a PR for this to the hapi team (https://github.com/hapifhir/org.hl7.fhir.core/pull/2179) – hopefully they will accept them.

 

Kind regards,

Thomas

 

Christian Ohr

unread,
Sep 21, 2025, 5:04:44 PMSep 21
to ipf...@googlegroups.com
Thanks Thomas! 
We noticed this behavior as well and refrained from updating Hapi Fhir for the 5.1.0 release for this very reason. 
But we haven't done any further research on this yet. 

Cheers
Christian

--
You received this message because you are subscribed to the Google Groups "ipf-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-dev+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ipf-dev/ed073d4a3746d7d7cd9d3d76d4f92321%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages