FHIR Chat · X-Provenance in HAPI · implementers

Stream: implementers

Topic: X-Provenance in HAPI


view this post on Zulip Tobias Cervin (Oct 01 2019 at 08:26):

Hello fellow fhirstarters (excuse the ecitement, first post in this forum/chat/thing)!

I'm part of the team here at The Swedish E-health Agency implementing FHIR on a new system we're building. One of the things we're building now is the X-Provenance function, in HAPI. So I wanted to share some ideas and would love to hear your thoughts on this!

What would you say about having a Interceptor (pre-provider) that puts relevant custom-header into RequestDetails.userData and then in the provider extract this and attach it to the resource before going further down into ejb/mapping? Another suggestion have been to put HttpServletRequest into the relevant Provider-methods and then check there if X-Provenance exists, but I think I prefer going for an interceptor!

view this post on Zulip James Agnew (Oct 01 2019 at 09:40):

This sounds to me like a great use case for an interceptor.

view this post on Zulip Tobias Cervin (Oct 01 2019 at 12:56):

@James Agnew thanks for input! Turned out pretty neat using incomingRequestPreHandled()! Even though ActionRequestDetails is deprecated?


Last updated: Apr 12 2022 at 19:14 UTC