FHIR Chat · hapi-fhir · hapi

Stream: hapi

Topic: hapi-fhir


view this post on Zulip Mayur Bathar (Mar 11 2021 at 06:36):

Hi

view this post on Zulip Mayur Bathar (Mar 11 2021 at 06:38):

Is it possible to use hapi plain server framework with gRPC client?

view this post on Zulip Lloyd McKenzie (Mar 11 2021 at 15:43):

You might ask on #hapi - more HAPI folks hang out there than here.

view this post on Zulip Notification Bot (Mar 11 2021 at 19:28):

This topic was moved here from #implementers > hapi-fhir by Josh Mandel

view this post on Zulip Jens Villadsen (Mar 11 2021 at 19:30):

I dont understand the question, im afraid

view this post on Zulip Richard Stanley (Mar 11 2021 at 20:05):

I would be curious to know if someone created grpc stubs with protobuf support to work as a proxy in front of HAPI, but I haven’t seen anything yet. If indeed that’s what the OP was asking.

view this post on Zulip Jens Villadsen (Mar 11 2021 at 21:12):

And you goal with such a proxy would be to save bandwidth?

view this post on Zulip Jens Villadsen (Mar 11 2021 at 21:13):

I don't think it would take an enourmous effort of work actually

view this post on Zulip Richard Stanley (Mar 12 2021 at 16:07):

Exactly, it would be for pushing data through small pipes, e.g. Android clients on low bandwidth networks. Thought of doing it in Go. But it's an imaginary use case for my work, just a fun idea. If you have thoughts on how to design and approach it, please do share :)

view this post on Zulip James Agnew (Mar 16 2021 at 19:59):

I've often thought it'd be really cool to implement a protobuf parser/serializer in HAPI FHIR to compliment the xml/json/ttl ones.. I bet the JPA server would actually get some nice benefit from this.

view this post on Zulip Bryn Rhodes (Mar 16 2021 at 20:46):

@Jing Tang, thoughts?

view this post on Zulip Richard Stanley (Mar 16 2021 at 20:58):

@James Agnew, oh pretty please. That would be a lot better than putting a proxy in front of HAPI. Adding @Carl Leitner to this thread for his info.

view this post on Zulip Jing Tang (Mar 16 2021 at 22:29):

Given a HAPI resource, we can use reflection to go over the fields and try to construct a proto that way. But then, my question is, is it actually worth the effort, how much faster would that be, and why not just go via the JSON format (hapi -> json -> proto in memory -> proto wire format)? So perhaps the way to do this is via code generation to get adapters that map each hapi class to a proto class.

view this post on Zulip Jing Tang (Mar 16 2021 at 22:31):

But yeah - I'd love to explore this a bit. Would be super cool.

view this post on Zulip Jens Villadsen (Mar 18 2021 at 08:01):

@Richard Stanley have you looked at eg. the fhir mapping to protobuf by Google?:

            <dependency>
                <groupId>com.google.fhir</groupId>
                <artifactId>r4</artifactId>
                <version>0.6.1</version>
            </dependency>

view this post on Zulip Richard Stanley (Mar 18 2021 at 13:19):

Yep :)

view this post on Zulip Mayur Bathar (Mar 18 2021 at 14:55):

How to create swagger documentation using Hapi plain server library in spring boot using java?

view this post on Zulip Mayur Bathar (Mar 18 2021 at 15:03):

How to create documentation using Hapi plain server library in spring boot using java?


Last updated: Apr 12 2022 at 19:14 UTC