Stream: implementers
Topic: GraphQL to FHIR
Andreea Dorca (Aug 27 2020 at 11:49):
Is there a library or something we could use to directly and easily convert GraphQL responses to FHIR resources? Or how could we do this using the JAVA language?
Lloyd McKenzie (Aug 27 2020 at 14:39):
GraphQL allows arbitrary organization of data, so you're not going to find 'standard' conversion processes. GraphQL to FHIR would essentially be arbitrary JSON to FHIR.
Andreea Dorca (Aug 28 2020 at 07:46):
Thank you for your response.
Michele Korell (Oct 07 2020 at 20:50):
Actually we do it using a Typescript fhir lib and the asymmetrik/graphql-fhir server implementation, but it is not in java
Eray Özmü (Nov 17 2020 at 14:13):
Can you guys help me with the start for graphql? Do we need to implement each resolver on our own? I would have thought that the resolvers come out of the box with graphql-fhir...
Venu Gopal (Dec 16 2020 at 02:30):
@Eray Özmü yes, that's because GraphQL is a data layer and is database agnostic. So we need to write the resolvers on our own depending on our db. We forked the asymmetrik GraphQL server and are writing resolvers to fetch from Mongodb. This is far from complete, but is open source and can be accessed at https://github.com/HL7India/graphql-fhir
Last updated: Apr 12 2022 at 19:14 UTC