FHIR Chat · gRPC and json for FHIR · implementers

Stream: implementers

Topic: gRPC and json for FHIR


view this post on Zulip Dean Hiller (Apr 29 2020 at 13:50):

Has anyone started to use the github.com/google/fhir project to generate fhir objects that can marshal to json OR gRPC? I did this and it generated 680MB of jars for java :( :( as it generates the entire FHIR spec. This is a bit more than we want for our slice of FHIR. Curious if anyone has open sourced *.proto files(which compile to any language)?

view this post on Zulip Paul Church (Apr 29 2020 at 14:12):

@Nick George

view this post on Zulip Dean Hiller (Apr 29 2020 at 16:14):

Has anyone used google healthcare api yet and talk from Java to that api? I am wondering what others are using while I look into googles gRPC FHIR to talk to that api.

view this post on Zulip Paul Church (Apr 29 2020 at 16:35):

We haven't published the gRPC service protos for the FHIR API yet. Although the beta documentation refers to it, that API endpoint is not really usable. We are collecting customer interest in FHIR gRPC but the product is mainly focused on the standards compliant REST API.

There are generated Java client libraries that apply to all GCP REST APIs including FHIR: https://github.com/googleapis/google-api-java-client-services (or you can use any FHIR client library)

view this post on Zulip Dean Hiller (Apr 29 2020 at 18:49):

ok, thanks @Paul Church !!!! I did so much digging and even built the github.com/google/fhir project which ended up with 680 megs of around 600 FHIR jars (a bit toooo large). I am trying to figure out how we can use a 'slice' of FHIR in our microservices. I would rather avoid a bunch of work creating *.proto files to talk FHIR and HAPI is really java only. Do you know if the fhir *.proto's will be more officially released at some point(even if just in beta form?). Also, do you know if there is a way to slice and dice it so people can import slices of it OR are all the *.proto files a massive web pulling each other in? thanks much!!! Dean. Oh, will google be at the connectathon to further discuss? Is there a track I can join? NOTE: I am in the process of adding a gRPC json plugin to the webpieces webserver. Adding straight gRPC is actually more difficult for some reason.

view this post on Zulip Paul Church (Apr 29 2020 at 18:55):

There are .proto files in the repo - is this what you are looking for? https://github.com/google/fhir/tree/master/proto/r4/core/resources

The R4 proto files are separate per resource, you don't get the whole web by importing one. STU3 is one big monolithic proto as that was how the generator used to work.

view this post on Zulip Paul Church (Apr 29 2020 at 18:56):

We'll have some people at the connectathon but there isn't a track related to protos.

view this post on Zulip Dean Hiller (Apr 29 2020 at 19:13):

@Paul Church actually, I got to the point of running "bazel build //java:json_format" BUT realized I have 'no idea' what target I should actually build for what I need. We need just the organization/practitioner/etc as seen in the image at the bottom of this page https://build.fhir.org/ig/HL7/davinci-pdex-plan-net/index.html

Is there a command I can run to 'clear' out this 680MB of jars and just generate that section? I would LOVE to start using it and bring it to the connectathon in a couple weeks but really am hoping for more <100MB or even less if possible.

view this post on Zulip Paul Church (Apr 29 2020 at 19:40):

"bazel clean" will clear out the output. I'm not personally familiar with how the java part of the repo is organized so I'm not sure which targets to suggest for what you need.

view this post on Zulip Dean Hiller (Apr 29 2020 at 21:57):

@Paul Church Do you perhaps know someone that might know which target I want for that link? If I can get a hold of that, I may be able to bring something to this upcoming connectathon based on google grpc fhir which would ROCK. If not, totally understand and either way, THANKS for all the help here!!!

view this post on Zulip Dean Hiller (Apr 29 2020 at 21:58):

@Paul Church or perhaps you can pass my email along. dean@orderlyhealth.com

view this post on Zulip Paul Church (Apr 30 2020 at 16:23):

I'll see what I can track down for you.


Last updated: Apr 12 2022 at 19:14 UTC