gql-fhir icon indicating copy to clipboard operation
gql-fhir copied to clipboard

implementing the hl7 fhir specifications using graphql

An implementation for the hl7 fhir specifications as defined here HL7 FHIR

Server is currently implementing the following resources:

  • [x] Patient
  • [x] ValueSet
  • [x] Practitioner
  • [x] RelatedPerson
  • [x] Encounter (Still in progress)

For more details check the roadmap

Features

  • Uses JSON Structure definition converter to create GraphQL schema
  • Live editing inside electron
  • Webpack for bundling both backend and frontend
  • React.js for the frontend
  • Graphql & MongoDB using mongoose on the backend

Why Graphql?

Graphql has a very flexible type definition system, where HL7 FHIR specifications can fit right into.

img

img

img

img

Requirements

  • nodejs and npm package manager
  • MongoDB

Installation

  • Clone the repository: git clone [email protected]:shalkam/gql-fhir.git your-project-name
  • Change directorycd your-project-name
  • Install dependencies npm install

Development

  • make sure you have MongoDB running (you can configure db connection inside config.js file)
  • Start app development
npm start

this will start server using electron.js

  • To start the server only using nodemon:
npm run dev-server
  • By default the server port is 3000
  • You can browse to graphiql on http://localhost:3000/graphiql

Build

To build the app run npm run build