Stream: implementers
Topic: GraphQL/FHIR
Christopher Swartz (Aug 22 2018 at 18:23):
Can anyone direct me to any discussion that has been had around implementing FHIR via GraphQL? My organization is very interested in implementing a graph API but we don't want to neglect FHIR as the industry has already agreed on FHIR as it's standard. Is it one or the other? Or is there room for FHIR on something other than REST?
Robert Winterbottom (Aug 22 2018 at 18:29):
Hi @Christopher Swartz, there is some documentation around how the two should be used together here, https://build.fhir.org/graphql.html. If your interested in seeing some examples, I have been working with my team on developing a FHIR Facade in GraphQL. We are using node.js and express-graphql. It's still a work in progress but our develop branch has support for dstu2 (1.0.2) and stu3 (3.0.1) and have some PR's open for scope checking and oauth. We would love to hear some feedback from others about what features they need the most and how they would like some things to be implemented. You'll notice the spec page is not quite complete, so I think from a community standpoint there is still some discussion/work to be done to determine the best way to handle some things.
Robert Winterbottom (Aug 22 2018 at 18:31):
The github url is https://github.com/Asymmetrik/graphql-fhir and the latest stable code is on the develop branch. We do plan to have some documentation updates in the next day or two to make getting setup easier and explaining all the configurable options available.
Chris Moesel (Aug 22 2018 at 18:40):
Also, if you haven't done so already, take advantage of Zulip search: https://chat.fhir.org/#narrow/stream/4-implementers/search/graphql
Abbie Watson (Aug 23 2018 at 00:47):
Also worth mentioning is gql-fhir, the first mash-up of the two technologies (as far as I'm aware). Two years old now, but uses the Apollo client, which is still very much in active development.
https://github.com/shalkam/gql-fhir/
Josh Mandel (Aug 24 2018 at 21:44):
(If we're comparing ancient stuff there's also my 3yo https://github.com/jmandel/gra-fhir-ql)
Michele Korell (Mar 30 2019 at 14:37):
Hello,
Yesterday i've published the result of a test with graphql schemas at https://github.com/michelekorell/patient-fhir-graphql and you can find the GraphQL schema at https://github.com/michelekorell/patient-fhir-graphql/blob/master/src/graphql/patient.ts
Actually I had a lot of problem using schemas defined at build.fhir.org. In the other topic you can find a list of small bugs into these schemas. Actually I used R4 version.
Grahame Grieve (Apr 01 2019 at 08:55):
so, looking at the graphql, it wasn't really the generated patient graphql schema that was the problem, it was the fact that it's just a fragment
Last updated: Apr 12 2022 at 19:14 UTC